modification schema of event
This commit is contained in:
@@ -22,7 +22,7 @@ mutation CreateEvent(
|
||||
$contractType: ContractType,
|
||||
$poReference: String,
|
||||
$status: EventStatus!,
|
||||
$date: Timestamp!,
|
||||
$date: String!,
|
||||
$shifts: Any,
|
||||
$addons: Any,
|
||||
$total: Float,
|
||||
@@ -32,7 +32,19 @@ mutation CreateEvent(
|
||||
$invoiceId: UUID,
|
||||
$notes: String,
|
||||
$requested: Int,
|
||||
$assignedStaff: Any
|
||||
$assignedStaff: Any,
|
||||
$department: String,
|
||||
$createdBy: String,
|
||||
$orderType: String,
|
||||
$recurringStartDate: String,
|
||||
$recurringEndDate: String,
|
||||
$recurringDays: Any,
|
||||
$permanentStartDate: String,
|
||||
$permanentDays: Any,
|
||||
$includeBackup: Boolean,
|
||||
$backupStaffCount: Int,
|
||||
$recurringTime: String,
|
||||
$permanentTime: String
|
||||
) @auth(level: USER) {
|
||||
event_insert(
|
||||
data: {
|
||||
@@ -68,8 +80,20 @@ mutation CreateEvent(
|
||||
clientPhone: $clientPhone
|
||||
invoiceId: $invoiceId
|
||||
notes: $notes
|
||||
orderType: $orderType
|
||||
requested: $requested
|
||||
assignedStaff: $assignedStaff
|
||||
department: $department
|
||||
createdBy: $createdBy
|
||||
recurringStartDate: $recurringStartDate
|
||||
recurringEndDate: $recurringEndDate
|
||||
recurringDays: $recurringDays
|
||||
permanentStartDate: $permanentStartDate
|
||||
permanentDays: $permanentDays
|
||||
includeBackup: $includeBackup
|
||||
backupStaffCount: $backupStaffCount
|
||||
recurringTime: $recurringTime
|
||||
permanentTime: $permanentTime
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -100,7 +124,7 @@ mutation UpdateEvent(
|
||||
$contractType: ContractType,
|
||||
$poReference: String,
|
||||
$status: EventStatus,
|
||||
$date: Timestamp,
|
||||
$date: String,
|
||||
$shifts: Any,
|
||||
$addons: Any,
|
||||
$total: Float,
|
||||
@@ -110,7 +134,19 @@ mutation UpdateEvent(
|
||||
$invoiceId: UUID,
|
||||
$notes: String,
|
||||
$requested: Int,
|
||||
$assignedStaff: Any
|
||||
$orderType: String,
|
||||
$department: String,
|
||||
$assignedStaff: Any,
|
||||
$createdBy: String,
|
||||
$recurringStartDate: String,
|
||||
$recurringEndDate: String,
|
||||
$recurringDays: Any,
|
||||
$permanentStartDate: String,
|
||||
$permanentDays: Any,
|
||||
$includeBackup: Boolean,
|
||||
$backupStaffCount: Int,
|
||||
$recurringTime: String,
|
||||
$permanentTime: String
|
||||
) @auth(level: USER) {
|
||||
event_update(
|
||||
id: $id,
|
||||
@@ -147,8 +183,20 @@ mutation UpdateEvent(
|
||||
clientPhone: $clientPhone
|
||||
invoiceId: $invoiceId
|
||||
notes: $notes
|
||||
orderType: $orderType
|
||||
requested: $requested
|
||||
assignedStaff: $assignedStaff
|
||||
department: $department
|
||||
createdBy: $createdBy
|
||||
recurringStartDate: $recurringStartDate
|
||||
recurringEndDate: $recurringEndDate
|
||||
recurringDays: $recurringDays
|
||||
permanentStartDate: $permanentStartDate
|
||||
permanentDays: $permanentDays
|
||||
includeBackup: $includeBackup
|
||||
backupStaffCount: $backupStaffCount
|
||||
recurringTime: $recurringTime
|
||||
permanentTime: $permanentTime
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user