@aceplus/smartace-api 3.4.0-alpha.1 → 3.4.0-alpha.4
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_alert_pb.d.ts +0 -230
- package/meta.spic_alert_pb.js +0 -1615
- package/meta.spic_alert_pb_service.d.ts +0 -121
- package/meta.spic_alert_pb_service.js +0 -182
- package/meta.spic_config_pb.d.ts +0 -155
- package/meta.spic_config_pb.js +0 -1156
- package/meta.spic_config_pb_service.d.ts +0 -102
- package/meta.spic_config_pb_service.js +0 -142
- package/meta.spic_pb.d.ts +0 -36
- package/meta.spic_pb.js +0 -254
- package/meta.spic_pb_service.d.ts +0 -64
- package/meta.spic_pb_service.js +0 -62
- 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 -69
- package/platform.local_distribution_pb.js +0 -506
- 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.cabinet_pb.d.ts +0 -1407
- package/spic.cabinet_pb.js +0 -10370
- package/spic.cabinet_pb_service.d.ts +0 -378
- package/spic.cabinet_pb_service.js +0 -717
- 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
|
@@ -1,102 +0,0 @@
|
|
|
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 {grpc} from "@improbable-eng/grpc-web";
|
|
7
|
-
|
|
8
|
-
type MetaSpicConfigGRPCSetTemperatureConfiguration = {
|
|
9
|
-
readonly methodName: string;
|
|
10
|
-
readonly service: typeof MetaSpicConfigGRPC;
|
|
11
|
-
readonly requestStream: false;
|
|
12
|
-
readonly responseStream: false;
|
|
13
|
-
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest;
|
|
14
|
-
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
type MetaSpicConfigGRPCCreateTemperatureConfigurationTemplate = {
|
|
18
|
-
readonly methodName: string;
|
|
19
|
-
readonly service: typeof MetaSpicConfigGRPC;
|
|
20
|
-
readonly requestStream: false;
|
|
21
|
-
readonly responseStream: false;
|
|
22
|
-
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest;
|
|
23
|
-
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type MetaSpicConfigGRPCSearchTemperatureConfigurationTemplate = {
|
|
27
|
-
readonly methodName: string;
|
|
28
|
-
readonly service: typeof MetaSpicConfigGRPC;
|
|
29
|
-
readonly requestStream: false;
|
|
30
|
-
readonly responseStream: false;
|
|
31
|
-
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest;
|
|
32
|
-
readonly responseType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export class MetaSpicConfigGRPC {
|
|
36
|
-
static readonly serviceName: string;
|
|
37
|
-
static readonly SetTemperatureConfiguration: MetaSpicConfigGRPCSetTemperatureConfiguration;
|
|
38
|
-
static readonly CreateTemperatureConfigurationTemplate: MetaSpicConfigGRPCCreateTemperatureConfigurationTemplate;
|
|
39
|
-
static readonly SearchTemperatureConfigurationTemplate: MetaSpicConfigGRPCSearchTemperatureConfigurationTemplate;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
43
|
-
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
44
|
-
|
|
45
|
-
interface UnaryResponse {
|
|
46
|
-
cancel(): void;
|
|
47
|
-
}
|
|
48
|
-
interface ResponseStream<T> {
|
|
49
|
-
cancel(): void;
|
|
50
|
-
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
51
|
-
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
52
|
-
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
53
|
-
}
|
|
54
|
-
interface RequestStream<T> {
|
|
55
|
-
write(message: T): RequestStream<T>;
|
|
56
|
-
end(): void;
|
|
57
|
-
cancel(): void;
|
|
58
|
-
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
59
|
-
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
60
|
-
}
|
|
61
|
-
interface BidirectionalStream<ReqT, ResT> {
|
|
62
|
-
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
63
|
-
end(): void;
|
|
64
|
-
cancel(): void;
|
|
65
|
-
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
66
|
-
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
67
|
-
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export class MetaSpicConfigGRPCClient {
|
|
71
|
-
readonly serviceHost: string;
|
|
72
|
-
|
|
73
|
-
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
74
|
-
setTemperatureConfiguration(
|
|
75
|
-
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
76
|
-
metadata: grpc.Metadata,
|
|
77
|
-
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
78
|
-
): UnaryResponse;
|
|
79
|
-
setTemperatureConfiguration(
|
|
80
|
-
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
81
|
-
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
82
|
-
): UnaryResponse;
|
|
83
|
-
createTemperatureConfigurationTemplate(
|
|
84
|
-
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
|
|
85
|
-
metadata: grpc.Metadata,
|
|
86
|
-
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
87
|
-
): UnaryResponse;
|
|
88
|
-
createTemperatureConfigurationTemplate(
|
|
89
|
-
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
|
|
90
|
-
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
91
|
-
): UnaryResponse;
|
|
92
|
-
searchTemperatureConfigurationTemplate(
|
|
93
|
-
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
|
|
94
|
-
metadata: grpc.Metadata,
|
|
95
|
-
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply|null) => void
|
|
96
|
-
): UnaryResponse;
|
|
97
|
-
searchTemperatureConfigurationTemplate(
|
|
98
|
-
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
|
|
99
|
-
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply|null) => void
|
|
100
|
-
): UnaryResponse;
|
|
101
|
-
}
|
|
102
|
-
|
|
@@ -1,142 +0,0 @@
|
|
|
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 grpc = require("@improbable-eng/grpc-web").grpc;
|
|
7
|
-
|
|
8
|
-
var MetaSpicConfigGRPC = (function () {
|
|
9
|
-
function MetaSpicConfigGRPC() {}
|
|
10
|
-
MetaSpicConfigGRPC.serviceName = "Meta.MetaSpicConfigGRPC";
|
|
11
|
-
return MetaSpicConfigGRPC;
|
|
12
|
-
}());
|
|
13
|
-
|
|
14
|
-
MetaSpicConfigGRPC.SetTemperatureConfiguration = {
|
|
15
|
-
methodName: "SetTemperatureConfiguration",
|
|
16
|
-
service: MetaSpicConfigGRPC,
|
|
17
|
-
requestStream: false,
|
|
18
|
-
responseStream: false,
|
|
19
|
-
requestType: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
20
|
-
responseType: google_protobuf_empty_pb.Empty
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
MetaSpicConfigGRPC.CreateTemperatureConfigurationTemplate = {
|
|
24
|
-
methodName: "CreateTemperatureConfigurationTemplate",
|
|
25
|
-
service: MetaSpicConfigGRPC,
|
|
26
|
-
requestStream: false,
|
|
27
|
-
responseStream: false,
|
|
28
|
-
requestType: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
|
|
29
|
-
responseType: google_protobuf_empty_pb.Empty
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
MetaSpicConfigGRPC.SearchTemperatureConfigurationTemplate = {
|
|
33
|
-
methodName: "SearchTemperatureConfigurationTemplate",
|
|
34
|
-
service: MetaSpicConfigGRPC,
|
|
35
|
-
requestStream: false,
|
|
36
|
-
responseStream: false,
|
|
37
|
-
requestType: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
|
|
38
|
-
responseType: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
exports.MetaSpicConfigGRPC = MetaSpicConfigGRPC;
|
|
42
|
-
|
|
43
|
-
function MetaSpicConfigGRPCClient(serviceHost, options) {
|
|
44
|
-
this.serviceHost = serviceHost;
|
|
45
|
-
this.options = options || {};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
MetaSpicConfigGRPCClient.prototype.setTemperatureConfiguration = function setTemperatureConfiguration(requestMessage, metadata, callback) {
|
|
49
|
-
if (arguments.length === 2) {
|
|
50
|
-
callback = arguments[1];
|
|
51
|
-
}
|
|
52
|
-
var client = grpc.unary(MetaSpicConfigGRPC.SetTemperatureConfiguration, {
|
|
53
|
-
request: requestMessage,
|
|
54
|
-
host: this.serviceHost,
|
|
55
|
-
metadata: metadata,
|
|
56
|
-
transport: this.options.transport,
|
|
57
|
-
debug: this.options.debug,
|
|
58
|
-
onEnd: function (response) {
|
|
59
|
-
if (callback) {
|
|
60
|
-
if (response.status !== grpc.Code.OK) {
|
|
61
|
-
var err = new Error(response.statusMessage);
|
|
62
|
-
err.code = response.status;
|
|
63
|
-
err.metadata = response.trailers;
|
|
64
|
-
callback(err, null);
|
|
65
|
-
} else {
|
|
66
|
-
callback(null, response.message);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
return {
|
|
72
|
-
cancel: function () {
|
|
73
|
-
callback = null;
|
|
74
|
-
client.close();
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
MetaSpicConfigGRPCClient.prototype.createTemperatureConfigurationTemplate = function createTemperatureConfigurationTemplate(requestMessage, metadata, callback) {
|
|
80
|
-
if (arguments.length === 2) {
|
|
81
|
-
callback = arguments[1];
|
|
82
|
-
}
|
|
83
|
-
var client = grpc.unary(MetaSpicConfigGRPC.CreateTemperatureConfigurationTemplate, {
|
|
84
|
-
request: requestMessage,
|
|
85
|
-
host: this.serviceHost,
|
|
86
|
-
metadata: metadata,
|
|
87
|
-
transport: this.options.transport,
|
|
88
|
-
debug: this.options.debug,
|
|
89
|
-
onEnd: function (response) {
|
|
90
|
-
if (callback) {
|
|
91
|
-
if (response.status !== grpc.Code.OK) {
|
|
92
|
-
var err = new Error(response.statusMessage);
|
|
93
|
-
err.code = response.status;
|
|
94
|
-
err.metadata = response.trailers;
|
|
95
|
-
callback(err, null);
|
|
96
|
-
} else {
|
|
97
|
-
callback(null, response.message);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
return {
|
|
103
|
-
cancel: function () {
|
|
104
|
-
callback = null;
|
|
105
|
-
client.close();
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
MetaSpicConfigGRPCClient.prototype.searchTemperatureConfigurationTemplate = function searchTemperatureConfigurationTemplate(requestMessage, metadata, callback) {
|
|
111
|
-
if (arguments.length === 2) {
|
|
112
|
-
callback = arguments[1];
|
|
113
|
-
}
|
|
114
|
-
var client = grpc.unary(MetaSpicConfigGRPC.SearchTemperatureConfigurationTemplate, {
|
|
115
|
-
request: requestMessage,
|
|
116
|
-
host: this.serviceHost,
|
|
117
|
-
metadata: metadata,
|
|
118
|
-
transport: this.options.transport,
|
|
119
|
-
debug: this.options.debug,
|
|
120
|
-
onEnd: function (response) {
|
|
121
|
-
if (callback) {
|
|
122
|
-
if (response.status !== grpc.Code.OK) {
|
|
123
|
-
var err = new Error(response.statusMessage);
|
|
124
|
-
err.code = response.status;
|
|
125
|
-
err.metadata = response.trailers;
|
|
126
|
-
callback(err, null);
|
|
127
|
-
} else {
|
|
128
|
-
callback(null, response.message);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
return {
|
|
134
|
-
cancel: function () {
|
|
135
|
-
callback = null;
|
|
136
|
-
client.close();
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
exports.MetaSpicConfigGRPCClient = MetaSpicConfigGRPCClient;
|
|
142
|
-
|
package/meta.spic_pb.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// package: Meta
|
|
2
|
-
// file: meta.spic.proto
|
|
3
|
-
|
|
4
|
-
import * as jspb from "google-protobuf";
|
|
5
|
-
import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
6
|
-
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
7
|
-
import * as meta_spic_config_pb from "./meta.spic_config_pb";
|
|
8
|
-
|
|
9
|
-
export class CabinetLocationMeta extends jspb.Message {
|
|
10
|
-
hasCabinetLocation(): boolean;
|
|
11
|
-
clearCabinetLocation(): void;
|
|
12
|
-
getCabinetLocation(): spic_cabinet_pb.CabinetWithLocation | undefined;
|
|
13
|
-
setCabinetLocation(value?: spic_cabinet_pb.CabinetWithLocation): void;
|
|
14
|
-
|
|
15
|
-
hasTemperatureConfiguration(): boolean;
|
|
16
|
-
clearTemperatureConfiguration(): void;
|
|
17
|
-
getTemperatureConfiguration(): meta_spic_config_pb.TemperatureConfigurationProto | undefined;
|
|
18
|
-
setTemperatureConfiguration(value?: meta_spic_config_pb.TemperatureConfigurationProto): void;
|
|
19
|
-
|
|
20
|
-
serializeBinary(): Uint8Array;
|
|
21
|
-
toObject(includeInstance?: boolean): CabinetLocationMeta.AsObject;
|
|
22
|
-
static toObject(includeInstance: boolean, msg: CabinetLocationMeta): CabinetLocationMeta.AsObject;
|
|
23
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
24
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
25
|
-
static serializeBinaryToWriter(message: CabinetLocationMeta, writer: jspb.BinaryWriter): void;
|
|
26
|
-
static deserializeBinary(bytes: Uint8Array): CabinetLocationMeta;
|
|
27
|
-
static deserializeBinaryFromReader(message: CabinetLocationMeta, reader: jspb.BinaryReader): CabinetLocationMeta;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export namespace CabinetLocationMeta {
|
|
31
|
-
export type AsObject = {
|
|
32
|
-
cabinetLocation?: spic_cabinet_pb.CabinetWithLocation.AsObject,
|
|
33
|
-
temperatureConfiguration?: meta_spic_config_pb.TemperatureConfigurationProto.AsObject,
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
package/meta.spic_pb.js
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
// source: meta.spic.proto
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview
|
|
4
|
-
* @enhanceable
|
|
5
|
-
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
-
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
-
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
// @ts-nocheck
|
|
13
|
-
|
|
14
|
-
var jspb = require('google-protobuf');
|
|
15
|
-
var goog = jspb;
|
|
16
|
-
var global =
|
|
17
|
-
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
18
|
-
(typeof window !== 'undefined' && window) ||
|
|
19
|
-
(typeof global !== 'undefined' && global) ||
|
|
20
|
-
(typeof self !== 'undefined' && self) ||
|
|
21
|
-
(function () { return this; }).call(null) ||
|
|
22
|
-
Function('return this')();
|
|
23
|
-
|
|
24
|
-
var spic_cabinet_pb = require('./spic.cabinet_pb.js');
|
|
25
|
-
goog.object.extend(proto, spic_cabinet_pb);
|
|
26
|
-
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
27
|
-
goog.object.extend(proto, google_api_annotations_pb);
|
|
28
|
-
var meta_spic_config_pb = require('./meta.spic_config_pb.js');
|
|
29
|
-
goog.object.extend(proto, meta_spic_config_pb);
|
|
30
|
-
goog.exportSymbol('proto.Meta.CabinetLocationMeta', null, global);
|
|
31
|
-
/**
|
|
32
|
-
* Generated by JsPbCodeGenerator.
|
|
33
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
34
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
35
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
36
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
37
|
-
* valid.
|
|
38
|
-
* @extends {jspb.Message}
|
|
39
|
-
* @constructor
|
|
40
|
-
*/
|
|
41
|
-
proto.Meta.CabinetLocationMeta = function(opt_data) {
|
|
42
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
43
|
-
};
|
|
44
|
-
goog.inherits(proto.Meta.CabinetLocationMeta, jspb.Message);
|
|
45
|
-
if (goog.DEBUG && !COMPILED) {
|
|
46
|
-
/**
|
|
47
|
-
* @public
|
|
48
|
-
* @override
|
|
49
|
-
*/
|
|
50
|
-
proto.Meta.CabinetLocationMeta.displayName = 'proto.Meta.CabinetLocationMeta';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56
|
-
/**
|
|
57
|
-
* Creates an object representation of this proto.
|
|
58
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
59
|
-
* Optional fields that are not set will be set to undefined.
|
|
60
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
61
|
-
* For the list of reserved names please see:
|
|
62
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
63
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
64
|
-
* JSPB instance for transitional soy proto support:
|
|
65
|
-
* http://goto/soy-param-migration
|
|
66
|
-
* @return {!Object}
|
|
67
|
-
*/
|
|
68
|
-
proto.Meta.CabinetLocationMeta.prototype.toObject = function(opt_includeInstance) {
|
|
69
|
-
return proto.Meta.CabinetLocationMeta.toObject(opt_includeInstance, this);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Static version of the {@see toObject} method.
|
|
75
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
76
|
-
* the JSPB instance for transitional soy proto support:
|
|
77
|
-
* http://goto/soy-param-migration
|
|
78
|
-
* @param {!proto.Meta.CabinetLocationMeta} msg The msg instance to transform.
|
|
79
|
-
* @return {!Object}
|
|
80
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
81
|
-
*/
|
|
82
|
-
proto.Meta.CabinetLocationMeta.toObject = function(includeInstance, msg) {
|
|
83
|
-
var f, obj = {
|
|
84
|
-
cabinetLocation: (f = msg.getCabinetLocation()) && spic_cabinet_pb.CabinetWithLocation.toObject(includeInstance, f),
|
|
85
|
-
temperatureConfiguration: (f = msg.getTemperatureConfiguration()) && meta_spic_config_pb.TemperatureConfigurationProto.toObject(includeInstance, f)
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
if (includeInstance) {
|
|
89
|
-
obj.$jspbMessageInstance = msg;
|
|
90
|
-
}
|
|
91
|
-
return obj;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Deserializes binary data (in protobuf wire format).
|
|
98
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
99
|
-
* @return {!proto.Meta.CabinetLocationMeta}
|
|
100
|
-
*/
|
|
101
|
-
proto.Meta.CabinetLocationMeta.deserializeBinary = function(bytes) {
|
|
102
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
103
|
-
var msg = new proto.Meta.CabinetLocationMeta;
|
|
104
|
-
return proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader(msg, reader);
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
110
|
-
* given reader into the given message object.
|
|
111
|
-
* @param {!proto.Meta.CabinetLocationMeta} msg The message object to deserialize into.
|
|
112
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
113
|
-
* @return {!proto.Meta.CabinetLocationMeta}
|
|
114
|
-
*/
|
|
115
|
-
proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader = function(msg, reader) {
|
|
116
|
-
while (reader.nextField()) {
|
|
117
|
-
if (reader.isEndGroup()) {
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
var field = reader.getFieldNumber();
|
|
121
|
-
switch (field) {
|
|
122
|
-
case 1:
|
|
123
|
-
var value = new spic_cabinet_pb.CabinetWithLocation;
|
|
124
|
-
reader.readMessage(value,spic_cabinet_pb.CabinetWithLocation.deserializeBinaryFromReader);
|
|
125
|
-
msg.setCabinetLocation(value);
|
|
126
|
-
break;
|
|
127
|
-
case 2:
|
|
128
|
-
var value = new meta_spic_config_pb.TemperatureConfigurationProto;
|
|
129
|
-
reader.readMessage(value,meta_spic_config_pb.TemperatureConfigurationProto.deserializeBinaryFromReader);
|
|
130
|
-
msg.setTemperatureConfiguration(value);
|
|
131
|
-
break;
|
|
132
|
-
default:
|
|
133
|
-
reader.skipField();
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return msg;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
143
|
-
* @return {!Uint8Array}
|
|
144
|
-
*/
|
|
145
|
-
proto.Meta.CabinetLocationMeta.prototype.serializeBinary = function() {
|
|
146
|
-
var writer = new jspb.BinaryWriter();
|
|
147
|
-
proto.Meta.CabinetLocationMeta.serializeBinaryToWriter(this, writer);
|
|
148
|
-
return writer.getResultBuffer();
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
154
|
-
* format), writing to the given BinaryWriter.
|
|
155
|
-
* @param {!proto.Meta.CabinetLocationMeta} message
|
|
156
|
-
* @param {!jspb.BinaryWriter} writer
|
|
157
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
158
|
-
*/
|
|
159
|
-
proto.Meta.CabinetLocationMeta.serializeBinaryToWriter = function(message, writer) {
|
|
160
|
-
var f = undefined;
|
|
161
|
-
f = message.getCabinetLocation();
|
|
162
|
-
if (f != null) {
|
|
163
|
-
writer.writeMessage(
|
|
164
|
-
1,
|
|
165
|
-
f,
|
|
166
|
-
spic_cabinet_pb.CabinetWithLocation.serializeBinaryToWriter
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
f = message.getTemperatureConfiguration();
|
|
170
|
-
if (f != null) {
|
|
171
|
-
writer.writeMessage(
|
|
172
|
-
2,
|
|
173
|
-
f,
|
|
174
|
-
meta_spic_config_pb.TemperatureConfigurationProto.serializeBinaryToWriter
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* optional Spic.CabinetWithLocation cabinet_location = 1;
|
|
182
|
-
* @return {?proto.Spic.CabinetWithLocation}
|
|
183
|
-
*/
|
|
184
|
-
proto.Meta.CabinetLocationMeta.prototype.getCabinetLocation = function() {
|
|
185
|
-
return /** @type{?proto.Spic.CabinetWithLocation} */ (
|
|
186
|
-
jspb.Message.getWrapperField(this, spic_cabinet_pb.CabinetWithLocation, 1));
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @param {?proto.Spic.CabinetWithLocation|undefined} value
|
|
192
|
-
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
193
|
-
*/
|
|
194
|
-
proto.Meta.CabinetLocationMeta.prototype.setCabinetLocation = function(value) {
|
|
195
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Clears the message field making it undefined.
|
|
201
|
-
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
202
|
-
*/
|
|
203
|
-
proto.Meta.CabinetLocationMeta.prototype.clearCabinetLocation = function() {
|
|
204
|
-
return this.setCabinetLocation(undefined);
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Returns whether this field is set.
|
|
210
|
-
* @return {boolean}
|
|
211
|
-
*/
|
|
212
|
-
proto.Meta.CabinetLocationMeta.prototype.hasCabinetLocation = function() {
|
|
213
|
-
return jspb.Message.getField(this, 1) != null;
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* optional TemperatureConfigurationProto temperature_configuration = 2;
|
|
219
|
-
* @return {?proto.Meta.TemperatureConfigurationProto}
|
|
220
|
-
*/
|
|
221
|
-
proto.Meta.CabinetLocationMeta.prototype.getTemperatureConfiguration = function() {
|
|
222
|
-
return /** @type{?proto.Meta.TemperatureConfigurationProto} */ (
|
|
223
|
-
jspb.Message.getWrapperField(this, meta_spic_config_pb.TemperatureConfigurationProto, 2));
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @param {?proto.Meta.TemperatureConfigurationProto|undefined} value
|
|
229
|
-
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
230
|
-
*/
|
|
231
|
-
proto.Meta.CabinetLocationMeta.prototype.setTemperatureConfiguration = function(value) {
|
|
232
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Clears the message field making it undefined.
|
|
238
|
-
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
239
|
-
*/
|
|
240
|
-
proto.Meta.CabinetLocationMeta.prototype.clearTemperatureConfiguration = function() {
|
|
241
|
-
return this.setTemperatureConfiguration(undefined);
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Returns whether this field is set.
|
|
247
|
-
* @return {boolean}
|
|
248
|
-
*/
|
|
249
|
-
proto.Meta.CabinetLocationMeta.prototype.hasTemperatureConfiguration = function() {
|
|
250
|
-
return jspb.Message.getField(this, 2) != null;
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
goog.object.extend(exports, proto.Meta);
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// package: Meta
|
|
2
|
-
// file: meta.spic.proto
|
|
3
|
-
|
|
4
|
-
import * as meta_spic_pb from "./meta.spic_pb";
|
|
5
|
-
import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
6
|
-
import {grpc} from "@improbable-eng/grpc-web";
|
|
7
|
-
|
|
8
|
-
type MetaSpicGRPCRetrieve = {
|
|
9
|
-
readonly methodName: string;
|
|
10
|
-
readonly service: typeof MetaSpicGRPC;
|
|
11
|
-
readonly requestStream: false;
|
|
12
|
-
readonly responseStream: false;
|
|
13
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.RetrieveRequest;
|
|
14
|
-
readonly responseType: typeof meta_spic_pb.CabinetLocationMeta;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export class MetaSpicGRPC {
|
|
18
|
-
static readonly serviceName: string;
|
|
19
|
-
static readonly Retrieve: MetaSpicGRPCRetrieve;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
23
|
-
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
24
|
-
|
|
25
|
-
interface UnaryResponse {
|
|
26
|
-
cancel(): void;
|
|
27
|
-
}
|
|
28
|
-
interface ResponseStream<T> {
|
|
29
|
-
cancel(): void;
|
|
30
|
-
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
31
|
-
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
32
|
-
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
33
|
-
}
|
|
34
|
-
interface RequestStream<T> {
|
|
35
|
-
write(message: T): RequestStream<T>;
|
|
36
|
-
end(): void;
|
|
37
|
-
cancel(): void;
|
|
38
|
-
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
39
|
-
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
40
|
-
}
|
|
41
|
-
interface BidirectionalStream<ReqT, ResT> {
|
|
42
|
-
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
43
|
-
end(): void;
|
|
44
|
-
cancel(): void;
|
|
45
|
-
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
46
|
-
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
47
|
-
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export class MetaSpicGRPCClient {
|
|
51
|
-
readonly serviceHost: string;
|
|
52
|
-
|
|
53
|
-
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
54
|
-
retrieve(
|
|
55
|
-
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
56
|
-
metadata: grpc.Metadata,
|
|
57
|
-
callback: (error: ServiceError|null, responseMessage: meta_spic_pb.CabinetLocationMeta|null) => void
|
|
58
|
-
): UnaryResponse;
|
|
59
|
-
retrieve(
|
|
60
|
-
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
61
|
-
callback: (error: ServiceError|null, responseMessage: meta_spic_pb.CabinetLocationMeta|null) => void
|
|
62
|
-
): UnaryResponse;
|
|
63
|
-
}
|
|
64
|
-
|
package/meta.spic_pb_service.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// package: Meta
|
|
2
|
-
// file: meta.spic.proto
|
|
3
|
-
|
|
4
|
-
var meta_spic_pb = require("./meta.spic_pb");
|
|
5
|
-
var spic_cabinet_pb = require("./spic.cabinet_pb");
|
|
6
|
-
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
7
|
-
|
|
8
|
-
var MetaSpicGRPC = (function () {
|
|
9
|
-
function MetaSpicGRPC() {}
|
|
10
|
-
MetaSpicGRPC.serviceName = "Meta.MetaSpicGRPC";
|
|
11
|
-
return MetaSpicGRPC;
|
|
12
|
-
}());
|
|
13
|
-
|
|
14
|
-
MetaSpicGRPC.Retrieve = {
|
|
15
|
-
methodName: "Retrieve",
|
|
16
|
-
service: MetaSpicGRPC,
|
|
17
|
-
requestStream: false,
|
|
18
|
-
responseStream: false,
|
|
19
|
-
requestType: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
20
|
-
responseType: meta_spic_pb.CabinetLocationMeta
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
exports.MetaSpicGRPC = MetaSpicGRPC;
|
|
24
|
-
|
|
25
|
-
function MetaSpicGRPCClient(serviceHost, options) {
|
|
26
|
-
this.serviceHost = serviceHost;
|
|
27
|
-
this.options = options || {};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
MetaSpicGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
31
|
-
if (arguments.length === 2) {
|
|
32
|
-
callback = arguments[1];
|
|
33
|
-
}
|
|
34
|
-
var client = grpc.unary(MetaSpicGRPC.Retrieve, {
|
|
35
|
-
request: requestMessage,
|
|
36
|
-
host: this.serviceHost,
|
|
37
|
-
metadata: metadata,
|
|
38
|
-
transport: this.options.transport,
|
|
39
|
-
debug: this.options.debug,
|
|
40
|
-
onEnd: function (response) {
|
|
41
|
-
if (callback) {
|
|
42
|
-
if (response.status !== grpc.Code.OK) {
|
|
43
|
-
var err = new Error(response.statusMessage);
|
|
44
|
-
err.code = response.status;
|
|
45
|
-
err.metadata = response.trailers;
|
|
46
|
-
callback(err, null);
|
|
47
|
-
} else {
|
|
48
|
-
callback(null, response.message);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
return {
|
|
54
|
-
cancel: function () {
|
|
55
|
-
callback = null;
|
|
56
|
-
client.close();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
exports.MetaSpicGRPCClient = MetaSpicGRPCClient;
|
|
62
|
-
|