mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 08:23:00 +08:00
132 lines
3 KiB
TypeScript
132 lines
3 KiB
TypeScript
import gql from 'graphql-tag';
|
|
|
|
// store room
|
|
export const GET_ALL_STORE_ROOMS = gql`
|
|
query getAllStoreRooms {
|
|
storeRoomAll {
|
|
uid
|
|
name
|
|
description
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_STORE_ROOM_BY_UID = gql`
|
|
query getStoreRoomByUid($uid: String!) {
|
|
storeRoomByUid(uid: $uid) {
|
|
uid
|
|
name
|
|
description
|
|
}
|
|
}
|
|
`;
|
|
|
|
// storage location
|
|
export const GET_ALL_STORAGE_LOCATIONS = gql`
|
|
query getAllStorageLocations($storeRoomUid: String!) {
|
|
storageLocations(storeRoomUid: $storeRoomUid) {
|
|
uid
|
|
name
|
|
description
|
|
storeRoomUid
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_STORAGE_LOCATION_BY_UID = gql`
|
|
query getStorageLocationByUid($uid: String!) {
|
|
storageLocationByUid(uid: $uid) {
|
|
uid
|
|
name
|
|
description
|
|
storeRoomUid
|
|
}
|
|
}
|
|
`;
|
|
|
|
// storage section
|
|
export const GET_ALL_STORAGE_SECTIONS = gql`
|
|
query getAllStorageSections($storageLocationUid: String!) {
|
|
storageSections(storageLocationUid: $storageLocationUid) {
|
|
uid
|
|
name
|
|
description
|
|
storageLocationUid
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_STORAGE_SECTION_BY_UID = gql`
|
|
query getStorageSectionByUid($uid: String!) {
|
|
storageSectionByUid(uid: $uid) {
|
|
uid
|
|
name
|
|
description
|
|
storageLocationUid
|
|
}
|
|
}
|
|
`;
|
|
|
|
// storage container
|
|
export const GET_ALL_STORAGE_CONTAINERS = gql`
|
|
query getAllStorageContainers($storageSectionUid: String!) {
|
|
storageContainers(storageSectionUid: $storageSectionUid) {
|
|
uid
|
|
name
|
|
description
|
|
storageSectionUid
|
|
grid
|
|
rowWise
|
|
cols
|
|
rows
|
|
slots
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_STORAGE_CONTAINER_BY_UID = gql`
|
|
query getSrorageContainerByUid($uid: String!) {
|
|
storageContainerByUid(uid: $uid) {
|
|
uid
|
|
name
|
|
description
|
|
storageSectionUid
|
|
grid
|
|
rowWise
|
|
cols
|
|
rows
|
|
slots
|
|
storedCount
|
|
}
|
|
}
|
|
`;
|
|
|
|
// tree
|
|
export const GET_STORAGE_TREE = gql`
|
|
query getStoreRoomsTree {
|
|
storeRoomAll {
|
|
uid
|
|
name
|
|
description
|
|
tag
|
|
children {
|
|
uid
|
|
name
|
|
description
|
|
tag
|
|
children {
|
|
uid
|
|
name
|
|
description
|
|
tag
|
|
children {
|
|
uid
|
|
name
|
|
description
|
|
tag
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|