Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010505
session-id.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
561 B
Referenced Files
None
Subscribers
None
session-id.ts
View Options
import
{
Context
,
Field
}
from
"../../../main.js"
;
import
{
v4
as
uuid
}
from
"uuid"
;
export
default
class
SessionID
extends
Field
<
null
|
string
,
string
>
{
typeName
=
"session-id"
;
async
isProperValue
()
{
return
Field
.
valid
();
}
async
encode
(
_
:
any
,
input
:
string
|
null
)
:
Promise
<
string
|
null
>
{
if
(
input
===
null
)
{
return
null
;
}
return
input
?
input
:
uuid
();
}
async
getDefaultValue
(
_
:
any
)
{
return
uuid
();
}
async
decode
(
_
:
Context
,
storage_value
:
string
|
null
)
:
Promise
<
string
|
null
>
{
return
storage_value
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:43 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
631996
Default Alt Text
session-id.ts (561 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment