@aceplus/smartace-api 2.9.0-alpha.3 → 2.9.0-alpha.7

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/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": "2.9.0-alpha.3",
8
+ "version": "2.9.0-alpha.7",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -84,7 +84,16 @@ type LocalAccountGRPCForgotPassword = {
84
84
  readonly requestStream: false;
85
85
  readonly responseStream: false;
86
86
  readonly requestType: typeof auth_account_pb.AccountProto.ForgotPasswordRequest;
87
- readonly responseType: typeof auth_account_pb.AccountProto.ChangePasswordReply;
87
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
88
+ };
89
+
90
+ type LocalAccountGRPCResetPassword = {
91
+ readonly methodName: string;
92
+ readonly service: typeof LocalAccountGRPC;
93
+ readonly requestStream: false;
94
+ readonly responseStream: false;
95
+ readonly requestType: typeof auth_account_pb.AccountProto.ResetPasswordRequest;
96
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
88
97
  };
89
98
 
90
99
  type LocalAccountGRPCChangePassword = {
@@ -170,6 +179,7 @@ export class LocalAccountGRPC {
170
179
  static readonly SearchApp: LocalAccountGRPCSearchApp;
171
180
  static readonly ActivateAccount: LocalAccountGRPCActivateAccount;
172
181
  static readonly ForgotPassword: LocalAccountGRPCForgotPassword;
182
+ static readonly ResetPassword: LocalAccountGRPCResetPassword;
173
183
  static readonly ChangePassword: LocalAccountGRPCChangePassword;
174
184
  static readonly EnableAccount: LocalAccountGRPCEnableAccount;
175
185
  static readonly DisableAccount: LocalAccountGRPCDisableAccount;
@@ -287,11 +297,20 @@ export class LocalAccountGRPCClient {
287
297
  forgotPassword(
288
298
  requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
289
299
  metadata: grpc.Metadata,
290
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
300
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
291
301
  ): UnaryResponse;
292
302
  forgotPassword(
293
303
  requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
294
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
304
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
305
+ ): UnaryResponse;
306
+ resetPassword(
307
+ requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
308
+ metadata: grpc.Metadata,
309
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
310
+ ): UnaryResponse;
311
+ resetPassword(
312
+ requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
313
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
295
314
  ): UnaryResponse;
296
315
  changePassword(
297
316
  requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
@@ -90,7 +90,16 @@ LocalAccountGRPC.ForgotPassword = {
90
90
  requestStream: false,
91
91
  responseStream: false,
92
92
  requestType: auth_account_pb.AccountProto.ForgotPasswordRequest,
93
- responseType: auth_account_pb.AccountProto.ChangePasswordReply
93
+ responseType: google_protobuf_empty_pb.Empty
94
+ };
95
+
96
+ LocalAccountGRPC.ResetPassword = {
97
+ methodName: "ResetPassword",
98
+ service: LocalAccountGRPC,
99
+ requestStream: false,
100
+ responseStream: false,
101
+ requestType: auth_account_pb.AccountProto.ResetPasswordRequest,
102
+ responseType: google_protobuf_empty_pb.Empty
94
103
  };
95
104
 
96
105
  LocalAccountGRPC.ChangePassword = {
@@ -451,6 +460,37 @@ LocalAccountGRPCClient.prototype.forgotPassword = function forgotPassword(reques
451
460
  };
452
461
  };
453
462
 
463
+ LocalAccountGRPCClient.prototype.resetPassword = function resetPassword(requestMessage, metadata, callback) {
464
+ if (arguments.length === 2) {
465
+ callback = arguments[1];
466
+ }
467
+ var client = grpc.unary(LocalAccountGRPC.ResetPassword, {
468
+ request: requestMessage,
469
+ host: this.serviceHost,
470
+ metadata: metadata,
471
+ transport: this.options.transport,
472
+ debug: this.options.debug,
473
+ onEnd: function (response) {
474
+ if (callback) {
475
+ if (response.status !== grpc.Code.OK) {
476
+ var err = new Error(response.statusMessage);
477
+ err.code = response.status;
478
+ err.metadata = response.trailers;
479
+ callback(err, null);
480
+ } else {
481
+ callback(null, response.message);
482
+ }
483
+ }
484
+ }
485
+ });
486
+ return {
487
+ cancel: function () {
488
+ callback = null;
489
+ client.close();
490
+ }
491
+ };
492
+ };
493
+
454
494
  LocalAccountGRPCClient.prototype.changePassword = function changePassword(requestMessage, metadata, callback) {
455
495
  if (arguments.length === 2) {
456
496
  callback = arguments[1];