mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 08:23:00 +08:00
54 lines
813 B
TypeScript
54 lines
813 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
|
|
export const GET_NOTICES_BY_CREATOR = gql`
|
|
query getNoticesByCreatorUid($uid: FelicityID!) {
|
|
noticesByCreator(uid: $uid){
|
|
uid
|
|
title
|
|
body
|
|
expiry
|
|
createdByUid
|
|
departments{
|
|
uid
|
|
name
|
|
}
|
|
groups {
|
|
uid
|
|
name
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const GET_ALL_NOTICES = gql`
|
|
query getAllDocuments {
|
|
documentAll {
|
|
uid
|
|
name
|
|
version
|
|
status
|
|
departmentUid
|
|
department {
|
|
uid
|
|
name
|
|
}
|
|
}
|
|
}`;
|
|
|
|
|
|
|
|
export const GET_NOTICE_BY_UID = gql`
|
|
query getDocumentByUid($uid: FelicityID!) {
|
|
documentByUid(uid: $uid){
|
|
uid
|
|
name
|
|
version
|
|
status
|
|
content
|
|
departmentUid
|
|
department {
|
|
uid
|
|
name
|
|
}
|
|
}
|
|
}`;
|