@aceplus/smartace-api 2.11.0-alpha.4 → 2.11.0-alpha.6

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.
@@ -0,0 +1,122 @@
1
+ // package: Meta
2
+ // file: meta.spic_config.proto
3
+
4
+ import * as meta_spic_config_pb from "./meta.spic_config_pb";
5
+ import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
+ import * as spic_cabinet_pb from "./spic.cabinet_pb";
7
+ import {grpc} from "@improbable-eng/grpc-web";
8
+
9
+ type CabinetMetaGRPCRetrieve = {
10
+ readonly methodName: string;
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;
21
+ readonly requestStream: false;
22
+ readonly responseStream: false;
23
+ readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest;
24
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
25
+ };
26
+
27
+ type CabinetMetaGRPCCreateTemperatureConfigurationTemplate = {
28
+ readonly methodName: string;
29
+ readonly service: typeof CabinetMetaGRPC;
30
+ readonly requestStream: false;
31
+ readonly responseStream: false;
32
+ readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest;
33
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
34
+ };
35
+
36
+ type CabinetMetaGRPCSearchTemperatureConfigurationTemplate = {
37
+ readonly methodName: string;
38
+ readonly service: typeof CabinetMetaGRPC;
39
+ readonly requestStream: false;
40
+ readonly responseStream: false;
41
+ readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest;
42
+ readonly responseType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply;
43
+ };
44
+
45
+ export class CabinetMetaGRPC {
46
+ static readonly serviceName: string;
47
+ static readonly Retrieve: CabinetMetaGRPCRetrieve;
48
+ static readonly SetTemperatureConfiguration: CabinetMetaGRPCSetTemperatureConfiguration;
49
+ static readonly CreateTemperatureConfigurationTemplate: CabinetMetaGRPCCreateTemperatureConfigurationTemplate;
50
+ static readonly SearchTemperatureConfigurationTemplate: CabinetMetaGRPCSearchTemperatureConfigurationTemplate;
51
+ }
52
+
53
+ export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
54
+ export type Status = { details: string, code: number; metadata: grpc.Metadata }
55
+
56
+ interface UnaryResponse {
57
+ cancel(): void;
58
+ }
59
+ interface ResponseStream<T> {
60
+ cancel(): void;
61
+ on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
62
+ on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
63
+ on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
64
+ }
65
+ interface RequestStream<T> {
66
+ write(message: T): RequestStream<T>;
67
+ end(): void;
68
+ cancel(): void;
69
+ on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
70
+ on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
71
+ }
72
+ interface BidirectionalStream<ReqT, ResT> {
73
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
74
+ end(): void;
75
+ cancel(): void;
76
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
77
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
78
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
79
+ }
80
+
81
+ export class CabinetMetaGRPCClient {
82
+ readonly serviceHost: string;
83
+
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;
94
+ setTemperatureConfiguration(
95
+ requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
96
+ metadata: grpc.Metadata,
97
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
98
+ ): UnaryResponse;
99
+ setTemperatureConfiguration(
100
+ requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
101
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
102
+ ): UnaryResponse;
103
+ createTemperatureConfigurationTemplate(
104
+ requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
105
+ metadata: grpc.Metadata,
106
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
107
+ ): UnaryResponse;
108
+ createTemperatureConfigurationTemplate(
109
+ requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
110
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
111
+ ): UnaryResponse;
112
+ searchTemperatureConfigurationTemplate(
113
+ requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
114
+ metadata: grpc.Metadata,
115
+ callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply|null) => void
116
+ ): UnaryResponse;
117
+ searchTemperatureConfigurationTemplate(
118
+ requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
119
+ callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply|null) => void
120
+ ): UnaryResponse;
121
+ }
122
+
@@ -0,0 +1,183 @@
1
+ // package: Meta
2
+ // file: meta.spic_config.proto
3
+
4
+ var meta_spic_config_pb = require("./meta.spic_config_pb");
5
+ var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
6
+ var spic_cabinet_pb = require("./spic.cabinet_pb");
7
+ var grpc = require("@improbable-eng/grpc-web").grpc;
8
+
9
+ var CabinetMetaGRPC = (function () {
10
+ function CabinetMetaGRPC() {}
11
+ CabinetMetaGRPC.serviceName = "Meta.CabinetMetaGRPC";
12
+ return CabinetMetaGRPC;
13
+ }());
14
+
15
+ CabinetMetaGRPC.Retrieve = {
16
+ methodName: "Retrieve",
17
+ service: CabinetMetaGRPC,
18
+ requestStream: false,
19
+ responseStream: false,
20
+ requestType: spic_cabinet_pb.CabinetProto.RetrieveRequest,
21
+ responseType: meta_spic_config_pb.CabinetLocationMeta
22
+ };
23
+
24
+ CabinetMetaGRPC.SetTemperatureConfiguration = {
25
+ methodName: "SetTemperatureConfiguration",
26
+ service: CabinetMetaGRPC,
27
+ requestStream: false,
28
+ responseStream: false,
29
+ requestType: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
30
+ responseType: google_protobuf_empty_pb.Empty
31
+ };
32
+
33
+ CabinetMetaGRPC.CreateTemperatureConfigurationTemplate = {
34
+ methodName: "CreateTemperatureConfigurationTemplate",
35
+ service: CabinetMetaGRPC,
36
+ requestStream: false,
37
+ responseStream: false,
38
+ requestType: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
39
+ responseType: google_protobuf_empty_pb.Empty
40
+ };
41
+
42
+ CabinetMetaGRPC.SearchTemperatureConfigurationTemplate = {
43
+ methodName: "SearchTemperatureConfigurationTemplate",
44
+ service: CabinetMetaGRPC,
45
+ requestStream: false,
46
+ responseStream: false,
47
+ requestType: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
48
+ responseType: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply
49
+ };
50
+
51
+ exports.CabinetMetaGRPC = CabinetMetaGRPC;
52
+
53
+ function CabinetMetaGRPCClient(serviceHost, options) {
54
+ this.serviceHost = serviceHost;
55
+ this.options = options || {};
56
+ }
57
+
58
+ CabinetMetaGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
59
+ if (arguments.length === 2) {
60
+ callback = arguments[1];
61
+ }
62
+ var client = grpc.unary(CabinetMetaGRPC.Retrieve, {
63
+ request: requestMessage,
64
+ host: this.serviceHost,
65
+ metadata: metadata,
66
+ transport: this.options.transport,
67
+ debug: this.options.debug,
68
+ onEnd: function (response) {
69
+ if (callback) {
70
+ if (response.status !== grpc.Code.OK) {
71
+ var err = new Error(response.statusMessage);
72
+ err.code = response.status;
73
+ err.metadata = response.trailers;
74
+ callback(err, null);
75
+ } else {
76
+ callback(null, response.message);
77
+ }
78
+ }
79
+ }
80
+ });
81
+ return {
82
+ cancel: function () {
83
+ callback = null;
84
+ client.close();
85
+ }
86
+ };
87
+ };
88
+
89
+ CabinetMetaGRPCClient.prototype.setTemperatureConfiguration = function setTemperatureConfiguration(requestMessage, metadata, callback) {
90
+ if (arguments.length === 2) {
91
+ callback = arguments[1];
92
+ }
93
+ var client = grpc.unary(CabinetMetaGRPC.SetTemperatureConfiguration, {
94
+ request: requestMessage,
95
+ host: this.serviceHost,
96
+ metadata: metadata,
97
+ transport: this.options.transport,
98
+ debug: this.options.debug,
99
+ onEnd: function (response) {
100
+ if (callback) {
101
+ if (response.status !== grpc.Code.OK) {
102
+ var err = new Error(response.statusMessage);
103
+ err.code = response.status;
104
+ err.metadata = response.trailers;
105
+ callback(err, null);
106
+ } else {
107
+ callback(null, response.message);
108
+ }
109
+ }
110
+ }
111
+ });
112
+ return {
113
+ cancel: function () {
114
+ callback = null;
115
+ client.close();
116
+ }
117
+ };
118
+ };
119
+
120
+ CabinetMetaGRPCClient.prototype.createTemperatureConfigurationTemplate = function createTemperatureConfigurationTemplate(requestMessage, metadata, callback) {
121
+ if (arguments.length === 2) {
122
+ callback = arguments[1];
123
+ }
124
+ var client = grpc.unary(CabinetMetaGRPC.CreateTemperatureConfigurationTemplate, {
125
+ request: requestMessage,
126
+ host: this.serviceHost,
127
+ metadata: metadata,
128
+ transport: this.options.transport,
129
+ debug: this.options.debug,
130
+ onEnd: function (response) {
131
+ if (callback) {
132
+ if (response.status !== grpc.Code.OK) {
133
+ var err = new Error(response.statusMessage);
134
+ err.code = response.status;
135
+ err.metadata = response.trailers;
136
+ callback(err, null);
137
+ } else {
138
+ callback(null, response.message);
139
+ }
140
+ }
141
+ }
142
+ });
143
+ return {
144
+ cancel: function () {
145
+ callback = null;
146
+ client.close();
147
+ }
148
+ };
149
+ };
150
+
151
+ CabinetMetaGRPCClient.prototype.searchTemperatureConfigurationTemplate = function searchTemperatureConfigurationTemplate(requestMessage, metadata, callback) {
152
+ if (arguments.length === 2) {
153
+ callback = arguments[1];
154
+ }
155
+ var client = grpc.unary(CabinetMetaGRPC.SearchTemperatureConfigurationTemplate, {
156
+ request: requestMessage,
157
+ host: this.serviceHost,
158
+ metadata: metadata,
159
+ transport: this.options.transport,
160
+ debug: this.options.debug,
161
+ onEnd: function (response) {
162
+ if (callback) {
163
+ if (response.status !== grpc.Code.OK) {
164
+ var err = new Error(response.statusMessage);
165
+ err.code = response.status;
166
+ err.metadata = response.trailers;
167
+ callback(err, null);
168
+ } else {
169
+ callback(null, response.message);
170
+ }
171
+ }
172
+ }
173
+ });
174
+ return {
175
+ cancel: function () {
176
+ callback = null;
177
+ client.close();
178
+ }
179
+ };
180
+ };
181
+
182
+ exports.CabinetMetaGRPCClient = CabinetMetaGRPCClient;
183
+
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "2.11.0-alpha.4",
8
+ "version": "2.11.0-alpha.6",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -562,6 +562,9 @@ export namespace CabinetProto {
562
562
  getBatteryTemperature(): number;
563
563
  setBatteryTemperature(value: number): void;
564
564
 
565
+ getOpenRequestId(): number;
566
+ setOpenRequestId(value: number): void;
567
+
565
568
  serializeBinary(): Uint8Array;
566
569
  toObject(includeInstance?: boolean): State.AsObject;
567
570
  static toObject(includeInstance: boolean, msg: State): State.AsObject;
@@ -597,6 +600,7 @@ export namespace CabinetProto {
597
600
  batteryUnloaded: number,
598
601
  batteryLoaded: number,
599
602
  batteryTemperature: number,
603
+ openRequestId: number,
600
604
  }
601
605
 
602
606
  export class SearchRequest extends jspb.Message {
@@ -3817,7 +3817,8 @@ proto.Spic.CabinetProto.State.toObject = function(includeInstance, msg) {
3817
3817
  communicationTime: jspb.Message.getFieldWithDefault(msg, 20, 0),
3818
3818
  batteryUnloaded: jspb.Message.getFieldWithDefault(msg, 21, 0),
3819
3819
  batteryLoaded: jspb.Message.getFieldWithDefault(msg, 22, 0),
3820
- batteryTemperature: jspb.Message.getFieldWithDefault(msg, 23, 0)
3820
+ batteryTemperature: jspb.Message.getFieldWithDefault(msg, 23, 0),
3821
+ openRequestId: jspb.Message.getFieldWithDefault(msg, 24, 0)
3821
3822
  };
3822
3823
 
3823
3824
  if (includeInstance) {
@@ -3949,6 +3950,10 @@ proto.Spic.CabinetProto.State.deserializeBinaryFromReader = function(msg, reader
3949
3950
  var value = /** @type {number} */ (reader.readInt32());
3950
3951
  msg.setBatteryTemperature(value);
3951
3952
  break;
3953
+ case 24:
3954
+ var value = /** @type {number} */ (reader.readInt64());
3955
+ msg.setOpenRequestId(value);
3956
+ break;
3952
3957
  default:
3953
3958
  reader.skipField();
3954
3959
  break;
@@ -4140,6 +4145,13 @@ proto.Spic.CabinetProto.State.serializeBinaryToWriter = function(message, writer
4140
4145
  f
4141
4146
  );
4142
4147
  }
4148
+ f = message.getOpenRequestId();
4149
+ if (f !== 0) {
4150
+ writer.writeInt64(
4151
+ 24,
4152
+ f
4153
+ );
4154
+ }
4143
4155
  };
4144
4156
 
4145
4157
 
@@ -5447,6 +5459,24 @@ proto.Spic.CabinetProto.State.prototype.setBatteryTemperature = function(value)
5447
5459
  };
5448
5460
 
5449
5461
 
5462
+ /**
5463
+ * optional int64 open_request_id = 24;
5464
+ * @return {number}
5465
+ */
5466
+ proto.Spic.CabinetProto.State.prototype.getOpenRequestId = function() {
5467
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0));
5468
+ };
5469
+
5470
+
5471
+ /**
5472
+ * @param {number} value
5473
+ * @return {!proto.Spic.CabinetProto.State} returns this
5474
+ */
5475
+ proto.Spic.CabinetProto.State.prototype.setOpenRequestId = function(value) {
5476
+ return jspb.Message.setProto3IntField(this, 24, value);
5477
+ };
5478
+
5479
+
5450
5480
 
5451
5481
 
5452
5482