mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
✨ feat: list noti
:%s
This commit is contained in:
45
framework/vendure/utils/queries/notification-query.ts
Normal file
45
framework/vendure/utils/queries/notification-query.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
export const newNotificationsQuery = /* GraphQL */ `
|
||||
query newNotifications($customOption: CustomNotificationListOptions) {
|
||||
newNotifications(customOption: $customOption) {
|
||||
totalItems
|
||||
items {
|
||||
id
|
||||
createdAt
|
||||
type
|
||||
data
|
||||
description
|
||||
isNew
|
||||
order {
|
||||
id
|
||||
code
|
||||
customFields {
|
||||
lastedNotificationAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const notificationsQuery = /* GraphQL */ `
|
||||
query notifications($customOption: CustomNotificationListOptions) {
|
||||
notifications(customOption: $customOption) {
|
||||
totalItems
|
||||
items {
|
||||
id
|
||||
createdAt
|
||||
type
|
||||
data
|
||||
description
|
||||
isNew
|
||||
order {
|
||||
id
|
||||
code
|
||||
customFields {
|
||||
lastedNotificationAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user