@shopify/cli-kit
Preparing search index...
node/notifications-system
fetchNotifications
Function fetchNotifications
fetchNotifications
()
:
Promise
<
{
notifications
:
{
commands
?:
string
[]
;
cta
?:
{
label
:
string
;
url
:
string
}
;
frequency
:
"always"
|
"once"
|
"once_a_day"
|
"once_a_week"
;
id
:
string
;
maxDate
?:
string
;
maxVersion
?:
string
;
message
:
string
;
minDate
?:
string
;
minVersion
?:
string
;
ownerChannel
:
string
;
surface
?:
string
;
title
?:
string
;
type
:
"error"
|
"info"
|
"warning"
;
}
[]
;
}
,
>
Fetch notifications from the CDN and chache them.
Returns
Promise
<
{
notifications
:
{
commands
?:
string
[]
;
cta
?:
{
label
:
string
;
url
:
string
}
;
frequency
:
"always"
|
"once"
|
"once_a_day"
|
"once_a_week"
;
id
:
string
;
maxDate
?:
string
;
maxVersion
?:
string
;
message
:
string
;
minDate
?:
string
;
minVersion
?:
string
;
ownerChannel
:
string
;
surface
?:
string
;
title
?:
string
;
type
:
"error"
|
"info"
|
"warning"
;
}
[]
;
}
,
>
A string with the notifications.
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@shopify/cli-kit
Loading...
Fetch notifications from the CDN and chache them.