@aceplus/smartace-api 2.13.0-alpha.1 → 2.13.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.client.proto
3
+
4
+ import * as meta_client_pb from "./meta.client_pb";
5
+ import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
+ import * as platform_client_pb from "./platform.client_pb";
7
+ import {grpc} from "@improbable-eng/grpc-web";
8
+
9
+ type ClientMetaGRPCRetrieve = {
10
+ readonly methodName: string;
11
+ readonly service: typeof ClientMetaGRPC;
12
+ readonly requestStream: false;
13
+ readonly responseStream: false;
14
+ readonly requestType: typeof platform_client_pb.ClientProto.RetrieveRequest;
15
+ readonly responseType: typeof meta_client_pb.ClientProtoMeta;
16
+ };
17
+
18
+ type ClientMetaGRPCAddContact = {
19
+ readonly methodName: string;
20
+ readonly service: typeof ClientMetaGRPC;
21
+ readonly requestStream: false;
22
+ readonly responseStream: false;
23
+ readonly requestType: typeof meta_client_pb.ClientContactProto.AddRequest;
24
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
25
+ };
26
+
27
+ type ClientMetaGRPCRemoveContact = {
28
+ readonly methodName: string;
29
+ readonly service: typeof ClientMetaGRPC;
30
+ readonly requestStream: false;
31
+ readonly responseStream: false;
32
+ readonly requestType: typeof meta_client_pb.ClientContactProto.RemoveRequest;
33
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
34
+ };
35
+
36
+ type ClientMetaGRPCEditContact = {
37
+ readonly methodName: string;
38
+ readonly service: typeof ClientMetaGRPC;
39
+ readonly requestStream: false;
40
+ readonly responseStream: false;
41
+ readonly requestType: typeof meta_client_pb.ClientContactProto.EditRequest;
42
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
43
+ };
44
+
45
+ export class ClientMetaGRPC {
46
+ static readonly serviceName: string;
47
+ static readonly Retrieve: ClientMetaGRPCRetrieve;
48
+ static readonly AddContact: ClientMetaGRPCAddContact;
49
+ static readonly RemoveContact: ClientMetaGRPCRemoveContact;
50
+ static readonly EditContact: ClientMetaGRPCEditContact;
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 ClientMetaGRPCClient {
82
+ readonly serviceHost: string;
83
+
84
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
85
+ retrieve(
86
+ requestMessage: platform_client_pb.ClientProto.RetrieveRequest,
87
+ metadata: grpc.Metadata,
88
+ callback: (error: ServiceError|null, responseMessage: meta_client_pb.ClientProtoMeta|null) => void
89
+ ): UnaryResponse;
90
+ retrieve(
91
+ requestMessage: platform_client_pb.ClientProto.RetrieveRequest,
92
+ callback: (error: ServiceError|null, responseMessage: meta_client_pb.ClientProtoMeta|null) => void
93
+ ): UnaryResponse;
94
+ addContact(
95
+ requestMessage: meta_client_pb.ClientContactProto.AddRequest,
96
+ metadata: grpc.Metadata,
97
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
98
+ ): UnaryResponse;
99
+ addContact(
100
+ requestMessage: meta_client_pb.ClientContactProto.AddRequest,
101
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
102
+ ): UnaryResponse;
103
+ removeContact(
104
+ requestMessage: meta_client_pb.ClientContactProto.RemoveRequest,
105
+ metadata: grpc.Metadata,
106
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
107
+ ): UnaryResponse;
108
+ removeContact(
109
+ requestMessage: meta_client_pb.ClientContactProto.RemoveRequest,
110
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
111
+ ): UnaryResponse;
112
+ editContact(
113
+ requestMessage: meta_client_pb.ClientContactProto.EditRequest,
114
+ metadata: grpc.Metadata,
115
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
116
+ ): UnaryResponse;
117
+ editContact(
118
+ requestMessage: meta_client_pb.ClientContactProto.EditRequest,
119
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
120
+ ): UnaryResponse;
121
+ }
122
+
@@ -0,0 +1,183 @@
1
+ // package: Meta
2
+ // file: meta.client.proto
3
+
4
+ var meta_client_pb = require("./meta.client_pb");
5
+ var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
6
+ var platform_client_pb = require("./platform.client_pb");
7
+ var grpc = require("@improbable-eng/grpc-web").grpc;
8
+
9
+ var ClientMetaGRPC = (function () {
10
+ function ClientMetaGRPC() {}
11
+ ClientMetaGRPC.serviceName = "Meta.ClientMetaGRPC";
12
+ return ClientMetaGRPC;
13
+ }());
14
+
15
+ ClientMetaGRPC.Retrieve = {
16
+ methodName: "Retrieve",
17
+ service: ClientMetaGRPC,
18
+ requestStream: false,
19
+ responseStream: false,
20
+ requestType: platform_client_pb.ClientProto.RetrieveRequest,
21
+ responseType: meta_client_pb.ClientProtoMeta
22
+ };
23
+
24
+ ClientMetaGRPC.AddContact = {
25
+ methodName: "AddContact",
26
+ service: ClientMetaGRPC,
27
+ requestStream: false,
28
+ responseStream: false,
29
+ requestType: meta_client_pb.ClientContactProto.AddRequest,
30
+ responseType: google_protobuf_empty_pb.Empty
31
+ };
32
+
33
+ ClientMetaGRPC.RemoveContact = {
34
+ methodName: "RemoveContact",
35
+ service: ClientMetaGRPC,
36
+ requestStream: false,
37
+ responseStream: false,
38
+ requestType: meta_client_pb.ClientContactProto.RemoveRequest,
39
+ responseType: google_protobuf_empty_pb.Empty
40
+ };
41
+
42
+ ClientMetaGRPC.EditContact = {
43
+ methodName: "EditContact",
44
+ service: ClientMetaGRPC,
45
+ requestStream: false,
46
+ responseStream: false,
47
+ requestType: meta_client_pb.ClientContactProto.EditRequest,
48
+ responseType: google_protobuf_empty_pb.Empty
49
+ };
50
+
51
+ exports.ClientMetaGRPC = ClientMetaGRPC;
52
+
53
+ function ClientMetaGRPCClient(serviceHost, options) {
54
+ this.serviceHost = serviceHost;
55
+ this.options = options || {};
56
+ }
57
+
58
+ ClientMetaGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
59
+ if (arguments.length === 2) {
60
+ callback = arguments[1];
61
+ }
62
+ var client = grpc.unary(ClientMetaGRPC.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
+ ClientMetaGRPCClient.prototype.addContact = function addContact(requestMessage, metadata, callback) {
90
+ if (arguments.length === 2) {
91
+ callback = arguments[1];
92
+ }
93
+ var client = grpc.unary(ClientMetaGRPC.AddContact, {
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
+ ClientMetaGRPCClient.prototype.removeContact = function removeContact(requestMessage, metadata, callback) {
121
+ if (arguments.length === 2) {
122
+ callback = arguments[1];
123
+ }
124
+ var client = grpc.unary(ClientMetaGRPC.RemoveContact, {
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
+ ClientMetaGRPCClient.prototype.editContact = function editContact(requestMessage, metadata, callback) {
152
+ if (arguments.length === 2) {
153
+ callback = arguments[1];
154
+ }
155
+ var client = grpc.unary(ClientMetaGRPC.EditContact, {
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.ClientMetaGRPCClient = ClientMetaGRPCClient;
183
+
@@ -7,6 +7,61 @@ import * as platform_pagination_pb from "./platform.pagination_pb";
7
7
  import * as spic_cabinet_pb from "./spic.cabinet_pb";
8
8
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
9
9
 
10
+ export class SpicTypeProto extends jspb.Message {
11
+ serializeBinary(): Uint8Array;
12
+ toObject(includeInstance?: boolean): SpicTypeProto.AsObject;
13
+ static toObject(includeInstance: boolean, msg: SpicTypeProto): SpicTypeProto.AsObject;
14
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
15
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
16
+ static serializeBinaryToWriter(message: SpicTypeProto, writer: jspb.BinaryWriter): void;
17
+ static deserializeBinary(bytes: Uint8Array): SpicTypeProto;
18
+ static deserializeBinaryFromReader(message: SpicTypeProto, reader: jspb.BinaryReader): SpicTypeProto;
19
+ }
20
+
21
+ export namespace SpicTypeProto {
22
+ export type AsObject = {
23
+ }
24
+
25
+ export class SetRequest extends jspb.Message {
26
+ getSpicType(): SpicTypeMap[keyof SpicTypeMap];
27
+ setSpicType(value: SpicTypeMap[keyof SpicTypeMap]): void;
28
+
29
+ hasSpicUid(): boolean;
30
+ clearSpicUid(): void;
31
+ getSpicUid(): string;
32
+ setSpicUid(value: string): void;
33
+
34
+ hasGroupId(): boolean;
35
+ clearGroupId(): void;
36
+ getGroupId(): string;
37
+ setGroupId(value: string): void;
38
+
39
+ getTargetCase(): SetRequest.TargetCase;
40
+ serializeBinary(): Uint8Array;
41
+ toObject(includeInstance?: boolean): SetRequest.AsObject;
42
+ static toObject(includeInstance: boolean, msg: SetRequest): SetRequest.AsObject;
43
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
44
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
45
+ static serializeBinaryToWriter(message: SetRequest, writer: jspb.BinaryWriter): void;
46
+ static deserializeBinary(bytes: Uint8Array): SetRequest;
47
+ static deserializeBinaryFromReader(message: SetRequest, reader: jspb.BinaryReader): SetRequest;
48
+ }
49
+
50
+ export namespace SetRequest {
51
+ export type AsObject = {
52
+ spicType: SpicTypeMap[keyof SpicTypeMap],
53
+ spicUid: string,
54
+ groupId: string,
55
+ }
56
+
57
+ export enum TargetCase {
58
+ TARGET_NOT_SET = 0,
59
+ SPIC_UID = 2,
60
+ GROUP_ID = 3,
61
+ }
62
+ }
63
+ }
64
+
10
65
  export class TemperatureConfigurationProto extends jspb.Message {
11
66
  getHighTrigger(): number;
12
67
  setHighTrigger(value: number): void;
@@ -126,10 +181,10 @@ export namespace TemperatureConfigurationProto {
126
181
  }
127
182
 
128
183
  export class SearchTemplateReply extends jspb.Message {
129
- clearCabinetsList(): void;
130
- getCabinetsList(): Array<spic_cabinet_pb.CabinetWithLocation>;
131
- setCabinetsList(value: Array<spic_cabinet_pb.CabinetWithLocation>): void;
132
- addCabinets(value?: spic_cabinet_pb.CabinetWithLocation, index?: number): spic_cabinet_pb.CabinetWithLocation;
184
+ clearTemplatesList(): void;
185
+ getTemplatesList(): Array<TemperatureConfigurationProto>;
186
+ setTemplatesList(value: Array<TemperatureConfigurationProto>): void;
187
+ addTemplates(value?: TemperatureConfigurationProto, index?: number): TemperatureConfigurationProto;
133
188
 
134
189
  hasPagination(): boolean;
135
190
  clearPagination(): void;
@@ -148,7 +203,7 @@ export namespace TemperatureConfigurationProto {
148
203
 
149
204
  export namespace SearchTemplateReply {
150
205
  export type AsObject = {
151
- cabinetsList: Array<spic_cabinet_pb.CabinetWithLocation.AsObject>,
206
+ templatesList: Array<TemperatureConfigurationProto.AsObject>,
152
207
  pagination?: platform_pagination_pb.PaginationProto.AsObject,
153
208
  }
154
209
  }
@@ -165,6 +220,9 @@ export class CabinetLocationMeta extends jspb.Message {
165
220
  getTemperatureConfiguration(): TemperatureConfigurationProto | undefined;
166
221
  setTemperatureConfiguration(value?: TemperatureConfigurationProto): void;
167
222
 
223
+ getSpicType(): SpicTypeMap[keyof SpicTypeMap];
224
+ setSpicType(value: SpicTypeMap[keyof SpicTypeMap]): void;
225
+
168
226
  serializeBinary(): Uint8Array;
169
227
  toObject(includeInstance?: boolean): CabinetLocationMeta.AsObject;
170
228
  static toObject(includeInstance: boolean, msg: CabinetLocationMeta): CabinetLocationMeta.AsObject;
@@ -179,6 +237,15 @@ export namespace CabinetLocationMeta {
179
237
  export type AsObject = {
180
238
  cabinetLocation?: spic_cabinet_pb.CabinetWithLocation.AsObject,
181
239
  temperatureConfiguration?: TemperatureConfigurationProto.AsObject,
240
+ spicType: SpicTypeMap[keyof SpicTypeMap],
182
241
  }
183
242
  }
184
243
 
244
+ export interface SpicTypeMap {
245
+ CABINET: 0;
246
+ MANHOLE: 1;
247
+ CLOSURE: 2;
248
+ }
249
+
250
+ export const SpicType: SpicTypeMap;
251
+