@aceplus/smartace-api 2.9.0-alpha.1 → 2.9.0-alpha.10
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/auth.account_pb.d.ts +36 -0
- package/auth.account_pb.js +273 -1
- package/auth.account_pb_service.d.ts +22 -3
- package/auth.account_pb_service.js +41 -1
- package/package.json +1 -1
- package/platform.local_account_pb_service.d.ts +22 -3
- package/platform.local_account_pb_service.js +41 -1
- package/spic.cabinet_pb.d.ts +9 -56
- package/spic.cabinet_pb.js +64 -439
- package/spic.cabinet_pb_service.d.ts +0 -19
- package/spic.cabinet_pb_service.js +0 -40
package/auth.account_pb.d.ts
CHANGED
|
@@ -258,6 +258,9 @@ export namespace AccountProto {
|
|
|
258
258
|
getConfirmpassword(): string;
|
|
259
259
|
setConfirmpassword(value: string): void;
|
|
260
260
|
|
|
261
|
+
getEmail(): string;
|
|
262
|
+
setEmail(value: string): void;
|
|
263
|
+
|
|
261
264
|
serializeBinary(): Uint8Array;
|
|
262
265
|
toObject(includeInstance?: boolean): ActivateAccountRequest.AsObject;
|
|
263
266
|
static toObject(includeInstance: boolean, msg: ActivateAccountRequest): ActivateAccountRequest.AsObject;
|
|
@@ -273,6 +276,7 @@ export namespace AccountProto {
|
|
|
273
276
|
accountconfirmationtoken: number,
|
|
274
277
|
password: string,
|
|
275
278
|
confirmpassword: string,
|
|
279
|
+
email: string,
|
|
276
280
|
}
|
|
277
281
|
}
|
|
278
282
|
|
|
@@ -296,6 +300,38 @@ export namespace AccountProto {
|
|
|
296
300
|
}
|
|
297
301
|
}
|
|
298
302
|
|
|
303
|
+
export class ResetPasswordRequest extends jspb.Message {
|
|
304
|
+
getAccountconfirmationtoken(): number;
|
|
305
|
+
setAccountconfirmationtoken(value: number): void;
|
|
306
|
+
|
|
307
|
+
getPassword(): string;
|
|
308
|
+
setPassword(value: string): void;
|
|
309
|
+
|
|
310
|
+
getConfirmpassword(): string;
|
|
311
|
+
setConfirmpassword(value: string): void;
|
|
312
|
+
|
|
313
|
+
getEmail(): string;
|
|
314
|
+
setEmail(value: string): void;
|
|
315
|
+
|
|
316
|
+
serializeBinary(): Uint8Array;
|
|
317
|
+
toObject(includeInstance?: boolean): ResetPasswordRequest.AsObject;
|
|
318
|
+
static toObject(includeInstance: boolean, msg: ResetPasswordRequest): ResetPasswordRequest.AsObject;
|
|
319
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
320
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
321
|
+
static serializeBinaryToWriter(message: ResetPasswordRequest, writer: jspb.BinaryWriter): void;
|
|
322
|
+
static deserializeBinary(bytes: Uint8Array): ResetPasswordRequest;
|
|
323
|
+
static deserializeBinaryFromReader(message: ResetPasswordRequest, reader: jspb.BinaryReader): ResetPasswordRequest;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export namespace ResetPasswordRequest {
|
|
327
|
+
export type AsObject = {
|
|
328
|
+
accountconfirmationtoken: number,
|
|
329
|
+
password: string,
|
|
330
|
+
confirmpassword: string,
|
|
331
|
+
email: string,
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
299
335
|
export class ChangePasswordRequest extends jspb.Message {
|
|
300
336
|
getId(): number;
|
|
301
337
|
setId(value: number): void;
|
package/auth.account_pb.js
CHANGED
|
@@ -42,6 +42,7 @@ goog.exportSymbol('proto.Auth.AccountProto.DeleteReply', null, global);
|
|
|
42
42
|
goog.exportSymbol('proto.Auth.AccountProto.DeleteRequest', null, global);
|
|
43
43
|
goog.exportSymbol('proto.Auth.AccountProto.ForgotPasswordRequest', null, global);
|
|
44
44
|
goog.exportSymbol('proto.Auth.AccountProto.ResendInvitationRequest', null, global);
|
|
45
|
+
goog.exportSymbol('proto.Auth.AccountProto.ResetPasswordRequest', null, global);
|
|
45
46
|
goog.exportSymbol('proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply', null, global);
|
|
46
47
|
goog.exportSymbol('proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest', null, global);
|
|
47
48
|
goog.exportSymbol('proto.Auth.AccountProto.RetrievePushInfoReply', null, global);
|
|
@@ -244,6 +245,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
244
245
|
*/
|
|
245
246
|
proto.Auth.AccountProto.ForgotPasswordRequest.displayName = 'proto.Auth.AccountProto.ForgotPasswordRequest';
|
|
246
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* Generated by JsPbCodeGenerator.
|
|
250
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
251
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
252
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
253
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
254
|
+
* valid.
|
|
255
|
+
* @extends {jspb.Message}
|
|
256
|
+
* @constructor
|
|
257
|
+
*/
|
|
258
|
+
proto.Auth.AccountProto.ResetPasswordRequest = function(opt_data) {
|
|
259
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
260
|
+
};
|
|
261
|
+
goog.inherits(proto.Auth.AccountProto.ResetPasswordRequest, jspb.Message);
|
|
262
|
+
if (goog.DEBUG && !COMPILED) {
|
|
263
|
+
/**
|
|
264
|
+
* @public
|
|
265
|
+
* @override
|
|
266
|
+
*/
|
|
267
|
+
proto.Auth.AccountProto.ResetPasswordRequest.displayName = 'proto.Auth.AccountProto.ResetPasswordRequest';
|
|
268
|
+
}
|
|
247
269
|
/**
|
|
248
270
|
* Generated by JsPbCodeGenerator.
|
|
249
271
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2182,7 +2204,8 @@ proto.Auth.AccountProto.ActivateAccountRequest.toObject = function(includeInstan
|
|
|
2182
2204
|
var f, obj = {
|
|
2183
2205
|
accountconfirmationtoken: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2184
2206
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2185
|
-
confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
2207
|
+
confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2208
|
+
email: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2186
2209
|
};
|
|
2187
2210
|
|
|
2188
2211
|
if (includeInstance) {
|
|
@@ -2231,6 +2254,10 @@ proto.Auth.AccountProto.ActivateAccountRequest.deserializeBinaryFromReader = fun
|
|
|
2231
2254
|
var value = /** @type {string} */ (reader.readString());
|
|
2232
2255
|
msg.setConfirmpassword(value);
|
|
2233
2256
|
break;
|
|
2257
|
+
case 4:
|
|
2258
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2259
|
+
msg.setEmail(value);
|
|
2260
|
+
break;
|
|
2234
2261
|
default:
|
|
2235
2262
|
reader.skipField();
|
|
2236
2263
|
break;
|
|
@@ -2281,6 +2308,13 @@ proto.Auth.AccountProto.ActivateAccountRequest.serializeBinaryToWriter = functio
|
|
|
2281
2308
|
f
|
|
2282
2309
|
);
|
|
2283
2310
|
}
|
|
2311
|
+
f = message.getEmail();
|
|
2312
|
+
if (f.length > 0) {
|
|
2313
|
+
writer.writeString(
|
|
2314
|
+
4,
|
|
2315
|
+
f
|
|
2316
|
+
);
|
|
2317
|
+
}
|
|
2284
2318
|
};
|
|
2285
2319
|
|
|
2286
2320
|
|
|
@@ -2338,6 +2372,24 @@ proto.Auth.AccountProto.ActivateAccountRequest.prototype.setConfirmpassword = fu
|
|
|
2338
2372
|
};
|
|
2339
2373
|
|
|
2340
2374
|
|
|
2375
|
+
/**
|
|
2376
|
+
* optional string email = 4;
|
|
2377
|
+
* @return {string}
|
|
2378
|
+
*/
|
|
2379
|
+
proto.Auth.AccountProto.ActivateAccountRequest.prototype.getEmail = function() {
|
|
2380
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2381
|
+
};
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
/**
|
|
2385
|
+
* @param {string} value
|
|
2386
|
+
* @return {!proto.Auth.AccountProto.ActivateAccountRequest} returns this
|
|
2387
|
+
*/
|
|
2388
|
+
proto.Auth.AccountProto.ActivateAccountRequest.prototype.setEmail = function(value) {
|
|
2389
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2390
|
+
};
|
|
2391
|
+
|
|
2392
|
+
|
|
2341
2393
|
|
|
2342
2394
|
|
|
2343
2395
|
|
|
@@ -2471,6 +2523,226 @@ proto.Auth.AccountProto.ForgotPasswordRequest.prototype.setEmail = function(valu
|
|
|
2471
2523
|
|
|
2472
2524
|
|
|
2473
2525
|
|
|
2526
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2527
|
+
/**
|
|
2528
|
+
* Creates an object representation of this proto.
|
|
2529
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2530
|
+
* Optional fields that are not set will be set to undefined.
|
|
2531
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2532
|
+
* For the list of reserved names please see:
|
|
2533
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2534
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2535
|
+
* JSPB instance for transitional soy proto support:
|
|
2536
|
+
* http://goto/soy-param-migration
|
|
2537
|
+
* @return {!Object}
|
|
2538
|
+
*/
|
|
2539
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2540
|
+
return proto.Auth.AccountProto.ResetPasswordRequest.toObject(opt_includeInstance, this);
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* Static version of the {@see toObject} method.
|
|
2546
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2547
|
+
* the JSPB instance for transitional soy proto support:
|
|
2548
|
+
* http://goto/soy-param-migration
|
|
2549
|
+
* @param {!proto.Auth.AccountProto.ResetPasswordRequest} msg The msg instance to transform.
|
|
2550
|
+
* @return {!Object}
|
|
2551
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2552
|
+
*/
|
|
2553
|
+
proto.Auth.AccountProto.ResetPasswordRequest.toObject = function(includeInstance, msg) {
|
|
2554
|
+
var f, obj = {
|
|
2555
|
+
accountconfirmationtoken: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2556
|
+
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2557
|
+
confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2558
|
+
email: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2559
|
+
};
|
|
2560
|
+
|
|
2561
|
+
if (includeInstance) {
|
|
2562
|
+
obj.$jspbMessageInstance = msg;
|
|
2563
|
+
}
|
|
2564
|
+
return obj;
|
|
2565
|
+
};
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
/**
|
|
2570
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2571
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2572
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest}
|
|
2573
|
+
*/
|
|
2574
|
+
proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinary = function(bytes) {
|
|
2575
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2576
|
+
var msg = new proto.Auth.AccountProto.ResetPasswordRequest;
|
|
2577
|
+
return proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinaryFromReader(msg, reader);
|
|
2578
|
+
};
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
/**
|
|
2582
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2583
|
+
* given reader into the given message object.
|
|
2584
|
+
* @param {!proto.Auth.AccountProto.ResetPasswordRequest} msg The message object to deserialize into.
|
|
2585
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2586
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest}
|
|
2587
|
+
*/
|
|
2588
|
+
proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2589
|
+
while (reader.nextField()) {
|
|
2590
|
+
if (reader.isEndGroup()) {
|
|
2591
|
+
break;
|
|
2592
|
+
}
|
|
2593
|
+
var field = reader.getFieldNumber();
|
|
2594
|
+
switch (field) {
|
|
2595
|
+
case 1:
|
|
2596
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2597
|
+
msg.setAccountconfirmationtoken(value);
|
|
2598
|
+
break;
|
|
2599
|
+
case 2:
|
|
2600
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2601
|
+
msg.setPassword(value);
|
|
2602
|
+
break;
|
|
2603
|
+
case 3:
|
|
2604
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2605
|
+
msg.setConfirmpassword(value);
|
|
2606
|
+
break;
|
|
2607
|
+
case 4:
|
|
2608
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2609
|
+
msg.setEmail(value);
|
|
2610
|
+
break;
|
|
2611
|
+
default:
|
|
2612
|
+
reader.skipField();
|
|
2613
|
+
break;
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
return msg;
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
/**
|
|
2621
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2622
|
+
* @return {!Uint8Array}
|
|
2623
|
+
*/
|
|
2624
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.serializeBinary = function() {
|
|
2625
|
+
var writer = new jspb.BinaryWriter();
|
|
2626
|
+
proto.Auth.AccountProto.ResetPasswordRequest.serializeBinaryToWriter(this, writer);
|
|
2627
|
+
return writer.getResultBuffer();
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2633
|
+
* format), writing to the given BinaryWriter.
|
|
2634
|
+
* @param {!proto.Auth.AccountProto.ResetPasswordRequest} message
|
|
2635
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2636
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2637
|
+
*/
|
|
2638
|
+
proto.Auth.AccountProto.ResetPasswordRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2639
|
+
var f = undefined;
|
|
2640
|
+
f = message.getAccountconfirmationtoken();
|
|
2641
|
+
if (f !== 0) {
|
|
2642
|
+
writer.writeInt32(
|
|
2643
|
+
1,
|
|
2644
|
+
f
|
|
2645
|
+
);
|
|
2646
|
+
}
|
|
2647
|
+
f = message.getPassword();
|
|
2648
|
+
if (f.length > 0) {
|
|
2649
|
+
writer.writeString(
|
|
2650
|
+
2,
|
|
2651
|
+
f
|
|
2652
|
+
);
|
|
2653
|
+
}
|
|
2654
|
+
f = message.getConfirmpassword();
|
|
2655
|
+
if (f.length > 0) {
|
|
2656
|
+
writer.writeString(
|
|
2657
|
+
3,
|
|
2658
|
+
f
|
|
2659
|
+
);
|
|
2660
|
+
}
|
|
2661
|
+
f = message.getEmail();
|
|
2662
|
+
if (f.length > 0) {
|
|
2663
|
+
writer.writeString(
|
|
2664
|
+
4,
|
|
2665
|
+
f
|
|
2666
|
+
);
|
|
2667
|
+
}
|
|
2668
|
+
};
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* optional int32 accountConfirmationToken = 1;
|
|
2673
|
+
* @return {number}
|
|
2674
|
+
*/
|
|
2675
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.getAccountconfirmationtoken = function() {
|
|
2676
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2677
|
+
};
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* @param {number} value
|
|
2682
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
|
|
2683
|
+
*/
|
|
2684
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.setAccountconfirmationtoken = function(value) {
|
|
2685
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
/**
|
|
2690
|
+
* optional string password = 2;
|
|
2691
|
+
* @return {string}
|
|
2692
|
+
*/
|
|
2693
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.getPassword = function() {
|
|
2694
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
|
|
2698
|
+
/**
|
|
2699
|
+
* @param {string} value
|
|
2700
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
|
|
2701
|
+
*/
|
|
2702
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.setPassword = function(value) {
|
|
2703
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2704
|
+
};
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
/**
|
|
2708
|
+
* optional string confirmPassword = 3;
|
|
2709
|
+
* @return {string}
|
|
2710
|
+
*/
|
|
2711
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.getConfirmpassword = function() {
|
|
2712
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* @param {string} value
|
|
2718
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
|
|
2719
|
+
*/
|
|
2720
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.setConfirmpassword = function(value) {
|
|
2721
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2722
|
+
};
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
/**
|
|
2726
|
+
* optional string email = 4;
|
|
2727
|
+
* @return {string}
|
|
2728
|
+
*/
|
|
2729
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.getEmail = function() {
|
|
2730
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2731
|
+
};
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* @param {string} value
|
|
2736
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
|
|
2737
|
+
*/
|
|
2738
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.setEmail = function(value) {
|
|
2739
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
|
|
2474
2746
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2475
2747
|
/**
|
|
2476
2748
|
* Creates an object representation of this proto.
|
|
@@ -157,7 +157,16 @@ 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
|
|
160
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
type ClusterAccountGRPCResetPassword = {
|
|
164
|
+
readonly methodName: string;
|
|
165
|
+
readonly service: typeof ClusterAccountGRPC;
|
|
166
|
+
readonly requestStream: false;
|
|
167
|
+
readonly responseStream: false;
|
|
168
|
+
readonly requestType: typeof auth_account_pb.AccountProto.ResetPasswordRequest;
|
|
169
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
161
170
|
};
|
|
162
171
|
|
|
163
172
|
type ClusterAccountGRPCChangePassword = {
|
|
@@ -234,6 +243,7 @@ export class ClusterAccountGRPC {
|
|
|
234
243
|
static readonly SearchApp: ClusterAccountGRPCSearchApp;
|
|
235
244
|
static readonly ActivateAccount: ClusterAccountGRPCActivateAccount;
|
|
236
245
|
static readonly ForgotPassword: ClusterAccountGRPCForgotPassword;
|
|
246
|
+
static readonly ResetPassword: ClusterAccountGRPCResetPassword;
|
|
237
247
|
static readonly ChangePassword: ClusterAccountGRPCChangePassword;
|
|
238
248
|
static readonly SetAccountScope: ClusterAccountGRPCSetAccountScope;
|
|
239
249
|
static readonly RetrievePushInfo: ClusterAccountGRPCRetrievePushInfo;
|
|
@@ -419,11 +429,20 @@ export class ClusterAccountGRPCClient {
|
|
|
419
429
|
forgotPassword(
|
|
420
430
|
requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
421
431
|
metadata: grpc.Metadata,
|
|
422
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
432
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
423
433
|
): UnaryResponse;
|
|
424
434
|
forgotPassword(
|
|
425
435
|
requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
426
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
436
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
437
|
+
): UnaryResponse;
|
|
438
|
+
resetPassword(
|
|
439
|
+
requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
440
|
+
metadata: grpc.Metadata,
|
|
441
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
442
|
+
): UnaryResponse;
|
|
443
|
+
resetPassword(
|
|
444
|
+
requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
445
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
427
446
|
): UnaryResponse;
|
|
428
447
|
changePassword(
|
|
429
448
|
requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
|
|
@@ -384,7 +384,16 @@ ClusterAccountGRPC.ForgotPassword = {
|
|
|
384
384
|
requestStream: false,
|
|
385
385
|
responseStream: false,
|
|
386
386
|
requestType: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
387
|
-
responseType:
|
|
387
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
ClusterAccountGRPC.ResetPassword = {
|
|
391
|
+
methodName: "ResetPassword",
|
|
392
|
+
service: ClusterAccountGRPC,
|
|
393
|
+
requestStream: false,
|
|
394
|
+
responseStream: false,
|
|
395
|
+
requestType: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
396
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
388
397
|
};
|
|
389
398
|
|
|
390
399
|
ClusterAccountGRPC.ChangePassword = {
|
|
@@ -736,6 +745,37 @@ ClusterAccountGRPCClient.prototype.forgotPassword = function forgotPassword(requ
|
|
|
736
745
|
};
|
|
737
746
|
};
|
|
738
747
|
|
|
748
|
+
ClusterAccountGRPCClient.prototype.resetPassword = function resetPassword(requestMessage, metadata, callback) {
|
|
749
|
+
if (arguments.length === 2) {
|
|
750
|
+
callback = arguments[1];
|
|
751
|
+
}
|
|
752
|
+
var client = grpc.unary(ClusterAccountGRPC.ResetPassword, {
|
|
753
|
+
request: requestMessage,
|
|
754
|
+
host: this.serviceHost,
|
|
755
|
+
metadata: metadata,
|
|
756
|
+
transport: this.options.transport,
|
|
757
|
+
debug: this.options.debug,
|
|
758
|
+
onEnd: function (response) {
|
|
759
|
+
if (callback) {
|
|
760
|
+
if (response.status !== grpc.Code.OK) {
|
|
761
|
+
var err = new Error(response.statusMessage);
|
|
762
|
+
err.code = response.status;
|
|
763
|
+
err.metadata = response.trailers;
|
|
764
|
+
callback(err, null);
|
|
765
|
+
} else {
|
|
766
|
+
callback(null, response.message);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
return {
|
|
772
|
+
cancel: function () {
|
|
773
|
+
callback = null;
|
|
774
|
+
client.close();
|
|
775
|
+
}
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
|
|
739
779
|
ClusterAccountGRPCClient.prototype.changePassword = function changePassword(requestMessage, metadata, callback) {
|
|
740
780
|
if (arguments.length === 2) {
|
|
741
781
|
callback = arguments[1];
|
package/package.json
CHANGED
|
@@ -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
|
|
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:
|
|
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:
|
|
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:
|
|
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];
|
package/spic.cabinet_pb.d.ts
CHANGED
|
@@ -512,6 +512,12 @@ 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
|
+
|
|
515
521
|
serializeBinary(): Uint8Array;
|
|
516
522
|
toObject(includeInstance?: boolean): State.AsObject;
|
|
517
523
|
static toObject(includeInstance: boolean, msg: State): State.AsObject;
|
|
@@ -542,6 +548,8 @@ export namespace CabinetProto {
|
|
|
542
548
|
crc: string,
|
|
543
549
|
settingNumber: number,
|
|
544
550
|
cabinetId: number,
|
|
551
|
+
batteryEstimator: number,
|
|
552
|
+
batteryEmpty: boolean,
|
|
545
553
|
}
|
|
546
554
|
|
|
547
555
|
export class SearchRequest extends jspb.Message {
|
|
@@ -1039,9 +1047,6 @@ export namespace CabinetProto {
|
|
|
1039
1047
|
getId(): number;
|
|
1040
1048
|
setId(value: number): void;
|
|
1041
1049
|
|
|
1042
|
-
getDevicepacketnumber(): number;
|
|
1043
|
-
setDevicepacketnumber(value: number): void;
|
|
1044
|
-
|
|
1045
1050
|
serializeBinary(): Uint8Array;
|
|
1046
1051
|
toObject(includeInstance?: boolean): DeactivateRequest.AsObject;
|
|
1047
1052
|
static toObject(includeInstance: boolean, msg: DeactivateRequest): DeactivateRequest.AsObject;
|
|
@@ -1055,59 +1060,6 @@ export namespace CabinetProto {
|
|
|
1055
1060
|
export namespace DeactivateRequest {
|
|
1056
1061
|
export type AsObject = {
|
|
1057
1062
|
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
1063
|
}
|
|
1112
1064
|
}
|
|
1113
1065
|
|
|
@@ -1229,6 +1181,7 @@ export namespace CabinetProto {
|
|
|
1229
1181
|
TAMPER: 9;
|
|
1230
1182
|
HIGH_TEMP: 10;
|
|
1231
1183
|
CRIT_TEMP: 11;
|
|
1184
|
+
EXT_IO_3: 12;
|
|
1232
1185
|
}
|
|
1233
1186
|
|
|
1234
1187
|
export const AlarmType: AlarmTypeMap;
|
package/spic.cabinet_pb.js
CHANGED
|
@@ -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,9 @@ 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)
|
|
3673
3632
|
};
|
|
3674
3633
|
|
|
3675
3634
|
if (includeInstance) {
|
|
@@ -3781,6 +3740,14 @@ proto.Spic.CabinetProto.State.deserializeBinaryFromReader = function(msg, reader
|
|
|
3781
3740
|
var value = /** @type {number} */ (reader.readInt64());
|
|
3782
3741
|
msg.setCabinetId(value);
|
|
3783
3742
|
break;
|
|
3743
|
+
case 19:
|
|
3744
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3745
|
+
msg.setBatteryEstimator(value);
|
|
3746
|
+
break;
|
|
3747
|
+
case 20:
|
|
3748
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3749
|
+
msg.setBatteryEmpty(value);
|
|
3750
|
+
break;
|
|
3784
3751
|
default:
|
|
3785
3752
|
reader.skipField();
|
|
3786
3753
|
break;
|
|
@@ -3937,6 +3904,20 @@ proto.Spic.CabinetProto.State.serializeBinaryToWriter = function(message, writer
|
|
|
3937
3904
|
f
|
|
3938
3905
|
);
|
|
3939
3906
|
}
|
|
3907
|
+
f = message.getBatteryEstimator();
|
|
3908
|
+
if (f !== 0) {
|
|
3909
|
+
writer.writeInt32(
|
|
3910
|
+
19,
|
|
3911
|
+
f
|
|
3912
|
+
);
|
|
3913
|
+
}
|
|
3914
|
+
f = message.getBatteryEmpty();
|
|
3915
|
+
if (f) {
|
|
3916
|
+
writer.writeBool(
|
|
3917
|
+
20,
|
|
3918
|
+
f
|
|
3919
|
+
);
|
|
3920
|
+
}
|
|
3940
3921
|
};
|
|
3941
3922
|
|
|
3942
3923
|
|
|
@@ -5154,6 +5135,42 @@ proto.Spic.CabinetProto.State.prototype.setCabinetId = function(value) {
|
|
|
5154
5135
|
};
|
|
5155
5136
|
|
|
5156
5137
|
|
|
5138
|
+
/**
|
|
5139
|
+
* optional int32 battery_estimator = 19;
|
|
5140
|
+
* @return {number}
|
|
5141
|
+
*/
|
|
5142
|
+
proto.Spic.CabinetProto.State.prototype.getBatteryEstimator = function() {
|
|
5143
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
|
|
5144
|
+
};
|
|
5145
|
+
|
|
5146
|
+
|
|
5147
|
+
/**
|
|
5148
|
+
* @param {number} value
|
|
5149
|
+
* @return {!proto.Spic.CabinetProto.State} returns this
|
|
5150
|
+
*/
|
|
5151
|
+
proto.Spic.CabinetProto.State.prototype.setBatteryEstimator = function(value) {
|
|
5152
|
+
return jspb.Message.setProto3IntField(this, 19, value);
|
|
5153
|
+
};
|
|
5154
|
+
|
|
5155
|
+
|
|
5156
|
+
/**
|
|
5157
|
+
* optional bool battery_empty = 20;
|
|
5158
|
+
* @return {boolean}
|
|
5159
|
+
*/
|
|
5160
|
+
proto.Spic.CabinetProto.State.prototype.getBatteryEmpty = function() {
|
|
5161
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false));
|
|
5162
|
+
};
|
|
5163
|
+
|
|
5164
|
+
|
|
5165
|
+
/**
|
|
5166
|
+
* @param {boolean} value
|
|
5167
|
+
* @return {!proto.Spic.CabinetProto.State} returns this
|
|
5168
|
+
*/
|
|
5169
|
+
proto.Spic.CabinetProto.State.prototype.setBatteryEmpty = function(value) {
|
|
5170
|
+
return jspb.Message.setProto3BooleanField(this, 20, value);
|
|
5171
|
+
};
|
|
5172
|
+
|
|
5173
|
+
|
|
5157
5174
|
|
|
5158
5175
|
|
|
5159
5176
|
|
|
@@ -7611,8 +7628,7 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.toObject = funct
|
|
|
7611
7628
|
*/
|
|
7612
7629
|
proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.toObject = function(includeInstance, msg) {
|
|
7613
7630
|
var f, obj = {
|
|
7614
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
7615
|
-
devicepacketnumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
7631
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
7616
7632
|
};
|
|
7617
7633
|
|
|
7618
7634
|
if (includeInstance) {
|
|
@@ -7653,10 +7669,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.deserializeBinaryFromReade
|
|
|
7653
7669
|
var value = /** @type {number} */ (reader.readInt64());
|
|
7654
7670
|
msg.setId(value);
|
|
7655
7671
|
break;
|
|
7656
|
-
case 2:
|
|
7657
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
7658
|
-
msg.setDevicepacketnumber(value);
|
|
7659
|
-
break;
|
|
7660
7672
|
default:
|
|
7661
7673
|
reader.skipField();
|
|
7662
7674
|
break;
|
|
@@ -7693,13 +7705,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.serializeBinaryToWriter =
|
|
|
7693
7705
|
f
|
|
7694
7706
|
);
|
|
7695
7707
|
}
|
|
7696
|
-
f = message.getDevicepacketnumber();
|
|
7697
|
-
if (f !== 0) {
|
|
7698
|
-
writer.writeInt32(
|
|
7699
|
-
2,
|
|
7700
|
-
f
|
|
7701
|
-
);
|
|
7702
|
-
}
|
|
7703
7708
|
};
|
|
7704
7709
|
|
|
7705
7710
|
|
|
@@ -7721,386 +7726,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.setId = function
|
|
|
7721
7726
|
};
|
|
7722
7727
|
|
|
7723
7728
|
|
|
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
7729
|
|
|
8105
7730
|
/**
|
|
8106
7731
|
* 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];
|