mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 00:42:59 +08:00
239 lines
5.4 KiB
GraphQL
239 lines
5.4 KiB
GraphQL
|
|
||
|
mutation EditProfilePricing($uid: String!, $payload: PriceInput!) {
|
||
|
updateProfilePrice(uid: $uid, payload: $payload) {
|
||
|
... on ProfilePriceType {
|
||
|
__typename
|
||
|
uid
|
||
|
isActive
|
||
|
amount
|
||
|
}
|
||
|
...on OperationError {
|
||
|
__typename
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation EditAnalysisPricing($uid: String!, $payload: PriceInput!) {
|
||
|
updateAnalysisPrice(uid: $uid, payload: $payload) {
|
||
|
... on AnalysisPriceType {
|
||
|
__typename
|
||
|
uid
|
||
|
isActive
|
||
|
amount
|
||
|
}
|
||
|
...on OperationError {
|
||
|
__typename
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation EditProfileDiscount($uid: String!, $payload: PriceDiscountInput!) {
|
||
|
updateProfileDiscount(uid: $uid, payload: $payload) {
|
||
|
... on ProfileDiscountType {
|
||
|
__typename
|
||
|
uid
|
||
|
profileUid
|
||
|
name
|
||
|
discountType
|
||
|
valueType
|
||
|
startDate
|
||
|
endDate
|
||
|
voucherUid
|
||
|
valuePercent
|
||
|
valueAmount
|
||
|
isActive
|
||
|
}
|
||
|
...on OperationError {
|
||
|
__typename
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation EditAnalysisDiscount($uid: String!, $payload: PriceDiscountInput!) {
|
||
|
updateAnalysisDiscount(uid: $uid, payload: $payload) {
|
||
|
... on AnalysisDiscountType {
|
||
|
__typename
|
||
|
uid
|
||
|
analysisUid
|
||
|
name
|
||
|
discountType
|
||
|
valueType
|
||
|
startDate
|
||
|
endDate
|
||
|
voucherUid
|
||
|
valuePercent
|
||
|
valueAmount
|
||
|
isActive
|
||
|
}
|
||
|
...on OperationError {
|
||
|
__typename
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation addVoucher ($payload: VoucherInput!) {
|
||
|
createVoucher(payload: $payload) {
|
||
|
__typename
|
||
|
...on VoucherType {
|
||
|
uid
|
||
|
name
|
||
|
usageLimit
|
||
|
used
|
||
|
startDate
|
||
|
endDate
|
||
|
oncePerCustomer
|
||
|
oncePerOrder
|
||
|
createdAt
|
||
|
createdByUid
|
||
|
updatedAt
|
||
|
updatedByUid
|
||
|
}
|
||
|
...on OperationError {
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation editVoucher ($uid: String!, $payload: VoucherInput!) {
|
||
|
updateVoucher(uid: $uid, payload: $payload) {
|
||
|
__typename
|
||
|
...on VoucherType {
|
||
|
uid
|
||
|
name
|
||
|
usageLimit
|
||
|
used
|
||
|
startDate
|
||
|
endDate
|
||
|
oncePerCustomer
|
||
|
oncePerOrder
|
||
|
createdAt
|
||
|
createdByUid
|
||
|
updatedAt
|
||
|
updatedByUid
|
||
|
}
|
||
|
...on OperationError {
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation addVoucherCode ($payload: VoucherCodeInput!) {
|
||
|
createVoucherCode(payload: $payload) {
|
||
|
__typename
|
||
|
...on VoucherCodeType {
|
||
|
uid
|
||
|
voucherUid
|
||
|
code
|
||
|
usageLimit
|
||
|
used
|
||
|
isActive
|
||
|
createdAt
|
||
|
createdByUid
|
||
|
updatedAt
|
||
|
updatedByUid
|
||
|
}
|
||
|
...on OperationError {
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation editVoucherCode ($uid: String!, $payload: VoucherCodeInput!) {
|
||
|
updateVoucherCode(uid: $uid, payload: $payload) {
|
||
|
__typename
|
||
|
...on VoucherCodeType {
|
||
|
uid
|
||
|
voucherUid
|
||
|
code
|
||
|
usageLimit
|
||
|
used
|
||
|
isActive
|
||
|
createdAt
|
||
|
createdByUid
|
||
|
updatedAt
|
||
|
updatedByUid
|
||
|
}
|
||
|
...on OperationError {
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation addTestBillTransaction($payload: BillTransactionInput!) {
|
||
|
createTestBillTransaction(payload: $payload) {
|
||
|
__typename
|
||
|
...on TestBillTransactionType {
|
||
|
uid
|
||
|
testBillUid
|
||
|
kind
|
||
|
amount
|
||
|
isSuccess
|
||
|
actionRequired
|
||
|
processed
|
||
|
notes
|
||
|
createdAt
|
||
|
createdByUid
|
||
|
}
|
||
|
...on OperationError {
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation confirmTestBillTransaction($uid: String!, $notes: String) {
|
||
|
confirmTestBillTransaction(uid: $uid, notes: $notes) {
|
||
|
__typename
|
||
|
...on TestBillTransactionType {
|
||
|
uid
|
||
|
testBillUid
|
||
|
kind
|
||
|
amount
|
||
|
isSuccess
|
||
|
actionRequired
|
||
|
processed
|
||
|
notes
|
||
|
createdAt
|
||
|
createdByUid
|
||
|
}
|
||
|
...on OperationError {
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation applyBillVoucher($payload: ApplyVoucherInput!) {
|
||
|
applyVoucher(payload: $payload) {
|
||
|
__typename
|
||
|
...on TestBillTransactionType {
|
||
|
uid
|
||
|
testBillUid
|
||
|
kind
|
||
|
amount
|
||
|
isSuccess
|
||
|
actionRequired
|
||
|
processed
|
||
|
notes
|
||
|
createdAt
|
||
|
createdByUid
|
||
|
}
|
||
|
...on OperationError {
|
||
|
error
|
||
|
suggestion
|
||
|
}
|
||
|
}
|
||
|
}
|