felicity-lims/felicity/templates/static/assets/clients.mutations-8a818b76.js
2024-11-17 19:39:30 +02:00

115 lines
2.8 KiB
JavaScript

import{J as t}from"./index-e62f5c21.js";const n=t`
mutation AddClient($payload: ClientInputType!) {
createClient(payload: $payload) {
... on ClientType {
__typename
uid
name
code
districtUid
district {
uid
name
province {
uid
name
country {
uid
name
}
}
}
}
... on OperationError {
__typename
error
suggestion
}
}
}
`,a=t`
mutation editClient($uid: String!, $payload: ClientInputType!) {
updateClient(uid: $uid, payload: $payload) {
... on ClientType {
__typename
uid
name
code
districtUid
district {
uid
name
province {
uid
name
country {
uid
name
}
}
}
}
... on OperationError {
__typename
error
suggestion
}
}
}
`,i=t`
mutation AddClientContact($payload: ClientContactInputType!) {
createClientContact(payload: $payload) {
... on ClientContactType {
__typename
uid
firstName
lastName
email
mobilePhone
consentSms
}
... on OperationError {
__typename
error
suggestion
}
}
}
`,o=t`
mutation editClientContact($uid: String!, $payload: ClientContactInputType!) {
updateClientContact(uid: $uid, payload: $payload) {
... on ClientContactType {
__typename
uid
firstName
lastName
email
mobilePhone
consentSms
}
... on OperationError {
__typename
error
suggestion
}
}
}
`,r=t`
mutation deleteClientContact($uid: String!) {
deleteClientContact(uid: $uid) {
... on DeletedItem {
uid
}
... on OperationError {
__typename
error
suggestion
}
}
}
`;export{n as A,r as D,a as E,i as a,o as b};