2023-01-02 00:04:52 +08:00
|
|
|
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`
|
2023-03-19 23:21:32 +08:00
|
|
|
query getStoreRoomByUid($uid: FelicityID!) {
|
2023-01-02 00:04:52 +08:00
|
|
|
storeRoomByUid(uid: $uid){
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
|
|
|
|
// storage location
|
|
|
|
export const GET_ALL_STORAGE_LOCATIONS = gql`
|
2023-03-19 23:21:32 +08:00
|
|
|
query getAllStorageLocations($storeRoomUid: FelicityID!) {
|
2023-01-02 00:04:52 +08:00
|
|
|
storageLocations(storeRoomUid: $storeRoomUid) {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
storeRoomUid
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
|
|
|
|
export const GET_STORAGE_LOCATION_BY_UID = gql`
|
2023-03-19 23:21:32 +08:00
|
|
|
query getStorageLocationByUid($uid: FelicityID!) {
|
2023-01-02 00:04:52 +08:00
|
|
|
storageLocationByUid(uid: $uid){
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
storeRoomUid
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
|
|
|
|
// storage section
|
|
|
|
export const GET_ALL_STORAGE_SECTIONS = gql`
|
2023-03-19 23:21:32 +08:00
|
|
|
query getAllStorageSections($storageLocationUid: FelicityID!) {
|
2023-01-02 00:04:52 +08:00
|
|
|
storageSections(storageLocationUid: $storageLocationUid) {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
storageLocationUid
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
|
|
|
|
export const GET_STORAGE_SECTION_BY_UID = gql`
|
2023-03-19 23:21:32 +08:00
|
|
|
query getStorageSectionByUid($uid: FelicityID!) {
|
2023-01-02 00:04:52 +08:00
|
|
|
storageSectionByUid(uid: $uid){
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
storageLocationUid
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
|
|
|
|
// storage container
|
|
|
|
export const GET_ALL_STORAGE_CONTAINERS = gql`
|
2023-03-19 23:21:32 +08:00
|
|
|
query getAllStorageContainers($storageSectionUid: FelicityID!) {
|
2023-01-02 00:04:52 +08:00
|
|
|
storageContainers(storageSectionUid: $storageSectionUid) {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
storageSectionUid
|
|
|
|
grid
|
|
|
|
row_wise
|
|
|
|
cols
|
|
|
|
rows
|
|
|
|
slots
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
|
|
|
|
export const GET_STORAGE_CONTAINER_BY_UID = gql`
|
2023-03-19 23:21:32 +08:00
|
|
|
query getSrorageContainerByUid($uid: FelicityID!) {
|
2023-01-02 00:04:52 +08:00
|
|
|
storageContainerByUid(uid: $uid){
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
storageSectionUid
|
|
|
|
grid
|
2023-01-03 02:12:00 +08:00
|
|
|
rowWise
|
2023-01-02 00:04:52 +08:00
|
|
|
cols
|
|
|
|
rows
|
|
|
|
slots
|
2023-02-06 16:40:16 +08:00
|
|
|
storedCount
|
2023-01-02 00:04:52 +08:00
|
|
|
}
|
|
|
|
}`;
|
2023-01-02 20:33:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
// tree
|
|
|
|
export const GET_STORAGE_TREE = gql`
|
|
|
|
query {
|
|
|
|
storeRoomAll {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
tag
|
|
|
|
children {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
tag
|
|
|
|
children {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
tag
|
|
|
|
children {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
tag
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
|
|
|
|
|