@aceplus/smartace-api 3.7.0-alpha.6 → 3.7.0-alpha.7
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/spic.asset_pb.d.ts +0 -27
- package/spic.asset_pb.js +0 -216
- package/spic.asset_pb_service.d.ts +0 -19
- package/spic.asset_pb_service.js +0 -40
package/package.json
CHANGED
package/spic.asset_pb.d.ts
CHANGED
|
@@ -587,33 +587,6 @@ export namespace ComponentProto {
|
|
|
587
587
|
metadataMap: Array<[string, string]>,
|
|
588
588
|
deviceType: AssetProto.DeviceTypeMap[keyof AssetProto.DeviceTypeMap],
|
|
589
589
|
}
|
|
590
|
-
|
|
591
|
-
export class CallFeatureRequest extends jspb.Message {
|
|
592
|
-
getComponentId(): string;
|
|
593
|
-
setComponentId(value: string): void;
|
|
594
|
-
|
|
595
|
-
getFeature(): string;
|
|
596
|
-
setFeature(value: string): void;
|
|
597
|
-
|
|
598
|
-
getArgumentsMap(): jspb.Map<string, string>;
|
|
599
|
-
clearArgumentsMap(): void;
|
|
600
|
-
serializeBinary(): Uint8Array;
|
|
601
|
-
toObject(includeInstance?: boolean): CallFeatureRequest.AsObject;
|
|
602
|
-
static toObject(includeInstance: boolean, msg: CallFeatureRequest): CallFeatureRequest.AsObject;
|
|
603
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
604
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
605
|
-
static serializeBinaryToWriter(message: CallFeatureRequest, writer: jspb.BinaryWriter): void;
|
|
606
|
-
static deserializeBinary(bytes: Uint8Array): CallFeatureRequest;
|
|
607
|
-
static deserializeBinaryFromReader(message: CallFeatureRequest, reader: jspb.BinaryReader): CallFeatureRequest;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
export namespace CallFeatureRequest {
|
|
611
|
-
export type AsObject = {
|
|
612
|
-
componentId: string,
|
|
613
|
-
feature: string,
|
|
614
|
-
argumentsMap: Array<[string, string]>,
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
590
|
}
|
|
618
591
|
|
|
619
592
|
export class AssetWithLocation extends jspb.Message {
|
package/spic.asset_pb.js
CHANGED
|
@@ -56,7 +56,6 @@ goog.exportSymbol('proto.Spic.AssetWithLocation', null, global);
|
|
|
56
56
|
goog.exportSymbol('proto.Spic.AssetWithLocationAndDistance', null, global);
|
|
57
57
|
goog.exportSymbol('proto.Spic.ComponentIdentifier', null, global);
|
|
58
58
|
goog.exportSymbol('proto.Spic.ComponentProto', null, global);
|
|
59
|
-
goog.exportSymbol('proto.Spic.ComponentProto.CallFeatureRequest', null, global);
|
|
60
59
|
/**
|
|
61
60
|
* Generated by JsPbCodeGenerator.
|
|
62
61
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -372,27 +371,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
372
371
|
*/
|
|
373
372
|
proto.Spic.ComponentProto.displayName = 'proto.Spic.ComponentProto';
|
|
374
373
|
}
|
|
375
|
-
/**
|
|
376
|
-
* Generated by JsPbCodeGenerator.
|
|
377
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
378
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
379
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
380
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
381
|
-
* valid.
|
|
382
|
-
* @extends {jspb.Message}
|
|
383
|
-
* @constructor
|
|
384
|
-
*/
|
|
385
|
-
proto.Spic.ComponentProto.CallFeatureRequest = function(opt_data) {
|
|
386
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
387
|
-
};
|
|
388
|
-
goog.inherits(proto.Spic.ComponentProto.CallFeatureRequest, jspb.Message);
|
|
389
|
-
if (goog.DEBUG && !COMPILED) {
|
|
390
|
-
/**
|
|
391
|
-
* @public
|
|
392
|
-
* @override
|
|
393
|
-
*/
|
|
394
|
-
proto.Spic.ComponentProto.CallFeatureRequest.displayName = 'proto.Spic.ComponentProto.CallFeatureRequest';
|
|
395
|
-
}
|
|
396
374
|
/**
|
|
397
375
|
* Generated by JsPbCodeGenerator.
|
|
398
376
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4164,200 +4142,6 @@ proto.Spic.ComponentProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
4164
4142
|
};
|
|
4165
4143
|
|
|
4166
4144
|
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4171
|
-
/**
|
|
4172
|
-
* Creates an object representation of this proto.
|
|
4173
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4174
|
-
* Optional fields that are not set will be set to undefined.
|
|
4175
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4176
|
-
* For the list of reserved names please see:
|
|
4177
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4178
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4179
|
-
* JSPB instance for transitional soy proto support:
|
|
4180
|
-
* http://goto/soy-param-migration
|
|
4181
|
-
* @return {!Object}
|
|
4182
|
-
*/
|
|
4183
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4184
|
-
return proto.Spic.ComponentProto.CallFeatureRequest.toObject(opt_includeInstance, this);
|
|
4185
|
-
};
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
/**
|
|
4189
|
-
* Static version of the {@see toObject} method.
|
|
4190
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4191
|
-
* the JSPB instance for transitional soy proto support:
|
|
4192
|
-
* http://goto/soy-param-migration
|
|
4193
|
-
* @param {!proto.Spic.ComponentProto.CallFeatureRequest} msg The msg instance to transform.
|
|
4194
|
-
* @return {!Object}
|
|
4195
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4196
|
-
*/
|
|
4197
|
-
proto.Spic.ComponentProto.CallFeatureRequest.toObject = function(includeInstance, msg) {
|
|
4198
|
-
var f, obj = {
|
|
4199
|
-
componentId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4200
|
-
feature: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4201
|
-
argumentsMap: (f = msg.getArgumentsMap()) ? f.toObject(includeInstance, undefined) : []
|
|
4202
|
-
};
|
|
4203
|
-
|
|
4204
|
-
if (includeInstance) {
|
|
4205
|
-
obj.$jspbMessageInstance = msg;
|
|
4206
|
-
}
|
|
4207
|
-
return obj;
|
|
4208
|
-
};
|
|
4209
|
-
}
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
/**
|
|
4213
|
-
* Deserializes binary data (in protobuf wire format).
|
|
4214
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4215
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest}
|
|
4216
|
-
*/
|
|
4217
|
-
proto.Spic.ComponentProto.CallFeatureRequest.deserializeBinary = function(bytes) {
|
|
4218
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4219
|
-
var msg = new proto.Spic.ComponentProto.CallFeatureRequest;
|
|
4220
|
-
return proto.Spic.ComponentProto.CallFeatureRequest.deserializeBinaryFromReader(msg, reader);
|
|
4221
|
-
};
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
/**
|
|
4225
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
4226
|
-
* given reader into the given message object.
|
|
4227
|
-
* @param {!proto.Spic.ComponentProto.CallFeatureRequest} msg The message object to deserialize into.
|
|
4228
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4229
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest}
|
|
4230
|
-
*/
|
|
4231
|
-
proto.Spic.ComponentProto.CallFeatureRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4232
|
-
while (reader.nextField()) {
|
|
4233
|
-
if (reader.isEndGroup()) {
|
|
4234
|
-
break;
|
|
4235
|
-
}
|
|
4236
|
-
var field = reader.getFieldNumber();
|
|
4237
|
-
switch (field) {
|
|
4238
|
-
case 1:
|
|
4239
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4240
|
-
msg.setComponentId(value);
|
|
4241
|
-
break;
|
|
4242
|
-
case 2:
|
|
4243
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4244
|
-
msg.setFeature(value);
|
|
4245
|
-
break;
|
|
4246
|
-
case 3:
|
|
4247
|
-
var value = msg.getArgumentsMap();
|
|
4248
|
-
reader.readMessage(value, function(message, reader) {
|
|
4249
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
4250
|
-
});
|
|
4251
|
-
break;
|
|
4252
|
-
default:
|
|
4253
|
-
reader.skipField();
|
|
4254
|
-
break;
|
|
4255
|
-
}
|
|
4256
|
-
}
|
|
4257
|
-
return msg;
|
|
4258
|
-
};
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
/**
|
|
4262
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
4263
|
-
* @return {!Uint8Array}
|
|
4264
|
-
*/
|
|
4265
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.serializeBinary = function() {
|
|
4266
|
-
var writer = new jspb.BinaryWriter();
|
|
4267
|
-
proto.Spic.ComponentProto.CallFeatureRequest.serializeBinaryToWriter(this, writer);
|
|
4268
|
-
return writer.getResultBuffer();
|
|
4269
|
-
};
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
/**
|
|
4273
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
4274
|
-
* format), writing to the given BinaryWriter.
|
|
4275
|
-
* @param {!proto.Spic.ComponentProto.CallFeatureRequest} message
|
|
4276
|
-
* @param {!jspb.BinaryWriter} writer
|
|
4277
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4278
|
-
*/
|
|
4279
|
-
proto.Spic.ComponentProto.CallFeatureRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4280
|
-
var f = undefined;
|
|
4281
|
-
f = message.getComponentId();
|
|
4282
|
-
if (f.length > 0) {
|
|
4283
|
-
writer.writeString(
|
|
4284
|
-
1,
|
|
4285
|
-
f
|
|
4286
|
-
);
|
|
4287
|
-
}
|
|
4288
|
-
f = message.getFeature();
|
|
4289
|
-
if (f.length > 0) {
|
|
4290
|
-
writer.writeString(
|
|
4291
|
-
2,
|
|
4292
|
-
f
|
|
4293
|
-
);
|
|
4294
|
-
}
|
|
4295
|
-
f = message.getArgumentsMap(true);
|
|
4296
|
-
if (f && f.getLength() > 0) {
|
|
4297
|
-
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
4298
|
-
}
|
|
4299
|
-
};
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
/**
|
|
4303
|
-
* optional string component_id = 1;
|
|
4304
|
-
* @return {string}
|
|
4305
|
-
*/
|
|
4306
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.getComponentId = function() {
|
|
4307
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4308
|
-
};
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
/**
|
|
4312
|
-
* @param {string} value
|
|
4313
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest} returns this
|
|
4314
|
-
*/
|
|
4315
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.setComponentId = function(value) {
|
|
4316
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4317
|
-
};
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
/**
|
|
4321
|
-
* optional string feature = 2;
|
|
4322
|
-
* @return {string}
|
|
4323
|
-
*/
|
|
4324
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.getFeature = function() {
|
|
4325
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4326
|
-
};
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
/**
|
|
4330
|
-
* @param {string} value
|
|
4331
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest} returns this
|
|
4332
|
-
*/
|
|
4333
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.setFeature = function(value) {
|
|
4334
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4335
|
-
};
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
/**
|
|
4339
|
-
* map<string, string> arguments = 3;
|
|
4340
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
4341
|
-
* empty, instead returning `undefined`
|
|
4342
|
-
* @return {!jspb.Map<string,string>}
|
|
4343
|
-
*/
|
|
4344
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.getArgumentsMap = function(opt_noLazyCreate) {
|
|
4345
|
-
return /** @type {!jspb.Map<string,string>} */ (
|
|
4346
|
-
jspb.Message.getMapField(this, 3, opt_noLazyCreate,
|
|
4347
|
-
null));
|
|
4348
|
-
};
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
/**
|
|
4352
|
-
* Clears values from the map. The map will be non-null.
|
|
4353
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest} returns this
|
|
4354
|
-
*/
|
|
4355
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.clearArgumentsMap = function() {
|
|
4356
|
-
this.getArgumentsMap().clear();
|
|
4357
|
-
return this;
|
|
4358
|
-
};
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
4145
|
/**
|
|
4362
4146
|
* optional string id = 1;
|
|
4363
4147
|
* @return {string}
|
|
@@ -77,15 +77,6 @@ type AssetGRPCReplaceBattery = {
|
|
|
77
77
|
readonly responseType: typeof spic_asset_pb.AssetProto;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
type AssetGRPCUpdateComponent = {
|
|
81
|
-
readonly methodName: string;
|
|
82
|
-
readonly service: typeof AssetGRPC;
|
|
83
|
-
readonly requestStream: false;
|
|
84
|
-
readonly responseStream: false;
|
|
85
|
-
readonly requestType: typeof spic_asset_pb.ComponentProto.CallFeatureRequest;
|
|
86
|
-
readonly responseType: typeof spic_asset_pb.ComponentProto;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
80
|
export class AssetGRPC {
|
|
90
81
|
static readonly serviceName: string;
|
|
91
82
|
static readonly Create: AssetGRPCCreate;
|
|
@@ -96,7 +87,6 @@ export class AssetGRPC {
|
|
|
96
87
|
static readonly Search: AssetGRPCSearch;
|
|
97
88
|
static readonly LocationSearch: AssetGRPCLocationSearch;
|
|
98
89
|
static readonly ReplaceBattery: AssetGRPCReplaceBattery;
|
|
99
|
-
static readonly UpdateComponent: AssetGRPCUpdateComponent;
|
|
100
90
|
}
|
|
101
91
|
|
|
102
92
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -203,14 +193,5 @@ export class AssetGRPCClient {
|
|
|
203
193
|
requestMessage: spic_asset_pb.AssetProto.ReplaceBatteryRequest,
|
|
204
194
|
callback: (error: ServiceError|null, responseMessage: spic_asset_pb.AssetProto|null) => void
|
|
205
195
|
): UnaryResponse;
|
|
206
|
-
updateComponent(
|
|
207
|
-
requestMessage: spic_asset_pb.ComponentProto.CallFeatureRequest,
|
|
208
|
-
metadata: grpc.Metadata,
|
|
209
|
-
callback: (error: ServiceError|null, responseMessage: spic_asset_pb.ComponentProto|null) => void
|
|
210
|
-
): UnaryResponse;
|
|
211
|
-
updateComponent(
|
|
212
|
-
requestMessage: spic_asset_pb.ComponentProto.CallFeatureRequest,
|
|
213
|
-
callback: (error: ServiceError|null, responseMessage: spic_asset_pb.ComponentProto|null) => void
|
|
214
|
-
): UnaryResponse;
|
|
215
196
|
}
|
|
216
197
|
|
package/spic.asset_pb_service.js
CHANGED
|
@@ -83,15 +83,6 @@ AssetGRPC.ReplaceBattery = {
|
|
|
83
83
|
responseType: spic_asset_pb.AssetProto
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
AssetGRPC.UpdateComponent = {
|
|
87
|
-
methodName: "UpdateComponent",
|
|
88
|
-
service: AssetGRPC,
|
|
89
|
-
requestStream: false,
|
|
90
|
-
responseStream: false,
|
|
91
|
-
requestType: spic_asset_pb.ComponentProto.CallFeatureRequest,
|
|
92
|
-
responseType: spic_asset_pb.ComponentProto
|
|
93
|
-
};
|
|
94
|
-
|
|
95
86
|
exports.AssetGRPC = AssetGRPC;
|
|
96
87
|
|
|
97
88
|
function AssetGRPCClient(serviceHost, options) {
|
|
@@ -347,36 +338,5 @@ AssetGRPCClient.prototype.replaceBattery = function replaceBattery(requestMessag
|
|
|
347
338
|
};
|
|
348
339
|
};
|
|
349
340
|
|
|
350
|
-
AssetGRPCClient.prototype.updateComponent = function updateComponent(requestMessage, metadata, callback) {
|
|
351
|
-
if (arguments.length === 2) {
|
|
352
|
-
callback = arguments[1];
|
|
353
|
-
}
|
|
354
|
-
var client = grpc.unary(AssetGRPC.UpdateComponent, {
|
|
355
|
-
request: requestMessage,
|
|
356
|
-
host: this.serviceHost,
|
|
357
|
-
metadata: metadata,
|
|
358
|
-
transport: this.options.transport,
|
|
359
|
-
debug: this.options.debug,
|
|
360
|
-
onEnd: function (response) {
|
|
361
|
-
if (callback) {
|
|
362
|
-
if (response.status !== grpc.Code.OK) {
|
|
363
|
-
var err = new Error(response.statusMessage);
|
|
364
|
-
err.code = response.status;
|
|
365
|
-
err.metadata = response.trailers;
|
|
366
|
-
callback(err, null);
|
|
367
|
-
} else {
|
|
368
|
-
callback(null, response.message);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
return {
|
|
374
|
-
cancel: function () {
|
|
375
|
-
callback = null;
|
|
376
|
-
client.close();
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
|
|
381
341
|
exports.AssetGRPCClient = AssetGRPCClient;
|
|
382
342
|
|