mirror of
https://github.com/bitwarden/android.git
synced 2026-04-30 12:59:02 -05:00
[PM-29842] Add organization event types for item migration acceptance and rejection (#6273)
This commit is contained in:
@@ -114,4 +114,24 @@ sealed class OrganizationEvent {
|
|||||||
override val type: OrganizationEventType
|
override val type: OrganizationEventType
|
||||||
get() = OrganizationEventType.USER_CLIENT_EXPORTED_VAULT
|
get() = OrganizationEventType.USER_CLIENT_EXPORTED_VAULT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tracks when a user's personal ciphers have been migrated to their organization's My Items
|
||||||
|
* folder as required by the organization's personal vault ownership policy.
|
||||||
|
*/
|
||||||
|
data object ItemOrganizationAccepted : OrganizationEvent() {
|
||||||
|
override val cipherId: String? = null
|
||||||
|
override val type: OrganizationEventType
|
||||||
|
get() = OrganizationEventType.ORGANIZATION_ITEM_ORGANIZATION_ACCEPTED
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tracks when a user chooses to leave an organization instead of migrating their personal
|
||||||
|
* ciphers to their organization's My Items folder.
|
||||||
|
*/
|
||||||
|
data object ItemOrganizationDeclined : OrganizationEvent() {
|
||||||
|
override val cipherId: String? = null
|
||||||
|
override val type: OrganizationEventType
|
||||||
|
get() = OrganizationEventType.ORGANIZATION_ITEM_ORGANIZATION_DECLINED
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,6 +126,12 @@ enum class OrganizationEventType {
|
|||||||
|
|
||||||
@SerialName("1601")
|
@SerialName("1601")
|
||||||
ORGANIZATION_PURGED_VAULT,
|
ORGANIZATION_PURGED_VAULT,
|
||||||
|
|
||||||
|
@SerialName("1618")
|
||||||
|
ORGANIZATION_ITEM_ORGANIZATION_ACCEPTED,
|
||||||
|
|
||||||
|
@SerialName("1619")
|
||||||
|
ORGANIZATION_ITEM_ORGANIZATION_DECLINED,
|
||||||
}
|
}
|
||||||
|
|
||||||
@Keep
|
@Keep
|
||||||
|
|||||||
Reference in New Issue
Block a user