@aceplus/smartace-api 3.3.0-alpha.1 → 3.3.0-alpha.2

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.
@@ -448,6 +448,9 @@ export namespace AccountProto {
448
448
  getPushtype(): auth_push_notification_pb.PushNotificationProto.PushTypeMap[keyof auth_push_notification_pb.PushNotificationProto.PushTypeMap];
449
449
  setPushtype(value: auth_push_notification_pb.PushNotificationProto.PushTypeMap[keyof auth_push_notification_pb.PushNotificationProto.PushTypeMap]): void;
450
450
 
451
+ getLocale(): string;
452
+ setLocale(value: string): void;
453
+
451
454
  serializeBinary(): Uint8Array;
452
455
  toObject(includeInstance?: boolean): RetrievePushInfoReply.AsObject;
453
456
  static toObject(includeInstance: boolean, msg: RetrievePushInfoReply): RetrievePushInfoReply.AsObject;
@@ -463,6 +466,7 @@ export namespace AccountProto {
463
466
  id: number,
464
467
  pushToken: string,
465
468
  pushtype: auth_push_notification_pb.PushNotificationProto.PushTypeMap[keyof auth_push_notification_pb.PushNotificationProto.PushTypeMap],
469
+ locale: string,
466
470
  }
467
471
  }
468
472
 
@@ -3346,7 +3346,8 @@ proto.Auth.AccountProto.RetrievePushInfoReply.toObject = function(includeInstanc
3346
3346
  var f, obj = {
3347
3347
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3348
3348
  pushToken: jspb.Message.getFieldWithDefault(msg, 2, ""),
3349
- pushtype: jspb.Message.getFieldWithDefault(msg, 3, 0)
3349
+ pushtype: jspb.Message.getFieldWithDefault(msg, 3, 0),
3350
+ locale: jspb.Message.getFieldWithDefault(msg, 4, "")
3350
3351
  };
3351
3352
 
3352
3353
  if (includeInstance) {
@@ -3395,6 +3396,10 @@ proto.Auth.AccountProto.RetrievePushInfoReply.deserializeBinaryFromReader = func
3395
3396
  var value = /** @type {!proto.Auth.PushNotificationProto.PushType} */ (reader.readEnum());
3396
3397
  msg.setPushtype(value);
3397
3398
  break;
3399
+ case 4:
3400
+ var value = /** @type {string} */ (reader.readString());
3401
+ msg.setLocale(value);
3402
+ break;
3398
3403
  default:
3399
3404
  reader.skipField();
3400
3405
  break;
@@ -3445,6 +3450,13 @@ proto.Auth.AccountProto.RetrievePushInfoReply.serializeBinaryToWriter = function
3445
3450
  f
3446
3451
  );
3447
3452
  }
3453
+ f = message.getLocale();
3454
+ if (f.length > 0) {
3455
+ writer.writeString(
3456
+ 4,
3457
+ f
3458
+ );
3459
+ }
3448
3460
  };
3449
3461
 
3450
3462
 
@@ -3502,6 +3514,24 @@ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.setPushtype = function(v
3502
3514
  };
3503
3515
 
3504
3516
 
3517
+ /**
3518
+ * optional string locale = 4;
3519
+ * @return {string}
3520
+ */
3521
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.getLocale = function() {
3522
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3523
+ };
3524
+
3525
+
3526
+ /**
3527
+ * @param {string} value
3528
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoReply} returns this
3529
+ */
3530
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.setLocale = function(value) {
3531
+ return jspb.Message.setProto3StringField(this, 4, value);
3532
+ };
3533
+
3534
+
3505
3535
 
3506
3536
  /**
3507
3537
  * List of repeated fields within this message type.
@@ -33,15 +33,6 @@ export namespace PushNotificationProto {
33
33
  getTag(): PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap];
34
34
  setTag(value: PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap]): void;
35
35
 
36
- getError(): string;
37
- setError(value: string): void;
38
-
39
- getOperatorname(): string;
40
- setOperatorname(value: string): void;
41
-
42
- getLocale(): string;
43
- setLocale(value: string): void;
44
-
45
36
  serializeBinary(): Uint8Array;
46
37
  toObject(includeInstance?: boolean): OpenRequest.AsObject;
47
38
  static toObject(includeInstance: boolean, msg: OpenRequest): OpenRequest.AsObject;
@@ -58,113 +49,6 @@ export namespace PushNotificationProto {
58
49
  cabinetname: string,
59
50
  cabinetid: number,
60
51
  tag: PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap],
61
- error: string,
62
- operatorname: string,
63
- locale: string,
64
- }
65
- }
66
-
67
- export class ActiveRequest extends jspb.Message {
68
- getAccountid(): number;
69
- setAccountid(value: number): void;
70
-
71
- getOperator(): string;
72
- setOperator(value: string): void;
73
-
74
- getAccepted(): boolean;
75
- setAccepted(value: boolean): void;
76
-
77
- getTag(): PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap];
78
- setTag(value: PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap]): void;
79
-
80
- getLocale(): string;
81
- setLocale(value: string): void;
82
-
83
- serializeBinary(): Uint8Array;
84
- toObject(includeInstance?: boolean): ActiveRequest.AsObject;
85
- static toObject(includeInstance: boolean, msg: ActiveRequest): ActiveRequest.AsObject;
86
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
87
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
88
- static serializeBinaryToWriter(message: ActiveRequest, writer: jspb.BinaryWriter): void;
89
- static deserializeBinary(bytes: Uint8Array): ActiveRequest;
90
- static deserializeBinaryFromReader(message: ActiveRequest, reader: jspb.BinaryReader): ActiveRequest;
91
- }
92
-
93
- export namespace ActiveRequest {
94
- export type AsObject = {
95
- accountid: number,
96
- operator: string,
97
- accepted: boolean,
98
- tag: PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap],
99
- locale: string,
100
- }
101
- }
102
-
103
- export class InfoPushRequest extends jspb.Message {
104
- getAccountid(): number;
105
- setAccountid(value: number): void;
106
-
107
- getCabinetname(): string;
108
- setCabinetname(value: string): void;
109
-
110
- getStatus(): string;
111
- setStatus(value: string): void;
112
-
113
- getLocale(): string;
114
- setLocale(value: string): void;
115
-
116
- getPushtype(): PushNotificationProto.PushTypeMap[keyof PushNotificationProto.PushTypeMap];
117
- setPushtype(value: PushNotificationProto.PushTypeMap[keyof PushNotificationProto.PushTypeMap]): void;
118
-
119
- serializeBinary(): Uint8Array;
120
- toObject(includeInstance?: boolean): InfoPushRequest.AsObject;
121
- static toObject(includeInstance: boolean, msg: InfoPushRequest): InfoPushRequest.AsObject;
122
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
123
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
124
- static serializeBinaryToWriter(message: InfoPushRequest, writer: jspb.BinaryWriter): void;
125
- static deserializeBinary(bytes: Uint8Array): InfoPushRequest;
126
- static deserializeBinaryFromReader(message: InfoPushRequest, reader: jspb.BinaryReader): InfoPushRequest;
127
- }
128
-
129
- export namespace InfoPushRequest {
130
- export type AsObject = {
131
- accountid: number,
132
- cabinetname: string,
133
- status: string,
134
- locale: string,
135
- pushtype: PushNotificationProto.PushTypeMap[keyof PushNotificationProto.PushTypeMap],
136
- }
137
- }
138
-
139
- export class ExpiredOpeningRequest extends jspb.Message {
140
- getAccountid(): number;
141
- setAccountid(value: number): void;
142
-
143
- getCabinetname(): string;
144
- setCabinetname(value: string): void;
145
-
146
- getLocale(): string;
147
- setLocale(value: string): void;
148
-
149
- getJobid(): string;
150
- setJobid(value: string): void;
151
-
152
- serializeBinary(): Uint8Array;
153
- toObject(includeInstance?: boolean): ExpiredOpeningRequest.AsObject;
154
- static toObject(includeInstance: boolean, msg: ExpiredOpeningRequest): ExpiredOpeningRequest.AsObject;
155
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
156
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
157
- static serializeBinaryToWriter(message: ExpiredOpeningRequest, writer: jspb.BinaryWriter): void;
158
- static deserializeBinary(bytes: Uint8Array): ExpiredOpeningRequest;
159
- static deserializeBinaryFromReader(message: ExpiredOpeningRequest, reader: jspb.BinaryReader): ExpiredOpeningRequest;
160
- }
161
-
162
- export namespace ExpiredOpeningRequest {
163
- export type AsObject = {
164
- accountid: number,
165
- cabinetname: string,
166
- locale: string,
167
- jobid: string,
168
52
  }
169
53
  }
170
54
 
@@ -177,9 +61,7 @@ export namespace PushNotificationProto {
177
61
 
178
62
  export interface TagMap {
179
63
  OPENING: 0;
180
- ACTIVE: 1;
181
- DELETED: 3;
182
- CLOSED: 4;
64
+ CLOSED: 1;
183
65
  }
184
66
 
185
67
  export const Tag: TagMap;
@@ -26,9 +26,6 @@ goog.object.extend(proto, google_protobuf_empty_pb);
26
26
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
27
  goog.object.extend(proto, google_api_annotations_pb);
28
28
  goog.exportSymbol('proto.Auth.PushNotificationProto', null, global);
29
- goog.exportSymbol('proto.Auth.PushNotificationProto.ActiveRequest', null, global);
30
- goog.exportSymbol('proto.Auth.PushNotificationProto.ExpiredOpeningRequest', null, global);
31
- goog.exportSymbol('proto.Auth.PushNotificationProto.InfoPushRequest', null, global);
32
29
  goog.exportSymbol('proto.Auth.PushNotificationProto.OpenRequest', null, global);
33
30
  goog.exportSymbol('proto.Auth.PushNotificationProto.PushType', null, global);
34
31
  goog.exportSymbol('proto.Auth.PushNotificationProto.Tag', null, global);
@@ -74,69 +71,6 @@ if (goog.DEBUG && !COMPILED) {
74
71
  */
75
72
  proto.Auth.PushNotificationProto.OpenRequest.displayName = 'proto.Auth.PushNotificationProto.OpenRequest';
76
73
  }
77
- /**
78
- * Generated by JsPbCodeGenerator.
79
- * @param {Array=} opt_data Optional initial data array, typically from a
80
- * server response, or constructed directly in Javascript. The array is used
81
- * in place and becomes part of the constructed object. It is not cloned.
82
- * If no data is provided, the constructed object will be empty, but still
83
- * valid.
84
- * @extends {jspb.Message}
85
- * @constructor
86
- */
87
- proto.Auth.PushNotificationProto.ActiveRequest = function(opt_data) {
88
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
- };
90
- goog.inherits(proto.Auth.PushNotificationProto.ActiveRequest, jspb.Message);
91
- if (goog.DEBUG && !COMPILED) {
92
- /**
93
- * @public
94
- * @override
95
- */
96
- proto.Auth.PushNotificationProto.ActiveRequest.displayName = 'proto.Auth.PushNotificationProto.ActiveRequest';
97
- }
98
- /**
99
- * Generated by JsPbCodeGenerator.
100
- * @param {Array=} opt_data Optional initial data array, typically from a
101
- * server response, or constructed directly in Javascript. The array is used
102
- * in place and becomes part of the constructed object. It is not cloned.
103
- * If no data is provided, the constructed object will be empty, but still
104
- * valid.
105
- * @extends {jspb.Message}
106
- * @constructor
107
- */
108
- proto.Auth.PushNotificationProto.InfoPushRequest = function(opt_data) {
109
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
- };
111
- goog.inherits(proto.Auth.PushNotificationProto.InfoPushRequest, jspb.Message);
112
- if (goog.DEBUG && !COMPILED) {
113
- /**
114
- * @public
115
- * @override
116
- */
117
- proto.Auth.PushNotificationProto.InfoPushRequest.displayName = 'proto.Auth.PushNotificationProto.InfoPushRequest';
118
- }
119
- /**
120
- * Generated by JsPbCodeGenerator.
121
- * @param {Array=} opt_data Optional initial data array, typically from a
122
- * server response, or constructed directly in Javascript. The array is used
123
- * in place and becomes part of the constructed object. It is not cloned.
124
- * If no data is provided, the constructed object will be empty, but still
125
- * valid.
126
- * @extends {jspb.Message}
127
- * @constructor
128
- */
129
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest = function(opt_data) {
130
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
- };
132
- goog.inherits(proto.Auth.PushNotificationProto.ExpiredOpeningRequest, jspb.Message);
133
- if (goog.DEBUG && !COMPILED) {
134
- /**
135
- * @public
136
- * @override
137
- */
138
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.displayName = 'proto.Auth.PushNotificationProto.ExpiredOpeningRequest';
139
- }
140
74
 
141
75
 
142
76
 
@@ -251,9 +185,7 @@ proto.Auth.PushNotificationProto.PushType = {
251
185
  */
252
186
  proto.Auth.PushNotificationProto.Tag = {
253
187
  OPENING: 0,
254
- ACTIVE: 1,
255
- DELETED: 3,
256
- CLOSED: 4
188
+ CLOSED: 1
257
189
  };
258
190
 
259
191
 
@@ -291,10 +223,7 @@ proto.Auth.PushNotificationProto.OpenRequest.toObject = function(includeInstance
291
223
  accountid: jspb.Message.getFieldWithDefault(msg, 1, 0),
292
224
  cabinetname: jspb.Message.getFieldWithDefault(msg, 2, ""),
293
225
  cabinetid: jspb.Message.getFieldWithDefault(msg, 3, 0),
294
- tag: jspb.Message.getFieldWithDefault(msg, 4, 0),
295
- error: jspb.Message.getFieldWithDefault(msg, 5, ""),
296
- operatorname: jspb.Message.getFieldWithDefault(msg, 6, ""),
297
- locale: jspb.Message.getFieldWithDefault(msg, 7, "")
226
+ tag: jspb.Message.getFieldWithDefault(msg, 4, 0)
298
227
  };
299
228
 
300
229
  if (includeInstance) {
@@ -347,18 +276,6 @@ proto.Auth.PushNotificationProto.OpenRequest.deserializeBinaryFromReader = funct
347
276
  var value = /** @type {!proto.Auth.PushNotificationProto.Tag} */ (reader.readEnum());
348
277
  msg.setTag(value);
349
278
  break;
350
- case 5:
351
- var value = /** @type {string} */ (reader.readString());
352
- msg.setError(value);
353
- break;
354
- case 6:
355
- var value = /** @type {string} */ (reader.readString());
356
- msg.setOperatorname(value);
357
- break;
358
- case 7:
359
- var value = /** @type {string} */ (reader.readString());
360
- msg.setLocale(value);
361
- break;
362
279
  default:
363
280
  reader.skipField();
364
281
  break;
@@ -416,27 +333,6 @@ proto.Auth.PushNotificationProto.OpenRequest.serializeBinaryToWriter = function(
416
333
  f
417
334
  );
418
335
  }
419
- f = message.getError();
420
- if (f.length > 0) {
421
- writer.writeString(
422
- 5,
423
- f
424
- );
425
- }
426
- f = message.getOperatorname();
427
- if (f.length > 0) {
428
- writer.writeString(
429
- 6,
430
- f
431
- );
432
- }
433
- f = message.getLocale();
434
- if (f.length > 0) {
435
- writer.writeString(
436
- 7,
437
- f
438
- );
439
- }
440
336
  };
441
337
 
442
338
 
@@ -512,778 +408,4 @@ proto.Auth.PushNotificationProto.OpenRequest.prototype.setTag = function(value)
512
408
  };
513
409
 
514
410
 
515
- /**
516
- * optional string error = 5;
517
- * @return {string}
518
- */
519
- proto.Auth.PushNotificationProto.OpenRequest.prototype.getError = function() {
520
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
521
- };
522
-
523
-
524
- /**
525
- * @param {string} value
526
- * @return {!proto.Auth.PushNotificationProto.OpenRequest} returns this
527
- */
528
- proto.Auth.PushNotificationProto.OpenRequest.prototype.setError = function(value) {
529
- return jspb.Message.setProto3StringField(this, 5, value);
530
- };
531
-
532
-
533
- /**
534
- * optional string operatorName = 6;
535
- * @return {string}
536
- */
537
- proto.Auth.PushNotificationProto.OpenRequest.prototype.getOperatorname = function() {
538
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
539
- };
540
-
541
-
542
- /**
543
- * @param {string} value
544
- * @return {!proto.Auth.PushNotificationProto.OpenRequest} returns this
545
- */
546
- proto.Auth.PushNotificationProto.OpenRequest.prototype.setOperatorname = function(value) {
547
- return jspb.Message.setProto3StringField(this, 6, value);
548
- };
549
-
550
-
551
- /**
552
- * optional string locale = 7;
553
- * @return {string}
554
- */
555
- proto.Auth.PushNotificationProto.OpenRequest.prototype.getLocale = function() {
556
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
557
- };
558
-
559
-
560
- /**
561
- * @param {string} value
562
- * @return {!proto.Auth.PushNotificationProto.OpenRequest} returns this
563
- */
564
- proto.Auth.PushNotificationProto.OpenRequest.prototype.setLocale = function(value) {
565
- return jspb.Message.setProto3StringField(this, 7, value);
566
- };
567
-
568
-
569
-
570
-
571
-
572
- if (jspb.Message.GENERATE_TO_OBJECT) {
573
- /**
574
- * Creates an object representation of this proto.
575
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
576
- * Optional fields that are not set will be set to undefined.
577
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
578
- * For the list of reserved names please see:
579
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
580
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
581
- * JSPB instance for transitional soy proto support:
582
- * http://goto/soy-param-migration
583
- * @return {!Object}
584
- */
585
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.toObject = function(opt_includeInstance) {
586
- return proto.Auth.PushNotificationProto.ActiveRequest.toObject(opt_includeInstance, this);
587
- };
588
-
589
-
590
- /**
591
- * Static version of the {@see toObject} method.
592
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
593
- * the JSPB instance for transitional soy proto support:
594
- * http://goto/soy-param-migration
595
- * @param {!proto.Auth.PushNotificationProto.ActiveRequest} msg The msg instance to transform.
596
- * @return {!Object}
597
- * @suppress {unusedLocalVariables} f is only used for nested messages
598
- */
599
- proto.Auth.PushNotificationProto.ActiveRequest.toObject = function(includeInstance, msg) {
600
- var f, obj = {
601
- accountid: jspb.Message.getFieldWithDefault(msg, 1, 0),
602
- operator: jspb.Message.getFieldWithDefault(msg, 2, ""),
603
- accepted: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
604
- tag: jspb.Message.getFieldWithDefault(msg, 4, 0),
605
- locale: jspb.Message.getFieldWithDefault(msg, 5, "")
606
- };
607
-
608
- if (includeInstance) {
609
- obj.$jspbMessageInstance = msg;
610
- }
611
- return obj;
612
- };
613
- }
614
-
615
-
616
- /**
617
- * Deserializes binary data (in protobuf wire format).
618
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
619
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest}
620
- */
621
- proto.Auth.PushNotificationProto.ActiveRequest.deserializeBinary = function(bytes) {
622
- var reader = new jspb.BinaryReader(bytes);
623
- var msg = new proto.Auth.PushNotificationProto.ActiveRequest;
624
- return proto.Auth.PushNotificationProto.ActiveRequest.deserializeBinaryFromReader(msg, reader);
625
- };
626
-
627
-
628
- /**
629
- * Deserializes binary data (in protobuf wire format) from the
630
- * given reader into the given message object.
631
- * @param {!proto.Auth.PushNotificationProto.ActiveRequest} msg The message object to deserialize into.
632
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
633
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest}
634
- */
635
- proto.Auth.PushNotificationProto.ActiveRequest.deserializeBinaryFromReader = function(msg, reader) {
636
- while (reader.nextField()) {
637
- if (reader.isEndGroup()) {
638
- break;
639
- }
640
- var field = reader.getFieldNumber();
641
- switch (field) {
642
- case 1:
643
- var value = /** @type {number} */ (reader.readInt64());
644
- msg.setAccountid(value);
645
- break;
646
- case 2:
647
- var value = /** @type {string} */ (reader.readString());
648
- msg.setOperator(value);
649
- break;
650
- case 3:
651
- var value = /** @type {boolean} */ (reader.readBool());
652
- msg.setAccepted(value);
653
- break;
654
- case 4:
655
- var value = /** @type {!proto.Auth.PushNotificationProto.Tag} */ (reader.readEnum());
656
- msg.setTag(value);
657
- break;
658
- case 5:
659
- var value = /** @type {string} */ (reader.readString());
660
- msg.setLocale(value);
661
- break;
662
- default:
663
- reader.skipField();
664
- break;
665
- }
666
- }
667
- return msg;
668
- };
669
-
670
-
671
- /**
672
- * Serializes the message to binary data (in protobuf wire format).
673
- * @return {!Uint8Array}
674
- */
675
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.serializeBinary = function() {
676
- var writer = new jspb.BinaryWriter();
677
- proto.Auth.PushNotificationProto.ActiveRequest.serializeBinaryToWriter(this, writer);
678
- return writer.getResultBuffer();
679
- };
680
-
681
-
682
- /**
683
- * Serializes the given message to binary data (in protobuf wire
684
- * format), writing to the given BinaryWriter.
685
- * @param {!proto.Auth.PushNotificationProto.ActiveRequest} message
686
- * @param {!jspb.BinaryWriter} writer
687
- * @suppress {unusedLocalVariables} f is only used for nested messages
688
- */
689
- proto.Auth.PushNotificationProto.ActiveRequest.serializeBinaryToWriter = function(message, writer) {
690
- var f = undefined;
691
- f = message.getAccountid();
692
- if (f !== 0) {
693
- writer.writeInt64(
694
- 1,
695
- f
696
- );
697
- }
698
- f = message.getOperator();
699
- if (f.length > 0) {
700
- writer.writeString(
701
- 2,
702
- f
703
- );
704
- }
705
- f = message.getAccepted();
706
- if (f) {
707
- writer.writeBool(
708
- 3,
709
- f
710
- );
711
- }
712
- f = message.getTag();
713
- if (f !== 0.0) {
714
- writer.writeEnum(
715
- 4,
716
- f
717
- );
718
- }
719
- f = message.getLocale();
720
- if (f.length > 0) {
721
- writer.writeString(
722
- 5,
723
- f
724
- );
725
- }
726
- };
727
-
728
-
729
- /**
730
- * optional int64 accountId = 1;
731
- * @return {number}
732
- */
733
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getAccountid = function() {
734
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
735
- };
736
-
737
-
738
- /**
739
- * @param {number} value
740
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
741
- */
742
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setAccountid = function(value) {
743
- return jspb.Message.setProto3IntField(this, 1, value);
744
- };
745
-
746
-
747
- /**
748
- * optional string operator = 2;
749
- * @return {string}
750
- */
751
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getOperator = function() {
752
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
753
- };
754
-
755
-
756
- /**
757
- * @param {string} value
758
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
759
- */
760
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setOperator = function(value) {
761
- return jspb.Message.setProto3StringField(this, 2, value);
762
- };
763
-
764
-
765
- /**
766
- * optional bool accepted = 3;
767
- * @return {boolean}
768
- */
769
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getAccepted = function() {
770
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
771
- };
772
-
773
-
774
- /**
775
- * @param {boolean} value
776
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
777
- */
778
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setAccepted = function(value) {
779
- return jspb.Message.setProto3BooleanField(this, 3, value);
780
- };
781
-
782
-
783
- /**
784
- * optional Tag tag = 4;
785
- * @return {!proto.Auth.PushNotificationProto.Tag}
786
- */
787
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getTag = function() {
788
- return /** @type {!proto.Auth.PushNotificationProto.Tag} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
789
- };
790
-
791
-
792
- /**
793
- * @param {!proto.Auth.PushNotificationProto.Tag} value
794
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
795
- */
796
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setTag = function(value) {
797
- return jspb.Message.setProto3EnumField(this, 4, value);
798
- };
799
-
800
-
801
- /**
802
- * optional string locale = 5;
803
- * @return {string}
804
- */
805
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getLocale = function() {
806
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
807
- };
808
-
809
-
810
- /**
811
- * @param {string} value
812
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
813
- */
814
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setLocale = function(value) {
815
- return jspb.Message.setProto3StringField(this, 5, value);
816
- };
817
-
818
-
819
-
820
-
821
-
822
- if (jspb.Message.GENERATE_TO_OBJECT) {
823
- /**
824
- * Creates an object representation of this proto.
825
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
826
- * Optional fields that are not set will be set to undefined.
827
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
828
- * For the list of reserved names please see:
829
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
830
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
831
- * JSPB instance for transitional soy proto support:
832
- * http://goto/soy-param-migration
833
- * @return {!Object}
834
- */
835
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.toObject = function(opt_includeInstance) {
836
- return proto.Auth.PushNotificationProto.InfoPushRequest.toObject(opt_includeInstance, this);
837
- };
838
-
839
-
840
- /**
841
- * Static version of the {@see toObject} method.
842
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
843
- * the JSPB instance for transitional soy proto support:
844
- * http://goto/soy-param-migration
845
- * @param {!proto.Auth.PushNotificationProto.InfoPushRequest} msg The msg instance to transform.
846
- * @return {!Object}
847
- * @suppress {unusedLocalVariables} f is only used for nested messages
848
- */
849
- proto.Auth.PushNotificationProto.InfoPushRequest.toObject = function(includeInstance, msg) {
850
- var f, obj = {
851
- accountid: jspb.Message.getFieldWithDefault(msg, 1, 0),
852
- cabinetname: jspb.Message.getFieldWithDefault(msg, 2, ""),
853
- status: jspb.Message.getFieldWithDefault(msg, 3, ""),
854
- locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
855
- pushtype: jspb.Message.getFieldWithDefault(msg, 5, 0)
856
- };
857
-
858
- if (includeInstance) {
859
- obj.$jspbMessageInstance = msg;
860
- }
861
- return obj;
862
- };
863
- }
864
-
865
-
866
- /**
867
- * Deserializes binary data (in protobuf wire format).
868
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
869
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest}
870
- */
871
- proto.Auth.PushNotificationProto.InfoPushRequest.deserializeBinary = function(bytes) {
872
- var reader = new jspb.BinaryReader(bytes);
873
- var msg = new proto.Auth.PushNotificationProto.InfoPushRequest;
874
- return proto.Auth.PushNotificationProto.InfoPushRequest.deserializeBinaryFromReader(msg, reader);
875
- };
876
-
877
-
878
- /**
879
- * Deserializes binary data (in protobuf wire format) from the
880
- * given reader into the given message object.
881
- * @param {!proto.Auth.PushNotificationProto.InfoPushRequest} msg The message object to deserialize into.
882
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
883
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest}
884
- */
885
- proto.Auth.PushNotificationProto.InfoPushRequest.deserializeBinaryFromReader = function(msg, reader) {
886
- while (reader.nextField()) {
887
- if (reader.isEndGroup()) {
888
- break;
889
- }
890
- var field = reader.getFieldNumber();
891
- switch (field) {
892
- case 1:
893
- var value = /** @type {number} */ (reader.readInt64());
894
- msg.setAccountid(value);
895
- break;
896
- case 2:
897
- var value = /** @type {string} */ (reader.readString());
898
- msg.setCabinetname(value);
899
- break;
900
- case 3:
901
- var value = /** @type {string} */ (reader.readString());
902
- msg.setStatus(value);
903
- break;
904
- case 4:
905
- var value = /** @type {string} */ (reader.readString());
906
- msg.setLocale(value);
907
- break;
908
- case 5:
909
- var value = /** @type {!proto.Auth.PushNotificationProto.PushType} */ (reader.readEnum());
910
- msg.setPushtype(value);
911
- break;
912
- default:
913
- reader.skipField();
914
- break;
915
- }
916
- }
917
- return msg;
918
- };
919
-
920
-
921
- /**
922
- * Serializes the message to binary data (in protobuf wire format).
923
- * @return {!Uint8Array}
924
- */
925
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.serializeBinary = function() {
926
- var writer = new jspb.BinaryWriter();
927
- proto.Auth.PushNotificationProto.InfoPushRequest.serializeBinaryToWriter(this, writer);
928
- return writer.getResultBuffer();
929
- };
930
-
931
-
932
- /**
933
- * Serializes the given message to binary data (in protobuf wire
934
- * format), writing to the given BinaryWriter.
935
- * @param {!proto.Auth.PushNotificationProto.InfoPushRequest} message
936
- * @param {!jspb.BinaryWriter} writer
937
- * @suppress {unusedLocalVariables} f is only used for nested messages
938
- */
939
- proto.Auth.PushNotificationProto.InfoPushRequest.serializeBinaryToWriter = function(message, writer) {
940
- var f = undefined;
941
- f = message.getAccountid();
942
- if (f !== 0) {
943
- writer.writeInt64(
944
- 1,
945
- f
946
- );
947
- }
948
- f = message.getCabinetname();
949
- if (f.length > 0) {
950
- writer.writeString(
951
- 2,
952
- f
953
- );
954
- }
955
- f = message.getStatus();
956
- if (f.length > 0) {
957
- writer.writeString(
958
- 3,
959
- f
960
- );
961
- }
962
- f = message.getLocale();
963
- if (f.length > 0) {
964
- writer.writeString(
965
- 4,
966
- f
967
- );
968
- }
969
- f = message.getPushtype();
970
- if (f !== 0.0) {
971
- writer.writeEnum(
972
- 5,
973
- f
974
- );
975
- }
976
- };
977
-
978
-
979
- /**
980
- * optional int64 accountId = 1;
981
- * @return {number}
982
- */
983
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getAccountid = function() {
984
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
985
- };
986
-
987
-
988
- /**
989
- * @param {number} value
990
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
991
- */
992
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setAccountid = function(value) {
993
- return jspb.Message.setProto3IntField(this, 1, value);
994
- };
995
-
996
-
997
- /**
998
- * optional string cabinetName = 2;
999
- * @return {string}
1000
- */
1001
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getCabinetname = function() {
1002
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1003
- };
1004
-
1005
-
1006
- /**
1007
- * @param {string} value
1008
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
1009
- */
1010
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setCabinetname = function(value) {
1011
- return jspb.Message.setProto3StringField(this, 2, value);
1012
- };
1013
-
1014
-
1015
- /**
1016
- * optional string status = 3;
1017
- * @return {string}
1018
- */
1019
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getStatus = function() {
1020
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1021
- };
1022
-
1023
-
1024
- /**
1025
- * @param {string} value
1026
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
1027
- */
1028
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setStatus = function(value) {
1029
- return jspb.Message.setProto3StringField(this, 3, value);
1030
- };
1031
-
1032
-
1033
- /**
1034
- * optional string locale = 4;
1035
- * @return {string}
1036
- */
1037
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getLocale = function() {
1038
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1039
- };
1040
-
1041
-
1042
- /**
1043
- * @param {string} value
1044
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
1045
- */
1046
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setLocale = function(value) {
1047
- return jspb.Message.setProto3StringField(this, 4, value);
1048
- };
1049
-
1050
-
1051
- /**
1052
- * optional PushType pushType = 5;
1053
- * @return {!proto.Auth.PushNotificationProto.PushType}
1054
- */
1055
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getPushtype = function() {
1056
- return /** @type {!proto.Auth.PushNotificationProto.PushType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1057
- };
1058
-
1059
-
1060
- /**
1061
- * @param {!proto.Auth.PushNotificationProto.PushType} value
1062
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
1063
- */
1064
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setPushtype = function(value) {
1065
- return jspb.Message.setProto3EnumField(this, 5, value);
1066
- };
1067
-
1068
-
1069
-
1070
-
1071
-
1072
- if (jspb.Message.GENERATE_TO_OBJECT) {
1073
- /**
1074
- * Creates an object representation of this proto.
1075
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1076
- * Optional fields that are not set will be set to undefined.
1077
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1078
- * For the list of reserved names please see:
1079
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1080
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1081
- * JSPB instance for transitional soy proto support:
1082
- * http://goto/soy-param-migration
1083
- * @return {!Object}
1084
- */
1085
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.toObject = function(opt_includeInstance) {
1086
- return proto.Auth.PushNotificationProto.ExpiredOpeningRequest.toObject(opt_includeInstance, this);
1087
- };
1088
-
1089
-
1090
- /**
1091
- * Static version of the {@see toObject} method.
1092
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1093
- * the JSPB instance for transitional soy proto support:
1094
- * http://goto/soy-param-migration
1095
- * @param {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} msg The msg instance to transform.
1096
- * @return {!Object}
1097
- * @suppress {unusedLocalVariables} f is only used for nested messages
1098
- */
1099
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.toObject = function(includeInstance, msg) {
1100
- var f, obj = {
1101
- accountid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1102
- cabinetname: jspb.Message.getFieldWithDefault(msg, 2, ""),
1103
- locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
1104
- jobid: jspb.Message.getFieldWithDefault(msg, 4, "")
1105
- };
1106
-
1107
- if (includeInstance) {
1108
- obj.$jspbMessageInstance = msg;
1109
- }
1110
- return obj;
1111
- };
1112
- }
1113
-
1114
-
1115
- /**
1116
- * Deserializes binary data (in protobuf wire format).
1117
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1118
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest}
1119
- */
1120
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.deserializeBinary = function(bytes) {
1121
- var reader = new jspb.BinaryReader(bytes);
1122
- var msg = new proto.Auth.PushNotificationProto.ExpiredOpeningRequest;
1123
- return proto.Auth.PushNotificationProto.ExpiredOpeningRequest.deserializeBinaryFromReader(msg, reader);
1124
- };
1125
-
1126
-
1127
- /**
1128
- * Deserializes binary data (in protobuf wire format) from the
1129
- * given reader into the given message object.
1130
- * @param {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} msg The message object to deserialize into.
1131
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1132
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest}
1133
- */
1134
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.deserializeBinaryFromReader = function(msg, reader) {
1135
- while (reader.nextField()) {
1136
- if (reader.isEndGroup()) {
1137
- break;
1138
- }
1139
- var field = reader.getFieldNumber();
1140
- switch (field) {
1141
- case 1:
1142
- var value = /** @type {number} */ (reader.readInt64());
1143
- msg.setAccountid(value);
1144
- break;
1145
- case 2:
1146
- var value = /** @type {string} */ (reader.readString());
1147
- msg.setCabinetname(value);
1148
- break;
1149
- case 3:
1150
- var value = /** @type {string} */ (reader.readString());
1151
- msg.setLocale(value);
1152
- break;
1153
- case 4:
1154
- var value = /** @type {string} */ (reader.readString());
1155
- msg.setJobid(value);
1156
- break;
1157
- default:
1158
- reader.skipField();
1159
- break;
1160
- }
1161
- }
1162
- return msg;
1163
- };
1164
-
1165
-
1166
- /**
1167
- * Serializes the message to binary data (in protobuf wire format).
1168
- * @return {!Uint8Array}
1169
- */
1170
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.serializeBinary = function() {
1171
- var writer = new jspb.BinaryWriter();
1172
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.serializeBinaryToWriter(this, writer);
1173
- return writer.getResultBuffer();
1174
- };
1175
-
1176
-
1177
- /**
1178
- * Serializes the given message to binary data (in protobuf wire
1179
- * format), writing to the given BinaryWriter.
1180
- * @param {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} message
1181
- * @param {!jspb.BinaryWriter} writer
1182
- * @suppress {unusedLocalVariables} f is only used for nested messages
1183
- */
1184
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.serializeBinaryToWriter = function(message, writer) {
1185
- var f = undefined;
1186
- f = message.getAccountid();
1187
- if (f !== 0) {
1188
- writer.writeInt64(
1189
- 1,
1190
- f
1191
- );
1192
- }
1193
- f = message.getCabinetname();
1194
- if (f.length > 0) {
1195
- writer.writeString(
1196
- 2,
1197
- f
1198
- );
1199
- }
1200
- f = message.getLocale();
1201
- if (f.length > 0) {
1202
- writer.writeString(
1203
- 3,
1204
- f
1205
- );
1206
- }
1207
- f = message.getJobid();
1208
- if (f.length > 0) {
1209
- writer.writeString(
1210
- 4,
1211
- f
1212
- );
1213
- }
1214
- };
1215
-
1216
-
1217
- /**
1218
- * optional int64 accountId = 1;
1219
- * @return {number}
1220
- */
1221
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.getAccountid = function() {
1222
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1223
- };
1224
-
1225
-
1226
- /**
1227
- * @param {number} value
1228
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} returns this
1229
- */
1230
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.setAccountid = function(value) {
1231
- return jspb.Message.setProto3IntField(this, 1, value);
1232
- };
1233
-
1234
-
1235
- /**
1236
- * optional string cabinetName = 2;
1237
- * @return {string}
1238
- */
1239
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.getCabinetname = function() {
1240
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1241
- };
1242
-
1243
-
1244
- /**
1245
- * @param {string} value
1246
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} returns this
1247
- */
1248
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.setCabinetname = function(value) {
1249
- return jspb.Message.setProto3StringField(this, 2, value);
1250
- };
1251
-
1252
-
1253
- /**
1254
- * optional string locale = 3;
1255
- * @return {string}
1256
- */
1257
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.getLocale = function() {
1258
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1259
- };
1260
-
1261
-
1262
- /**
1263
- * @param {string} value
1264
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} returns this
1265
- */
1266
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.setLocale = function(value) {
1267
- return jspb.Message.setProto3StringField(this, 3, value);
1268
- };
1269
-
1270
-
1271
- /**
1272
- * optional string jobId = 4;
1273
- * @return {string}
1274
- */
1275
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.getJobid = function() {
1276
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1277
- };
1278
-
1279
-
1280
- /**
1281
- * @param {string} value
1282
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} returns this
1283
- */
1284
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.setJobid = function(value) {
1285
- return jspb.Message.setProto3StringField(this, 4, value);
1286
- };
1287
-
1288
-
1289
411
  goog.object.extend(exports, proto.Auth);
@@ -5,15 +5,6 @@ import * as auth_push_notification_pb from "./auth.push_notification_pb";
5
5
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
6
  import {grpc} from "@improbable-eng/grpc-web";
7
7
 
8
- type PushNotificationGRPCSendActive = {
9
- readonly methodName: string;
10
- readonly service: typeof PushNotificationGRPC;
11
- readonly requestStream: false;
12
- readonly responseStream: false;
13
- readonly requestType: typeof auth_push_notification_pb.PushNotificationProto.ActiveRequest;
14
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
15
- };
16
-
17
8
  type PushNotificationGRPCSendOpen = {
18
9
  readonly methodName: string;
19
10
  readonly service: typeof PushNotificationGRPC;
@@ -23,30 +14,9 @@ type PushNotificationGRPCSendOpen = {
23
14
  readonly responseType: typeof google_protobuf_empty_pb.Empty;
24
15
  };
25
16
 
26
- type PushNotificationGRPCSendInfoPush = {
27
- readonly methodName: string;
28
- readonly service: typeof PushNotificationGRPC;
29
- readonly requestStream: false;
30
- readonly responseStream: false;
31
- readonly requestType: typeof auth_push_notification_pb.PushNotificationProto.InfoPushRequest;
32
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
33
- };
34
-
35
- type PushNotificationGRPCSendExpiredOpening = {
36
- readonly methodName: string;
37
- readonly service: typeof PushNotificationGRPC;
38
- readonly requestStream: false;
39
- readonly responseStream: false;
40
- readonly requestType: typeof auth_push_notification_pb.PushNotificationProto.ExpiredOpeningRequest;
41
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
42
- };
43
-
44
17
  export class PushNotificationGRPC {
45
18
  static readonly serviceName: string;
46
- static readonly SendActive: PushNotificationGRPCSendActive;
47
19
  static readonly SendOpen: PushNotificationGRPCSendOpen;
48
- static readonly SendInfoPush: PushNotificationGRPCSendInfoPush;
49
- static readonly SendExpiredOpening: PushNotificationGRPCSendExpiredOpening;
50
20
  }
51
21
 
52
22
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -81,15 +51,6 @@ export class PushNotificationGRPCClient {
81
51
  readonly serviceHost: string;
82
52
 
83
53
  constructor(serviceHost: string, options?: grpc.RpcOptions);
84
- sendActive(
85
- requestMessage: auth_push_notification_pb.PushNotificationProto.ActiveRequest,
86
- metadata: grpc.Metadata,
87
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
88
- ): UnaryResponse;
89
- sendActive(
90
- requestMessage: auth_push_notification_pb.PushNotificationProto.ActiveRequest,
91
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
92
- ): UnaryResponse;
93
54
  sendOpen(
94
55
  requestMessage: auth_push_notification_pb.PushNotificationProto.OpenRequest,
95
56
  metadata: grpc.Metadata,
@@ -99,23 +60,5 @@ export class PushNotificationGRPCClient {
99
60
  requestMessage: auth_push_notification_pb.PushNotificationProto.OpenRequest,
100
61
  callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
101
62
  ): UnaryResponse;
102
- sendInfoPush(
103
- requestMessage: auth_push_notification_pb.PushNotificationProto.InfoPushRequest,
104
- metadata: grpc.Metadata,
105
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
106
- ): UnaryResponse;
107
- sendInfoPush(
108
- requestMessage: auth_push_notification_pb.PushNotificationProto.InfoPushRequest,
109
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
110
- ): UnaryResponse;
111
- sendExpiredOpening(
112
- requestMessage: auth_push_notification_pb.PushNotificationProto.ExpiredOpeningRequest,
113
- metadata: grpc.Metadata,
114
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
115
- ): UnaryResponse;
116
- sendExpiredOpening(
117
- requestMessage: auth_push_notification_pb.PushNotificationProto.ExpiredOpeningRequest,
118
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
119
- ): UnaryResponse;
120
63
  }
121
64
 
@@ -11,15 +11,6 @@ var PushNotificationGRPC = (function () {
11
11
  return PushNotificationGRPC;
12
12
  }());
13
13
 
14
- PushNotificationGRPC.SendActive = {
15
- methodName: "SendActive",
16
- service: PushNotificationGRPC,
17
- requestStream: false,
18
- responseStream: false,
19
- requestType: auth_push_notification_pb.PushNotificationProto.ActiveRequest,
20
- responseType: google_protobuf_empty_pb.Empty
21
- };
22
-
23
14
  PushNotificationGRPC.SendOpen = {
24
15
  methodName: "SendOpen",
25
16
  service: PushNotificationGRPC,
@@ -29,24 +20,6 @@ PushNotificationGRPC.SendOpen = {
29
20
  responseType: google_protobuf_empty_pb.Empty
30
21
  };
31
22
 
32
- PushNotificationGRPC.SendInfoPush = {
33
- methodName: "SendInfoPush",
34
- service: PushNotificationGRPC,
35
- requestStream: false,
36
- responseStream: false,
37
- requestType: auth_push_notification_pb.PushNotificationProto.InfoPushRequest,
38
- responseType: google_protobuf_empty_pb.Empty
39
- };
40
-
41
- PushNotificationGRPC.SendExpiredOpening = {
42
- methodName: "SendExpiredOpening",
43
- service: PushNotificationGRPC,
44
- requestStream: false,
45
- responseStream: false,
46
- requestType: auth_push_notification_pb.PushNotificationProto.ExpiredOpeningRequest,
47
- responseType: google_protobuf_empty_pb.Empty
48
- };
49
-
50
23
  exports.PushNotificationGRPC = PushNotificationGRPC;
51
24
 
52
25
  function PushNotificationGRPCClient(serviceHost, options) {
@@ -54,37 +27,6 @@ function PushNotificationGRPCClient(serviceHost, options) {
54
27
  this.options = options || {};
55
28
  }
56
29
 
57
- PushNotificationGRPCClient.prototype.sendActive = function sendActive(requestMessage, metadata, callback) {
58
- if (arguments.length === 2) {
59
- callback = arguments[1];
60
- }
61
- var client = grpc.unary(PushNotificationGRPC.SendActive, {
62
- request: requestMessage,
63
- host: this.serviceHost,
64
- metadata: metadata,
65
- transport: this.options.transport,
66
- debug: this.options.debug,
67
- onEnd: function (response) {
68
- if (callback) {
69
- if (response.status !== grpc.Code.OK) {
70
- var err = new Error(response.statusMessage);
71
- err.code = response.status;
72
- err.metadata = response.trailers;
73
- callback(err, null);
74
- } else {
75
- callback(null, response.message);
76
- }
77
- }
78
- }
79
- });
80
- return {
81
- cancel: function () {
82
- callback = null;
83
- client.close();
84
- }
85
- };
86
- };
87
-
88
30
  PushNotificationGRPCClient.prototype.sendOpen = function sendOpen(requestMessage, metadata, callback) {
89
31
  if (arguments.length === 2) {
90
32
  callback = arguments[1];
@@ -116,67 +58,5 @@ PushNotificationGRPCClient.prototype.sendOpen = function sendOpen(requestMessage
116
58
  };
117
59
  };
118
60
 
119
- PushNotificationGRPCClient.prototype.sendInfoPush = function sendInfoPush(requestMessage, metadata, callback) {
120
- if (arguments.length === 2) {
121
- callback = arguments[1];
122
- }
123
- var client = grpc.unary(PushNotificationGRPC.SendInfoPush, {
124
- request: requestMessage,
125
- host: this.serviceHost,
126
- metadata: metadata,
127
- transport: this.options.transport,
128
- debug: this.options.debug,
129
- onEnd: function (response) {
130
- if (callback) {
131
- if (response.status !== grpc.Code.OK) {
132
- var err = new Error(response.statusMessage);
133
- err.code = response.status;
134
- err.metadata = response.trailers;
135
- callback(err, null);
136
- } else {
137
- callback(null, response.message);
138
- }
139
- }
140
- }
141
- });
142
- return {
143
- cancel: function () {
144
- callback = null;
145
- client.close();
146
- }
147
- };
148
- };
149
-
150
- PushNotificationGRPCClient.prototype.sendExpiredOpening = function sendExpiredOpening(requestMessage, metadata, callback) {
151
- if (arguments.length === 2) {
152
- callback = arguments[1];
153
- }
154
- var client = grpc.unary(PushNotificationGRPC.SendExpiredOpening, {
155
- request: requestMessage,
156
- host: this.serviceHost,
157
- metadata: metadata,
158
- transport: this.options.transport,
159
- debug: this.options.debug,
160
- onEnd: function (response) {
161
- if (callback) {
162
- if (response.status !== grpc.Code.OK) {
163
- var err = new Error(response.statusMessage);
164
- err.code = response.status;
165
- err.metadata = response.trailers;
166
- callback(err, null);
167
- } else {
168
- callback(null, response.message);
169
- }
170
- }
171
- }
172
- });
173
- return {
174
- cancel: function () {
175
- callback = null;
176
- client.close();
177
- }
178
- };
179
- };
180
-
181
61
  exports.PushNotificationGRPCClient = PushNotificationGRPCClient;
182
62
 
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": "3.3.0-alpha.1",
8
+ "version": "3.3.0-alpha.2",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [