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

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.email_pb.js CHANGED
@@ -29,7 +29,6 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
29
29
  goog.object.extend(proto, google_api_annotations_pb);
30
30
  goog.exportSymbol('proto.Auth.EmailProto', null, global);
31
31
  goog.exportSymbol('proto.Auth.EmailProto.AccountCreatedRequest', null, global);
32
- goog.exportSymbol('proto.Auth.EmailProto.AdminAccountEmailRequest', null, global);
33
32
  goog.exportSymbol('proto.Auth.EmailProto.AdminEmailType', null, global);
34
33
  goog.exportSymbol('proto.Auth.EmailProto.AdminRole', null, global);
35
34
  goog.exportSymbol('proto.Auth.EmailProto.AlarmEmailRequest', null, global);
@@ -98,27 +97,6 @@ if (goog.DEBUG && !COMPILED) {
98
97
  */
99
98
  proto.Auth.EmailProto.ResetPasswordRequest.displayName = 'proto.Auth.EmailProto.ResetPasswordRequest';
100
99
  }
101
- /**
102
- * Generated by JsPbCodeGenerator.
103
- * @param {Array=} opt_data Optional initial data array, typically from a
104
- * server response, or constructed directly in Javascript. The array is used
105
- * in place and becomes part of the constructed object. It is not cloned.
106
- * If no data is provided, the constructed object will be empty, but still
107
- * valid.
108
- * @extends {jspb.Message}
109
- * @constructor
110
- */
111
- proto.Auth.EmailProto.AdminAccountEmailRequest = function(opt_data) {
112
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
- };
114
- goog.inherits(proto.Auth.EmailProto.AdminAccountEmailRequest, jspb.Message);
115
- if (goog.DEBUG && !COMPILED) {
116
- /**
117
- * @public
118
- * @override
119
- */
120
- proto.Auth.EmailProto.AdminAccountEmailRequest.displayName = 'proto.Auth.EmailProto.AdminAccountEmailRequest';
121
- }
122
100
  /**
123
101
  * Generated by JsPbCodeGenerator.
124
102
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -900,436 +878,6 @@ proto.Auth.EmailProto.ResetPasswordRequest.prototype.setCompany = function(value
900
878
 
901
879
 
902
880
 
903
-
904
-
905
- if (jspb.Message.GENERATE_TO_OBJECT) {
906
- /**
907
- * Creates an object representation of this proto.
908
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
909
- * Optional fields that are not set will be set to undefined.
910
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
911
- * For the list of reserved names please see:
912
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
913
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
914
- * JSPB instance for transitional soy proto support:
915
- * http://goto/soy-param-migration
916
- * @return {!Object}
917
- */
918
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.toObject = function(opt_includeInstance) {
919
- return proto.Auth.EmailProto.AdminAccountEmailRequest.toObject(opt_includeInstance, this);
920
- };
921
-
922
-
923
- /**
924
- * Static version of the {@see toObject} method.
925
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
926
- * the JSPB instance for transitional soy proto support:
927
- * http://goto/soy-param-migration
928
- * @param {!proto.Auth.EmailProto.AdminAccountEmailRequest} msg The msg instance to transform.
929
- * @return {!Object}
930
- * @suppress {unusedLocalVariables} f is only used for nested messages
931
- */
932
- proto.Auth.EmailProto.AdminAccountEmailRequest.toObject = function(includeInstance, msg) {
933
- var f, obj = {
934
- mailto: jspb.Message.getFieldWithDefault(msg, 1, ""),
935
- mailfrom: jspb.Message.getFieldWithDefault(msg, 2, ""),
936
- familyName: jspb.Message.getFieldWithDefault(msg, 3, ""),
937
- givenName: jspb.Message.getFieldWithDefault(msg, 4, ""),
938
- logo: jspb.Message.getFieldWithDefault(msg, 5, ""),
939
- locale: jspb.Message.getFieldWithDefault(msg, 6, ""),
940
- link: jspb.Message.getFieldWithDefault(msg, 7, ""),
941
- operator: jspb.Message.getFieldWithDefault(msg, 8, ""),
942
- role: jspb.Message.getFieldWithDefault(msg, 9, 0),
943
- emailType: jspb.Message.getFieldWithDefault(msg, 10, 0),
944
- oldRole: jspb.Message.getFieldWithDefault(msg, 11, 0)
945
- };
946
-
947
- if (includeInstance) {
948
- obj.$jspbMessageInstance = msg;
949
- }
950
- return obj;
951
- };
952
- }
953
-
954
-
955
- /**
956
- * Deserializes binary data (in protobuf wire format).
957
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
958
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest}
959
- */
960
- proto.Auth.EmailProto.AdminAccountEmailRequest.deserializeBinary = function(bytes) {
961
- var reader = new jspb.BinaryReader(bytes);
962
- var msg = new proto.Auth.EmailProto.AdminAccountEmailRequest;
963
- return proto.Auth.EmailProto.AdminAccountEmailRequest.deserializeBinaryFromReader(msg, reader);
964
- };
965
-
966
-
967
- /**
968
- * Deserializes binary data (in protobuf wire format) from the
969
- * given reader into the given message object.
970
- * @param {!proto.Auth.EmailProto.AdminAccountEmailRequest} msg The message object to deserialize into.
971
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
972
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest}
973
- */
974
- proto.Auth.EmailProto.AdminAccountEmailRequest.deserializeBinaryFromReader = function(msg, reader) {
975
- while (reader.nextField()) {
976
- if (reader.isEndGroup()) {
977
- break;
978
- }
979
- var field = reader.getFieldNumber();
980
- switch (field) {
981
- case 1:
982
- var value = /** @type {string} */ (reader.readString());
983
- msg.setMailto(value);
984
- break;
985
- case 2:
986
- var value = /** @type {string} */ (reader.readString());
987
- msg.setMailfrom(value);
988
- break;
989
- case 3:
990
- var value = /** @type {string} */ (reader.readString());
991
- msg.setFamilyName(value);
992
- break;
993
- case 4:
994
- var value = /** @type {string} */ (reader.readString());
995
- msg.setGivenName(value);
996
- break;
997
- case 5:
998
- var value = /** @type {string} */ (reader.readString());
999
- msg.setLogo(value);
1000
- break;
1001
- case 6:
1002
- var value = /** @type {string} */ (reader.readString());
1003
- msg.setLocale(value);
1004
- break;
1005
- case 7:
1006
- var value = /** @type {string} */ (reader.readString());
1007
- msg.setLink(value);
1008
- break;
1009
- case 8:
1010
- var value = /** @type {string} */ (reader.readString());
1011
- msg.setOperator(value);
1012
- break;
1013
- case 9:
1014
- var value = /** @type {!proto.Auth.EmailProto.AdminRole} */ (reader.readEnum());
1015
- msg.setRole(value);
1016
- break;
1017
- case 10:
1018
- var value = /** @type {!proto.Auth.EmailProto.AdminEmailType} */ (reader.readEnum());
1019
- msg.setEmailType(value);
1020
- break;
1021
- case 11:
1022
- var value = /** @type {!proto.Auth.EmailProto.AdminRole} */ (reader.readEnum());
1023
- msg.setOldRole(value);
1024
- break;
1025
- default:
1026
- reader.skipField();
1027
- break;
1028
- }
1029
- }
1030
- return msg;
1031
- };
1032
-
1033
-
1034
- /**
1035
- * Serializes the message to binary data (in protobuf wire format).
1036
- * @return {!Uint8Array}
1037
- */
1038
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.serializeBinary = function() {
1039
- var writer = new jspb.BinaryWriter();
1040
- proto.Auth.EmailProto.AdminAccountEmailRequest.serializeBinaryToWriter(this, writer);
1041
- return writer.getResultBuffer();
1042
- };
1043
-
1044
-
1045
- /**
1046
- * Serializes the given message to binary data (in protobuf wire
1047
- * format), writing to the given BinaryWriter.
1048
- * @param {!proto.Auth.EmailProto.AdminAccountEmailRequest} message
1049
- * @param {!jspb.BinaryWriter} writer
1050
- * @suppress {unusedLocalVariables} f is only used for nested messages
1051
- */
1052
- proto.Auth.EmailProto.AdminAccountEmailRequest.serializeBinaryToWriter = function(message, writer) {
1053
- var f = undefined;
1054
- f = message.getMailto();
1055
- if (f.length > 0) {
1056
- writer.writeString(
1057
- 1,
1058
- f
1059
- );
1060
- }
1061
- f = message.getMailfrom();
1062
- if (f.length > 0) {
1063
- writer.writeString(
1064
- 2,
1065
- f
1066
- );
1067
- }
1068
- f = message.getFamilyName();
1069
- if (f.length > 0) {
1070
- writer.writeString(
1071
- 3,
1072
- f
1073
- );
1074
- }
1075
- f = message.getGivenName();
1076
- if (f.length > 0) {
1077
- writer.writeString(
1078
- 4,
1079
- f
1080
- );
1081
- }
1082
- f = message.getLogo();
1083
- if (f.length > 0) {
1084
- writer.writeString(
1085
- 5,
1086
- f
1087
- );
1088
- }
1089
- f = message.getLocale();
1090
- if (f.length > 0) {
1091
- writer.writeString(
1092
- 6,
1093
- f
1094
- );
1095
- }
1096
- f = message.getLink();
1097
- if (f.length > 0) {
1098
- writer.writeString(
1099
- 7,
1100
- f
1101
- );
1102
- }
1103
- f = message.getOperator();
1104
- if (f.length > 0) {
1105
- writer.writeString(
1106
- 8,
1107
- f
1108
- );
1109
- }
1110
- f = message.getRole();
1111
- if (f !== 0.0) {
1112
- writer.writeEnum(
1113
- 9,
1114
- f
1115
- );
1116
- }
1117
- f = message.getEmailType();
1118
- if (f !== 0.0) {
1119
- writer.writeEnum(
1120
- 10,
1121
- f
1122
- );
1123
- }
1124
- f = message.getOldRole();
1125
- if (f !== 0.0) {
1126
- writer.writeEnum(
1127
- 11,
1128
- f
1129
- );
1130
- }
1131
- };
1132
-
1133
-
1134
- /**
1135
- * optional string mailTo = 1;
1136
- * @return {string}
1137
- */
1138
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getMailto = function() {
1139
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1140
- };
1141
-
1142
-
1143
- /**
1144
- * @param {string} value
1145
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1146
- */
1147
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setMailto = function(value) {
1148
- return jspb.Message.setProto3StringField(this, 1, value);
1149
- };
1150
-
1151
-
1152
- /**
1153
- * optional string mailFrom = 2;
1154
- * @return {string}
1155
- */
1156
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getMailfrom = function() {
1157
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1158
- };
1159
-
1160
-
1161
- /**
1162
- * @param {string} value
1163
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1164
- */
1165
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setMailfrom = function(value) {
1166
- return jspb.Message.setProto3StringField(this, 2, value);
1167
- };
1168
-
1169
-
1170
- /**
1171
- * optional string family_name = 3;
1172
- * @return {string}
1173
- */
1174
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getFamilyName = function() {
1175
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1176
- };
1177
-
1178
-
1179
- /**
1180
- * @param {string} value
1181
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1182
- */
1183
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setFamilyName = function(value) {
1184
- return jspb.Message.setProto3StringField(this, 3, value);
1185
- };
1186
-
1187
-
1188
- /**
1189
- * optional string given_name = 4;
1190
- * @return {string}
1191
- */
1192
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getGivenName = function() {
1193
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1194
- };
1195
-
1196
-
1197
- /**
1198
- * @param {string} value
1199
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1200
- */
1201
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setGivenName = function(value) {
1202
- return jspb.Message.setProto3StringField(this, 4, value);
1203
- };
1204
-
1205
-
1206
- /**
1207
- * optional string logo = 5;
1208
- * @return {string}
1209
- */
1210
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getLogo = function() {
1211
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1212
- };
1213
-
1214
-
1215
- /**
1216
- * @param {string} value
1217
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1218
- */
1219
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setLogo = function(value) {
1220
- return jspb.Message.setProto3StringField(this, 5, value);
1221
- };
1222
-
1223
-
1224
- /**
1225
- * optional string locale = 6;
1226
- * @return {string}
1227
- */
1228
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getLocale = function() {
1229
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1230
- };
1231
-
1232
-
1233
- /**
1234
- * @param {string} value
1235
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1236
- */
1237
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setLocale = function(value) {
1238
- return jspb.Message.setProto3StringField(this, 6, value);
1239
- };
1240
-
1241
-
1242
- /**
1243
- * optional string link = 7;
1244
- * @return {string}
1245
- */
1246
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getLink = function() {
1247
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1248
- };
1249
-
1250
-
1251
- /**
1252
- * @param {string} value
1253
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1254
- */
1255
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setLink = function(value) {
1256
- return jspb.Message.setProto3StringField(this, 7, value);
1257
- };
1258
-
1259
-
1260
- /**
1261
- * optional string operator = 8;
1262
- * @return {string}
1263
- */
1264
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getOperator = function() {
1265
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1266
- };
1267
-
1268
-
1269
- /**
1270
- * @param {string} value
1271
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1272
- */
1273
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setOperator = function(value) {
1274
- return jspb.Message.setProto3StringField(this, 8, value);
1275
- };
1276
-
1277
-
1278
- /**
1279
- * optional AdminRole role = 9;
1280
- * @return {!proto.Auth.EmailProto.AdminRole}
1281
- */
1282
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getRole = function() {
1283
- return /** @type {!proto.Auth.EmailProto.AdminRole} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
1284
- };
1285
-
1286
-
1287
- /**
1288
- * @param {!proto.Auth.EmailProto.AdminRole} value
1289
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1290
- */
1291
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setRole = function(value) {
1292
- return jspb.Message.setProto3EnumField(this, 9, value);
1293
- };
1294
-
1295
-
1296
- /**
1297
- * optional AdminEmailType email_type = 10;
1298
- * @return {!proto.Auth.EmailProto.AdminEmailType}
1299
- */
1300
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getEmailType = function() {
1301
- return /** @type {!proto.Auth.EmailProto.AdminEmailType} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
1302
- };
1303
-
1304
-
1305
- /**
1306
- * @param {!proto.Auth.EmailProto.AdminEmailType} value
1307
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1308
- */
1309
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setEmailType = function(value) {
1310
- return jspb.Message.setProto3EnumField(this, 10, value);
1311
- };
1312
-
1313
-
1314
- /**
1315
- * optional AdminRole old_role = 11;
1316
- * @return {!proto.Auth.EmailProto.AdminRole}
1317
- */
1318
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.getOldRole = function() {
1319
- return /** @type {!proto.Auth.EmailProto.AdminRole} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
1320
- };
1321
-
1322
-
1323
- /**
1324
- * @param {!proto.Auth.EmailProto.AdminRole} value
1325
- * @return {!proto.Auth.EmailProto.AdminAccountEmailRequest} returns this
1326
- */
1327
- proto.Auth.EmailProto.AdminAccountEmailRequest.prototype.setOldRole = function(value) {
1328
- return jspb.Message.setProto3EnumField(this, 11, value);
1329
- };
1330
-
1331
-
1332
-
1333
881
  /**
1334
882
  * List of repeated fields within this message type.
1335
883
  * @private {!Array<number>}
@@ -23,15 +23,6 @@ type EmailGRPCResetPassword = {
23
23
  readonly responseType: typeof google_protobuf_empty_pb.Empty;
24
24
  };
25
25
 
26
- type EmailGRPCAdminEmail = {
27
- readonly methodName: string;
28
- readonly service: typeof EmailGRPC;
29
- readonly requestStream: false;
30
- readonly responseStream: false;
31
- readonly requestType: typeof auth_email_pb.EmailProto.AdminAccountEmailRequest;
32
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
33
- };
34
-
35
26
  type EmailGRPCAlarmEmail = {
36
27
  readonly methodName: string;
37
28
  readonly service: typeof EmailGRPC;
@@ -45,7 +36,6 @@ export class EmailGRPC {
45
36
  static readonly serviceName: string;
46
37
  static readonly AccountCreated: EmailGRPCAccountCreated;
47
38
  static readonly ResetPassword: EmailGRPCResetPassword;
48
- static readonly AdminEmail: EmailGRPCAdminEmail;
49
39
  static readonly AlarmEmail: EmailGRPCAlarmEmail;
50
40
  }
51
41
 
@@ -99,15 +89,6 @@ export class EmailGRPCClient {
99
89
  requestMessage: auth_email_pb.EmailProto.ResetPasswordRequest,
100
90
  callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
101
91
  ): UnaryResponse;
102
- adminEmail(
103
- requestMessage: auth_email_pb.EmailProto.AdminAccountEmailRequest,
104
- metadata: grpc.Metadata,
105
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
106
- ): UnaryResponse;
107
- adminEmail(
108
- requestMessage: auth_email_pb.EmailProto.AdminAccountEmailRequest,
109
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
110
- ): UnaryResponse;
111
92
  alarmEmail(
112
93
  requestMessage: auth_email_pb.EmailProto.AlarmEmailRequest,
113
94
  metadata: grpc.Metadata,
@@ -29,15 +29,6 @@ EmailGRPC.ResetPassword = {
29
29
  responseType: google_protobuf_empty_pb.Empty
30
30
  };
31
31
 
32
- EmailGRPC.AdminEmail = {
33
- methodName: "AdminEmail",
34
- service: EmailGRPC,
35
- requestStream: false,
36
- responseStream: false,
37
- requestType: auth_email_pb.EmailProto.AdminAccountEmailRequest,
38
- responseType: google_protobuf_empty_pb.Empty
39
- };
40
-
41
32
  EmailGRPC.AlarmEmail = {
42
33
  methodName: "AlarmEmail",
43
34
  service: EmailGRPC,
@@ -116,37 +107,6 @@ EmailGRPCClient.prototype.resetPassword = function resetPassword(requestMessage,
116
107
  };
117
108
  };
118
109
 
119
- EmailGRPCClient.prototype.adminEmail = function adminEmail(requestMessage, metadata, callback) {
120
- if (arguments.length === 2) {
121
- callback = arguments[1];
122
- }
123
- var client = grpc.unary(EmailGRPC.AdminEmail, {
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
110
  EmailGRPCClient.prototype.alarmEmail = function alarmEmail(requestMessage, metadata, callback) {
151
111
  if (arguments.length === 2) {
152
112
  callback = arguments[1];
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.2.0",
8
+ "version": "3.3.0-alpha.1",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [