@aceplus/smartace-api 3.3.0-alpha.1 → 3.3.0

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.
@@ -5,15 +5,6 @@ import * as auth_push_notification_pb from "./auth.push_notification_pb";
5
5
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
6
  import {grpc} from "@improbable-eng/grpc-web";
7
7
 
8
- type PushNotificationGRPCSendActive = {
9
- readonly methodName: string;
10
- readonly service: typeof PushNotificationGRPC;
11
- readonly requestStream: false;
12
- readonly responseStream: false;
13
- readonly requestType: typeof auth_push_notification_pb.PushNotificationProto.ActiveRequest;
14
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
15
- };
16
-
17
8
  type PushNotificationGRPCSendOpen = {
18
9
  readonly methodName: string;
19
10
  readonly service: typeof PushNotificationGRPC;
@@ -23,30 +14,9 @@ type PushNotificationGRPCSendOpen = {
23
14
  readonly responseType: typeof google_protobuf_empty_pb.Empty;
24
15
  };
25
16
 
26
- type PushNotificationGRPCSendInfoPush = {
27
- readonly methodName: string;
28
- readonly service: typeof PushNotificationGRPC;
29
- readonly requestStream: false;
30
- readonly responseStream: false;
31
- readonly requestType: typeof auth_push_notification_pb.PushNotificationProto.InfoPushRequest;
32
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
33
- };
34
-
35
- type PushNotificationGRPCSendExpiredOpening = {
36
- readonly methodName: string;
37
- readonly service: typeof PushNotificationGRPC;
38
- readonly requestStream: false;
39
- readonly responseStream: false;
40
- readonly requestType: typeof auth_push_notification_pb.PushNotificationProto.ExpiredOpeningRequest;
41
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
42
- };
43
-
44
17
  export class PushNotificationGRPC {
45
18
  static readonly serviceName: string;
46
- static readonly SendActive: PushNotificationGRPCSendActive;
47
19
  static readonly SendOpen: PushNotificationGRPCSendOpen;
48
- static readonly SendInfoPush: PushNotificationGRPCSendInfoPush;
49
- static readonly SendExpiredOpening: PushNotificationGRPCSendExpiredOpening;
50
20
  }
51
21
 
52
22
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -81,15 +51,6 @@ export class PushNotificationGRPCClient {
81
51
  readonly serviceHost: string;
82
52
 
83
53
  constructor(serviceHost: string, options?: grpc.RpcOptions);
84
- sendActive(
85
- requestMessage: auth_push_notification_pb.PushNotificationProto.ActiveRequest,
86
- metadata: grpc.Metadata,
87
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
88
- ): UnaryResponse;
89
- sendActive(
90
- requestMessage: auth_push_notification_pb.PushNotificationProto.ActiveRequest,
91
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
92
- ): UnaryResponse;
93
54
  sendOpen(
94
55
  requestMessage: auth_push_notification_pb.PushNotificationProto.OpenRequest,
95
56
  metadata: grpc.Metadata,
@@ -99,23 +60,5 @@ export class PushNotificationGRPCClient {
99
60
  requestMessage: auth_push_notification_pb.PushNotificationProto.OpenRequest,
100
61
  callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
101
62
  ): UnaryResponse;
102
- sendInfoPush(
103
- requestMessage: auth_push_notification_pb.PushNotificationProto.InfoPushRequest,
104
- metadata: grpc.Metadata,
105
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
106
- ): UnaryResponse;
107
- sendInfoPush(
108
- requestMessage: auth_push_notification_pb.PushNotificationProto.InfoPushRequest,
109
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
110
- ): UnaryResponse;
111
- sendExpiredOpening(
112
- requestMessage: auth_push_notification_pb.PushNotificationProto.ExpiredOpeningRequest,
113
- metadata: grpc.Metadata,
114
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
115
- ): UnaryResponse;
116
- sendExpiredOpening(
117
- requestMessage: auth_push_notification_pb.PushNotificationProto.ExpiredOpeningRequest,
118
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
119
- ): UnaryResponse;
120
63
  }
121
64
 
@@ -11,15 +11,6 @@ var PushNotificationGRPC = (function () {
11
11
  return PushNotificationGRPC;
12
12
  }());
13
13
 
14
- PushNotificationGRPC.SendActive = {
15
- methodName: "SendActive",
16
- service: PushNotificationGRPC,
17
- requestStream: false,
18
- responseStream: false,
19
- requestType: auth_push_notification_pb.PushNotificationProto.ActiveRequest,
20
- responseType: google_protobuf_empty_pb.Empty
21
- };
22
-
23
14
  PushNotificationGRPC.SendOpen = {
24
15
  methodName: "SendOpen",
25
16
  service: PushNotificationGRPC,
@@ -29,24 +20,6 @@ PushNotificationGRPC.SendOpen = {
29
20
  responseType: google_protobuf_empty_pb.Empty
30
21
  };
31
22
 
32
- PushNotificationGRPC.SendInfoPush = {
33
- methodName: "SendInfoPush",
34
- service: PushNotificationGRPC,
35
- requestStream: false,
36
- responseStream: false,
37
- requestType: auth_push_notification_pb.PushNotificationProto.InfoPushRequest,
38
- responseType: google_protobuf_empty_pb.Empty
39
- };
40
-
41
- PushNotificationGRPC.SendExpiredOpening = {
42
- methodName: "SendExpiredOpening",
43
- service: PushNotificationGRPC,
44
- requestStream: false,
45
- responseStream: false,
46
- requestType: auth_push_notification_pb.PushNotificationProto.ExpiredOpeningRequest,
47
- responseType: google_protobuf_empty_pb.Empty
48
- };
49
-
50
23
  exports.PushNotificationGRPC = PushNotificationGRPC;
51
24
 
52
25
  function PushNotificationGRPCClient(serviceHost, options) {
@@ -54,37 +27,6 @@ function PushNotificationGRPCClient(serviceHost, options) {
54
27
  this.options = options || {};
55
28
  }
56
29
 
57
- PushNotificationGRPCClient.prototype.sendActive = function sendActive(requestMessage, metadata, callback) {
58
- if (arguments.length === 2) {
59
- callback = arguments[1];
60
- }
61
- var client = grpc.unary(PushNotificationGRPC.SendActive, {
62
- request: requestMessage,
63
- host: this.serviceHost,
64
- metadata: metadata,
65
- transport: this.options.transport,
66
- debug: this.options.debug,
67
- onEnd: function (response) {
68
- if (callback) {
69
- if (response.status !== grpc.Code.OK) {
70
- var err = new Error(response.statusMessage);
71
- err.code = response.status;
72
- err.metadata = response.trailers;
73
- callback(err, null);
74
- } else {
75
- callback(null, response.message);
76
- }
77
- }
78
- }
79
- });
80
- return {
81
- cancel: function () {
82
- callback = null;
83
- client.close();
84
- }
85
- };
86
- };
87
-
88
30
  PushNotificationGRPCClient.prototype.sendOpen = function sendOpen(requestMessage, metadata, callback) {
89
31
  if (arguments.length === 2) {
90
32
  callback = arguments[1];
@@ -116,67 +58,5 @@ PushNotificationGRPCClient.prototype.sendOpen = function sendOpen(requestMessage
116
58
  };
117
59
  };
118
60
 
119
- PushNotificationGRPCClient.prototype.sendInfoPush = function sendInfoPush(requestMessage, metadata, callback) {
120
- if (arguments.length === 2) {
121
- callback = arguments[1];
122
- }
123
- var client = grpc.unary(PushNotificationGRPC.SendInfoPush, {
124
- request: requestMessage,
125
- host: this.serviceHost,
126
- metadata: metadata,
127
- transport: this.options.transport,
128
- debug: this.options.debug,
129
- onEnd: function (response) {
130
- if (callback) {
131
- if (response.status !== grpc.Code.OK) {
132
- var err = new Error(response.statusMessage);
133
- err.code = response.status;
134
- err.metadata = response.trailers;
135
- callback(err, null);
136
- } else {
137
- callback(null, response.message);
138
- }
139
- }
140
- }
141
- });
142
- return {
143
- cancel: function () {
144
- callback = null;
145
- client.close();
146
- }
147
- };
148
- };
149
-
150
- PushNotificationGRPCClient.prototype.sendExpiredOpening = function sendExpiredOpening(requestMessage, metadata, callback) {
151
- if (arguments.length === 2) {
152
- callback = arguments[1];
153
- }
154
- var client = grpc.unary(PushNotificationGRPC.SendExpiredOpening, {
155
- request: requestMessage,
156
- host: this.serviceHost,
157
- metadata: metadata,
158
- transport: this.options.transport,
159
- debug: this.options.debug,
160
- onEnd: function (response) {
161
- if (callback) {
162
- if (response.status !== grpc.Code.OK) {
163
- var err = new Error(response.statusMessage);
164
- err.code = response.status;
165
- err.metadata = response.trailers;
166
- callback(err, null);
167
- } else {
168
- callback(null, response.message);
169
- }
170
- }
171
- }
172
- });
173
- return {
174
- cancel: function () {
175
- callback = null;
176
- client.close();
177
- }
178
- };
179
- };
180
-
181
61
  exports.PushNotificationGRPCClient = PushNotificationGRPCClient;
182
62
 
@@ -4,6 +4,7 @@
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
6
  import * as platform_pagination_pb from "./platform.pagination_pb";
7
+ import * as spic_cabinet_pb from "./spic.cabinet_pb";
7
8
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
8
9
 
9
10
  export class TemperatureConfigurationProto extends jspb.Message {
@@ -153,3 +154,31 @@ export namespace TemperatureConfigurationProto {
153
154
  }
154
155
  }
155
156
 
157
+ export class CabinetLocationMeta extends jspb.Message {
158
+ hasCabinetLocation(): boolean;
159
+ clearCabinetLocation(): void;
160
+ getCabinetLocation(): spic_cabinet_pb.CabinetWithLocation | undefined;
161
+ setCabinetLocation(value?: spic_cabinet_pb.CabinetWithLocation): void;
162
+
163
+ hasTemperatureConfiguration(): boolean;
164
+ clearTemperatureConfiguration(): void;
165
+ getTemperatureConfiguration(): TemperatureConfigurationProto | undefined;
166
+ setTemperatureConfiguration(value?: TemperatureConfigurationProto): void;
167
+
168
+ serializeBinary(): Uint8Array;
169
+ toObject(includeInstance?: boolean): CabinetLocationMeta.AsObject;
170
+ static toObject(includeInstance: boolean, msg: CabinetLocationMeta): CabinetLocationMeta.AsObject;
171
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
172
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
173
+ static serializeBinaryToWriter(message: CabinetLocationMeta, writer: jspb.BinaryWriter): void;
174
+ static deserializeBinary(bytes: Uint8Array): CabinetLocationMeta;
175
+ static deserializeBinaryFromReader(message: CabinetLocationMeta, reader: jspb.BinaryReader): CabinetLocationMeta;
176
+ }
177
+
178
+ export namespace CabinetLocationMeta {
179
+ export type AsObject = {
180
+ cabinetLocation?: spic_cabinet_pb.CabinetWithLocation.AsObject,
181
+ temperatureConfiguration?: TemperatureConfigurationProto.AsObject,
182
+ }
183
+ }
184
+
@@ -25,8 +25,11 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
25
25
  goog.object.extend(proto, google_protobuf_empty_pb);
26
26
  var platform_pagination_pb = require('./platform.pagination_pb.js');
27
27
  goog.object.extend(proto, platform_pagination_pb);
28
+ var spic_cabinet_pb = require('./spic.cabinet_pb.js');
29
+ goog.object.extend(proto, spic_cabinet_pb);
28
30
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
29
31
  goog.object.extend(proto, google_api_annotations_pb);
32
+ goog.exportSymbol('proto.Meta.CabinetLocationMeta', null, global);
30
33
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto', null, global);
31
34
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.CreateTemplateRequest', null, global);
32
35
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.SearchTemplateReply', null, global);
@@ -138,6 +141,27 @@ if (goog.DEBUG && !COMPILED) {
138
141
  */
139
142
  proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.displayName = 'proto.Meta.TemperatureConfigurationProto.SearchTemplateReply';
140
143
  }
144
+ /**
145
+ * Generated by JsPbCodeGenerator.
146
+ * @param {Array=} opt_data Optional initial data array, typically from a
147
+ * server response, or constructed directly in Javascript. The array is used
148
+ * in place and becomes part of the constructed object. It is not cloned.
149
+ * If no data is provided, the constructed object will be empty, but still
150
+ * valid.
151
+ * @extends {jspb.Message}
152
+ * @constructor
153
+ */
154
+ proto.Meta.CabinetLocationMeta = function(opt_data) {
155
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
156
+ };
157
+ goog.inherits(proto.Meta.CabinetLocationMeta, jspb.Message);
158
+ if (goog.DEBUG && !COMPILED) {
159
+ /**
160
+ * @public
161
+ * @override
162
+ */
163
+ proto.Meta.CabinetLocationMeta.displayName = 'proto.Meta.CabinetLocationMeta';
164
+ }
141
165
 
142
166
 
143
167
 
@@ -1153,4 +1177,206 @@ proto.Meta.TemperatureConfigurationProto.prototype.setCriticalClear = function(v
1153
1177
  };
1154
1178
 
1155
1179
 
1180
+
1181
+
1182
+
1183
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1184
+ /**
1185
+ * Creates an object representation of this proto.
1186
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1187
+ * Optional fields that are not set will be set to undefined.
1188
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1189
+ * For the list of reserved names please see:
1190
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1191
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1192
+ * JSPB instance for transitional soy proto support:
1193
+ * http://goto/soy-param-migration
1194
+ * @return {!Object}
1195
+ */
1196
+ proto.Meta.CabinetLocationMeta.prototype.toObject = function(opt_includeInstance) {
1197
+ return proto.Meta.CabinetLocationMeta.toObject(opt_includeInstance, this);
1198
+ };
1199
+
1200
+
1201
+ /**
1202
+ * Static version of the {@see toObject} method.
1203
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1204
+ * the JSPB instance for transitional soy proto support:
1205
+ * http://goto/soy-param-migration
1206
+ * @param {!proto.Meta.CabinetLocationMeta} msg The msg instance to transform.
1207
+ * @return {!Object}
1208
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1209
+ */
1210
+ proto.Meta.CabinetLocationMeta.toObject = function(includeInstance, msg) {
1211
+ var f, obj = {
1212
+ cabinetLocation: (f = msg.getCabinetLocation()) && spic_cabinet_pb.CabinetWithLocation.toObject(includeInstance, f),
1213
+ temperatureConfiguration: (f = msg.getTemperatureConfiguration()) && proto.Meta.TemperatureConfigurationProto.toObject(includeInstance, f)
1214
+ };
1215
+
1216
+ if (includeInstance) {
1217
+ obj.$jspbMessageInstance = msg;
1218
+ }
1219
+ return obj;
1220
+ };
1221
+ }
1222
+
1223
+
1224
+ /**
1225
+ * Deserializes binary data (in protobuf wire format).
1226
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1227
+ * @return {!proto.Meta.CabinetLocationMeta}
1228
+ */
1229
+ proto.Meta.CabinetLocationMeta.deserializeBinary = function(bytes) {
1230
+ var reader = new jspb.BinaryReader(bytes);
1231
+ var msg = new proto.Meta.CabinetLocationMeta;
1232
+ return proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader(msg, reader);
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * Deserializes binary data (in protobuf wire format) from the
1238
+ * given reader into the given message object.
1239
+ * @param {!proto.Meta.CabinetLocationMeta} msg The message object to deserialize into.
1240
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1241
+ * @return {!proto.Meta.CabinetLocationMeta}
1242
+ */
1243
+ proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader = function(msg, reader) {
1244
+ while (reader.nextField()) {
1245
+ if (reader.isEndGroup()) {
1246
+ break;
1247
+ }
1248
+ var field = reader.getFieldNumber();
1249
+ switch (field) {
1250
+ case 1:
1251
+ var value = new spic_cabinet_pb.CabinetWithLocation;
1252
+ reader.readMessage(value,spic_cabinet_pb.CabinetWithLocation.deserializeBinaryFromReader);
1253
+ msg.setCabinetLocation(value);
1254
+ break;
1255
+ case 2:
1256
+ var value = new proto.Meta.TemperatureConfigurationProto;
1257
+ reader.readMessage(value,proto.Meta.TemperatureConfigurationProto.deserializeBinaryFromReader);
1258
+ msg.setTemperatureConfiguration(value);
1259
+ break;
1260
+ default:
1261
+ reader.skipField();
1262
+ break;
1263
+ }
1264
+ }
1265
+ return msg;
1266
+ };
1267
+
1268
+
1269
+ /**
1270
+ * Serializes the message to binary data (in protobuf wire format).
1271
+ * @return {!Uint8Array}
1272
+ */
1273
+ proto.Meta.CabinetLocationMeta.prototype.serializeBinary = function() {
1274
+ var writer = new jspb.BinaryWriter();
1275
+ proto.Meta.CabinetLocationMeta.serializeBinaryToWriter(this, writer);
1276
+ return writer.getResultBuffer();
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * Serializes the given message to binary data (in protobuf wire
1282
+ * format), writing to the given BinaryWriter.
1283
+ * @param {!proto.Meta.CabinetLocationMeta} message
1284
+ * @param {!jspb.BinaryWriter} writer
1285
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1286
+ */
1287
+ proto.Meta.CabinetLocationMeta.serializeBinaryToWriter = function(message, writer) {
1288
+ var f = undefined;
1289
+ f = message.getCabinetLocation();
1290
+ if (f != null) {
1291
+ writer.writeMessage(
1292
+ 1,
1293
+ f,
1294
+ spic_cabinet_pb.CabinetWithLocation.serializeBinaryToWriter
1295
+ );
1296
+ }
1297
+ f = message.getTemperatureConfiguration();
1298
+ if (f != null) {
1299
+ writer.writeMessage(
1300
+ 2,
1301
+ f,
1302
+ proto.Meta.TemperatureConfigurationProto.serializeBinaryToWriter
1303
+ );
1304
+ }
1305
+ };
1306
+
1307
+
1308
+ /**
1309
+ * optional Spic.CabinetWithLocation cabinet_location = 1;
1310
+ * @return {?proto.Spic.CabinetWithLocation}
1311
+ */
1312
+ proto.Meta.CabinetLocationMeta.prototype.getCabinetLocation = function() {
1313
+ return /** @type{?proto.Spic.CabinetWithLocation} */ (
1314
+ jspb.Message.getWrapperField(this, spic_cabinet_pb.CabinetWithLocation, 1));
1315
+ };
1316
+
1317
+
1318
+ /**
1319
+ * @param {?proto.Spic.CabinetWithLocation|undefined} value
1320
+ * @return {!proto.Meta.CabinetLocationMeta} returns this
1321
+ */
1322
+ proto.Meta.CabinetLocationMeta.prototype.setCabinetLocation = function(value) {
1323
+ return jspb.Message.setWrapperField(this, 1, value);
1324
+ };
1325
+
1326
+
1327
+ /**
1328
+ * Clears the message field making it undefined.
1329
+ * @return {!proto.Meta.CabinetLocationMeta} returns this
1330
+ */
1331
+ proto.Meta.CabinetLocationMeta.prototype.clearCabinetLocation = function() {
1332
+ return this.setCabinetLocation(undefined);
1333
+ };
1334
+
1335
+
1336
+ /**
1337
+ * Returns whether this field is set.
1338
+ * @return {boolean}
1339
+ */
1340
+ proto.Meta.CabinetLocationMeta.prototype.hasCabinetLocation = function() {
1341
+ return jspb.Message.getField(this, 1) != null;
1342
+ };
1343
+
1344
+
1345
+ /**
1346
+ * optional TemperatureConfigurationProto temperature_configuration = 2;
1347
+ * @return {?proto.Meta.TemperatureConfigurationProto}
1348
+ */
1349
+ proto.Meta.CabinetLocationMeta.prototype.getTemperatureConfiguration = function() {
1350
+ return /** @type{?proto.Meta.TemperatureConfigurationProto} */ (
1351
+ jspb.Message.getWrapperField(this, proto.Meta.TemperatureConfigurationProto, 2));
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * @param {?proto.Meta.TemperatureConfigurationProto|undefined} value
1357
+ * @return {!proto.Meta.CabinetLocationMeta} returns this
1358
+ */
1359
+ proto.Meta.CabinetLocationMeta.prototype.setTemperatureConfiguration = function(value) {
1360
+ return jspb.Message.setWrapperField(this, 2, value);
1361
+ };
1362
+
1363
+
1364
+ /**
1365
+ * Clears the message field making it undefined.
1366
+ * @return {!proto.Meta.CabinetLocationMeta} returns this
1367
+ */
1368
+ proto.Meta.CabinetLocationMeta.prototype.clearTemperatureConfiguration = function() {
1369
+ return this.setTemperatureConfiguration(undefined);
1370
+ };
1371
+
1372
+
1373
+ /**
1374
+ * Returns whether this field is set.
1375
+ * @return {boolean}
1376
+ */
1377
+ proto.Meta.CabinetLocationMeta.prototype.hasTemperatureConfiguration = function() {
1378
+ return jspb.Message.getField(this, 2) != null;
1379
+ };
1380
+
1381
+
1156
1382
  goog.object.extend(exports, proto.Meta);
@@ -3,40 +3,51 @@
3
3
 
4
4
  import * as meta_spic_config_pb from "./meta.spic_config_pb";
5
5
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
+ import * as spic_cabinet_pb from "./spic.cabinet_pb";
6
7
  import {grpc} from "@improbable-eng/grpc-web";
7
8
 
8
- type MetaSpicConfigGRPCSetTemperatureConfiguration = {
9
+ type CabinetMetaGRPCRetrieve = {
9
10
  readonly methodName: string;
10
- readonly service: typeof MetaSpicConfigGRPC;
11
+ readonly service: typeof CabinetMetaGRPC;
12
+ readonly requestStream: false;
13
+ readonly responseStream: false;
14
+ readonly requestType: typeof spic_cabinet_pb.CabinetProto.RetrieveRequest;
15
+ readonly responseType: typeof meta_spic_config_pb.CabinetLocationMeta;
16
+ };
17
+
18
+ type CabinetMetaGRPCSetTemperatureConfiguration = {
19
+ readonly methodName: string;
20
+ readonly service: typeof CabinetMetaGRPC;
11
21
  readonly requestStream: false;
12
22
  readonly responseStream: false;
13
23
  readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest;
14
24
  readonly responseType: typeof google_protobuf_empty_pb.Empty;
15
25
  };
16
26
 
17
- type MetaSpicConfigGRPCCreateTemperatureConfigurationTemplate = {
27
+ type CabinetMetaGRPCCreateTemperatureConfigurationTemplate = {
18
28
  readonly methodName: string;
19
- readonly service: typeof MetaSpicConfigGRPC;
29
+ readonly service: typeof CabinetMetaGRPC;
20
30
  readonly requestStream: false;
21
31
  readonly responseStream: false;
22
32
  readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest;
23
33
  readonly responseType: typeof google_protobuf_empty_pb.Empty;
24
34
  };
25
35
 
26
- type MetaSpicConfigGRPCSearchTemperatureConfigurationTemplate = {
36
+ type CabinetMetaGRPCSearchTemperatureConfigurationTemplate = {
27
37
  readonly methodName: string;
28
- readonly service: typeof MetaSpicConfigGRPC;
38
+ readonly service: typeof CabinetMetaGRPC;
29
39
  readonly requestStream: false;
30
40
  readonly responseStream: false;
31
41
  readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest;
32
42
  readonly responseType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply;
33
43
  };
34
44
 
35
- export class MetaSpicConfigGRPC {
45
+ export class CabinetMetaGRPC {
36
46
  static readonly serviceName: string;
37
- static readonly SetTemperatureConfiguration: MetaSpicConfigGRPCSetTemperatureConfiguration;
38
- static readonly CreateTemperatureConfigurationTemplate: MetaSpicConfigGRPCCreateTemperatureConfigurationTemplate;
39
- static readonly SearchTemperatureConfigurationTemplate: MetaSpicConfigGRPCSearchTemperatureConfigurationTemplate;
47
+ static readonly Retrieve: CabinetMetaGRPCRetrieve;
48
+ static readonly SetTemperatureConfiguration: CabinetMetaGRPCSetTemperatureConfiguration;
49
+ static readonly CreateTemperatureConfigurationTemplate: CabinetMetaGRPCCreateTemperatureConfigurationTemplate;
50
+ static readonly SearchTemperatureConfigurationTemplate: CabinetMetaGRPCSearchTemperatureConfigurationTemplate;
40
51
  }
41
52
 
42
53
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -67,10 +78,19 @@ interface BidirectionalStream<ReqT, ResT> {
67
78
  on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
68
79
  }
69
80
 
70
- export class MetaSpicConfigGRPCClient {
81
+ export class CabinetMetaGRPCClient {
71
82
  readonly serviceHost: string;
72
83
 
73
84
  constructor(serviceHost: string, options?: grpc.RpcOptions);
85
+ retrieve(
86
+ requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
87
+ metadata: grpc.Metadata,
88
+ callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.CabinetLocationMeta|null) => void
89
+ ): UnaryResponse;
90
+ retrieve(
91
+ requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
92
+ callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.CabinetLocationMeta|null) => void
93
+ ): UnaryResponse;
74
94
  setTemperatureConfiguration(
75
95
  requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
76
96
  metadata: grpc.Metadata,