@aceplus/smartace-api 2.7.0-alpha.1 → 2.8.0-mateusz-adminActivation.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/README.md +309 -0
- package/auth.account_pb.d.ts +100 -0
- package/auth.account_pb.js +793 -57
- package/auth.account_pb_service.d.ts +38 -0
- package/auth.account_pb_service.js +80 -0
- package/package.json +1 -1
- package/platform.local_account_pb.d.ts +24 -0
- package/platform.local_account_pb.js +183 -1
- package/platform.local_account_pb_service.d.ts +19 -0
- package/platform.local_account_pb_service.js +40 -0
|
@@ -205,6 +205,24 @@ type ClusterAccountGRPCDeleteAccountClusterRole = {
|
|
|
205
205
|
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
+
type ClusterAccountGRPCRetrieveActivationStatuses = {
|
|
209
|
+
readonly methodName: string;
|
|
210
|
+
readonly service: typeof ClusterAccountGRPC;
|
|
211
|
+
readonly requestStream: false;
|
|
212
|
+
readonly responseStream: false;
|
|
213
|
+
readonly requestType: typeof auth_account_pb.AccountProto.RetrieveAccountActivationStatusesRequest;
|
|
214
|
+
readonly responseType: typeof auth_account_pb.AccountProto.RetrieveAccountActivationStatusesReply;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
type ClusterAccountGRPCResendAdminUserInvitation = {
|
|
218
|
+
readonly methodName: string;
|
|
219
|
+
readonly service: typeof ClusterAccountGRPC;
|
|
220
|
+
readonly requestStream: false;
|
|
221
|
+
readonly responseStream: false;
|
|
222
|
+
readonly requestType: typeof auth_account_pb.AccountProto.ResendInvitationRequest;
|
|
223
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
224
|
+
};
|
|
225
|
+
|
|
208
226
|
export class ClusterAccountGRPC {
|
|
209
227
|
static readonly serviceName: string;
|
|
210
228
|
static readonly InviteAdminUser: ClusterAccountGRPCInviteAdminUser;
|
|
@@ -221,6 +239,8 @@ export class ClusterAccountGRPC {
|
|
|
221
239
|
static readonly RetrievePushInfo: ClusterAccountGRPCRetrievePushInfo;
|
|
222
240
|
static readonly SetAccountClusterRole: ClusterAccountGRPCSetAccountClusterRole;
|
|
223
241
|
static readonly DeleteAccountClusterRole: ClusterAccountGRPCDeleteAccountClusterRole;
|
|
242
|
+
static readonly RetrieveActivationStatuses: ClusterAccountGRPCRetrieveActivationStatuses;
|
|
243
|
+
static readonly ResendAdminUserInvitation: ClusterAccountGRPCResendAdminUserInvitation;
|
|
224
244
|
}
|
|
225
245
|
|
|
226
246
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -450,5 +470,23 @@ export class ClusterAccountGRPCClient {
|
|
|
450
470
|
requestMessage: auth_account_pb.AccountProto.AccountClusterRoleRequest,
|
|
451
471
|
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
452
472
|
): UnaryResponse;
|
|
473
|
+
retrieveActivationStatuses(
|
|
474
|
+
requestMessage: auth_account_pb.AccountProto.RetrieveAccountActivationStatusesRequest,
|
|
475
|
+
metadata: grpc.Metadata,
|
|
476
|
+
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.RetrieveAccountActivationStatusesReply|null) => void
|
|
477
|
+
): UnaryResponse;
|
|
478
|
+
retrieveActivationStatuses(
|
|
479
|
+
requestMessage: auth_account_pb.AccountProto.RetrieveAccountActivationStatusesRequest,
|
|
480
|
+
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.RetrieveAccountActivationStatusesReply|null) => void
|
|
481
|
+
): UnaryResponse;
|
|
482
|
+
resendAdminUserInvitation(
|
|
483
|
+
requestMessage: auth_account_pb.AccountProto.ResendInvitationRequest,
|
|
484
|
+
metadata: grpc.Metadata,
|
|
485
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
486
|
+
): UnaryResponse;
|
|
487
|
+
resendAdminUserInvitation(
|
|
488
|
+
requestMessage: auth_account_pb.AccountProto.ResendInvitationRequest,
|
|
489
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
490
|
+
): UnaryResponse;
|
|
453
491
|
}
|
|
454
492
|
|
|
@@ -432,6 +432,24 @@ ClusterAccountGRPC.DeleteAccountClusterRole = {
|
|
|
432
432
|
responseType: google_protobuf_empty_pb.Empty
|
|
433
433
|
};
|
|
434
434
|
|
|
435
|
+
ClusterAccountGRPC.RetrieveActivationStatuses = {
|
|
436
|
+
methodName: "RetrieveActivationStatuses",
|
|
437
|
+
service: ClusterAccountGRPC,
|
|
438
|
+
requestStream: false,
|
|
439
|
+
responseStream: false,
|
|
440
|
+
requestType: auth_account_pb.AccountProto.RetrieveAccountActivationStatusesRequest,
|
|
441
|
+
responseType: auth_account_pb.AccountProto.RetrieveAccountActivationStatusesReply
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
ClusterAccountGRPC.ResendAdminUserInvitation = {
|
|
445
|
+
methodName: "ResendAdminUserInvitation",
|
|
446
|
+
service: ClusterAccountGRPC,
|
|
447
|
+
requestStream: false,
|
|
448
|
+
responseStream: false,
|
|
449
|
+
requestType: auth_account_pb.AccountProto.ResendInvitationRequest,
|
|
450
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
451
|
+
};
|
|
452
|
+
|
|
435
453
|
exports.ClusterAccountGRPC = ClusterAccountGRPC;
|
|
436
454
|
|
|
437
455
|
function ClusterAccountGRPCClient(serviceHost, options) {
|
|
@@ -873,5 +891,67 @@ ClusterAccountGRPCClient.prototype.deleteAccountClusterRole = function deleteAcc
|
|
|
873
891
|
};
|
|
874
892
|
};
|
|
875
893
|
|
|
894
|
+
ClusterAccountGRPCClient.prototype.retrieveActivationStatuses = function retrieveActivationStatuses(requestMessage, metadata, callback) {
|
|
895
|
+
if (arguments.length === 2) {
|
|
896
|
+
callback = arguments[1];
|
|
897
|
+
}
|
|
898
|
+
var client = grpc.unary(ClusterAccountGRPC.RetrieveActivationStatuses, {
|
|
899
|
+
request: requestMessage,
|
|
900
|
+
host: this.serviceHost,
|
|
901
|
+
metadata: metadata,
|
|
902
|
+
transport: this.options.transport,
|
|
903
|
+
debug: this.options.debug,
|
|
904
|
+
onEnd: function (response) {
|
|
905
|
+
if (callback) {
|
|
906
|
+
if (response.status !== grpc.Code.OK) {
|
|
907
|
+
var err = new Error(response.statusMessage);
|
|
908
|
+
err.code = response.status;
|
|
909
|
+
err.metadata = response.trailers;
|
|
910
|
+
callback(err, null);
|
|
911
|
+
} else {
|
|
912
|
+
callback(null, response.message);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
return {
|
|
918
|
+
cancel: function () {
|
|
919
|
+
callback = null;
|
|
920
|
+
client.close();
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
ClusterAccountGRPCClient.prototype.resendAdminUserInvitation = function resendAdminUserInvitation(requestMessage, metadata, callback) {
|
|
926
|
+
if (arguments.length === 2) {
|
|
927
|
+
callback = arguments[1];
|
|
928
|
+
}
|
|
929
|
+
var client = grpc.unary(ClusterAccountGRPC.ResendAdminUserInvitation, {
|
|
930
|
+
request: requestMessage,
|
|
931
|
+
host: this.serviceHost,
|
|
932
|
+
metadata: metadata,
|
|
933
|
+
transport: this.options.transport,
|
|
934
|
+
debug: this.options.debug,
|
|
935
|
+
onEnd: function (response) {
|
|
936
|
+
if (callback) {
|
|
937
|
+
if (response.status !== grpc.Code.OK) {
|
|
938
|
+
var err = new Error(response.statusMessage);
|
|
939
|
+
err.code = response.status;
|
|
940
|
+
err.metadata = response.trailers;
|
|
941
|
+
callback(err, null);
|
|
942
|
+
} else {
|
|
943
|
+
callback(null, response.message);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
return {
|
|
949
|
+
cancel: function () {
|
|
950
|
+
callback = null;
|
|
951
|
+
client.close();
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
|
|
876
956
|
exports.ClusterAccountGRPCClient = ClusterAccountGRPCClient;
|
|
877
957
|
|
package/package.json
CHANGED
|
@@ -46,6 +46,9 @@ export class LocalAccountProto extends jspb.Message {
|
|
|
46
46
|
setAssignedRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
|
|
47
47
|
addAssignedRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
|
|
48
48
|
|
|
49
|
+
getStatus(): auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap];
|
|
50
|
+
setStatus(value: auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap]): void;
|
|
51
|
+
|
|
49
52
|
serializeBinary(): Uint8Array;
|
|
50
53
|
toObject(includeInstance?: boolean): LocalAccountProto.AsObject;
|
|
51
54
|
static toObject(includeInstance: boolean, msg: LocalAccountProto): LocalAccountProto.AsObject;
|
|
@@ -69,6 +72,7 @@ export namespace LocalAccountProto {
|
|
|
69
72
|
enabled: boolean,
|
|
70
73
|
expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
71
74
|
assignedRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
|
|
75
|
+
status: auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap],
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
export class CreateAdminRequest extends jspb.Message {
|
|
@@ -406,5 +410,25 @@ export namespace LocalAccountProto {
|
|
|
406
410
|
expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
407
411
|
}
|
|
408
412
|
}
|
|
413
|
+
|
|
414
|
+
export class ResendInvitationRequest extends jspb.Message {
|
|
415
|
+
getId(): number;
|
|
416
|
+
setId(value: number): void;
|
|
417
|
+
|
|
418
|
+
serializeBinary(): Uint8Array;
|
|
419
|
+
toObject(includeInstance?: boolean): ResendInvitationRequest.AsObject;
|
|
420
|
+
static toObject(includeInstance: boolean, msg: ResendInvitationRequest): ResendInvitationRequest.AsObject;
|
|
421
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
422
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
423
|
+
static serializeBinaryToWriter(message: ResendInvitationRequest, writer: jspb.BinaryWriter): void;
|
|
424
|
+
static deserializeBinary(bytes: Uint8Array): ResendInvitationRequest;
|
|
425
|
+
static deserializeBinaryFromReader(message: ResendInvitationRequest, reader: jspb.BinaryReader): ResendInvitationRequest;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export namespace ResendInvitationRequest {
|
|
429
|
+
export type AsObject = {
|
|
430
|
+
id: number,
|
|
431
|
+
}
|
|
432
|
+
}
|
|
409
433
|
}
|
|
410
434
|
|
|
@@ -38,6 +38,7 @@ goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAppRequest', null, glo
|
|
|
38
38
|
goog.exportSymbol('proto.Platform.LocalAccountProto.DisableAccount', null, global);
|
|
39
39
|
goog.exportSymbol('proto.Platform.LocalAccountProto.EnableAccount', null, global);
|
|
40
40
|
goog.exportSymbol('proto.Platform.LocalAccountProto.RemoveClientRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.Platform.LocalAccountProto.ResendInvitationRequest', null, global);
|
|
41
42
|
goog.exportSymbol('proto.Platform.LocalAccountProto.SearchReply', null, global);
|
|
42
43
|
goog.exportSymbol('proto.Platform.LocalAccountProto.SearchRequest', null, global);
|
|
43
44
|
goog.exportSymbol('proto.Platform.LocalAccountProto.SetClientRequest', null, global);
|
|
@@ -295,6 +296,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
295
296
|
*/
|
|
296
297
|
proto.Platform.LocalAccountProto.UpdateExpiredAt.displayName = 'proto.Platform.LocalAccountProto.UpdateExpiredAt';
|
|
297
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Generated by JsPbCodeGenerator.
|
|
301
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
302
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
303
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
304
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
305
|
+
* valid.
|
|
306
|
+
* @extends {jspb.Message}
|
|
307
|
+
* @constructor
|
|
308
|
+
*/
|
|
309
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest = function(opt_data) {
|
|
310
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
311
|
+
};
|
|
312
|
+
goog.inherits(proto.Platform.LocalAccountProto.ResendInvitationRequest, jspb.Message);
|
|
313
|
+
if (goog.DEBUG && !COMPILED) {
|
|
314
|
+
/**
|
|
315
|
+
* @public
|
|
316
|
+
* @override
|
|
317
|
+
*/
|
|
318
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.displayName = 'proto.Platform.LocalAccountProto.ResendInvitationRequest';
|
|
319
|
+
}
|
|
298
320
|
|
|
299
321
|
/**
|
|
300
322
|
* List of repeated fields within this message type.
|
|
@@ -344,7 +366,8 @@ proto.Platform.LocalAccountProto.toObject = function(includeInstance, msg) {
|
|
|
344
366
|
groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
345
367
|
enabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
346
368
|
expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
347
|
-
assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
|
|
369
|
+
assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
|
|
370
|
+
status: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
348
371
|
};
|
|
349
372
|
|
|
350
373
|
if (includeInstance) {
|
|
@@ -428,6 +451,10 @@ proto.Platform.LocalAccountProto.deserializeBinaryFromReader = function(msg, rea
|
|
|
428
451
|
msg.addAssignedRoles(values[i]);
|
|
429
452
|
}
|
|
430
453
|
break;
|
|
454
|
+
case 12:
|
|
455
|
+
var value = /** @type {!proto.Auth.AccountProto.ActivationStatuses} */ (reader.readEnum());
|
|
456
|
+
msg.setStatus(value);
|
|
457
|
+
break;
|
|
431
458
|
default:
|
|
432
459
|
reader.skipField();
|
|
433
460
|
break;
|
|
@@ -535,6 +562,13 @@ proto.Platform.LocalAccountProto.serializeBinaryToWriter = function(message, wri
|
|
|
535
562
|
f
|
|
536
563
|
);
|
|
537
564
|
}
|
|
565
|
+
f = message.getStatus();
|
|
566
|
+
if (f !== 0.0) {
|
|
567
|
+
writer.writeEnum(
|
|
568
|
+
12,
|
|
569
|
+
f
|
|
570
|
+
);
|
|
571
|
+
}
|
|
538
572
|
};
|
|
539
573
|
|
|
540
574
|
|
|
@@ -2897,6 +2931,136 @@ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.hasExpiredAt = functi
|
|
|
2897
2931
|
};
|
|
2898
2932
|
|
|
2899
2933
|
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2938
|
+
/**
|
|
2939
|
+
* Creates an object representation of this proto.
|
|
2940
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2941
|
+
* Optional fields that are not set will be set to undefined.
|
|
2942
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2943
|
+
* For the list of reserved names please see:
|
|
2944
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2945
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2946
|
+
* JSPB instance for transitional soy proto support:
|
|
2947
|
+
* http://goto/soy-param-migration
|
|
2948
|
+
* @return {!Object}
|
|
2949
|
+
*/
|
|
2950
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2951
|
+
return proto.Platform.LocalAccountProto.ResendInvitationRequest.toObject(opt_includeInstance, this);
|
|
2952
|
+
};
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
/**
|
|
2956
|
+
* Static version of the {@see toObject} method.
|
|
2957
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2958
|
+
* the JSPB instance for transitional soy proto support:
|
|
2959
|
+
* http://goto/soy-param-migration
|
|
2960
|
+
* @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} msg The msg instance to transform.
|
|
2961
|
+
* @return {!Object}
|
|
2962
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2963
|
+
*/
|
|
2964
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.toObject = function(includeInstance, msg) {
|
|
2965
|
+
var f, obj = {
|
|
2966
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
if (includeInstance) {
|
|
2970
|
+
obj.$jspbMessageInstance = msg;
|
|
2971
|
+
}
|
|
2972
|
+
return obj;
|
|
2973
|
+
};
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2979
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2980
|
+
* @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest}
|
|
2981
|
+
*/
|
|
2982
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinary = function(bytes) {
|
|
2983
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2984
|
+
var msg = new proto.Platform.LocalAccountProto.ResendInvitationRequest;
|
|
2985
|
+
return proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinaryFromReader(msg, reader);
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
/**
|
|
2990
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2991
|
+
* given reader into the given message object.
|
|
2992
|
+
* @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} msg The message object to deserialize into.
|
|
2993
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2994
|
+
* @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest}
|
|
2995
|
+
*/
|
|
2996
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2997
|
+
while (reader.nextField()) {
|
|
2998
|
+
if (reader.isEndGroup()) {
|
|
2999
|
+
break;
|
|
3000
|
+
}
|
|
3001
|
+
var field = reader.getFieldNumber();
|
|
3002
|
+
switch (field) {
|
|
3003
|
+
case 1:
|
|
3004
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3005
|
+
msg.setId(value);
|
|
3006
|
+
break;
|
|
3007
|
+
default:
|
|
3008
|
+
reader.skipField();
|
|
3009
|
+
break;
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
return msg;
|
|
3013
|
+
};
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
/**
|
|
3017
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3018
|
+
* @return {!Uint8Array}
|
|
3019
|
+
*/
|
|
3020
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.serializeBinary = function() {
|
|
3021
|
+
var writer = new jspb.BinaryWriter();
|
|
3022
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.serializeBinaryToWriter(this, writer);
|
|
3023
|
+
return writer.getResultBuffer();
|
|
3024
|
+
};
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
/**
|
|
3028
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3029
|
+
* format), writing to the given BinaryWriter.
|
|
3030
|
+
* @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} message
|
|
3031
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3032
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3033
|
+
*/
|
|
3034
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3035
|
+
var f = undefined;
|
|
3036
|
+
f = message.getId();
|
|
3037
|
+
if (f !== 0) {
|
|
3038
|
+
writer.writeInt64(
|
|
3039
|
+
1,
|
|
3040
|
+
f
|
|
3041
|
+
);
|
|
3042
|
+
}
|
|
3043
|
+
};
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
/**
|
|
3047
|
+
* optional int64 id = 1;
|
|
3048
|
+
* @return {number}
|
|
3049
|
+
*/
|
|
3050
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.getId = function() {
|
|
3051
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3052
|
+
};
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
/**
|
|
3056
|
+
* @param {number} value
|
|
3057
|
+
* @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest} returns this
|
|
3058
|
+
*/
|
|
3059
|
+
proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.setId = function(value) {
|
|
3060
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3061
|
+
};
|
|
3062
|
+
|
|
3063
|
+
|
|
2900
3064
|
/**
|
|
2901
3065
|
* optional int64 id = 1;
|
|
2902
3066
|
* @return {number}
|
|
@@ -3133,4 +3297,22 @@ proto.Platform.LocalAccountProto.prototype.clearAssignedRolesList = function() {
|
|
|
3133
3297
|
};
|
|
3134
3298
|
|
|
3135
3299
|
|
|
3300
|
+
/**
|
|
3301
|
+
* optional Auth.AccountProto.ActivationStatuses status = 12;
|
|
3302
|
+
* @return {!proto.Auth.AccountProto.ActivationStatuses}
|
|
3303
|
+
*/
|
|
3304
|
+
proto.Platform.LocalAccountProto.prototype.getStatus = function() {
|
|
3305
|
+
return /** @type {!proto.Auth.AccountProto.ActivationStatuses} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
3306
|
+
};
|
|
3307
|
+
|
|
3308
|
+
|
|
3309
|
+
/**
|
|
3310
|
+
* @param {!proto.Auth.AccountProto.ActivationStatuses} value
|
|
3311
|
+
* @return {!proto.Platform.LocalAccountProto} returns this
|
|
3312
|
+
*/
|
|
3313
|
+
proto.Platform.LocalAccountProto.prototype.setStatus = function(value) {
|
|
3314
|
+
return jspb.Message.setProto3EnumField(this, 12, value);
|
|
3315
|
+
};
|
|
3316
|
+
|
|
3317
|
+
|
|
3136
3318
|
goog.object.extend(exports, proto.Platform);
|
|
@@ -150,6 +150,15 @@ type LocalAccountGRPCRemoveClient = {
|
|
|
150
150
|
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
+
type LocalAccountGRPCResendAdminUserInvitation = {
|
|
154
|
+
readonly methodName: string;
|
|
155
|
+
readonly service: typeof LocalAccountGRPC;
|
|
156
|
+
readonly requestStream: false;
|
|
157
|
+
readonly responseStream: false;
|
|
158
|
+
readonly requestType: typeof platform_local_account_pb.LocalAccountProto.ResendInvitationRequest;
|
|
159
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
160
|
+
};
|
|
161
|
+
|
|
153
162
|
export class LocalAccountGRPC {
|
|
154
163
|
static readonly serviceName: string;
|
|
155
164
|
static readonly InviteAdminUser: LocalAccountGRPCInviteAdminUser;
|
|
@@ -168,6 +177,7 @@ export class LocalAccountGRPC {
|
|
|
168
177
|
static readonly SetSystemAdminClient: LocalAccountGRPCSetSystemAdminClient;
|
|
169
178
|
static readonly AddClient: LocalAccountGRPCAddClient;
|
|
170
179
|
static readonly RemoveClient: LocalAccountGRPCRemoveClient;
|
|
180
|
+
static readonly ResendAdminUserInvitation: LocalAccountGRPCResendAdminUserInvitation;
|
|
171
181
|
}
|
|
172
182
|
|
|
173
183
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -346,5 +356,14 @@ export class LocalAccountGRPCClient {
|
|
|
346
356
|
requestMessage: platform_local_account_pb.LocalAccountProto.RemoveClientRequest,
|
|
347
357
|
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
348
358
|
): UnaryResponse;
|
|
359
|
+
resendAdminUserInvitation(
|
|
360
|
+
requestMessage: platform_local_account_pb.LocalAccountProto.ResendInvitationRequest,
|
|
361
|
+
metadata: grpc.Metadata,
|
|
362
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
363
|
+
): UnaryResponse;
|
|
364
|
+
resendAdminUserInvitation(
|
|
365
|
+
requestMessage: platform_local_account_pb.LocalAccountProto.ResendInvitationRequest,
|
|
366
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
367
|
+
): UnaryResponse;
|
|
349
368
|
}
|
|
350
369
|
|
|
@@ -156,6 +156,15 @@ LocalAccountGRPC.RemoveClient = {
|
|
|
156
156
|
responseType: google_protobuf_empty_pb.Empty
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
+
LocalAccountGRPC.ResendAdminUserInvitation = {
|
|
160
|
+
methodName: "ResendAdminUserInvitation",
|
|
161
|
+
service: LocalAccountGRPC,
|
|
162
|
+
requestStream: false,
|
|
163
|
+
responseStream: false,
|
|
164
|
+
requestType: platform_local_account_pb.LocalAccountProto.ResendInvitationRequest,
|
|
165
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
166
|
+
};
|
|
167
|
+
|
|
159
168
|
exports.LocalAccountGRPC = LocalAccountGRPC;
|
|
160
169
|
|
|
161
170
|
function LocalAccountGRPCClient(serviceHost, options) {
|
|
@@ -659,5 +668,36 @@ LocalAccountGRPCClient.prototype.removeClient = function removeClient(requestMes
|
|
|
659
668
|
};
|
|
660
669
|
};
|
|
661
670
|
|
|
671
|
+
LocalAccountGRPCClient.prototype.resendAdminUserInvitation = function resendAdminUserInvitation(requestMessage, metadata, callback) {
|
|
672
|
+
if (arguments.length === 2) {
|
|
673
|
+
callback = arguments[1];
|
|
674
|
+
}
|
|
675
|
+
var client = grpc.unary(LocalAccountGRPC.ResendAdminUserInvitation, {
|
|
676
|
+
request: requestMessage,
|
|
677
|
+
host: this.serviceHost,
|
|
678
|
+
metadata: metadata,
|
|
679
|
+
transport: this.options.transport,
|
|
680
|
+
debug: this.options.debug,
|
|
681
|
+
onEnd: function (response) {
|
|
682
|
+
if (callback) {
|
|
683
|
+
if (response.status !== grpc.Code.OK) {
|
|
684
|
+
var err = new Error(response.statusMessage);
|
|
685
|
+
err.code = response.status;
|
|
686
|
+
err.metadata = response.trailers;
|
|
687
|
+
callback(err, null);
|
|
688
|
+
} else {
|
|
689
|
+
callback(null, response.message);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
return {
|
|
695
|
+
cancel: function () {
|
|
696
|
+
callback = null;
|
|
697
|
+
client.close();
|
|
698
|
+
}
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
|
|
662
702
|
exports.LocalAccountGRPCClient = LocalAccountGRPCClient;
|
|
663
703
|
|