felicity-lims/felicity/templates/static/assets/inventory.mutations-a0cda30e.js

382 lines
9.6 KiB
JavaScript
Raw Normal View History

2024-11-18 01:39:30 +08:00
import{J as t}from"./index-e62f5c21.js";const o=t`
2023-11-11 00:48:39 +08:00
mutation AddHazard($payload: HazardInputType!) {
createHazard(payload: $payload) {
... on HazardType {
__typename
uid
name
description
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,a=t`
2023-11-11 00:48:39 +08:00
mutation EditHazard($uid: String!, $payload: HazardInputType!) {
updateHazard(uid: $uid, payload: $payload) {
... on HazardType {
__typename
uid
name
description
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,r=t`
2023-11-11 00:48:39 +08:00
mutation AddStockCategory($payload: StockCategoryInputType!) {
createStockCategory(payload: $payload) {
... on StockCategoryType {
__typename
uid
name
description
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,d=t`
2023-11-11 00:48:39 +08:00
mutation EditStockCategory($uid: String!, $payload: StockCategoryInputType!) {
updateStockCategory(uid: $uid, payload: $payload) {
... on StockCategoryType {
__typename
uid
name
description
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,n=t`
2023-11-11 00:48:39 +08:00
mutation AddStockUnit($payload: StockUnitInputType!) {
createStockUnit(payload: $payload) {
... on StockUnitType {
__typename
uid
name
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,i=t`
2023-11-11 00:48:39 +08:00
mutation editStockUnit($uid: String!, $payload: StockUnitInputType!) {
updateStockUnit(uid: $uid, payload: $payload) {
... on StockUnitType {
__typename
uid
name
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,p=t`
mutation ReceiveStockProduct($payload: StockReceiptInputType!) {
createStockReceipt(payload: $payload) {
... on StockItemVariantType {
2023-11-11 00:48:39 +08:00
__typename
uid
name
2024-07-24 17:04:53 +08:00
description
stockItem {
2023-11-11 00:48:39 +08:00
name
2024-07-24 17:04:53 +08:00
description
category {
name
}
hazard {
name
}
2023-11-11 00:48:39 +08:00
}
2024-07-24 17:04:53 +08:00
quantity
2023-11-11 00:48:39 +08:00
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,u=t`
mutation AddStockItem($payload: StockItemInputType!) {
createStockItem(payload: $payload) {
... on StockItemType {
2023-11-11 00:48:39 +08:00
__typename
uid
name
2024-07-24 17:04:53 +08:00
description
2023-11-11 00:48:39 +08:00
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,y=t`
mutation editStockItem($uid: String!, $payload: StockItemInputType!) {
updateStockItem(uid: $uid, payload: $payload) {
2023-11-11 00:48:39 +08:00
... on StockItemType {
__typename
uid
name
description
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,m=t`
mutation AddStockItemVariant($stockItemUid: String!, $payload: StockItemVariantInputType!) {
createStockItemVariant(stockItemUid: $stockItemUid, payload: $payload) {
... on StockItemVariantType {
2023-11-11 00:48:39 +08:00
__typename
uid
name
description
2024-07-24 17:04:53 +08:00
stockItemUid
minimumLevel
maximumLevel
createdAt
createdBy {
2023-11-11 00:48:39 +08:00
uid
2024-07-24 17:04:53 +08:00
firstName
lastName
2023-11-11 00:48:39 +08:00
}
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,c=t`
mutation editStockItemVariant($uid: String!, $payload: StockItemVariantInputType!) {
updateStockItemVariant(uid: $uid, payload: $payload) {
... on StockItemVariantType {
2023-11-11 00:48:39 +08:00
__typename
uid
2024-07-24 17:04:53 +08:00
name
description
stockItemUid
minimumLevel
maximumLevel
2023-11-11 00:48:39 +08:00
createdAt
2024-07-24 17:04:53 +08:00
createdBy {
uid
firstName
lastName
}
2023-11-11 00:48:39 +08:00
updatedAt
2024-07-24 17:04:53 +08:00
updatedBy {
uid
firstName
lastName
}
2023-11-11 00:48:39 +08:00
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,s=t`
2023-11-11 00:48:39 +08:00
mutation AddStockAdjustment($payload: StockAdjustmentInputType!) {
createStockAdjustment(payload: $payload) {
... on StockAdjustmentType {
__typename
uid
productUid
adjustmentType
adjust
adjustmentDate
remarks
adjustmentByUid
createdAt
createdByUid
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,_=t`
2023-11-11 00:48:39 +08:00
mutation AddStockOrder($payload: StockOrderInputType!) {
createStockOrder(payload: $payload) {
... on StockOrderLineType {
__typename
stockOrder {
uid
orderByUid
departmentUid
status
orderNumber
}
orderProducts {
uid
productUid
orderUid
quantity
}
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,S=t`
2023-11-11 00:48:39 +08:00
mutation EditStockOrder($uid: String!, $payload: StockOrderInputType!) {
updateStockOrder(uid: $uid, payload: $payload) {
... on StockOrderLineType {
__typename
stockOrder {
uid
orderByUid
departmentUid
status
orderNumber
remarks
}
orderProducts {
uid
productUid
orderUid
quantity
}
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`,k=t`
2023-11-11 00:48:39 +08:00
mutation SubmitStockOrder($uid: String!) {
submitStockOrder(uid: $uid) {
... on StockOrderType {
__typename
uid
status
orderNumber
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`;t`
2023-11-11 00:48:39 +08:00
mutation ApproveStockOrder($uid: String!, $payload: StockOrderApprovalInputType!) {
approveStockOrder(uid: $uid, payload: $payload) {
... on StockOrderType {
__typename
uid
orderByUid
departmentUid
status
orderNumber
remarks
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`;const T=t`
2023-11-11 00:48:39 +08:00
mutation IssueStockOrder($uid: String!, $payload: [StockOrderProductLineInputType!]!) {
issueStockOrder(uid: $uid, payload: $payload) {
... on StockOrderLineType {
__typename
stockOrder {
uid
orderByUid
departmentUid
status
orderNumber
remarks
}
orderProducts {
uid
product {
uid
2024-07-24 17:04:53 +08:00
quantity
2023-11-11 00:48:39 +08:00
}
orderUid
quantity
}
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`;t`
2023-11-11 00:48:39 +08:00
mutation DeleteStockOrder($uid: String!) {
deleteStockOrder(uid: $uid) {
... on StockOrderLineType {
__typename
}
... on OperationError {
__typename
error
suggestion
}
}
}
2024-07-24 17:04:53 +08:00
`;export{_ as A,S as E,T as I,p as R,k as S,s as a,r as b,d as c,u as d,y as e,n as f,i as g,o as h,a as i,m as j,c as k};