@aceplus/smartace-api 1.3.0-alpha.126 → 1.3.0-alpha.129
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.app_authn_pb.d.ts +7 -0
- package/auth.app_authn_pb.js +58 -5
- 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.app_authn_pb.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
|
|
6
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
6
7
|
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
7
8
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
8
9
|
|
|
@@ -132,6 +133,11 @@ export namespace AppAuthnProto {
|
|
|
132
133
|
getUid(): string;
|
|
133
134
|
setUid(value: string): void;
|
|
134
135
|
|
|
136
|
+
hasTimestamp(): boolean;
|
|
137
|
+
clearTimestamp(): void;
|
|
138
|
+
getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
139
|
+
setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
140
|
+
|
|
135
141
|
getAppType(): AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap];
|
|
136
142
|
setAppType(value: AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap]): void;
|
|
137
143
|
|
|
@@ -151,6 +157,7 @@ export namespace AppAuthnProto {
|
|
|
151
157
|
secret: string,
|
|
152
158
|
pushToken: string,
|
|
153
159
|
uid: string,
|
|
160
|
+
timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
154
161
|
appType: AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap],
|
|
155
162
|
}
|
|
156
163
|
}
|
package/auth.app_authn_pb.js
CHANGED
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_protobuf_duration_pb);
|
|
26
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
28
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
27
29
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
28
30
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
@@ -890,7 +892,8 @@ proto.Auth.AppAuthnProto.VerifySecretRequest.toObject = function(includeInstance
|
|
|
890
892
|
secret: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
891
893
|
pushToken: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
892
894
|
uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
893
|
-
|
|
895
|
+
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
896
|
+
appType: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
894
897
|
};
|
|
895
898
|
|
|
896
899
|
if (includeInstance) {
|
|
@@ -944,6 +947,11 @@ proto.Auth.AppAuthnProto.VerifySecretRequest.deserializeBinaryFromReader = funct
|
|
|
944
947
|
msg.setUid(value);
|
|
945
948
|
break;
|
|
946
949
|
case 5:
|
|
950
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
951
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
952
|
+
msg.setTimestamp(value);
|
|
953
|
+
break;
|
|
954
|
+
case 6:
|
|
947
955
|
var value = /** @type {!proto.Auth.AppAuthnProto.AppType} */ (reader.readEnum());
|
|
948
956
|
msg.setAppType(value);
|
|
949
957
|
break;
|
|
@@ -1004,10 +1012,18 @@ proto.Auth.AppAuthnProto.VerifySecretRequest.serializeBinaryToWriter = function(
|
|
|
1004
1012
|
f
|
|
1005
1013
|
);
|
|
1006
1014
|
}
|
|
1015
|
+
f = message.getTimestamp();
|
|
1016
|
+
if (f != null) {
|
|
1017
|
+
writer.writeMessage(
|
|
1018
|
+
5,
|
|
1019
|
+
f,
|
|
1020
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1021
|
+
);
|
|
1022
|
+
}
|
|
1007
1023
|
f = message.getAppType();
|
|
1008
1024
|
if (f !== 0.0) {
|
|
1009
1025
|
writer.writeEnum(
|
|
1010
|
-
|
|
1026
|
+
6,
|
|
1011
1027
|
f
|
|
1012
1028
|
);
|
|
1013
1029
|
}
|
|
@@ -1087,11 +1103,48 @@ proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setUid = function(value)
|
|
|
1087
1103
|
|
|
1088
1104
|
|
|
1089
1105
|
/**
|
|
1090
|
-
* optional
|
|
1106
|
+
* optional google.protobuf.Timestamp timestamp = 5;
|
|
1107
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1108
|
+
*/
|
|
1109
|
+
proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getTimestamp = function() {
|
|
1110
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1111
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1117
|
+
* @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
|
|
1118
|
+
*/
|
|
1119
|
+
proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setTimestamp = function(value) {
|
|
1120
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
1121
|
+
};
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Clears the message field making it undefined.
|
|
1126
|
+
* @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
|
|
1127
|
+
*/
|
|
1128
|
+
proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.clearTimestamp = function() {
|
|
1129
|
+
return this.setTimestamp(undefined);
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Returns whether this field is set.
|
|
1135
|
+
* @return {boolean}
|
|
1136
|
+
*/
|
|
1137
|
+
proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.hasTimestamp = function() {
|
|
1138
|
+
return jspb.Message.getField(this, 5) != null;
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* optional AppType app_type = 6;
|
|
1091
1144
|
* @return {!proto.Auth.AppAuthnProto.AppType}
|
|
1092
1145
|
*/
|
|
1093
1146
|
proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getAppType = function() {
|
|
1094
|
-
return /** @type {!proto.Auth.AppAuthnProto.AppType} */ (jspb.Message.getFieldWithDefault(this,
|
|
1147
|
+
return /** @type {!proto.Auth.AppAuthnProto.AppType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
1095
1148
|
};
|
|
1096
1149
|
|
|
1097
1150
|
|
|
@@ -1100,7 +1153,7 @@ proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getAppType = function() {
|
|
|
1100
1153
|
* @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
|
|
1101
1154
|
*/
|
|
1102
1155
|
proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setAppType = function(value) {
|
|
1103
|
-
return jspb.Message.setProto3EnumField(this,
|
|
1156
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
1104
1157
|
};
|
|
1105
1158
|
|
|
1106
1159
|
|
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];
|