Wire up the dataconnect-generated package for the web app and add a new `hub` field to invoice mutations and queries. Updates include: add package links in apps/web package and workspace config, adjust connector.yaml JavaScript SDK output/package paths, add `hub` to invoice create/update mutations and to invoice queries, remove many example dataconnect GraphQL files and the web README, and minor formatting/newline fixes (Makefile and several .gql files).
101 lines
2.2 KiB
GraphQL
101 lines
2.2 KiB
GraphQL
mutation createOrder(
|
|
$vendorId: UUID
|
|
$businessId: UUID!
|
|
$orderType: OrderType!
|
|
#$location: String
|
|
$status: OrderStatus
|
|
$date: Timestamp
|
|
$startDate: Timestamp
|
|
$endDate: Timestamp
|
|
$duration: OrderDuration
|
|
$lunchBreak: Int
|
|
$total: Float
|
|
$eventName: String
|
|
$assignedStaff: Any
|
|
$shifts: Any
|
|
$requested: Int
|
|
$teamHubId: UUID!
|
|
$recurringDays: Any
|
|
$permanentStartDate: Timestamp
|
|
$permanentDays: Any
|
|
$notes: String
|
|
$detectedConflicts: Any
|
|
$poReference: String
|
|
) @auth(level: USER) {
|
|
order_insert(
|
|
data: {
|
|
vendorId: $vendorId
|
|
businessId: $businessId
|
|
orderType: $orderType
|
|
#location: $location
|
|
status: $status
|
|
date: $date
|
|
startDate: $startDate
|
|
endDate: $endDate
|
|
duration: $duration
|
|
lunchBreak: $lunchBreak
|
|
total: $total
|
|
eventName: $eventName
|
|
assignedStaff: $assignedStaff
|
|
shifts: $shifts
|
|
requested: $requested
|
|
teamHubId: $teamHubId
|
|
recurringDays: $recurringDays
|
|
permanentDays: $permanentDays
|
|
notes: $notes
|
|
detectedConflicts: $detectedConflicts
|
|
poReference: $poReference
|
|
}
|
|
)
|
|
}
|
|
|
|
mutation updateOrder(
|
|
$id: UUID!
|
|
$vendorId: UUID
|
|
$businessId: UUID
|
|
#$location: String
|
|
$status: OrderStatus
|
|
$date: Timestamp
|
|
$startDate: Timestamp
|
|
$endDate: Timestamp
|
|
$total: Float
|
|
$eventName: String
|
|
$assignedStaff: Any
|
|
$shifts: Any
|
|
$requested: Int
|
|
$teamHubId: UUID!
|
|
$recurringDays: Any
|
|
$permanentDays: Any
|
|
$notes: String
|
|
$detectedConflicts: Any
|
|
$poReference: String
|
|
) @auth(level: USER) {
|
|
order_update(
|
|
id: $id
|
|
data: {
|
|
vendorId: $vendorId
|
|
businessId: $businessId
|
|
#location: $location
|
|
status: $status
|
|
date: $date
|
|
startDate: $startDate
|
|
endDate: $endDate
|
|
total: $total
|
|
eventName: $eventName
|
|
assignedStaff: $assignedStaff
|
|
shifts: $shifts
|
|
requested: $requested
|
|
teamHubId: $teamHubId
|
|
recurringDays: $recurringDays
|
|
permanentDays: $permanentDays
|
|
notes: $notes
|
|
detectedConflicts: $detectedConflicts
|
|
poReference: $poReference
|
|
}
|
|
)
|
|
}
|
|
|
|
mutation deleteOrder($id: UUID!) @auth(level: USER) {
|
|
order_delete(id: $id)
|
|
}
|