Class Ident
Hierarchy
-
CoreModel
- Ident
Properties
Methods
Properties
Object context
If an object is deleted but not removed from DB for historic
If object is attached to its store
Methods
-
Return the object schema, if defined any modification done to the object by external source must comply to this schema
Returns any
-
Parameters
-
key: any
-
value: any
Returns any
-
-
Returns Promise<void>
-
Returns Promise<void>
-
Returns Promise<void>
-
Returns Promise<void>
-
Returns Promise<void>
-
Parameters
-
updates: any
Returns Promise<void>
-
-
Returns Promise<void>
-
Parameters
-
secure: any
Returns any
-
-
Parameters
-
ctx: Context
-
action: string
Returns Promise<this>
-
-
Return false if can't create
Parameters
-
ctx: Context
Returns Promise<this>
-
-
Return false if can't delete
Parameters
-
ctx: Context
Returns Promise<this>
-
-
Return false if can't get
Parameters
-
ctx: Context
Returns Promise<this>
-
-
Return false if can't update
Parameters
-
ctx: Context
Returns Promise<this>
-
-
Delete this object
Returns Promise<void>
-
Parameters
-
Default value object: any = undefined
Returns string
-
-
Get actions available for the current instance of an object
Returns object
-
Get object context
Global object does not belong to a request
Returns Context
-
Returns any
-
Get a pre typed service
Type parameters
-
T: Service
Parameters
-
service: any
to retrieve WARNING: Only object attached to a store can retrieve service
Returns T
-
-
Return the object registered store
Returns Store<CoreModel, StoreParameters>
-
Returns string
-
Returns string
-
Return if an object is attached to its store
Returns boolean
-
Load an object from RAW
Parameters
-
raw: any
data
-
Default value secure: boolean = false
if false will ignore any _ variable
Returns void
-
-
Get the object again
Returns Promise<CoreModel>
-
Save this object
Returns Promise<this>
-
Context of the request
Parameters
-
ctx: Context
Returns void
-
-
Parameters
-
type: any
Returns void
-
-
Parameters
-
user: any
Returns void
-
-
Returns any
-
Parameters
-
Default value stringify: boolean = false
Returns any
-
-
Update this object
Parameters
-
changes: any
Returns Promise<void>
-
-
Parameters
-
ctx: any
-
Default value updates: any = undefined
Returns Promise<boolean>
-
-
Get actions callable on an object
This will expose them by the Store with /storeUrl/{uuid}/{action}
Returns object
-
Get the UUID property
Returns string | string[]
-
Parameters
-
type: string
-
uid: string
-
Default value accessToken: string = ""
-
Default value refreshToken: string = ""
-
Default value profile: object = {}
Returns Ident
-
Generated using TypeDoc
First basic model for Ident