@aceplus/smartace-api 1.3.0-alpha.127 → 1.3.0-alpha.130
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 +4 -0
- package/auth.account_pb.js +31 -1
- package/auth.email_pb.d.ts +42 -0
- package/auth.email_pb.js +328 -0
- package/auth.email_pb_service.d.ts +19 -0
- package/auth.email_pb_service.js +40 -0
- package/package.json +1 -1
package/auth.account_pb.d.ts
CHANGED
|
@@ -126,6 +126,9 @@ export namespace AccountProto {
|
|
|
126
126
|
getId(): number;
|
|
127
127
|
setId(value: number): void;
|
|
128
128
|
|
|
129
|
+
getClientid(): number;
|
|
130
|
+
setClientid(value: number): void;
|
|
131
|
+
|
|
129
132
|
serializeBinary(): Uint8Array;
|
|
130
133
|
toObject(includeInstance?: boolean): RetrieveRequest.AsObject;
|
|
131
134
|
static toObject(includeInstance: boolean, msg: RetrieveRequest): RetrieveRequest.AsObject;
|
|
@@ -139,6 +142,7 @@ export namespace AccountProto {
|
|
|
139
142
|
export namespace RetrieveRequest {
|
|
140
143
|
export type AsObject = {
|
|
141
144
|
id: number,
|
|
145
|
+
clientid: number,
|
|
142
146
|
}
|
|
143
147
|
}
|
|
144
148
|
|
package/auth.account_pb.js
CHANGED
|
@@ -1163,7 +1163,8 @@ proto.Auth.AccountProto.RetrieveRequest.prototype.toObject = function(opt_includ
|
|
|
1163
1163
|
*/
|
|
1164
1164
|
proto.Auth.AccountProto.RetrieveRequest.toObject = function(includeInstance, msg) {
|
|
1165
1165
|
var f, obj = {
|
|
1166
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
1166
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1167
|
+
clientid: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
1167
1168
|
};
|
|
1168
1169
|
|
|
1169
1170
|
if (includeInstance) {
|
|
@@ -1204,6 +1205,10 @@ proto.Auth.AccountProto.RetrieveRequest.deserializeBinaryFromReader = function(m
|
|
|
1204
1205
|
var value = /** @type {number} */ (reader.readInt64());
|
|
1205
1206
|
msg.setId(value);
|
|
1206
1207
|
break;
|
|
1208
|
+
case 2:
|
|
1209
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1210
|
+
msg.setClientid(value);
|
|
1211
|
+
break;
|
|
1207
1212
|
default:
|
|
1208
1213
|
reader.skipField();
|
|
1209
1214
|
break;
|
|
@@ -1240,6 +1245,13 @@ proto.Auth.AccountProto.RetrieveRequest.serializeBinaryToWriter = function(messa
|
|
|
1240
1245
|
f
|
|
1241
1246
|
);
|
|
1242
1247
|
}
|
|
1248
|
+
f = message.getClientid();
|
|
1249
|
+
if (f !== 0) {
|
|
1250
|
+
writer.writeInt64(
|
|
1251
|
+
2,
|
|
1252
|
+
f
|
|
1253
|
+
);
|
|
1254
|
+
}
|
|
1243
1255
|
};
|
|
1244
1256
|
|
|
1245
1257
|
|
|
@@ -1261,6 +1273,24 @@ proto.Auth.AccountProto.RetrieveRequest.prototype.setId = function(value) {
|
|
|
1261
1273
|
};
|
|
1262
1274
|
|
|
1263
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* optional int64 clientId = 2;
|
|
1278
|
+
* @return {number}
|
|
1279
|
+
*/
|
|
1280
|
+
proto.Auth.AccountProto.RetrieveRequest.prototype.getClientid = function() {
|
|
1281
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1282
|
+
};
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* @param {number} value
|
|
1287
|
+
* @return {!proto.Auth.AccountProto.RetrieveRequest} returns this
|
|
1288
|
+
*/
|
|
1289
|
+
proto.Auth.AccountProto.RetrieveRequest.prototype.setClientid = function(value) {
|
|
1290
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
|
|
1264
1294
|
|
|
1265
1295
|
/**
|
|
1266
1296
|
* List of repeated fields within this message type.
|
package/auth.email_pb.d.ts
CHANGED
|
@@ -63,6 +63,48 @@ export namespace EmailProto {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export class ResetPasswordRequest extends jspb.Message {
|
|
67
|
+
getFirstname(): string;
|
|
68
|
+
setFirstname(value: string): void;
|
|
69
|
+
|
|
70
|
+
getLastname(): string;
|
|
71
|
+
setLastname(value: string): void;
|
|
72
|
+
|
|
73
|
+
getEmailaddress(): string;
|
|
74
|
+
setEmailaddress(value: string): void;
|
|
75
|
+
|
|
76
|
+
getResetlink(): string;
|
|
77
|
+
setResetlink(value: string): void;
|
|
78
|
+
|
|
79
|
+
clearOperatorList(): void;
|
|
80
|
+
getOperatorList(): Array<string>;
|
|
81
|
+
setOperatorList(value: Array<string>): void;
|
|
82
|
+
addOperator(value: string, index?: number): string;
|
|
83
|
+
|
|
84
|
+
getCompany(): string;
|
|
85
|
+
setCompany(value: string): void;
|
|
86
|
+
|
|
87
|
+
serializeBinary(): Uint8Array;
|
|
88
|
+
toObject(includeInstance?: boolean): ResetPasswordRequest.AsObject;
|
|
89
|
+
static toObject(includeInstance: boolean, msg: ResetPasswordRequest): ResetPasswordRequest.AsObject;
|
|
90
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
91
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
92
|
+
static serializeBinaryToWriter(message: ResetPasswordRequest, writer: jspb.BinaryWriter): void;
|
|
93
|
+
static deserializeBinary(bytes: Uint8Array): ResetPasswordRequest;
|
|
94
|
+
static deserializeBinaryFromReader(message: ResetPasswordRequest, reader: jspb.BinaryReader): ResetPasswordRequest;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export namespace ResetPasswordRequest {
|
|
98
|
+
export type AsObject = {
|
|
99
|
+
firstname: string,
|
|
100
|
+
lastname: string,
|
|
101
|
+
emailaddress: string,
|
|
102
|
+
resetlink: string,
|
|
103
|
+
operatorList: Array<string>,
|
|
104
|
+
company: string,
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
66
108
|
export class AdminAccountEmailRequest extends jspb.Message {
|
|
67
109
|
getMailto(): string;
|
|
68
110
|
setMailto(value: string): void;
|
package/auth.email_pb.js
CHANGED
|
@@ -34,6 +34,7 @@ goog.exportSymbol('proto.Auth.EmailProto.AdminEmailType', null, global);
|
|
|
34
34
|
goog.exportSymbol('proto.Auth.EmailProto.AdminRole', null, global);
|
|
35
35
|
goog.exportSymbol('proto.Auth.EmailProto.AlarmEmailRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.Auth.EmailProto.CabinetData', null, global);
|
|
37
|
+
goog.exportSymbol('proto.Auth.EmailProto.ResetPasswordRequest', null, global);
|
|
37
38
|
/**
|
|
38
39
|
* Generated by JsPbCodeGenerator.
|
|
39
40
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -76,6 +77,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
76
77
|
*/
|
|
77
78
|
proto.Auth.EmailProto.AccountCreatedRequest.displayName = 'proto.Auth.EmailProto.AccountCreatedRequest';
|
|
78
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Generated by JsPbCodeGenerator.
|
|
82
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
83
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
84
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
85
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
86
|
+
* valid.
|
|
87
|
+
* @extends {jspb.Message}
|
|
88
|
+
* @constructor
|
|
89
|
+
*/
|
|
90
|
+
proto.Auth.EmailProto.ResetPasswordRequest = function(opt_data) {
|
|
91
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.EmailProto.ResetPasswordRequest.repeatedFields_, null);
|
|
92
|
+
};
|
|
93
|
+
goog.inherits(proto.Auth.EmailProto.ResetPasswordRequest, jspb.Message);
|
|
94
|
+
if (goog.DEBUG && !COMPILED) {
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* @override
|
|
98
|
+
*/
|
|
99
|
+
proto.Auth.EmailProto.ResetPasswordRequest.displayName = 'proto.Auth.EmailProto.ResetPasswordRequest';
|
|
100
|
+
}
|
|
79
101
|
/**
|
|
80
102
|
* Generated by JsPbCodeGenerator.
|
|
81
103
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -572,6 +594,312 @@ proto.Auth.EmailProto.AccountCreatedRequest.prototype.setCompany = function(valu
|
|
|
572
594
|
|
|
573
595
|
|
|
574
596
|
|
|
597
|
+
/**
|
|
598
|
+
* List of repeated fields within this message type.
|
|
599
|
+
* @private {!Array<number>}
|
|
600
|
+
* @const
|
|
601
|
+
*/
|
|
602
|
+
proto.Auth.EmailProto.ResetPasswordRequest.repeatedFields_ = [5];
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
607
|
+
/**
|
|
608
|
+
* Creates an object representation of this proto.
|
|
609
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
610
|
+
* Optional fields that are not set will be set to undefined.
|
|
611
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
612
|
+
* For the list of reserved names please see:
|
|
613
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
614
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
615
|
+
* JSPB instance for transitional soy proto support:
|
|
616
|
+
* http://goto/soy-param-migration
|
|
617
|
+
* @return {!Object}
|
|
618
|
+
*/
|
|
619
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.toObject = function(opt_includeInstance) {
|
|
620
|
+
return proto.Auth.EmailProto.ResetPasswordRequest.toObject(opt_includeInstance, this);
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Static version of the {@see toObject} method.
|
|
626
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
627
|
+
* the JSPB instance for transitional soy proto support:
|
|
628
|
+
* http://goto/soy-param-migration
|
|
629
|
+
* @param {!proto.Auth.EmailProto.ResetPasswordRequest} msg The msg instance to transform.
|
|
630
|
+
* @return {!Object}
|
|
631
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
632
|
+
*/
|
|
633
|
+
proto.Auth.EmailProto.ResetPasswordRequest.toObject = function(includeInstance, msg) {
|
|
634
|
+
var f, obj = {
|
|
635
|
+
firstname: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
636
|
+
lastname: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
637
|
+
emailaddress: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
638
|
+
resetlink: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
639
|
+
operatorList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
640
|
+
company: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
if (includeInstance) {
|
|
644
|
+
obj.$jspbMessageInstance = msg;
|
|
645
|
+
}
|
|
646
|
+
return obj;
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Deserializes binary data (in protobuf wire format).
|
|
653
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
654
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest}
|
|
655
|
+
*/
|
|
656
|
+
proto.Auth.EmailProto.ResetPasswordRequest.deserializeBinary = function(bytes) {
|
|
657
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
658
|
+
var msg = new proto.Auth.EmailProto.ResetPasswordRequest;
|
|
659
|
+
return proto.Auth.EmailProto.ResetPasswordRequest.deserializeBinaryFromReader(msg, reader);
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
665
|
+
* given reader into the given message object.
|
|
666
|
+
* @param {!proto.Auth.EmailProto.ResetPasswordRequest} msg The message object to deserialize into.
|
|
667
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
668
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest}
|
|
669
|
+
*/
|
|
670
|
+
proto.Auth.EmailProto.ResetPasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
671
|
+
while (reader.nextField()) {
|
|
672
|
+
if (reader.isEndGroup()) {
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
var field = reader.getFieldNumber();
|
|
676
|
+
switch (field) {
|
|
677
|
+
case 1:
|
|
678
|
+
var value = /** @type {string} */ (reader.readString());
|
|
679
|
+
msg.setFirstname(value);
|
|
680
|
+
break;
|
|
681
|
+
case 2:
|
|
682
|
+
var value = /** @type {string} */ (reader.readString());
|
|
683
|
+
msg.setLastname(value);
|
|
684
|
+
break;
|
|
685
|
+
case 3:
|
|
686
|
+
var value = /** @type {string} */ (reader.readString());
|
|
687
|
+
msg.setEmailaddress(value);
|
|
688
|
+
break;
|
|
689
|
+
case 4:
|
|
690
|
+
var value = /** @type {string} */ (reader.readString());
|
|
691
|
+
msg.setResetlink(value);
|
|
692
|
+
break;
|
|
693
|
+
case 5:
|
|
694
|
+
var value = /** @type {string} */ (reader.readString());
|
|
695
|
+
msg.addOperator(value);
|
|
696
|
+
break;
|
|
697
|
+
case 6:
|
|
698
|
+
var value = /** @type {string} */ (reader.readString());
|
|
699
|
+
msg.setCompany(value);
|
|
700
|
+
break;
|
|
701
|
+
default:
|
|
702
|
+
reader.skipField();
|
|
703
|
+
break;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
return msg;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
712
|
+
* @return {!Uint8Array}
|
|
713
|
+
*/
|
|
714
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.serializeBinary = function() {
|
|
715
|
+
var writer = new jspb.BinaryWriter();
|
|
716
|
+
proto.Auth.EmailProto.ResetPasswordRequest.serializeBinaryToWriter(this, writer);
|
|
717
|
+
return writer.getResultBuffer();
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
723
|
+
* format), writing to the given BinaryWriter.
|
|
724
|
+
* @param {!proto.Auth.EmailProto.ResetPasswordRequest} message
|
|
725
|
+
* @param {!jspb.BinaryWriter} writer
|
|
726
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
727
|
+
*/
|
|
728
|
+
proto.Auth.EmailProto.ResetPasswordRequest.serializeBinaryToWriter = function(message, writer) {
|
|
729
|
+
var f = undefined;
|
|
730
|
+
f = message.getFirstname();
|
|
731
|
+
if (f.length > 0) {
|
|
732
|
+
writer.writeString(
|
|
733
|
+
1,
|
|
734
|
+
f
|
|
735
|
+
);
|
|
736
|
+
}
|
|
737
|
+
f = message.getLastname();
|
|
738
|
+
if (f.length > 0) {
|
|
739
|
+
writer.writeString(
|
|
740
|
+
2,
|
|
741
|
+
f
|
|
742
|
+
);
|
|
743
|
+
}
|
|
744
|
+
f = message.getEmailaddress();
|
|
745
|
+
if (f.length > 0) {
|
|
746
|
+
writer.writeString(
|
|
747
|
+
3,
|
|
748
|
+
f
|
|
749
|
+
);
|
|
750
|
+
}
|
|
751
|
+
f = message.getResetlink();
|
|
752
|
+
if (f.length > 0) {
|
|
753
|
+
writer.writeString(
|
|
754
|
+
4,
|
|
755
|
+
f
|
|
756
|
+
);
|
|
757
|
+
}
|
|
758
|
+
f = message.getOperatorList();
|
|
759
|
+
if (f.length > 0) {
|
|
760
|
+
writer.writeRepeatedString(
|
|
761
|
+
5,
|
|
762
|
+
f
|
|
763
|
+
);
|
|
764
|
+
}
|
|
765
|
+
f = message.getCompany();
|
|
766
|
+
if (f.length > 0) {
|
|
767
|
+
writer.writeString(
|
|
768
|
+
6,
|
|
769
|
+
f
|
|
770
|
+
);
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* optional string firstName = 1;
|
|
777
|
+
* @return {string}
|
|
778
|
+
*/
|
|
779
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.getFirstname = function() {
|
|
780
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* @param {string} value
|
|
786
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest} returns this
|
|
787
|
+
*/
|
|
788
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.setFirstname = function(value) {
|
|
789
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* optional string lastName = 2;
|
|
795
|
+
* @return {string}
|
|
796
|
+
*/
|
|
797
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.getLastname = function() {
|
|
798
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* @param {string} value
|
|
804
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest} returns this
|
|
805
|
+
*/
|
|
806
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.setLastname = function(value) {
|
|
807
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* optional string emailAddress = 3;
|
|
813
|
+
* @return {string}
|
|
814
|
+
*/
|
|
815
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.getEmailaddress = function() {
|
|
816
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* @param {string} value
|
|
822
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest} returns this
|
|
823
|
+
*/
|
|
824
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.setEmailaddress = function(value) {
|
|
825
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* optional string resetLink = 4;
|
|
831
|
+
* @return {string}
|
|
832
|
+
*/
|
|
833
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.getResetlink = function() {
|
|
834
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* @param {string} value
|
|
840
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest} returns this
|
|
841
|
+
*/
|
|
842
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.setResetlink = function(value) {
|
|
843
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* repeated string operator = 5;
|
|
849
|
+
* @return {!Array<string>}
|
|
850
|
+
*/
|
|
851
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.getOperatorList = function() {
|
|
852
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* @param {!Array<string>} value
|
|
858
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest} returns this
|
|
859
|
+
*/
|
|
860
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.setOperatorList = function(value) {
|
|
861
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* @param {string} value
|
|
867
|
+
* @param {number=} opt_index
|
|
868
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest} returns this
|
|
869
|
+
*/
|
|
870
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.addOperator = function(value, opt_index) {
|
|
871
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Clears the list making it empty but non-null.
|
|
877
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest} returns this
|
|
878
|
+
*/
|
|
879
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.clearOperatorList = function() {
|
|
880
|
+
return this.setOperatorList([]);
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* optional string company = 6;
|
|
886
|
+
* @return {string}
|
|
887
|
+
*/
|
|
888
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.getCompany = function() {
|
|
889
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* @param {string} value
|
|
895
|
+
* @return {!proto.Auth.EmailProto.ResetPasswordRequest} returns this
|
|
896
|
+
*/
|
|
897
|
+
proto.Auth.EmailProto.ResetPasswordRequest.prototype.setCompany = function(value) {
|
|
898
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
|
|
575
903
|
|
|
576
904
|
|
|
577
905
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -14,6 +14,15 @@ type EmailGRPCAccountCreated = {
|
|
|
14
14
|
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
type EmailGRPCResetPassword = {
|
|
18
|
+
readonly methodName: string;
|
|
19
|
+
readonly service: typeof EmailGRPC;
|
|
20
|
+
readonly requestStream: false;
|
|
21
|
+
readonly responseStream: false;
|
|
22
|
+
readonly requestType: typeof auth_email_pb.EmailProto.ResetPasswordRequest;
|
|
23
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
24
|
+
};
|
|
25
|
+
|
|
17
26
|
type EmailGRPCAdminEmail = {
|
|
18
27
|
readonly methodName: string;
|
|
19
28
|
readonly service: typeof EmailGRPC;
|
|
@@ -35,6 +44,7 @@ type EmailGRPCAlarmEmail = {
|
|
|
35
44
|
export class EmailGRPC {
|
|
36
45
|
static readonly serviceName: string;
|
|
37
46
|
static readonly AccountCreated: EmailGRPCAccountCreated;
|
|
47
|
+
static readonly ResetPassword: EmailGRPCResetPassword;
|
|
38
48
|
static readonly AdminEmail: EmailGRPCAdminEmail;
|
|
39
49
|
static readonly AlarmEmail: EmailGRPCAlarmEmail;
|
|
40
50
|
}
|
|
@@ -80,6 +90,15 @@ export class EmailGRPCClient {
|
|
|
80
90
|
requestMessage: auth_email_pb.EmailProto.AccountCreatedRequest,
|
|
81
91
|
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
82
92
|
): UnaryResponse;
|
|
93
|
+
resetPassword(
|
|
94
|
+
requestMessage: auth_email_pb.EmailProto.ResetPasswordRequest,
|
|
95
|
+
metadata: grpc.Metadata,
|
|
96
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
97
|
+
): UnaryResponse;
|
|
98
|
+
resetPassword(
|
|
99
|
+
requestMessage: auth_email_pb.EmailProto.ResetPasswordRequest,
|
|
100
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
101
|
+
): UnaryResponse;
|
|
83
102
|
adminEmail(
|
|
84
103
|
requestMessage: auth_email_pb.EmailProto.AdminAccountEmailRequest,
|
|
85
104
|
metadata: grpc.Metadata,
|
package/auth.email_pb_service.js
CHANGED
|
@@ -20,6 +20,15 @@ EmailGRPC.AccountCreated = {
|
|
|
20
20
|
responseType: google_protobuf_empty_pb.Empty
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
EmailGRPC.ResetPassword = {
|
|
24
|
+
methodName: "ResetPassword",
|
|
25
|
+
service: EmailGRPC,
|
|
26
|
+
requestStream: false,
|
|
27
|
+
responseStream: false,
|
|
28
|
+
requestType: auth_email_pb.EmailProto.ResetPasswordRequest,
|
|
29
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
30
|
+
};
|
|
31
|
+
|
|
23
32
|
EmailGRPC.AdminEmail = {
|
|
24
33
|
methodName: "AdminEmail",
|
|
25
34
|
service: EmailGRPC,
|
|
@@ -76,6 +85,37 @@ EmailGRPCClient.prototype.accountCreated = function accountCreated(requestMessag
|
|
|
76
85
|
};
|
|
77
86
|
};
|
|
78
87
|
|
|
88
|
+
EmailGRPCClient.prototype.resetPassword = function resetPassword(requestMessage, metadata, callback) {
|
|
89
|
+
if (arguments.length === 2) {
|
|
90
|
+
callback = arguments[1];
|
|
91
|
+
}
|
|
92
|
+
var client = grpc.unary(EmailGRPC.ResetPassword, {
|
|
93
|
+
request: requestMessage,
|
|
94
|
+
host: this.serviceHost,
|
|
95
|
+
metadata: metadata,
|
|
96
|
+
transport: this.options.transport,
|
|
97
|
+
debug: this.options.debug,
|
|
98
|
+
onEnd: function (response) {
|
|
99
|
+
if (callback) {
|
|
100
|
+
if (response.status !== grpc.Code.OK) {
|
|
101
|
+
var err = new Error(response.statusMessage);
|
|
102
|
+
err.code = response.status;
|
|
103
|
+
err.metadata = response.trailers;
|
|
104
|
+
callback(err, null);
|
|
105
|
+
} else {
|
|
106
|
+
callback(null, response.message);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
return {
|
|
112
|
+
cancel: function () {
|
|
113
|
+
callback = null;
|
|
114
|
+
client.close();
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
79
119
|
EmailGRPCClient.prototype.adminEmail = function adminEmail(requestMessage, metadata, callback) {
|
|
80
120
|
if (arguments.length === 2) {
|
|
81
121
|
callback = arguments[1];
|