mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-09-19 05:49:07 +00:00
Start to build data conservation policy settings
This commit is contained in:
18
assets/js/typings/ServerConfig.d.ts
vendored
Normal file
18
assets/js/typings/ServerConfig.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Server configuration typings
|
||||
*
|
||||
* @author Pierre Hubert
|
||||
*/
|
||||
|
||||
declare interface DataConservationPolicySettings {
|
||||
min_inactive_account_lifetime: number,
|
||||
min_notification_lifetime: number,
|
||||
min_comments_lifetime: number,
|
||||
min_posts_lifetime: number,
|
||||
min_conversation_messages_lifetime: number,
|
||||
min_likes_lifetime: number0
|
||||
}
|
||||
|
||||
declare interface StaticServerConfig {
|
||||
data_conservation_policy: DataConservationPolicySettings;
|
||||
}
|
14
assets/js/typings/Settings.d.ts
vendored
Normal file
14
assets/js/typings/Settings.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Settings interface
|
||||
*
|
||||
* @author Pierre Hubert
|
||||
*/
|
||||
|
||||
declare interface DataConservationPolicy {
|
||||
inactive_account_lifetime?: number,
|
||||
notification_lifetime?: number,
|
||||
comments_lifetime?: number,
|
||||
posts_lifetime?: number,
|
||||
conversation_messages_lifetime?: number,
|
||||
likes_lifetime?: number
|
||||
}
|
Reference in New Issue
Block a user