mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 08:53:00 +08:00
186 lines
4.1 KiB
GraphQL
186 lines
4.1 KiB
GraphQL
|
|
||
|
query getAllHazards {
|
||
|
hazardAll {
|
||
|
uid
|
||
|
name
|
||
|
description
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockCategories {
|
||
|
stockCategoryAll {
|
||
|
uid
|
||
|
name
|
||
|
description
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockUnits {
|
||
|
stockUnitAll {
|
||
|
uid
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockItems($first: Int!, $after: String, $text: String!, $sortBy: [String!] = ["uid"]) {
|
||
|
stockItemAll(pageSize: $first, afterCursor: $after, text: $text, sortBy: $sortBy) {
|
||
|
totalCount
|
||
|
pageInfo {
|
||
|
hasNextPage
|
||
|
hasPreviousPage
|
||
|
startCursor
|
||
|
endCursor
|
||
|
}
|
||
|
items {
|
||
|
uid
|
||
|
name
|
||
|
description
|
||
|
categoryUid
|
||
|
category {
|
||
|
uid
|
||
|
name
|
||
|
}
|
||
|
hazardUid
|
||
|
hazard {
|
||
|
uid
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockItemVariants($stockItemUid: String!) {
|
||
|
stockItemVariants(stockItemUid: $stockItemUid) {
|
||
|
uid
|
||
|
name
|
||
|
description
|
||
|
stockItemUid
|
||
|
minimumLevel
|
||
|
maximumLevel
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockProducts($first: Int!, $after: String, $text: String!, $sortBy: [String!] = ["uid"]) {
|
||
|
stockProductAll(pageSize: $first, afterCursor: $after, text: $text, sortBy: $sortBy) {
|
||
|
totalCount
|
||
|
pageInfo {
|
||
|
hasNextPage
|
||
|
hasPreviousPage
|
||
|
startCursor
|
||
|
endCursor
|
||
|
}
|
||
|
items {
|
||
|
uid
|
||
|
name
|
||
|
description
|
||
|
stockItem {
|
||
|
name
|
||
|
description
|
||
|
category {
|
||
|
name
|
||
|
}
|
||
|
hazard {
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
quantity
|
||
|
createdAt
|
||
|
createdBy {
|
||
|
uid
|
||
|
firstName
|
||
|
lastName
|
||
|
}
|
||
|
updatedAt
|
||
|
updatedBy {
|
||
|
uid
|
||
|
firstName
|
||
|
lastName
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockLots($productUid: String!) {
|
||
|
stockLots(productUid: $productUid) {
|
||
|
uid
|
||
|
lotNumber
|
||
|
quantity
|
||
|
expiryDate
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockOrders($first: Int!, $after: String, $status: String!, $text: String!, $sortBy: [String!] = ["uid"]) {
|
||
|
stockOrderAll(pageSize: $first, afterCursor: $after, status: $status,text: $text, sortBy: $sortBy) {
|
||
|
totalCount
|
||
|
pageInfo {
|
||
|
hasNextPage
|
||
|
hasPreviousPage
|
||
|
startCursor
|
||
|
endCursor
|
||
|
}
|
||
|
items {
|
||
|
uid
|
||
|
orderBy {
|
||
|
uid
|
||
|
firstName
|
||
|
lastName
|
||
|
}
|
||
|
department {
|
||
|
uid
|
||
|
name
|
||
|
}
|
||
|
status
|
||
|
orderNumber
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockOrderProducts($stockOrderUid: String!) {
|
||
|
stockOrderProductAll(stockOrderUid: $stockOrderUid) {
|
||
|
uid
|
||
|
product {
|
||
|
uid
|
||
|
name
|
||
|
quantity
|
||
|
}
|
||
|
stockLot {
|
||
|
uid
|
||
|
lotNumber
|
||
|
quantity
|
||
|
}
|
||
|
quantity
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query getAllStockAdustments($first: Int!, $after: String, $text: String!, $sortBy: [String!] = ["uid"], $productUid: String) {
|
||
|
stockAdjustmentAll(pageSize: $first, afterCursor: $after, text: $text, sortBy: $sortBy, productUid: $productUid) {
|
||
|
totalCount
|
||
|
pageInfo {
|
||
|
hasNextPage
|
||
|
hasPreviousPage
|
||
|
startCursor
|
||
|
endCursor
|
||
|
}
|
||
|
items {
|
||
|
uid
|
||
|
productUid
|
||
|
product {
|
||
|
name
|
||
|
}
|
||
|
adjustmentType
|
||
|
adjust
|
||
|
adjustmentDate
|
||
|
remarks
|
||
|
adjustmentByUid
|
||
|
adjustmentBy {
|
||
|
firstName
|
||
|
lastName
|
||
|
}
|
||
|
createdAt
|
||
|
createdByUid
|
||
|
updatedAt
|
||
|
updatedByUid
|
||
|
}
|
||
|
}
|
||
|
}
|