feat: list noti

:%s
This commit is contained in:
lytrankieio123
2021-10-22 17:33:43 +07:00
parent 388a6e0c22
commit 3d8070de04
8 changed files with 186 additions and 64 deletions

View 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
}
}
}
}
}
`