@aceplus/smartace-api 2.9.0-alpha.2 → 2.9.0-alpha.20

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.
@@ -157,7 +157,7 @@ type ClusterAccountGRPCForgotPassword = {
157
157
  readonly requestStream: false;
158
158
  readonly responseStream: false;
159
159
  readonly requestType: typeof auth_account_pb.AccountProto.ForgotPasswordRequest;
160
- readonly responseType: typeof auth_account_pb.AccountProto.ChangePasswordReply;
160
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
161
161
  };
162
162
 
163
163
  type ClusterAccountGRPCResetPassword = {
@@ -166,7 +166,7 @@ type ClusterAccountGRPCResetPassword = {
166
166
  readonly requestStream: false;
167
167
  readonly responseStream: false;
168
168
  readonly requestType: typeof auth_account_pb.AccountProto.ResetPasswordRequest;
169
- readonly responseType: typeof auth_account_pb.AccountProto;
169
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
170
170
  };
171
171
 
172
172
  type ClusterAccountGRPCChangePassword = {
@@ -429,20 +429,20 @@ export class ClusterAccountGRPCClient {
429
429
  forgotPassword(
430
430
  requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
431
431
  metadata: grpc.Metadata,
432
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
432
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
433
433
  ): UnaryResponse;
434
434
  forgotPassword(
435
435
  requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
436
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
436
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
437
437
  ): UnaryResponse;
438
438
  resetPassword(
439
439
  requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
440
440
  metadata: grpc.Metadata,
441
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
441
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
442
442
  ): UnaryResponse;
443
443
  resetPassword(
444
444
  requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
445
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
445
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
446
446
  ): UnaryResponse;
447
447
  changePassword(
448
448
  requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
@@ -384,7 +384,7 @@ ClusterAccountGRPC.ForgotPassword = {
384
384
  requestStream: false,
385
385
  responseStream: false,
386
386
  requestType: auth_account_pb.AccountProto.ForgotPasswordRequest,
387
- responseType: auth_account_pb.AccountProto.ChangePasswordReply
387
+ responseType: google_protobuf_empty_pb.Empty
388
388
  };
389
389
 
390
390
  ClusterAccountGRPC.ResetPassword = {
@@ -393,7 +393,7 @@ ClusterAccountGRPC.ResetPassword = {
393
393
  requestStream: false,
394
394
  responseStream: false,
395
395
  requestType: auth_account_pb.AccountProto.ResetPasswordRequest,
396
- responseType: auth_account_pb.AccountProto
396
+ responseType: google_protobuf_empty_pb.Empty
397
397
  };
398
398
 
399
399
  ClusterAccountGRPC.ChangePassword = {
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.9.0-alpha.2",
8
+ "version": "2.9.0-alpha.20",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -84,7 +84,16 @@ type LocalAccountGRPCForgotPassword = {
84
84
  readonly requestStream: false;
85
85
  readonly responseStream: false;
86
86
  readonly requestType: typeof auth_account_pb.AccountProto.ForgotPasswordRequest;
87
- readonly responseType: typeof auth_account_pb.AccountProto.ChangePasswordReply;
87
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
88
+ };
89
+
90
+ type LocalAccountGRPCResetPassword = {
91
+ readonly methodName: string;
92
+ readonly service: typeof LocalAccountGRPC;
93
+ readonly requestStream: false;
94
+ readonly responseStream: false;
95
+ readonly requestType: typeof auth_account_pb.AccountProto.ResetPasswordRequest;
96
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
88
97
  };
89
98
 
90
99
  type LocalAccountGRPCChangePassword = {
@@ -170,6 +179,7 @@ export class LocalAccountGRPC {
170
179
  static readonly SearchApp: LocalAccountGRPCSearchApp;
171
180
  static readonly ActivateAccount: LocalAccountGRPCActivateAccount;
172
181
  static readonly ForgotPassword: LocalAccountGRPCForgotPassword;
182
+ static readonly ResetPassword: LocalAccountGRPCResetPassword;
173
183
  static readonly ChangePassword: LocalAccountGRPCChangePassword;
174
184
  static readonly EnableAccount: LocalAccountGRPCEnableAccount;
175
185
  static readonly DisableAccount: LocalAccountGRPCDisableAccount;
@@ -287,11 +297,20 @@ export class LocalAccountGRPCClient {
287
297
  forgotPassword(
288
298
  requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
289
299
  metadata: grpc.Metadata,
290
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
300
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
291
301
  ): UnaryResponse;
292
302
  forgotPassword(
293
303
  requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
294
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
304
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
305
+ ): UnaryResponse;
306
+ resetPassword(
307
+ requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
308
+ metadata: grpc.Metadata,
309
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
310
+ ): UnaryResponse;
311
+ resetPassword(
312
+ requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
313
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
295
314
  ): UnaryResponse;
296
315
  changePassword(
297
316
  requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
@@ -90,7 +90,16 @@ LocalAccountGRPC.ForgotPassword = {
90
90
  requestStream: false,
91
91
  responseStream: false,
92
92
  requestType: auth_account_pb.AccountProto.ForgotPasswordRequest,
93
- responseType: auth_account_pb.AccountProto.ChangePasswordReply
93
+ responseType: google_protobuf_empty_pb.Empty
94
+ };
95
+
96
+ LocalAccountGRPC.ResetPassword = {
97
+ methodName: "ResetPassword",
98
+ service: LocalAccountGRPC,
99
+ requestStream: false,
100
+ responseStream: false,
101
+ requestType: auth_account_pb.AccountProto.ResetPasswordRequest,
102
+ responseType: google_protobuf_empty_pb.Empty
94
103
  };
95
104
 
96
105
  LocalAccountGRPC.ChangePassword = {
@@ -451,6 +460,37 @@ LocalAccountGRPCClient.prototype.forgotPassword = function forgotPassword(reques
451
460
  };
452
461
  };
453
462
 
463
+ LocalAccountGRPCClient.prototype.resetPassword = function resetPassword(requestMessage, metadata, callback) {
464
+ if (arguments.length === 2) {
465
+ callback = arguments[1];
466
+ }
467
+ var client = grpc.unary(LocalAccountGRPC.ResetPassword, {
468
+ request: requestMessage,
469
+ host: this.serviceHost,
470
+ metadata: metadata,
471
+ transport: this.options.transport,
472
+ debug: this.options.debug,
473
+ onEnd: function (response) {
474
+ if (callback) {
475
+ if (response.status !== grpc.Code.OK) {
476
+ var err = new Error(response.statusMessage);
477
+ err.code = response.status;
478
+ err.metadata = response.trailers;
479
+ callback(err, null);
480
+ } else {
481
+ callback(null, response.message);
482
+ }
483
+ }
484
+ }
485
+ });
486
+ return {
487
+ cancel: function () {
488
+ callback = null;
489
+ client.close();
490
+ }
491
+ };
492
+ };
493
+
454
494
  LocalAccountGRPCClient.prototype.changePassword = function changePassword(requestMessage, metadata, callback) {
455
495
  if (arguments.length === 2) {
456
496
  callback = arguments[1];
@@ -512,6 +512,15 @@ export namespace CabinetProto {
512
512
  getCabinetId(): number;
513
513
  setCabinetId(value: number): void;
514
514
 
515
+ getBatteryEstimator(): number;
516
+ setBatteryEstimator(value: number): void;
517
+
518
+ getBatteryEmpty(): boolean;
519
+ setBatteryEmpty(value: boolean): void;
520
+
521
+ getCommunicationTime(): number;
522
+ setCommunicationTime(value: number): void;
523
+
515
524
  serializeBinary(): Uint8Array;
516
525
  toObject(includeInstance?: boolean): State.AsObject;
517
526
  static toObject(includeInstance: boolean, msg: State): State.AsObject;
@@ -542,6 +551,9 @@ export namespace CabinetProto {
542
551
  crc: string,
543
552
  settingNumber: number,
544
553
  cabinetId: number,
554
+ batteryEstimator: number,
555
+ batteryEmpty: boolean,
556
+ communicationTime: number,
545
557
  }
546
558
 
547
559
  export class SearchRequest extends jspb.Message {
@@ -1039,9 +1051,6 @@ export namespace CabinetProto {
1039
1051
  getId(): number;
1040
1052
  setId(value: number): void;
1041
1053
 
1042
- getDevicepacketnumber(): number;
1043
- setDevicepacketnumber(value: number): void;
1044
-
1045
1054
  serializeBinary(): Uint8Array;
1046
1055
  toObject(includeInstance?: boolean): DeactivateRequest.AsObject;
1047
1056
  static toObject(includeInstance: boolean, msg: DeactivateRequest): DeactivateRequest.AsObject;
@@ -1055,59 +1064,6 @@ export namespace CabinetProto {
1055
1064
  export namespace DeactivateRequest {
1056
1065
  export type AsObject = {
1057
1066
  id: number,
1058
- devicepacketnumber: number,
1059
- }
1060
- }
1061
-
1062
- export class CanOpenRequest extends jspb.Message {
1063
- getUid(): string;
1064
- setUid(value: string): void;
1065
-
1066
- serializeBinary(): Uint8Array;
1067
- toObject(includeInstance?: boolean): CanOpenRequest.AsObject;
1068
- static toObject(includeInstance: boolean, msg: CanOpenRequest): CanOpenRequest.AsObject;
1069
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1070
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1071
- static serializeBinaryToWriter(message: CanOpenRequest, writer: jspb.BinaryWriter): void;
1072
- static deserializeBinary(bytes: Uint8Array): CanOpenRequest;
1073
- static deserializeBinaryFromReader(message: CanOpenRequest, reader: jspb.BinaryReader): CanOpenRequest;
1074
- }
1075
-
1076
- export namespace CanOpenRequest {
1077
- export type AsObject = {
1078
- uid: string,
1079
- }
1080
- }
1081
-
1082
- export class CanOpenReply extends jspb.Message {
1083
- hasCabinet(): boolean;
1084
- clearCabinet(): void;
1085
- getCabinet(): CabinetProto | undefined;
1086
- setCabinet(value?: CabinetProto): void;
1087
-
1088
- hasOpenRequest(): boolean;
1089
- clearOpenRequest(): void;
1090
- getOpenRequest(): CabinetProto.OpenRequest | undefined;
1091
- setOpenRequest(value?: CabinetProto.OpenRequest): void;
1092
-
1093
- getCanOpen(): boolean;
1094
- setCanOpen(value: boolean): void;
1095
-
1096
- serializeBinary(): Uint8Array;
1097
- toObject(includeInstance?: boolean): CanOpenReply.AsObject;
1098
- static toObject(includeInstance: boolean, msg: CanOpenReply): CanOpenReply.AsObject;
1099
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1100
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1101
- static serializeBinaryToWriter(message: CanOpenReply, writer: jspb.BinaryWriter): void;
1102
- static deserializeBinary(bytes: Uint8Array): CanOpenReply;
1103
- static deserializeBinaryFromReader(message: CanOpenReply, reader: jspb.BinaryReader): CanOpenReply;
1104
- }
1105
-
1106
- export namespace CanOpenReply {
1107
- export type AsObject = {
1108
- cabinet?: CabinetProto.AsObject,
1109
- openRequest?: CabinetProto.OpenRequest.AsObject,
1110
- canOpen: boolean,
1111
1067
  }
1112
1068
  }
1113
1069
 
@@ -1229,6 +1185,7 @@ export namespace CabinetProto {
1229
1185
  TAMPER: 9;
1230
1186
  HIGH_TEMP: 10;
1231
1187
  CRIT_TEMP: 11;
1188
+ EXT_IO_3: 12;
1232
1189
  }
1233
1190
 
1234
1191
  export const AlarmType: AlarmTypeMap;
@@ -51,8 +51,6 @@ goog.exportSymbol('proto.Spic.CabinetProto.Image.RetrieveRequest', null, global)
51
51
  goog.exportSymbol('proto.Spic.CabinetProto.LocationSearchReply', null, global);
52
52
  goog.exportSymbol('proto.Spic.CabinetProto.LocationSearchRequest', null, global);
53
53
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest', null, global);
54
- goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.CanOpenReply', null, global);
55
- goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.CanOpenRequest', null, global);
56
54
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.CreateRequest', null, global);
57
55
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.DeactivateRequest', null, global);
58
56
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.OpenRequestType', null, global);
@@ -615,48 +613,6 @@ if (goog.DEBUG && !COMPILED) {
615
613
  */
616
614
  proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.displayName = 'proto.Spic.CabinetProto.OpenRequest.DeactivateRequest';
617
615
  }
618
- /**
619
- * Generated by JsPbCodeGenerator.
620
- * @param {Array=} opt_data Optional initial data array, typically from a
621
- * server response, or constructed directly in Javascript. The array is used
622
- * in place and becomes part of the constructed object. It is not cloned.
623
- * If no data is provided, the constructed object will be empty, but still
624
- * valid.
625
- * @extends {jspb.Message}
626
- * @constructor
627
- */
628
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest = function(opt_data) {
629
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
630
- };
631
- goog.inherits(proto.Spic.CabinetProto.OpenRequest.CanOpenRequest, jspb.Message);
632
- if (goog.DEBUG && !COMPILED) {
633
- /**
634
- * @public
635
- * @override
636
- */
637
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.displayName = 'proto.Spic.CabinetProto.OpenRequest.CanOpenRequest';
638
- }
639
- /**
640
- * Generated by JsPbCodeGenerator.
641
- * @param {Array=} opt_data Optional initial data array, typically from a
642
- * server response, or constructed directly in Javascript. The array is used
643
- * in place and becomes part of the constructed object. It is not cloned.
644
- * If no data is provided, the constructed object will be empty, but still
645
- * valid.
646
- * @extends {jspb.Message}
647
- * @constructor
648
- */
649
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply = function(opt_data) {
650
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
651
- };
652
- goog.inherits(proto.Spic.CabinetProto.OpenRequest.CanOpenReply, jspb.Message);
653
- if (goog.DEBUG && !COMPILED) {
654
- /**
655
- * @public
656
- * @override
657
- */
658
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.displayName = 'proto.Spic.CabinetProto.OpenRequest.CanOpenReply';
659
- }
660
616
  /**
661
617
  * Generated by JsPbCodeGenerator.
662
618
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1051,7 +1007,8 @@ proto.Spic.CabinetProto.AlarmType = {
1051
1007
  EXT_IO_2: 8,
1052
1008
  TAMPER: 9,
1053
1009
  HIGH_TEMP: 10,
1054
- CRIT_TEMP: 11
1010
+ CRIT_TEMP: 11,
1011
+ EXT_IO_3: 12
1055
1012
  };
1056
1013
 
1057
1014
 
@@ -3669,7 +3626,10 @@ proto.Spic.CabinetProto.State.toObject = function(includeInstance, msg) {
3669
3626
  imei: jspb.Message.getFieldWithDefault(msg, 15, ""),
3670
3627
  crc: jspb.Message.getFieldWithDefault(msg, 16, ""),
3671
3628
  settingNumber: jspb.Message.getFieldWithDefault(msg, 17, 0),
3672
- cabinetId: jspb.Message.getFieldWithDefault(msg, 18, 0)
3629
+ cabinetId: jspb.Message.getFieldWithDefault(msg, 18, 0),
3630
+ batteryEstimator: jspb.Message.getFieldWithDefault(msg, 19, 0),
3631
+ batteryEmpty: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
3632
+ communicationTime: jspb.Message.getFieldWithDefault(msg, 21, 0)
3673
3633
  };
3674
3634
 
3675
3635
  if (includeInstance) {
@@ -3781,6 +3741,18 @@ proto.Spic.CabinetProto.State.deserializeBinaryFromReader = function(msg, reader
3781
3741
  var value = /** @type {number} */ (reader.readInt64());
3782
3742
  msg.setCabinetId(value);
3783
3743
  break;
3744
+ case 19:
3745
+ var value = /** @type {number} */ (reader.readInt32());
3746
+ msg.setBatteryEstimator(value);
3747
+ break;
3748
+ case 20:
3749
+ var value = /** @type {boolean} */ (reader.readBool());
3750
+ msg.setBatteryEmpty(value);
3751
+ break;
3752
+ case 21:
3753
+ var value = /** @type {number} */ (reader.readUint32());
3754
+ msg.setCommunicationTime(value);
3755
+ break;
3784
3756
  default:
3785
3757
  reader.skipField();
3786
3758
  break;
@@ -3937,6 +3909,27 @@ proto.Spic.CabinetProto.State.serializeBinaryToWriter = function(message, writer
3937
3909
  f
3938
3910
  );
3939
3911
  }
3912
+ f = message.getBatteryEstimator();
3913
+ if (f !== 0) {
3914
+ writer.writeInt32(
3915
+ 19,
3916
+ f
3917
+ );
3918
+ }
3919
+ f = message.getBatteryEmpty();
3920
+ if (f) {
3921
+ writer.writeBool(
3922
+ 20,
3923
+ f
3924
+ );
3925
+ }
3926
+ f = message.getCommunicationTime();
3927
+ if (f !== 0) {
3928
+ writer.writeUint32(
3929
+ 21,
3930
+ f
3931
+ );
3932
+ }
3940
3933
  };
3941
3934
 
3942
3935
 
@@ -5154,6 +5147,60 @@ proto.Spic.CabinetProto.State.prototype.setCabinetId = function(value) {
5154
5147
  };
5155
5148
 
5156
5149
 
5150
+ /**
5151
+ * optional int32 battery_estimator = 19;
5152
+ * @return {number}
5153
+ */
5154
+ proto.Spic.CabinetProto.State.prototype.getBatteryEstimator = function() {
5155
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
5156
+ };
5157
+
5158
+
5159
+ /**
5160
+ * @param {number} value
5161
+ * @return {!proto.Spic.CabinetProto.State} returns this
5162
+ */
5163
+ proto.Spic.CabinetProto.State.prototype.setBatteryEstimator = function(value) {
5164
+ return jspb.Message.setProto3IntField(this, 19, value);
5165
+ };
5166
+
5167
+
5168
+ /**
5169
+ * optional bool battery_empty = 20;
5170
+ * @return {boolean}
5171
+ */
5172
+ proto.Spic.CabinetProto.State.prototype.getBatteryEmpty = function() {
5173
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false));
5174
+ };
5175
+
5176
+
5177
+ /**
5178
+ * @param {boolean} value
5179
+ * @return {!proto.Spic.CabinetProto.State} returns this
5180
+ */
5181
+ proto.Spic.CabinetProto.State.prototype.setBatteryEmpty = function(value) {
5182
+ return jspb.Message.setProto3BooleanField(this, 20, value);
5183
+ };
5184
+
5185
+
5186
+ /**
5187
+ * optional uint32 communication_time = 21;
5188
+ * @return {number}
5189
+ */
5190
+ proto.Spic.CabinetProto.State.prototype.getCommunicationTime = function() {
5191
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
5192
+ };
5193
+
5194
+
5195
+ /**
5196
+ * @param {number} value
5197
+ * @return {!proto.Spic.CabinetProto.State} returns this
5198
+ */
5199
+ proto.Spic.CabinetProto.State.prototype.setCommunicationTime = function(value) {
5200
+ return jspb.Message.setProto3IntField(this, 21, value);
5201
+ };
5202
+
5203
+
5157
5204
 
5158
5205
 
5159
5206
 
@@ -7611,8 +7658,7 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.toObject = funct
7611
7658
  */
7612
7659
  proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.toObject = function(includeInstance, msg) {
7613
7660
  var f, obj = {
7614
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7615
- devicepacketnumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
7661
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
7616
7662
  };
7617
7663
 
7618
7664
  if (includeInstance) {
@@ -7653,10 +7699,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.deserializeBinaryFromReade
7653
7699
  var value = /** @type {number} */ (reader.readInt64());
7654
7700
  msg.setId(value);
7655
7701
  break;
7656
- case 2:
7657
- var value = /** @type {number} */ (reader.readInt32());
7658
- msg.setDevicepacketnumber(value);
7659
- break;
7660
7702
  default:
7661
7703
  reader.skipField();
7662
7704
  break;
@@ -7693,13 +7735,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.serializeBinaryToWriter =
7693
7735
  f
7694
7736
  );
7695
7737
  }
7696
- f = message.getDevicepacketnumber();
7697
- if (f !== 0) {
7698
- writer.writeInt32(
7699
- 2,
7700
- f
7701
- );
7702
- }
7703
7738
  };
7704
7739
 
7705
7740
 
@@ -7721,386 +7756,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.setId = function
7721
7756
  };
7722
7757
 
7723
7758
 
7724
- /**
7725
- * optional int32 devicePacketNumber = 2;
7726
- * @return {number}
7727
- */
7728
- proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.getDevicepacketnumber = function() {
7729
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7730
- };
7731
-
7732
-
7733
- /**
7734
- * @param {number} value
7735
- * @return {!proto.Spic.CabinetProto.OpenRequest.DeactivateRequest} returns this
7736
- */
7737
- proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.setDevicepacketnumber = function(value) {
7738
- return jspb.Message.setProto3IntField(this, 2, value);
7739
- };
7740
-
7741
-
7742
-
7743
-
7744
-
7745
- if (jspb.Message.GENERATE_TO_OBJECT) {
7746
- /**
7747
- * Creates an object representation of this proto.
7748
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
7749
- * Optional fields that are not set will be set to undefined.
7750
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7751
- * For the list of reserved names please see:
7752
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7753
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7754
- * JSPB instance for transitional soy proto support:
7755
- * http://goto/soy-param-migration
7756
- * @return {!Object}
7757
- */
7758
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.toObject = function(opt_includeInstance) {
7759
- return proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.toObject(opt_includeInstance, this);
7760
- };
7761
-
7762
-
7763
- /**
7764
- * Static version of the {@see toObject} method.
7765
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7766
- * the JSPB instance for transitional soy proto support:
7767
- * http://goto/soy-param-migration
7768
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} msg The msg instance to transform.
7769
- * @return {!Object}
7770
- * @suppress {unusedLocalVariables} f is only used for nested messages
7771
- */
7772
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.toObject = function(includeInstance, msg) {
7773
- var f, obj = {
7774
- uid: jspb.Message.getFieldWithDefault(msg, 1, "")
7775
- };
7776
-
7777
- if (includeInstance) {
7778
- obj.$jspbMessageInstance = msg;
7779
- }
7780
- return obj;
7781
- };
7782
- }
7783
-
7784
-
7785
- /**
7786
- * Deserializes binary data (in protobuf wire format).
7787
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
7788
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest}
7789
- */
7790
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinary = function(bytes) {
7791
- var reader = new jspb.BinaryReader(bytes);
7792
- var msg = new proto.Spic.CabinetProto.OpenRequest.CanOpenRequest;
7793
- return proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinaryFromReader(msg, reader);
7794
- };
7795
-
7796
-
7797
- /**
7798
- * Deserializes binary data (in protobuf wire format) from the
7799
- * given reader into the given message object.
7800
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} msg The message object to deserialize into.
7801
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7802
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest}
7803
- */
7804
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinaryFromReader = function(msg, reader) {
7805
- while (reader.nextField()) {
7806
- if (reader.isEndGroup()) {
7807
- break;
7808
- }
7809
- var field = reader.getFieldNumber();
7810
- switch (field) {
7811
- case 1:
7812
- var value = /** @type {string} */ (reader.readString());
7813
- msg.setUid(value);
7814
- break;
7815
- default:
7816
- reader.skipField();
7817
- break;
7818
- }
7819
- }
7820
- return msg;
7821
- };
7822
-
7823
-
7824
- /**
7825
- * Serializes the message to binary data (in protobuf wire format).
7826
- * @return {!Uint8Array}
7827
- */
7828
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.serializeBinary = function() {
7829
- var writer = new jspb.BinaryWriter();
7830
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.serializeBinaryToWriter(this, writer);
7831
- return writer.getResultBuffer();
7832
- };
7833
-
7834
-
7835
- /**
7836
- * Serializes the given message to binary data (in protobuf wire
7837
- * format), writing to the given BinaryWriter.
7838
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} message
7839
- * @param {!jspb.BinaryWriter} writer
7840
- * @suppress {unusedLocalVariables} f is only used for nested messages
7841
- */
7842
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.serializeBinaryToWriter = function(message, writer) {
7843
- var f = undefined;
7844
- f = message.getUid();
7845
- if (f.length > 0) {
7846
- writer.writeString(
7847
- 1,
7848
- f
7849
- );
7850
- }
7851
- };
7852
-
7853
-
7854
- /**
7855
- * optional string uid = 1;
7856
- * @return {string}
7857
- */
7858
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.getUid = function() {
7859
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7860
- };
7861
-
7862
-
7863
- /**
7864
- * @param {string} value
7865
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} returns this
7866
- */
7867
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.setUid = function(value) {
7868
- return jspb.Message.setProto3StringField(this, 1, value);
7869
- };
7870
-
7871
-
7872
-
7873
-
7874
-
7875
- if (jspb.Message.GENERATE_TO_OBJECT) {
7876
- /**
7877
- * Creates an object representation of this proto.
7878
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
7879
- * Optional fields that are not set will be set to undefined.
7880
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7881
- * For the list of reserved names please see:
7882
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7883
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7884
- * JSPB instance for transitional soy proto support:
7885
- * http://goto/soy-param-migration
7886
- * @return {!Object}
7887
- */
7888
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.toObject = function(opt_includeInstance) {
7889
- return proto.Spic.CabinetProto.OpenRequest.CanOpenReply.toObject(opt_includeInstance, this);
7890
- };
7891
-
7892
-
7893
- /**
7894
- * Static version of the {@see toObject} method.
7895
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7896
- * the JSPB instance for transitional soy proto support:
7897
- * http://goto/soy-param-migration
7898
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} msg The msg instance to transform.
7899
- * @return {!Object}
7900
- * @suppress {unusedLocalVariables} f is only used for nested messages
7901
- */
7902
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.toObject = function(includeInstance, msg) {
7903
- var f, obj = {
7904
- cabinet: (f = msg.getCabinet()) && proto.Spic.CabinetProto.toObject(includeInstance, f),
7905
- openRequest: (f = msg.getOpenRequest()) && proto.Spic.CabinetProto.OpenRequest.toObject(includeInstance, f),
7906
- canOpen: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
7907
- };
7908
-
7909
- if (includeInstance) {
7910
- obj.$jspbMessageInstance = msg;
7911
- }
7912
- return obj;
7913
- };
7914
- }
7915
-
7916
-
7917
- /**
7918
- * Deserializes binary data (in protobuf wire format).
7919
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
7920
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply}
7921
- */
7922
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinary = function(bytes) {
7923
- var reader = new jspb.BinaryReader(bytes);
7924
- var msg = new proto.Spic.CabinetProto.OpenRequest.CanOpenReply;
7925
- return proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinaryFromReader(msg, reader);
7926
- };
7927
-
7928
-
7929
- /**
7930
- * Deserializes binary data (in protobuf wire format) from the
7931
- * given reader into the given message object.
7932
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} msg The message object to deserialize into.
7933
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7934
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply}
7935
- */
7936
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinaryFromReader = function(msg, reader) {
7937
- while (reader.nextField()) {
7938
- if (reader.isEndGroup()) {
7939
- break;
7940
- }
7941
- var field = reader.getFieldNumber();
7942
- switch (field) {
7943
- case 1:
7944
- var value = new proto.Spic.CabinetProto;
7945
- reader.readMessage(value,proto.Spic.CabinetProto.deserializeBinaryFromReader);
7946
- msg.setCabinet(value);
7947
- break;
7948
- case 2:
7949
- var value = new proto.Spic.CabinetProto.OpenRequest;
7950
- reader.readMessage(value,proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader);
7951
- msg.setOpenRequest(value);
7952
- break;
7953
- case 3:
7954
- var value = /** @type {boolean} */ (reader.readBool());
7955
- msg.setCanOpen(value);
7956
- break;
7957
- default:
7958
- reader.skipField();
7959
- break;
7960
- }
7961
- }
7962
- return msg;
7963
- };
7964
-
7965
-
7966
- /**
7967
- * Serializes the message to binary data (in protobuf wire format).
7968
- * @return {!Uint8Array}
7969
- */
7970
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.serializeBinary = function() {
7971
- var writer = new jspb.BinaryWriter();
7972
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.serializeBinaryToWriter(this, writer);
7973
- return writer.getResultBuffer();
7974
- };
7975
-
7976
-
7977
- /**
7978
- * Serializes the given message to binary data (in protobuf wire
7979
- * format), writing to the given BinaryWriter.
7980
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} message
7981
- * @param {!jspb.BinaryWriter} writer
7982
- * @suppress {unusedLocalVariables} f is only used for nested messages
7983
- */
7984
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.serializeBinaryToWriter = function(message, writer) {
7985
- var f = undefined;
7986
- f = message.getCabinet();
7987
- if (f != null) {
7988
- writer.writeMessage(
7989
- 1,
7990
- f,
7991
- proto.Spic.CabinetProto.serializeBinaryToWriter
7992
- );
7993
- }
7994
- f = message.getOpenRequest();
7995
- if (f != null) {
7996
- writer.writeMessage(
7997
- 2,
7998
- f,
7999
- proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter
8000
- );
8001
- }
8002
- f = message.getCanOpen();
8003
- if (f) {
8004
- writer.writeBool(
8005
- 3,
8006
- f
8007
- );
8008
- }
8009
- };
8010
-
8011
-
8012
- /**
8013
- * optional CabinetProto cabinet = 1;
8014
- * @return {?proto.Spic.CabinetProto}
8015
- */
8016
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getCabinet = function() {
8017
- return /** @type{?proto.Spic.CabinetProto} */ (
8018
- jspb.Message.getWrapperField(this, proto.Spic.CabinetProto, 1));
8019
- };
8020
-
8021
-
8022
- /**
8023
- * @param {?proto.Spic.CabinetProto|undefined} value
8024
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8025
- */
8026
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setCabinet = function(value) {
8027
- return jspb.Message.setWrapperField(this, 1, value);
8028
- };
8029
-
8030
-
8031
- /**
8032
- * Clears the message field making it undefined.
8033
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8034
- */
8035
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.clearCabinet = function() {
8036
- return this.setCabinet(undefined);
8037
- };
8038
-
8039
-
8040
- /**
8041
- * Returns whether this field is set.
8042
- * @return {boolean}
8043
- */
8044
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.hasCabinet = function() {
8045
- return jspb.Message.getField(this, 1) != null;
8046
- };
8047
-
8048
-
8049
- /**
8050
- * optional OpenRequest open_request = 2;
8051
- * @return {?proto.Spic.CabinetProto.OpenRequest}
8052
- */
8053
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getOpenRequest = function() {
8054
- return /** @type{?proto.Spic.CabinetProto.OpenRequest} */ (
8055
- jspb.Message.getWrapperField(this, proto.Spic.CabinetProto.OpenRequest, 2));
8056
- };
8057
-
8058
-
8059
- /**
8060
- * @param {?proto.Spic.CabinetProto.OpenRequest|undefined} value
8061
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8062
- */
8063
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setOpenRequest = function(value) {
8064
- return jspb.Message.setWrapperField(this, 2, value);
8065
- };
8066
-
8067
-
8068
- /**
8069
- * Clears the message field making it undefined.
8070
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8071
- */
8072
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.clearOpenRequest = function() {
8073
- return this.setOpenRequest(undefined);
8074
- };
8075
-
8076
-
8077
- /**
8078
- * Returns whether this field is set.
8079
- * @return {boolean}
8080
- */
8081
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.hasOpenRequest = function() {
8082
- return jspb.Message.getField(this, 2) != null;
8083
- };
8084
-
8085
-
8086
- /**
8087
- * optional bool can_open = 3;
8088
- * @return {boolean}
8089
- */
8090
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getCanOpen = function() {
8091
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
8092
- };
8093
-
8094
-
8095
- /**
8096
- * @param {boolean} value
8097
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8098
- */
8099
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setCanOpen = function(value) {
8100
- return jspb.Message.setProto3BooleanField(this, 3, value);
8101
- };
8102
-
8103
-
8104
7759
 
8105
7760
  /**
8106
7761
  * List of repeated fields within this message type.
@@ -95,15 +95,6 @@ type CabinetGRPCCreateOpenRequest = {
95
95
  readonly responseType: typeof spic_cabinet_pb.CabinetProto.OpenRequest;
96
96
  };
97
97
 
98
- type CabinetGRPCCanOpen = {
99
- readonly methodName: string;
100
- readonly service: typeof CabinetGRPC;
101
- readonly requestStream: false;
102
- readonly responseStream: false;
103
- readonly requestType: typeof spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenRequest;
104
- readonly responseType: typeof spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenReply;
105
- };
106
-
107
98
  type CabinetGRPCSearchOpenRequests = {
108
99
  readonly methodName: string;
109
100
  readonly service: typeof CabinetGRPC;
@@ -134,7 +125,6 @@ export class CabinetGRPC {
134
125
  static readonly SearchStates: CabinetGRPCSearchStates;
135
126
  static readonly SearchEvents: CabinetGRPCSearchEvents;
136
127
  static readonly CreateOpenRequest: CabinetGRPCCreateOpenRequest;
137
- static readonly CanOpen: CabinetGRPCCanOpen;
138
128
  static readonly SearchOpenRequests: CabinetGRPCSearchOpenRequests;
139
129
  static readonly DeactivateOpenRequest: CabinetGRPCDeactivateOpenRequest;
140
130
  }
@@ -295,15 +285,6 @@ export class CabinetGRPCClient {
295
285
  requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest,
296
286
  callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest|null) => void
297
287
  ): UnaryResponse;
298
- canOpen(
299
- requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenRequest,
300
- metadata: grpc.Metadata,
301
- callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenReply|null) => void
302
- ): UnaryResponse;
303
- canOpen(
304
- requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenRequest,
305
- callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenReply|null) => void
306
- ): UnaryResponse;
307
288
  searchOpenRequests(
308
289
  requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.SearchRequest,
309
290
  metadata: grpc.Metadata,
@@ -101,15 +101,6 @@ CabinetGRPC.CreateOpenRequest = {
101
101
  responseType: spic_cabinet_pb.CabinetProto.OpenRequest
102
102
  };
103
103
 
104
- CabinetGRPC.CanOpen = {
105
- methodName: "CanOpen",
106
- service: CabinetGRPC,
107
- requestStream: false,
108
- responseStream: false,
109
- requestType: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenRequest,
110
- responseType: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenReply
111
- };
112
-
113
104
  CabinetGRPC.SearchOpenRequests = {
114
105
  methodName: "SearchOpenRequests",
115
106
  service: CabinetGRPC,
@@ -445,37 +436,6 @@ CabinetGRPCClient.prototype.createOpenRequest = function createOpenRequest(reque
445
436
  };
446
437
  };
447
438
 
448
- CabinetGRPCClient.prototype.canOpen = function canOpen(requestMessage, metadata, callback) {
449
- if (arguments.length === 2) {
450
- callback = arguments[1];
451
- }
452
- var client = grpc.unary(CabinetGRPC.CanOpen, {
453
- request: requestMessage,
454
- host: this.serviceHost,
455
- metadata: metadata,
456
- transport: this.options.transport,
457
- debug: this.options.debug,
458
- onEnd: function (response) {
459
- if (callback) {
460
- if (response.status !== grpc.Code.OK) {
461
- var err = new Error(response.statusMessage);
462
- err.code = response.status;
463
- err.metadata = response.trailers;
464
- callback(err, null);
465
- } else {
466
- callback(null, response.message);
467
- }
468
- }
469
- }
470
- });
471
- return {
472
- cancel: function () {
473
- callback = null;
474
- client.close();
475
- }
476
- };
477
- };
478
-
479
439
  CabinetGRPCClient.prototype.searchOpenRequests = function searchOpenRequests(requestMessage, metadata, callback) {
480
440
  if (arguments.length === 2) {
481
441
  callback = arguments[1];