wallee
Version:
TypeScript/JavaScript client for wallee
54 lines (53 loc) • 1.55 kB
TypeScript
import type { CreationEntityState } from './CreationEntityState';
import type { UserType } from './UserType';
/**
*
* @export
* @interface User
*/
export interface User {
/**
* The scope that the user belongs to.
* @type {number}
* @memberof User
*/
readonly scope?: number;
/**
* The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @type {Date}
* @memberof User
*/
readonly plannedPurgeDate?: Date;
/**
* A unique identifier for the object.
* @type {number}
* @memberof User
*/
readonly id?: number;
/**
*
* @type {CreationEntityState}
* @memberof User
*/
state?: CreationEntityState;
/**
*
* @type {UserType}
* @memberof User
*/
userType?: UserType;
/**
* The version is used for optimistic locking and incremented whenever the object is updated.
* @type {number}
* @memberof User
*/
readonly version?: number;
}
/**
* Check if a given object implements the User interface.
*/
export declare function instanceOfUser(value: object): value is User;
export declare function UserFromJSON(json: any): User;
export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User;
export declare function UserToJSON(json: any): User;
export declare function UserToJSONTyped(value?: Omit<User, 'scope' | 'plannedPurgeDate' | 'id' | 'version'> | null, ignoreDiscriminator?: boolean): any;