@aceplus/smartace-api 3.7.0-alpha.5 → 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.
@@ -35,6 +35,7 @@ goog.exportSymbol('proto.Platform.LocalAccountProto', null, global);
35
35
  goog.exportSymbol('proto.Platform.LocalAccountProto.AccountTypes', null, global);
36
36
  goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAdminRequest', null, global);
37
37
  goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAppRequest', null, global);
38
+ goog.exportSymbol('proto.Platform.LocalAccountProto.DeleteRequest', null, global);
38
39
  goog.exportSymbol('proto.Platform.LocalAccountProto.DisableAccount', null, global);
39
40
  goog.exportSymbol('proto.Platform.LocalAccountProto.EnableAccount', null, global);
40
41
  goog.exportSymbol('proto.Platform.LocalAccountProto.ResendInvitationRequest', null, global);
@@ -150,6 +151,27 @@ if (goog.DEBUG && !COMPILED) {
150
151
  */
151
152
  proto.Platform.LocalAccountProto.UpdateRequest.displayName = 'proto.Platform.LocalAccountProto.UpdateRequest';
152
153
  }
154
+ /**
155
+ * Generated by JsPbCodeGenerator.
156
+ * @param {Array=} opt_data Optional initial data array, typically from a
157
+ * server response, or constructed directly in Javascript. The array is used
158
+ * in place and becomes part of the constructed object. It is not cloned.
159
+ * If no data is provided, the constructed object will be empty, but still
160
+ * valid.
161
+ * @extends {jspb.Message}
162
+ * @constructor
163
+ */
164
+ proto.Platform.LocalAccountProto.DeleteRequest = function(opt_data) {
165
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
166
+ };
167
+ goog.inherits(proto.Platform.LocalAccountProto.DeleteRequest, jspb.Message);
168
+ if (goog.DEBUG && !COMPILED) {
169
+ /**
170
+ * @public
171
+ * @override
172
+ */
173
+ proto.Platform.LocalAccountProto.DeleteRequest.displayName = 'proto.Platform.LocalAccountProto.DeleteRequest';
174
+ }
153
175
  /**
154
176
  * Generated by JsPbCodeGenerator.
155
177
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1879,6 +1901,136 @@ proto.Platform.LocalAccountProto.UpdateRequest.prototype.clearClientRolesList =
1879
1901
 
1880
1902
 
1881
1903
 
1904
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1905
+ /**
1906
+ * Creates an object representation of this proto.
1907
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1908
+ * Optional fields that are not set will be set to undefined.
1909
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1910
+ * For the list of reserved names please see:
1911
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1912
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1913
+ * JSPB instance for transitional soy proto support:
1914
+ * http://goto/soy-param-migration
1915
+ * @return {!Object}
1916
+ */
1917
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
1918
+ return proto.Platform.LocalAccountProto.DeleteRequest.toObject(opt_includeInstance, this);
1919
+ };
1920
+
1921
+
1922
+ /**
1923
+ * Static version of the {@see toObject} method.
1924
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1925
+ * the JSPB instance for transitional soy proto support:
1926
+ * http://goto/soy-param-migration
1927
+ * @param {!proto.Platform.LocalAccountProto.DeleteRequest} msg The msg instance to transform.
1928
+ * @return {!Object}
1929
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1930
+ */
1931
+ proto.Platform.LocalAccountProto.DeleteRequest.toObject = function(includeInstance, msg) {
1932
+ var f, obj = {
1933
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1934
+ };
1935
+
1936
+ if (includeInstance) {
1937
+ obj.$jspbMessageInstance = msg;
1938
+ }
1939
+ return obj;
1940
+ };
1941
+ }
1942
+
1943
+
1944
+ /**
1945
+ * Deserializes binary data (in protobuf wire format).
1946
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1947
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest}
1948
+ */
1949
+ proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinary = function(bytes) {
1950
+ var reader = new jspb.BinaryReader(bytes);
1951
+ var msg = new proto.Platform.LocalAccountProto.DeleteRequest;
1952
+ return proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
1953
+ };
1954
+
1955
+
1956
+ /**
1957
+ * Deserializes binary data (in protobuf wire format) from the
1958
+ * given reader into the given message object.
1959
+ * @param {!proto.Platform.LocalAccountProto.DeleteRequest} msg The message object to deserialize into.
1960
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1961
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest}
1962
+ */
1963
+ proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
1964
+ while (reader.nextField()) {
1965
+ if (reader.isEndGroup()) {
1966
+ break;
1967
+ }
1968
+ var field = reader.getFieldNumber();
1969
+ switch (field) {
1970
+ case 1:
1971
+ var value = /** @type {number} */ (reader.readInt64());
1972
+ msg.setId(value);
1973
+ break;
1974
+ default:
1975
+ reader.skipField();
1976
+ break;
1977
+ }
1978
+ }
1979
+ return msg;
1980
+ };
1981
+
1982
+
1983
+ /**
1984
+ * Serializes the message to binary data (in protobuf wire format).
1985
+ * @return {!Uint8Array}
1986
+ */
1987
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.serializeBinary = function() {
1988
+ var writer = new jspb.BinaryWriter();
1989
+ proto.Platform.LocalAccountProto.DeleteRequest.serializeBinaryToWriter(this, writer);
1990
+ return writer.getResultBuffer();
1991
+ };
1992
+
1993
+
1994
+ /**
1995
+ * Serializes the given message to binary data (in protobuf wire
1996
+ * format), writing to the given BinaryWriter.
1997
+ * @param {!proto.Platform.LocalAccountProto.DeleteRequest} message
1998
+ * @param {!jspb.BinaryWriter} writer
1999
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2000
+ */
2001
+ proto.Platform.LocalAccountProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
2002
+ var f = undefined;
2003
+ f = message.getId();
2004
+ if (f !== 0) {
2005
+ writer.writeInt64(
2006
+ 1,
2007
+ f
2008
+ );
2009
+ }
2010
+ };
2011
+
2012
+
2013
+ /**
2014
+ * optional int64 id = 1;
2015
+ * @return {number}
2016
+ */
2017
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.getId = function() {
2018
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2019
+ };
2020
+
2021
+
2022
+ /**
2023
+ * @param {number} value
2024
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest} returns this
2025
+ */
2026
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.setId = function(value) {
2027
+ return jspb.Message.setProto3IntField(this, 1, value);
2028
+ };
2029
+
2030
+
2031
+
2032
+
2033
+
1882
2034
  if (jspb.Message.GENERATE_TO_OBJECT) {
1883
2035
  /**
1884
2036
  * Creates an object representation of this proto.
@@ -47,8 +47,8 @@ type LocalAccountGRPCDelete = {
47
47
  readonly service: typeof LocalAccountGRPC;
48
48
  readonly requestStream: false;
49
49
  readonly responseStream: false;
50
- readonly requestType: typeof auth_account_pb.AccountProto.DeleteRequest;
51
- readonly responseType: typeof auth_account_pb.AccountProto.DeleteReply;
50
+ readonly requestType: typeof platform_local_account_pb.LocalAccountProto.DeleteRequest;
51
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
52
52
  };
53
53
 
54
54
  type LocalAccountGRPCSearchAdmin = {
@@ -229,13 +229,13 @@ export class LocalAccountGRPCClient {
229
229
  callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
230
230
  ): UnaryResponse;
231
231
  delete(
232
- requestMessage: auth_account_pb.AccountProto.DeleteRequest,
232
+ requestMessage: platform_local_account_pb.LocalAccountProto.DeleteRequest,
233
233
  metadata: grpc.Metadata,
234
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.DeleteReply|null) => void
234
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
235
235
  ): UnaryResponse;
236
236
  delete(
237
- requestMessage: auth_account_pb.AccountProto.DeleteRequest,
238
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.DeleteReply|null) => void
237
+ requestMessage: platform_local_account_pb.LocalAccountProto.DeleteRequest,
238
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
239
239
  ): UnaryResponse;
240
240
  searchAdmin(
241
241
  requestMessage: platform_local_account_pb.LocalAccountProto.SearchRequest,
@@ -53,8 +53,8 @@ LocalAccountGRPC.Delete = {
53
53
  service: LocalAccountGRPC,
54
54
  requestStream: false,
55
55
  responseStream: false,
56
- requestType: auth_account_pb.AccountProto.DeleteRequest,
57
- responseType: auth_account_pb.AccountProto.DeleteReply
56
+ requestType: platform_local_account_pb.LocalAccountProto.DeleteRequest,
57
+ responseType: google_protobuf_empty_pb.Empty
58
58
  };
59
59
 
60
60
  LocalAccountGRPC.SearchAdmin = {
@@ -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
 
@@ -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