@aceplus/smartace-api 2.9.0-alpha.2 → 2.9.0-alpha.4
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.
|
@@ -157,7 +157,7 @@ type ClusterAccountGRPCForgotPassword = {
|
|
|
157
157
|
readonly requestStream: false;
|
|
158
158
|
readonly responseStream: false;
|
|
159
159
|
readonly requestType: typeof auth_account_pb.AccountProto.ForgotPasswordRequest;
|
|
160
|
-
readonly responseType: typeof
|
|
160
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
161
161
|
};
|
|
162
162
|
|
|
163
163
|
type ClusterAccountGRPCResetPassword = {
|
|
@@ -166,7 +166,7 @@ type ClusterAccountGRPCResetPassword = {
|
|
|
166
166
|
readonly requestStream: false;
|
|
167
167
|
readonly responseStream: false;
|
|
168
168
|
readonly requestType: typeof auth_account_pb.AccountProto.ResetPasswordRequest;
|
|
169
|
-
readonly responseType: typeof
|
|
169
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
type ClusterAccountGRPCChangePassword = {
|
|
@@ -429,20 +429,20 @@ export class ClusterAccountGRPCClient {
|
|
|
429
429
|
forgotPassword(
|
|
430
430
|
requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
431
431
|
metadata: grpc.Metadata,
|
|
432
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
432
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
433
433
|
): UnaryResponse;
|
|
434
434
|
forgotPassword(
|
|
435
435
|
requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
436
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
436
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
437
437
|
): UnaryResponse;
|
|
438
438
|
resetPassword(
|
|
439
439
|
requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
440
440
|
metadata: grpc.Metadata,
|
|
441
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
441
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
442
442
|
): UnaryResponse;
|
|
443
443
|
resetPassword(
|
|
444
444
|
requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
445
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
445
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
446
446
|
): UnaryResponse;
|
|
447
447
|
changePassword(
|
|
448
448
|
requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
|
|
@@ -384,7 +384,7 @@ ClusterAccountGRPC.ForgotPassword = {
|
|
|
384
384
|
requestStream: false,
|
|
385
385
|
responseStream: false,
|
|
386
386
|
requestType: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
387
|
-
responseType:
|
|
387
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
388
388
|
};
|
|
389
389
|
|
|
390
390
|
ClusterAccountGRPC.ResetPassword = {
|
|
@@ -393,7 +393,7 @@ ClusterAccountGRPC.ResetPassword = {
|
|
|
393
393
|
requestStream: false,
|
|
394
394
|
responseStream: false,
|
|
395
395
|
requestType: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
396
|
-
responseType:
|
|
396
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
397
397
|
};
|
|
398
398
|
|
|
399
399
|
ClusterAccountGRPC.ChangePassword = {
|
package/package.json
CHANGED
|
@@ -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
|
|
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:
|
|
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:
|
|
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:
|
|
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];
|