@manta-eu/react/routes/memories
Reference for @manta-eu/react/routes/memories as it is on main.
Type Aliases
GroupMemoriesEmptyStateProps
GroupMemoriesEmptyStateProps =
object
Properties
canManageSharedMemories?
optionalcanManageSharedMemories?:boolean
onAdd?
optionalonAdd?: () =>void
Returns
void
ImportanceFilter
ImportanceFilter =
0|1|2|3|4|5
KindBadgeProps
KindBadgeProps =
object
Properties
kind
kind:
GQLMemoryKind
MemoriesEmptyStateProps
MemoriesEmptyStateProps =
object
Properties
onAdd
onAdd: () =>
void
Returns
void
MemoryFilterCriteria
MemoryFilterCriteria =
object
Properties
autoCaptured
autoCaptured:
boolean
deadWeight
deadWeight:
boolean
hideStale
hideStale:
boolean
importance
importance:
ImportanceFilter
needsReview
needsReview:
boolean
promotion
promotion:
boolean
schema
schema:
SchemaFilter
search
search:
string
unused
unused:
boolean
MemoryFormDialogProps
MemoryFormDialogProps =
object
Properties
canManageSharedMemories?
optionalcanManageSharedMemories?:boolean
currentUserId?
optionalcurrentUserId?:string
initial?
optionalinitial?:GQLMemory
isSaving
isSaving:
boolean
onOpenChange
onOpenChange: (
open) =>void
Parameters
open
boolean
Returns
void
onSave
onSave: (
form,supersedesMemoryIris?) =>Promise<void>
Parameters
form
supersedesMemoryIris?
string[]
Returns
Promise<void>
open
open:
boolean
schemas?
optionalschemas?:GQLMemorySchema[]
scope
scope:
GQLMemoryScope
MemoryFormState
MemoryFormState =
object
Properties
customProperties
customProperties:
Record<string,string>
description
description:
string|null
importance
importance:
number
kind
kind:
GQLMemoryKind
label
label:
string
memorySubclass
memorySubclass:
string|null
memoryTrustedUntil
memoryTrustedUntil:
string|null
memoryValidUntil
memoryValidUntil:
string|null
teams
teams:
string[]
MemoryHorizon
MemoryHorizon = {
at:null;kind:"none"; } | {at:Date|string;kind:"expiry"; } | {at:Date|string;kind:"trust"; }
PreloadBadgeContent
PreloadBadgeContent =
object
Properties
label
label:
"Pinned"|"Unconfirmed"|"Unreachable"|"Cold"
preloaded
preloaded:
boolean
tone
tone:
PreloadBadgeTone
why
why:
string
PreloadBadgeTone
PreloadBadgeTone =
"pinned"|"heldOut"|"unreachable"
SchemaFilter
SchemaFilter =
"ALL"|"NONE"|string
ScopeBadgeProps
ScopeBadgeProps =
object
Properties
scope
scope:
GQLMemoryScope
Functions
deriveLabel()
deriveLabel(
description):string
Parameters
description
string
Returns
string
filterMemories()
filterMemories(
data,criteria,now?):GQLMemory[]
Parameters
data
GQLMemory[]
criteria
now?
Date = ...
Returns
GQLMemory[]
formatHorizonDate()
formatHorizonDate(
horizon,now?):string
Parameters
horizon
now?
Date = ...
Returns
string
formatHorizonRelative()
formatHorizonRelative(
horizon,now?):string
Parameters
horizon
now?
Date = ...
Returns
string
GroupMemoriesEmptyState()
GroupMemoriesEmptyState(
props):Element
Parameters
props
Returns
Element
KindBadge()
KindBadge(
props):Element
Parameters
props
Returns
Element
LoadingSkeleton()
LoadingSkeleton():
Element
Returns
Element
MemoriesEmptyState()
MemoriesEmptyState(
props):Element
Parameters
props
Returns
Element
MemoriesRoute()
MemoriesRoute():
Element
Returns
Element
MemoryFormDialog()
MemoryFormDialog(
props):Element
Parameters
props
Returns
Element
memoryHorizon()
memoryHorizon(
memoryValidUntil,memoryTrustedUntil):MemoryHorizon
Parameters
memoryValidUntil
string | Date | null | undefined
memoryTrustedUntil
string | Date | null | undefined
Returns
preloadBadgeContent()
preloadBadgeContent(
memory,now?):PreloadBadgeContent|null
Parameters
memory
MemoryPreloadCandidate
now?
Date
Returns
PreloadBadgeContent | null
ScopeBadge()
ScopeBadge(
props):Element
Parameters
props
Returns
Element