mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 08:23:00 +08:00
141 lines
3.1 KiB
TypeScript
141 lines
3.1 KiB
TypeScript
import gql from 'graphql-tag';
|
|
|
|
export const GET_ALL_SUPPLIERS = gql`
|
|
query getAllSuppliers {
|
|
supplierAll {
|
|
uid
|
|
name
|
|
description
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_ALL_MANUFACTURERS = gql`
|
|
query getAllManufacturers {
|
|
manufacturerAll {
|
|
uid
|
|
name
|
|
description
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_ALL_INSTRUMENT_TYPES = gql`
|
|
query getAllInstrumentTypes {
|
|
instrumentTypeAll {
|
|
totalCount
|
|
pageInfo {
|
|
hasNextPage
|
|
hasPreviousPage
|
|
startCursor
|
|
endCursor
|
|
}
|
|
items {
|
|
uid
|
|
name
|
|
description
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_ALL_INSTRUMENTS = gql`
|
|
query getAllInstruments {
|
|
instrumentAll {
|
|
totalCount
|
|
pageInfo {
|
|
hasNextPage
|
|
hasPreviousPage
|
|
startCursor
|
|
endCursor
|
|
}
|
|
items {
|
|
uid
|
|
name
|
|
description
|
|
keyword
|
|
# methods {
|
|
# uid
|
|
# name
|
|
# description
|
|
# }
|
|
supplierUid
|
|
supplier {
|
|
uid
|
|
name
|
|
}
|
|
manufacturerUid
|
|
manufacturer {
|
|
uid
|
|
name
|
|
}
|
|
instrumentTypeUid
|
|
instrumentType {
|
|
uid
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
|
|
export const GET_ALL_LABORATORY_INSTRUMENTS = gql`
|
|
query getAllLaboratoryInstruments {
|
|
laboratoryInstrumentAll {
|
|
totalCount
|
|
pageInfo {
|
|
hasNextPage
|
|
hasPreviousPage
|
|
startCursor
|
|
endCursor
|
|
}
|
|
items {
|
|
uid
|
|
labName
|
|
serialNumber
|
|
instrumentUid
|
|
instrument {
|
|
uid
|
|
name
|
|
}
|
|
dateCommissioned
|
|
dateDecommissioned
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
export const GET_ALL_METHODS = gql`
|
|
query getAllMethods {
|
|
methodAll {
|
|
totalCount
|
|
pageInfo {
|
|
hasNextPage
|
|
hasPreviousPage
|
|
startCursor
|
|
endCursor
|
|
}
|
|
items {
|
|
uid
|
|
name
|
|
description
|
|
keyword
|
|
instruments {
|
|
uid
|
|
name
|
|
description
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_ALL_UNITS = gql`
|
|
query getAllUnits {
|
|
unitAll {
|
|
uid
|
|
name
|
|
}
|
|
}
|
|
`;
|