chaging schemas for front
This commit is contained in:
@@ -6,16 +6,16 @@ mutation CreateEvent(
|
||||
$recurrenceType: RecurrenceType,
|
||||
$recurrenceStartDate: Timestamp,
|
||||
$recurrenceEndDate: Timestamp,
|
||||
$scatterDates: String,
|
||||
$scatterDates: Any,
|
||||
$multiDayStartDate: Timestamp,
|
||||
$multiDayEndDate: Timestamp,
|
||||
$bufferTimeBefore: Float,
|
||||
$bufferTimeAfter: Float,
|
||||
$conflictDetectionEnabled: Boolean,
|
||||
$detectedConflicts: String,
|
||||
$detectedConflicts: Any,
|
||||
$businessId: UUID!,
|
||||
$businessName: String,
|
||||
$vendorId: UUID,
|
||||
$vendorId: String,
|
||||
$vendorName: String,
|
||||
$hub: String,
|
||||
$eventLocation: String,
|
||||
@@ -23,8 +23,8 @@ mutation CreateEvent(
|
||||
$poReference: String,
|
||||
$status: EventStatus!,
|
||||
$date: Timestamp!,
|
||||
$shifts: String,
|
||||
$addons: String,
|
||||
$shifts: Any,
|
||||
$addons: Any,
|
||||
$total: Float,
|
||||
$clientName: String,
|
||||
$clientEmail: String,
|
||||
@@ -32,7 +32,7 @@ mutation CreateEvent(
|
||||
$invoiceId: UUID,
|
||||
$notes: String,
|
||||
$requested: Int,
|
||||
$assignedStaff: String
|
||||
$assignedStaff: Any
|
||||
) @auth(level: USER) {
|
||||
event_insert(
|
||||
data: {
|
||||
@@ -84,16 +84,16 @@ mutation UpdateEvent(
|
||||
$recurrenceType: RecurrenceType,
|
||||
$recurrenceStartDate: Timestamp,
|
||||
$recurrenceEndDate: Timestamp,
|
||||
$scatterDates: String,
|
||||
$scatterDates: Any,
|
||||
$multiDayStartDate: Timestamp,
|
||||
$multiDayEndDate: Timestamp,
|
||||
$bufferTimeBefore: Float,
|
||||
$bufferTimeAfter: Float,
|
||||
$conflictDetectionEnabled: Boolean,
|
||||
$detectedConflicts: String,
|
||||
$detectedConflicts: Any,
|
||||
$businessId: UUID,
|
||||
$businessName: String,
|
||||
$vendorId: UUID,
|
||||
$vendorId: String,
|
||||
$vendorName: String,
|
||||
$hub: String,
|
||||
$eventLocation: String,
|
||||
@@ -101,8 +101,8 @@ mutation UpdateEvent(
|
||||
$poReference: String,
|
||||
$status: EventStatus,
|
||||
$date: Timestamp,
|
||||
$shifts: String,
|
||||
$addons: String,
|
||||
$shifts: Any,
|
||||
$addons: Any,
|
||||
$total: Float,
|
||||
$clientName: String,
|
||||
$clientEmail: String,
|
||||
@@ -110,7 +110,7 @@ mutation UpdateEvent(
|
||||
$invoiceId: UUID,
|
||||
$notes: String,
|
||||
$requested: Int,
|
||||
$assignedStaff: String
|
||||
$assignedStaff: Any
|
||||
) @auth(level: USER) {
|
||||
event_update(
|
||||
id: $id,
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
query listEvents @auth(level: USER) {
|
||||
events {
|
||||
query listEvents (
|
||||
$orderByDate: OrderDirection
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
events(
|
||||
orderBy: { date: $orderByDate }
|
||||
limit: $limit
|
||||
) {
|
||||
id
|
||||
eventName
|
||||
status
|
||||
@@ -84,7 +90,7 @@ query getEventById(
|
||||
query filterEvents(
|
||||
$status: EventStatus,
|
||||
$businessId: UUID,
|
||||
$vendorId: UUID,
|
||||
$vendorId: String,
|
||||
$isRecurring: Boolean,
|
||||
$isRapid: Boolean,
|
||||
$isMultiDay: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user