@komune-io/im-user-domain 0.21.0 → 0.22.0-alpha.11cae08
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.
|
@@ -647,6 +647,16 @@ export declare namespace io.komune.im.f2.user.domain.command {
|
|
|
647
647
|
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
+
export declare namespace io.komune.im.f2.user.domain.command {
|
|
651
|
+
interface UserEnableCommandDTO {
|
|
652
|
+
readonly id: string;
|
|
653
|
+
|
|
654
|
+
}
|
|
655
|
+
interface UserEnabledEventDTO extends f2.dsl.cqrs.Event {
|
|
656
|
+
readonly id: string;
|
|
657
|
+
|
|
658
|
+
}
|
|
659
|
+
}
|
|
650
660
|
export declare namespace io.komune.im.f2.user.domain.command {
|
|
651
661
|
interface UserResetPasswordCommandDTO extends f2.dsl.cqrs.Command {
|
|
652
662
|
readonly id: string;
|
|
@@ -729,6 +739,7 @@ export declare namespace io.komune.im.f2.user.domain.policies {
|
|
|
729
739
|
canUpdateMemberOf(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
|
|
730
740
|
canUpdateRole(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
|
|
731
741
|
canDisable(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: io.komune.im.f2.user.domain.model.UserDTO): boolean;
|
|
742
|
+
canEnable(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: io.komune.im.f2.user.domain.model.UserDTO): boolean;
|
|
732
743
|
canDelete(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: io.komune.im.f2.user.domain.model.UserDTO): boolean;
|
|
733
744
|
};
|
|
734
745
|
}
|
|
@@ -543,6 +543,8 @@ if (typeof Math.imul === 'undefined') {
|
|
|
543
543
|
setMetadataFor(UserDisabledEventDTO, 'UserDisabledEventDTO', interfaceMeta, VOID, [Event]);
|
|
544
544
|
setMetadataFor(UserDisableMfaCommandDTO, 'UserDisableMfaCommandDTO', interfaceMeta, VOID, [Command]);
|
|
545
545
|
setMetadataFor(UserDisabledMfaEventDTO, 'UserDisabledMfaventDTO', interfaceMeta, VOID, [Event]);
|
|
546
|
+
setMetadataFor(UserEnableCommandDTO, 'UserEnableCommandDTO', interfaceMeta);
|
|
547
|
+
setMetadataFor(UserEnabledEventDTO, 'UserEnabledEventDTO', interfaceMeta, VOID, [Event]);
|
|
546
548
|
setMetadataFor(UserResetPasswordCommandDTO, 'UserResetPasswordCommandDTO', interfaceMeta, VOID, [Command]);
|
|
547
549
|
setMetadataFor(UserResetPasswordEventDTO, 'UserResetPasswordEventDTO', interfaceMeta, VOID, [Event]);
|
|
548
550
|
setMetadataFor(UserUpdateCommandDTO, 'UserUpdateCommandDTO', interfaceMeta, VOID, [Command]);
|
|
@@ -12457,6 +12459,10 @@ if (typeof Math.imul === 'undefined') {
|
|
|
12457
12459
|
}
|
|
12458
12460
|
function UserDisabledMfaEventDTO() {
|
|
12459
12461
|
}
|
|
12462
|
+
function UserEnableCommandDTO() {
|
|
12463
|
+
}
|
|
12464
|
+
function UserEnabledEventDTO() {
|
|
12465
|
+
}
|
|
12460
12466
|
function UserResetPasswordCommandDTO() {
|
|
12461
12467
|
}
|
|
12462
12468
|
function UserResetPasswordEventDTO() {
|
|
@@ -12547,6 +12553,9 @@ if (typeof Math.imul === 'undefined') {
|
|
|
12547
12553
|
protoOf(UserPolicies).canDisable = function (authedUser, user) {
|
|
12548
12554
|
return canWriteUser(this, authedUser, user) ? isNotMySelf(this, authedUser, user) : false;
|
|
12549
12555
|
};
|
|
12556
|
+
protoOf(UserPolicies).canEnable = function (authedUser, user) {
|
|
12557
|
+
return canWriteUser(this, authedUser, user) ? isNotMySelf(this, authedUser, user) : false;
|
|
12558
|
+
};
|
|
12550
12559
|
protoOf(UserPolicies).canDelete = function (authedUser, user) {
|
|
12551
12560
|
return canWriteUser(this, authedUser, user) ? isNotMySelf(this, authedUser, user) : false;
|
|
12552
12561
|
};
|
|
@@ -13159,6 +13168,13 @@ if (typeof Math.imul === 'undefined') {
|
|
|
13159
13168
|
var $io$komune$im$f2 = $io$komune$im.f2 || ($io$komune$im.f2 = {});
|
|
13160
13169
|
var $io$komune$im$f2$user = $io$komune$im$f2.user || ($io$komune$im$f2.user = {});
|
|
13161
13170
|
var $io$komune$im$f2$user$domain = $io$komune$im$f2$user.domain || ($io$komune$im$f2$user.domain = {});
|
|
13171
|
+
var $io$komune$im$f2$user$domain$command = $io$komune$im$f2$user$domain.command || ($io$komune$im$f2$user$domain.command = {});
|
|
13172
|
+
var $io = _.io || (_.io = {});
|
|
13173
|
+
var $io$komune = $io.komune || ($io.komune = {});
|
|
13174
|
+
var $io$komune$im = $io$komune.im || ($io$komune.im = {});
|
|
13175
|
+
var $io$komune$im$f2 = $io$komune$im.f2 || ($io$komune$im.f2 = {});
|
|
13176
|
+
var $io$komune$im$f2$user = $io$komune$im$f2.user || ($io$komune$im$f2.user = {});
|
|
13177
|
+
var $io$komune$im$f2$user$domain = $io$komune$im$f2$user.domain || ($io$komune$im$f2$user.domain = {});
|
|
13162
13178
|
var $io$komune$im$f2$user$domain$model = $io$komune$im$f2$user$domain.model || ($io$komune$im$f2$user$domain.model = {});
|
|
13163
13179
|
var $io = _.io || (_.io = {});
|
|
13164
13180
|
var $io$komune = $io.komune || ($io.komune = {});
|