21 lines
350 B
Plaintext
21 lines
350 B
Plaintext
|
# Restrictions Service Interface
|
||
|
|
||
|
Exception RestrictionException(message: string);
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Restricts data for given user
|
||
|
*
|
||
|
* @throws RestrictionException
|
||
|
*/
|
||
|
handle_request (payload: Restriction[]): RestrictionResult[]
|
||
|
|
||
|
interface Restriction {
|
||
|
user_id: number;
|
||
|
fqfields: Fqfield[];
|
||
|
}
|
||
|
|
||
|
interface RestrictionResult {
|
||
|
<fqfield>: Value;
|
||
|
}
|