Clean old base44 project reference architecture
This commit is contained in:
0
dataconnect/.keep
Normal file
0
dataconnect/.keep
Normal file
@@ -1,51 +0,0 @@
|
||||
mutation CreateActivityLog(
|
||||
$title: String!,
|
||||
$description: String!,
|
||||
$activityType: ActivityType!,
|
||||
$userId: String!,
|
||||
$isRead: Boolean,
|
||||
$iconType: String,
|
||||
$iconColor: String
|
||||
) @auth(level: USER) {
|
||||
activityLog_insert(
|
||||
data: {
|
||||
title: $title
|
||||
description: $description
|
||||
activityType: $activityType
|
||||
userId: $userId
|
||||
isRead: $isRead
|
||||
iconType: $iconType
|
||||
iconColor: $iconColor
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateActivityLog(
|
||||
$id: UUID!,
|
||||
$title: String,
|
||||
$description: String,
|
||||
$activityType: ActivityType,
|
||||
$userId: String,
|
||||
$isRead: Boolean,
|
||||
$iconType: String,
|
||||
$iconColor: String
|
||||
) @auth(level: USER) {
|
||||
activityLog_update(
|
||||
id: $id,
|
||||
data: {
|
||||
title: $title
|
||||
description: $description
|
||||
activityType: $activityType
|
||||
userId: $userId
|
||||
isRead: $isRead
|
||||
iconType: $iconType
|
||||
iconColor: $iconColor
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteActivityLog(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
activityLog_delete(id: $id)
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
query listActivityLog @auth(level: USER) {
|
||||
activityLogs {
|
||||
id
|
||||
title
|
||||
description
|
||||
activityType
|
||||
userId
|
||||
isRead
|
||||
iconType
|
||||
iconColor
|
||||
}
|
||||
}
|
||||
|
||||
query getActivityLogById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
activityLog(id: $id) {
|
||||
id
|
||||
title
|
||||
description
|
||||
activityType
|
||||
userId
|
||||
isRead
|
||||
iconType
|
||||
iconColor
|
||||
}
|
||||
}
|
||||
|
||||
query filterActivityLog(
|
||||
$userId: String,
|
||||
$activityType: ActivityType,
|
||||
$isRead: Boolean
|
||||
) @auth(level: USER) {
|
||||
activityLogs(
|
||||
where: {
|
||||
userId: { eq: $userId }
|
||||
activityType: { eq: $activityType }
|
||||
isRead: { eq: $isRead }
|
||||
}
|
||||
) {
|
||||
id
|
||||
title
|
||||
description
|
||||
activityType
|
||||
userId
|
||||
isRead
|
||||
iconType
|
||||
iconColor
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
mutation CreateAssignment(
|
||||
$assignmentNumber: String,
|
||||
$orderId: UUID!,
|
||||
$workforceId: UUID!,
|
||||
$vendorId: UUID!,
|
||||
$role: String!,
|
||||
$assignmentStatus: AssignmentStatus!,
|
||||
$scheduledStart: Timestamp!
|
||||
) @auth(level: USER) {
|
||||
assignment_insert(
|
||||
data: {
|
||||
assignmentNumber: $assignmentNumber
|
||||
orderId: $orderId
|
||||
workforceId: $workforceId
|
||||
vendorId: $vendorId
|
||||
role: $role
|
||||
assignmentStatus: $assignmentStatus
|
||||
scheduledStart: $scheduledStart
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateAssignment(
|
||||
$id: UUID!,
|
||||
$assignmentNumber: String,
|
||||
$orderId: UUID,
|
||||
$workforceId: UUID,
|
||||
$vendorId: UUID,
|
||||
$role: String,
|
||||
$assignmentStatus: AssignmentStatus,
|
||||
$scheduledStart: Timestamp
|
||||
) @auth(level: USER) {
|
||||
assignment_update(
|
||||
id: $id,
|
||||
data: {
|
||||
assignmentNumber: $assignmentNumber
|
||||
orderId: $orderId
|
||||
workforceId: $workforceId
|
||||
vendorId: $vendorId
|
||||
role: $role
|
||||
assignmentStatus: $assignmentStatus
|
||||
scheduledStart: $scheduledStart
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteAssignment(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
assignment_delete(id: $id)
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
# dataconnect/connector/assignment/queries.gql
|
||||
|
||||
query listAssignment @auth(level: USER) {
|
||||
assignments {
|
||||
id
|
||||
assignmentNumber
|
||||
orderId
|
||||
workforceId
|
||||
vendorId
|
||||
role
|
||||
assignmentStatus
|
||||
scheduledStart
|
||||
}
|
||||
}
|
||||
|
||||
query getAssignmentById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
assignment(id: $id) {
|
||||
id
|
||||
assignmentNumber
|
||||
orderId
|
||||
workforceId
|
||||
vendorId
|
||||
role
|
||||
assignmentStatus
|
||||
scheduledStart
|
||||
}
|
||||
}
|
||||
|
||||
query filterAssignment(
|
||||
$assignmentNumber: String,
|
||||
$orderId: UUID,
|
||||
$workforceId: UUID,
|
||||
$vendorId: UUID,
|
||||
$assignmentStatus: AssignmentStatus
|
||||
) @auth(level: USER) {
|
||||
assignments(
|
||||
where: {
|
||||
assignmentNumber: { eq: $assignmentNumber }
|
||||
orderId: { eq: $orderId }
|
||||
workforceId: { eq: $workforceId }
|
||||
vendorId: { eq: $vendorId }
|
||||
assignmentStatus: { eq: $assignmentStatus }
|
||||
}
|
||||
) {
|
||||
id
|
||||
assignmentNumber
|
||||
orderId
|
||||
workforceId
|
||||
vendorId
|
||||
role
|
||||
assignmentStatus
|
||||
scheduledStart
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
mutation CreateBusiness(
|
||||
$businessName: String!,
|
||||
$contactName: String!,
|
||||
$email: String,
|
||||
$sector: BusinessSector,
|
||||
$rateGroup: BusinessRateGroup!,
|
||||
$status: BusinessStatus
|
||||
) @auth(level: USER) {
|
||||
business_insert(
|
||||
data: {
|
||||
businessName: $businessName
|
||||
contactName: $contactName
|
||||
email: $email
|
||||
sector: $sector
|
||||
rateGroup: $rateGroup
|
||||
status: $status
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateBusiness(
|
||||
$id: UUID!,
|
||||
$businessName: String,
|
||||
$contactName: String,
|
||||
$email: String,
|
||||
$sector: BusinessSector,
|
||||
$rateGroup: BusinessRateGroup,
|
||||
$status: BusinessStatus
|
||||
) @auth(level: USER) {
|
||||
business_update(
|
||||
id: $id,
|
||||
data: {
|
||||
businessName: $businessName
|
||||
contactName: $contactName
|
||||
email: $email
|
||||
sector: $sector
|
||||
rateGroup: $rateGroup
|
||||
status: $status
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteBusiness(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
business_delete(id: $id)
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
query listBusiness @auth(level: USER) {
|
||||
businesses {
|
||||
id
|
||||
businessName
|
||||
contactName
|
||||
email
|
||||
sector
|
||||
rateGroup
|
||||
status
|
||||
}
|
||||
}
|
||||
|
||||
query getBusinessById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
business(id: $id) {
|
||||
id
|
||||
businessName
|
||||
contactName
|
||||
email
|
||||
sector
|
||||
rateGroup
|
||||
status
|
||||
}
|
||||
}
|
||||
|
||||
query filterBusiness(
|
||||
$businessName: String,
|
||||
$contactName: String,
|
||||
$sector: BusinessSector,
|
||||
$rateGroup: BusinessRateGroup,
|
||||
$status: BusinessStatus
|
||||
) @auth(level: USER) {
|
||||
businesses(
|
||||
where: {
|
||||
businessName: { eq: $businessName }
|
||||
contactName: { eq: $contactName }
|
||||
sector: { eq: $sector }
|
||||
rateGroup: { eq: $rateGroup }
|
||||
status: { eq: $status }
|
||||
}
|
||||
) {
|
||||
id
|
||||
businessName
|
||||
contactName
|
||||
email
|
||||
sector
|
||||
rateGroup
|
||||
status
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
mutation CreateCertification(
|
||||
$employeeName: String!,
|
||||
$certificationName: String!,
|
||||
$certificationType: CertificationType,
|
||||
$status: CertificationStatus,
|
||||
$expiryDate: String!,
|
||||
$validationStatus: CertificationValidationStatus
|
||||
) @auth(level: USER) {
|
||||
certification_insert(
|
||||
data: {
|
||||
employeeName: $employeeName
|
||||
certificationName: $certificationName
|
||||
certificationType: $certificationType
|
||||
status: $status
|
||||
expiryDate: $expiryDate
|
||||
validationStatus: $validationStatus
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateCertification(
|
||||
$id: UUID!,
|
||||
$employeeName: String,
|
||||
$certificationName: String,
|
||||
$certificationType: CertificationType,
|
||||
$status: CertificationStatus,
|
||||
$expiryDate: String,
|
||||
$validationStatus: CertificationValidationStatus
|
||||
) @auth(level: USER) {
|
||||
certification_update(
|
||||
id: $id,
|
||||
data: {
|
||||
employeeName: $employeeName
|
||||
certificationName: $certificationName
|
||||
certificationType: $certificationType
|
||||
status: $status
|
||||
expiryDate: $expiryDate
|
||||
validationStatus: $validationStatus
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteCertification(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
certification_delete(id: $id)
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
query listCertification @auth(level: USER) {
|
||||
certifications {
|
||||
id
|
||||
employeeName
|
||||
certificationName
|
||||
certificationType
|
||||
status
|
||||
expiryDate
|
||||
validationStatus
|
||||
}
|
||||
}
|
||||
|
||||
query getCertificationById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
certification(id: $id) {
|
||||
id
|
||||
employeeName
|
||||
certificationName
|
||||
certificationType
|
||||
status
|
||||
expiryDate
|
||||
validationStatus
|
||||
createdDate
|
||||
updatedDate
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query filterCertification(
|
||||
$employeeName: String,
|
||||
$certificationName: String,
|
||||
$certificationType: CertificationType,
|
||||
$status: CertificationStatus,
|
||||
$validationStatus: CertificationValidationStatus
|
||||
) @auth(level: USER) {
|
||||
certifications(
|
||||
where: {
|
||||
employeeName: { eq: $employeeName }
|
||||
certificationName: { eq: $certificationName }
|
||||
certificationType: { eq: $certificationType }
|
||||
status: { eq: $status }
|
||||
validationStatus: { eq: $validationStatus }
|
||||
}
|
||||
) {
|
||||
id
|
||||
employeeName
|
||||
certificationName
|
||||
certificationType
|
||||
status
|
||||
expiryDate
|
||||
validationStatus
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
connectorId: krow-connector
|
||||
generate:
|
||||
javascriptSdk:
|
||||
- outputDir: ../../frontend-web/src/dataconnect-generated
|
||||
package: "@dataconnect/generated"
|
||||
packageJsonDir: ../../frontend-web
|
||||
react: true
|
||||
angular: false
|
||||
- outputDir: ../../internal-api-harness/src/dataconnect-generated
|
||||
package: "@dataconnect/generated"
|
||||
packageJsonDir: ../../internal-api-harness
|
||||
react: true
|
||||
angular: false
|
||||
- outputDir: ../../frontend-web-free/src/dataconnect-generated
|
||||
package: "@dataconnect/generated"
|
||||
packageJsonDir: ../../frontend-web-free
|
||||
react: true
|
||||
angular: false
|
||||
@@ -1,39 +0,0 @@
|
||||
mutation CreateConversation(
|
||||
$participants: String!,
|
||||
$conversationType: ConversationType!,
|
||||
$relatedTo: UUID!,
|
||||
$status: ConversationStatus
|
||||
) @auth(level: USER) {
|
||||
conversation_insert(
|
||||
data: {
|
||||
participants: $participants
|
||||
conversationType: $conversationType
|
||||
relatedTo: $relatedTo
|
||||
status: $status
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateConversation(
|
||||
$id: UUID!,
|
||||
$participants: String,
|
||||
$conversationType: ConversationType,
|
||||
$relatedTo: UUID,
|
||||
$status: ConversationStatus
|
||||
) @auth(level: USER) {
|
||||
conversation_update(
|
||||
id: $id,
|
||||
data: {
|
||||
participants: $participants
|
||||
conversationType: $conversationType
|
||||
relatedTo: $relatedTo
|
||||
status: $status
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteConversation(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
conversation_delete(id: $id)
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
# dataconnect/connector/conversation/queries.gql
|
||||
|
||||
query listConversation @auth(level: USER) {
|
||||
conversations {
|
||||
id
|
||||
participants
|
||||
conversationType
|
||||
relatedTo
|
||||
status
|
||||
}
|
||||
}
|
||||
|
||||
query getConversationById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
conversation(id: $id) {
|
||||
id
|
||||
participants
|
||||
conversationType
|
||||
relatedTo
|
||||
status
|
||||
}
|
||||
}
|
||||
|
||||
query filterConversation(
|
||||
$conversationType: ConversationType,
|
||||
$status: ConversationStatus,
|
||||
$relatedTo: UUID
|
||||
) @auth(level: USER) {
|
||||
conversations(
|
||||
where: {
|
||||
conversationType: { eq: $conversationType }
|
||||
status: { eq: $status }
|
||||
relatedTo: { eq: $relatedTo }
|
||||
}
|
||||
) {
|
||||
id
|
||||
participants
|
||||
conversationType
|
||||
relatedTo
|
||||
status
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
mutation CreateEnterprise(
|
||||
$enterpriseNumber: String!,
|
||||
$enterpriseName: String!,
|
||||
$enterpriseCode: String!
|
||||
) @auth(level: USER) {
|
||||
enterprise_insert(
|
||||
data: {
|
||||
enterpriseNumber: $enterpriseNumber
|
||||
enterpriseName: $enterpriseName
|
||||
enterpriseCode: $enterpriseCode
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateEnterprise(
|
||||
$id: UUID!,
|
||||
$enterpriseNumber: String,
|
||||
$enterpriseName: String,
|
||||
$enterpriseCode: String
|
||||
) @auth(level: USER) {
|
||||
enterprise_update(
|
||||
id: $id,
|
||||
data: {
|
||||
enterpriseNumber: $enterpriseNumber
|
||||
enterpriseName: $enterpriseName
|
||||
enterpriseCode: $enterpriseCode
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteEnterprise(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
enterprise_delete(id: $id)
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
query listEnterprise @auth(level: USER) {
|
||||
enterprises {
|
||||
id
|
||||
enterpriseNumber
|
||||
enterpriseName
|
||||
enterpriseCode
|
||||
}
|
||||
}
|
||||
|
||||
query getEnterpriseById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
enterprise(id: $id) {
|
||||
id
|
||||
enterpriseNumber
|
||||
enterpriseName
|
||||
enterpriseCode
|
||||
}
|
||||
}
|
||||
|
||||
query filterEnterprise(
|
||||
$enterpriseNumber: String,
|
||||
$enterpriseName: String,
|
||||
$enterpriseCode: String
|
||||
) @auth(level: USER) {
|
||||
enterprises(
|
||||
where: {
|
||||
enterpriseNumber: { eq: $enterpriseNumber }
|
||||
enterpriseName: { eq: $enterpriseName }
|
||||
enterpriseCode: { eq: $enterpriseCode }
|
||||
}
|
||||
) {
|
||||
id
|
||||
enterpriseNumber
|
||||
enterpriseName
|
||||
enterpriseCode
|
||||
}
|
||||
}
|
||||
@@ -1,208 +0,0 @@
|
||||
mutation CreateEvent(
|
||||
$eventName: String!,
|
||||
$isRapid: Boolean,
|
||||
$isRecurring: Boolean,
|
||||
$isMultiDay: Boolean,
|
||||
$recurrenceType: RecurrenceType,
|
||||
$recurrenceStartDate: Timestamp,
|
||||
$recurrenceEndDate: Timestamp,
|
||||
$scatterDates: Any,
|
||||
$multiDayStartDate: Timestamp,
|
||||
$multiDayEndDate: Timestamp,
|
||||
$bufferTimeBefore: Float,
|
||||
$bufferTimeAfter: Float,
|
||||
$conflictDetectionEnabled: Boolean,
|
||||
$detectedConflicts: Any,
|
||||
$businessId: UUID!,
|
||||
$businessName: String,
|
||||
$vendorId: String,
|
||||
$vendorName: String,
|
||||
$hub: String,
|
||||
$eventLocation: String,
|
||||
$contractType: ContractType,
|
||||
$poReference: String,
|
||||
$status: EventStatus!,
|
||||
$date: String!,
|
||||
$shifts: Any,
|
||||
$addons: Any,
|
||||
$total: Float,
|
||||
$clientName: String,
|
||||
$clientEmail: String,
|
||||
$clientPhone: String,
|
||||
$invoiceId: UUID,
|
||||
$notes: String,
|
||||
$requested: Int,
|
||||
$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: {
|
||||
eventName: $eventName
|
||||
isRapid: $isRapid
|
||||
isRecurring: $isRecurring
|
||||
isMultiDay: $isMultiDay
|
||||
recurrenceType: $recurrenceType
|
||||
recurrenceStartDate: $recurrenceStartDate
|
||||
recurrenceEndDate: $recurrenceEndDate
|
||||
scatterDates: $scatterDates
|
||||
multiDayStartDate: $multiDayStartDate
|
||||
multiDayEndDate: $multiDayEndDate
|
||||
bufferTimeBefore: $bufferTimeBefore
|
||||
bufferTimeAfter: $bufferTimeAfter
|
||||
conflictDetectionEnabled: $conflictDetectionEnabled
|
||||
detectedConflicts: $detectedConflicts
|
||||
businessId: $businessId
|
||||
businessName: $businessName
|
||||
vendorId: $vendorId
|
||||
vendorName: $vendorName
|
||||
hub: $hub
|
||||
eventLocation: $eventLocation
|
||||
contractType: $contractType
|
||||
poReference: $poReference
|
||||
status: $status
|
||||
date: $date
|
||||
shifts: $shifts
|
||||
addons: $addons
|
||||
total: $total
|
||||
clientName: $clientName
|
||||
clientEmail: $clientEmail
|
||||
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
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
mutation UpdateEvent(
|
||||
$id: UUID!,
|
||||
$eventName: String,
|
||||
$isRapid: Boolean,
|
||||
$isRecurring: Boolean,
|
||||
$isMultiDay: Boolean,
|
||||
$recurrenceType: RecurrenceType,
|
||||
$recurrenceStartDate: Timestamp,
|
||||
$recurrenceEndDate: Timestamp,
|
||||
$scatterDates: Any,
|
||||
$multiDayStartDate: Timestamp,
|
||||
$multiDayEndDate: Timestamp,
|
||||
$bufferTimeBefore: Float,
|
||||
$bufferTimeAfter: Float,
|
||||
$conflictDetectionEnabled: Boolean,
|
||||
$detectedConflicts: Any,
|
||||
$businessId: UUID,
|
||||
$businessName: String,
|
||||
$vendorId: String,
|
||||
$vendorName: String,
|
||||
$hub: String,
|
||||
$eventLocation: String,
|
||||
$contractType: ContractType,
|
||||
$poReference: String,
|
||||
$status: EventStatus,
|
||||
$date: String,
|
||||
$shifts: Any,
|
||||
$addons: Any,
|
||||
$total: Float,
|
||||
$clientName: String,
|
||||
$clientEmail: String,
|
||||
$clientPhone: String,
|
||||
$invoiceId: UUID,
|
||||
$notes: String,
|
||||
$requested: Int,
|
||||
$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,
|
||||
data: {
|
||||
eventName: $eventName
|
||||
isRapid: $isRapid
|
||||
isRecurring: $isRecurring
|
||||
isMultiDay: $isMultiDay
|
||||
recurrenceType: $recurrenceType
|
||||
recurrenceStartDate: $recurrenceStartDate
|
||||
recurrenceEndDate: $recurrenceEndDate
|
||||
scatterDates: $scatterDates
|
||||
multiDayStartDate: $multiDayStartDate
|
||||
multiDayEndDate: $multiDayEndDate
|
||||
bufferTimeBefore: $bufferTimeBefore
|
||||
bufferTimeAfter: $bufferTimeAfter
|
||||
conflictDetectionEnabled: $conflictDetectionEnabled
|
||||
detectedConflicts: $detectedConflicts
|
||||
businessId: $businessId
|
||||
businessName: $businessName
|
||||
vendorId: $vendorId
|
||||
vendorName: $vendorName
|
||||
hub: $hub
|
||||
eventLocation: $eventLocation
|
||||
contractType: $contractType
|
||||
poReference: $poReference
|
||||
status: $status
|
||||
date: $date
|
||||
shifts: $shifts
|
||||
addons: $addons
|
||||
total: $total
|
||||
clientName: $clientName
|
||||
clientEmail: $clientEmail
|
||||
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
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteEvent(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
event_delete(id: $id)
|
||||
}
|
||||
@@ -1,193 +0,0 @@
|
||||
query listEvents (
|
||||
$orderByDate: OrderDirection
|
||||
$orderByCreatedDate: OrderDirection,
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
events(
|
||||
orderBy: [
|
||||
{ date: $orderByDate }
|
||||
{ createdDate: $orderByCreatedDate }
|
||||
]
|
||||
limit: $limit
|
||||
) {
|
||||
id
|
||||
eventName
|
||||
status
|
||||
date
|
||||
isRapid
|
||||
isRecurring
|
||||
isMultiDay
|
||||
recurrenceType
|
||||
recurrenceStartDate
|
||||
recurrenceEndDate
|
||||
scatterDates
|
||||
multiDayStartDate
|
||||
multiDayEndDate
|
||||
bufferTimeBefore
|
||||
bufferTimeAfter
|
||||
conflictDetectionEnabled
|
||||
detectedConflicts
|
||||
businessId
|
||||
businessName
|
||||
vendorId
|
||||
vendorName
|
||||
hub
|
||||
eventLocation
|
||||
contractType
|
||||
poReference
|
||||
shifts
|
||||
addons
|
||||
total
|
||||
clientName
|
||||
clientEmail
|
||||
clientPhone
|
||||
invoiceId
|
||||
notes
|
||||
requested
|
||||
assignedStaff
|
||||
orderType
|
||||
department
|
||||
createdBy
|
||||
recurringStartDate
|
||||
recurringEndDate
|
||||
recurringDays
|
||||
permanentStartDate
|
||||
permanentDays
|
||||
includeBackup
|
||||
backupStaffCount
|
||||
recurringTime
|
||||
permanentTime
|
||||
}
|
||||
}
|
||||
|
||||
query getEventById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
event(id: $id) {
|
||||
id
|
||||
eventName
|
||||
status
|
||||
date
|
||||
isRapid
|
||||
isRecurring
|
||||
isMultiDay
|
||||
recurrenceType
|
||||
recurrenceStartDate
|
||||
recurrenceEndDate
|
||||
scatterDates
|
||||
multiDayStartDate
|
||||
multiDayEndDate
|
||||
bufferTimeBefore
|
||||
bufferTimeAfter
|
||||
conflictDetectionEnabled
|
||||
detectedConflicts
|
||||
businessId
|
||||
businessName
|
||||
vendorId
|
||||
vendorName
|
||||
hub
|
||||
eventLocation
|
||||
contractType
|
||||
poReference
|
||||
shifts
|
||||
addons
|
||||
total
|
||||
clientName
|
||||
clientEmail
|
||||
clientPhone
|
||||
invoiceId
|
||||
notes
|
||||
requested
|
||||
orderType
|
||||
department
|
||||
assignedStaff
|
||||
recurringStartDate
|
||||
recurringEndDate
|
||||
recurringDays
|
||||
permanentStartDate
|
||||
permanentDays
|
||||
includeBackup
|
||||
backupStaffCount
|
||||
recurringTime
|
||||
permanentTime
|
||||
}
|
||||
}
|
||||
|
||||
query filterEvents(
|
||||
$status: EventStatus,
|
||||
$businessId: UUID,
|
||||
$vendorId: String,
|
||||
$isRecurring: Boolean,
|
||||
$isRapid: Boolean,
|
||||
$isMultiDay: Boolean,
|
||||
$recurrenceType: RecurrenceType,
|
||||
$date: String,
|
||||
$hub: String,
|
||||
$eventLocation: String,
|
||||
$contractType: ContractType,
|
||||
$clientEmail: String
|
||||
) @auth(level: USER) {
|
||||
events(
|
||||
where: {
|
||||
status: { eq: $status }
|
||||
businessId: { eq: $businessId }
|
||||
vendorId: { eq: $vendorId }
|
||||
isRecurring: { eq: $isRecurring }
|
||||
isRapid: { eq: $isRapid }
|
||||
isMultiDay: { eq: $isMultiDay }
|
||||
recurrenceType: { eq: $recurrenceType }
|
||||
date: { eq: $date }
|
||||
hub: { eq: $hub }
|
||||
eventLocation: { eq: $eventLocation }
|
||||
contractType: { eq: $contractType }
|
||||
clientEmail: { eq: $clientEmail }
|
||||
}) {
|
||||
id
|
||||
eventName
|
||||
status
|
||||
date
|
||||
isRapid
|
||||
isRecurring
|
||||
isMultiDay
|
||||
recurrenceType
|
||||
recurrenceStartDate
|
||||
recurrenceEndDate
|
||||
scatterDates
|
||||
multiDayStartDate
|
||||
multiDayEndDate
|
||||
bufferTimeBefore
|
||||
bufferTimeAfter
|
||||
conflictDetectionEnabled
|
||||
detectedConflicts
|
||||
businessId
|
||||
businessName
|
||||
vendorId
|
||||
vendorName
|
||||
hub
|
||||
eventLocation
|
||||
contractType
|
||||
poReference
|
||||
shifts
|
||||
addons
|
||||
total
|
||||
clientName
|
||||
clientEmail
|
||||
clientPhone
|
||||
invoiceId
|
||||
notes
|
||||
requested
|
||||
assignedStaff
|
||||
orderType
|
||||
department
|
||||
createdBy
|
||||
recurringStartDate
|
||||
recurringEndDate
|
||||
recurringDays
|
||||
permanentStartDate
|
||||
permanentDays
|
||||
includeBackup
|
||||
backupStaffCount
|
||||
recurringTime
|
||||
permanentTime
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
mutation CreateInvoice(
|
||||
$invoiceNumber: String!,
|
||||
$amount: Float!,
|
||||
$status: InvoiceStatus!,
|
||||
$issueDate: Timestamp!,
|
||||
$dueDate: Timestamp!,
|
||||
$disputedItems: String,
|
||||
$isAutoGenerated: Boolean
|
||||
) @auth(level: USER) {
|
||||
invoice_insert(
|
||||
data: {
|
||||
invoiceNumber: $invoiceNumber
|
||||
amount: $amount
|
||||
status: $status
|
||||
issueDate: $issueDate
|
||||
dueDate: $dueDate
|
||||
disputedItems: $disputedItems
|
||||
isAutoGenerated: $isAutoGenerated
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateInvoice(
|
||||
$id: UUID!,
|
||||
$invoiceNumber: String,
|
||||
$amount: Float,
|
||||
$status: InvoiceStatus,
|
||||
$issueDate: Timestamp,
|
||||
$dueDate: Timestamp,
|
||||
$disputedItems: String,
|
||||
$isAutoGenerated: Boolean
|
||||
) @auth(level: USER) {
|
||||
invoice_update(
|
||||
id: $id,
|
||||
data: {
|
||||
invoiceNumber: $invoiceNumber
|
||||
amount: $amount
|
||||
status: $status
|
||||
issueDate: $issueDate
|
||||
dueDate: $dueDate
|
||||
disputedItems: $disputedItems
|
||||
isAutoGenerated: $isAutoGenerated
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteInvoice(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
invoice_delete(id: $id)
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
query listInvoice @auth(level: USER) {
|
||||
invoices {
|
||||
id
|
||||
invoiceNumber
|
||||
amount
|
||||
status
|
||||
issueDate
|
||||
dueDate
|
||||
disputedItems
|
||||
isAutoGenerated
|
||||
}
|
||||
}
|
||||
|
||||
query getInvoiceById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
invoice(id: $id) {
|
||||
id
|
||||
invoiceNumber
|
||||
amount
|
||||
status
|
||||
issueDate
|
||||
dueDate
|
||||
disputedItems
|
||||
isAutoGenerated
|
||||
}
|
||||
}
|
||||
|
||||
query filterInvoices(
|
||||
$invoiceNumber: String,
|
||||
$status: InvoiceStatus,
|
||||
$isAutoGenerated: Boolean,
|
||||
$amount: Float
|
||||
) @auth(level: USER) {
|
||||
invoices(
|
||||
where: {
|
||||
invoiceNumber: { eq: $invoiceNumber }
|
||||
status: { eq: $status }
|
||||
isAutoGenerated: { eq: $isAutoGenerated }
|
||||
amount: { eq: $amount }
|
||||
}
|
||||
) {
|
||||
id
|
||||
invoiceNumber
|
||||
amount
|
||||
status
|
||||
issueDate
|
||||
dueDate
|
||||
isAutoGenerated
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
mutation CreateMessage(
|
||||
$conversationId: UUID!,
|
||||
$senderName: String!,
|
||||
$content: String!,
|
||||
$readBy: String
|
||||
) @auth(level: USER) {
|
||||
message_insert(
|
||||
data: {
|
||||
conversationId: $conversationId
|
||||
senderName: $senderName
|
||||
content: $content
|
||||
readBy: $readBy
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateMessage(
|
||||
$id: UUID!,
|
||||
$conversationId: UUID,
|
||||
$senderName: String,
|
||||
$content: String,
|
||||
$readBy: String
|
||||
) @auth(level: USER) {
|
||||
message_update(
|
||||
id: $id,
|
||||
data: {
|
||||
conversationId: $conversationId
|
||||
senderName: $senderName
|
||||
content: $content
|
||||
readBy: $readBy
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteMessage(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
message_delete(id: $id)
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
query listMessage @auth(level: USER) {
|
||||
messages {
|
||||
id
|
||||
conversationId
|
||||
senderName
|
||||
content
|
||||
readBy
|
||||
}
|
||||
}
|
||||
|
||||
query getMessageById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
message(id: $id) {
|
||||
id
|
||||
conversationId
|
||||
senderName
|
||||
content
|
||||
readBy
|
||||
}
|
||||
}
|
||||
|
||||
query filterMessage(
|
||||
$conversationId: UUID,
|
||||
$senderName: String
|
||||
) @auth(level: USER) {
|
||||
messages(
|
||||
where: {
|
||||
conversationId: { eq: $conversationId }
|
||||
senderName: { eq: $senderName }
|
||||
}
|
||||
) {
|
||||
id
|
||||
conversationId
|
||||
senderName
|
||||
content
|
||||
readBy
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
mutation CreateOrder(
|
||||
$orderNumber: String!,
|
||||
$partnerId: UUID!,
|
||||
$orderType: OrderType,
|
||||
$orderStatus: OrderStatus
|
||||
) @auth(level: USER) {
|
||||
order_insert(
|
||||
data: {
|
||||
orderNumber: $orderNumber
|
||||
partnerId: $partnerId
|
||||
orderType: $orderType
|
||||
orderStatus: $orderStatus
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateOrder(
|
||||
$id: UUID!,
|
||||
$orderNumber: String,
|
||||
$partnerId: UUID,
|
||||
$orderType: OrderType,
|
||||
$orderStatus: OrderStatus
|
||||
) @auth(level: USER) {
|
||||
order_update(
|
||||
id: $id,
|
||||
data: {
|
||||
orderNumber: $orderNumber
|
||||
partnerId: $partnerId
|
||||
orderType: $orderType
|
||||
orderStatus: $orderStatus
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteOrder(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
order_delete(id: $id)
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
query listOrder @auth(level: USER) {
|
||||
orders {
|
||||
id
|
||||
orderNumber
|
||||
partnerId
|
||||
orderType
|
||||
orderStatus
|
||||
}
|
||||
}
|
||||
|
||||
query getOrderById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
order(id: $id) {
|
||||
id
|
||||
orderNumber
|
||||
partnerId
|
||||
orderType
|
||||
orderStatus
|
||||
}
|
||||
}
|
||||
|
||||
query filterOrder(
|
||||
$orderNumber: String,
|
||||
$partnerId: UUID,
|
||||
$orderType: OrderType,
|
||||
$orderStatus: OrderStatus
|
||||
) @auth(level: USER) {
|
||||
orders(
|
||||
where: {
|
||||
orderNumber: { eq: $orderNumber }
|
||||
partnerId: { eq: $partnerId }
|
||||
orderType: { eq: $orderType }
|
||||
orderStatus: { eq: $orderStatus }
|
||||
}
|
||||
) {
|
||||
id
|
||||
orderNumber
|
||||
partnerId
|
||||
orderType
|
||||
orderStatus
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
mutation CreatePartner(
|
||||
$partnerName: String!,
|
||||
$partnerNumber: String!,
|
||||
$partnerType: PartnerType
|
||||
) @auth(level: USER) {
|
||||
partner_insert(
|
||||
data: {
|
||||
partnerName: $partnerName
|
||||
partnerNumber: $partnerNumber
|
||||
partnerType: $partnerType
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdatePartner(
|
||||
$id: UUID!,
|
||||
$partnerName: String,
|
||||
$partnerNumber: String,
|
||||
$partnerType: PartnerType
|
||||
) @auth(level: USER) {
|
||||
partner_update(
|
||||
id: $id,
|
||||
data: {
|
||||
partnerName: $partnerName
|
||||
partnerNumber: $partnerNumber
|
||||
partnerType: $partnerType
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeletePartner(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
partner_delete(id: $id)
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
# dataconnect/connector/partner/queries.gql
|
||||
|
||||
query listPartner @auth(level: USER) {
|
||||
partners {
|
||||
id
|
||||
partnerName
|
||||
partnerNumber
|
||||
partnerType
|
||||
}
|
||||
}
|
||||
|
||||
query getPartnerById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
partner(id: $id) {
|
||||
id
|
||||
partnerName
|
||||
partnerNumber
|
||||
partnerType
|
||||
}
|
||||
}
|
||||
|
||||
query filterPartner(
|
||||
$partnerName: String,
|
||||
$partnerNumber: String,
|
||||
$partnerType: PartnerType
|
||||
) @auth(level: USER) {
|
||||
partners(
|
||||
where: {
|
||||
partnerName: { eq: $partnerName }
|
||||
partnerNumber: { eq: $partnerNumber }
|
||||
partnerType: { eq: $partnerType }
|
||||
}
|
||||
) {
|
||||
id
|
||||
partnerName
|
||||
partnerNumber
|
||||
partnerType
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
mutation CreateSector(
|
||||
$sectorNumber: String!,
|
||||
$sectorName: String!,
|
||||
$sectorType: SectorType
|
||||
) @auth(level: USER) {
|
||||
sector_insert(
|
||||
data: {
|
||||
sectorNumber: $sectorNumber
|
||||
sectorName: $sectorName
|
||||
sectorType: $sectorType
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateSector(
|
||||
$id: UUID!,
|
||||
$sectorNumber: String,
|
||||
$sectorName: String,
|
||||
$sectorType: SectorType
|
||||
) @auth(level: USER) {
|
||||
sector_update(
|
||||
id: $id,
|
||||
data: {
|
||||
sectorNumber: $sectorNumber
|
||||
sectorName: $sectorName
|
||||
sectorType: $sectorType
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteSector(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
sector_delete(id: $id)
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
query listSector @auth(level: USER) {
|
||||
sectors {
|
||||
id
|
||||
sectorNumber
|
||||
sectorName
|
||||
sectorType
|
||||
}
|
||||
}
|
||||
|
||||
query getSectorById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
sector(id: $id) {
|
||||
id
|
||||
sectorNumber
|
||||
sectorName
|
||||
sectorType
|
||||
}
|
||||
}
|
||||
|
||||
query filterSector(
|
||||
$sectorNumber: String,
|
||||
$sectorName: String,
|
||||
$sectorType: SectorType
|
||||
) @auth(level: USER) {
|
||||
sectors(
|
||||
where: {
|
||||
sectorNumber: { eq: $sectorNumber }
|
||||
sectorName: { eq: $sectorName }
|
||||
sectorType: { eq: $sectorType }
|
||||
}
|
||||
) {
|
||||
id
|
||||
sectorNumber
|
||||
sectorName
|
||||
sectorType
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
mutation CreateShift(
|
||||
$shiftName: String!,
|
||||
$startDate: Timestamp!,
|
||||
$endDate: Timestamp,
|
||||
$assignedStaff: String
|
||||
) @auth(level: USER) {
|
||||
shift_insert(
|
||||
data: {
|
||||
shiftName: $shiftName
|
||||
startDate: $startDate
|
||||
endDate: $endDate
|
||||
assignedStaff: $assignedStaff
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateShift(
|
||||
$id: UUID!,
|
||||
$shiftName: String,
|
||||
$startDate: Timestamp,
|
||||
$endDate: Timestamp,
|
||||
$assignedStaff: String
|
||||
) @auth(level: USER) {
|
||||
shift_update(
|
||||
id: $id,
|
||||
data: {
|
||||
shiftName: $shiftName
|
||||
startDate: $startDate
|
||||
endDate: $endDate
|
||||
assignedStaff: $assignedStaff
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteShift(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
shift_delete(id: $id)
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
query listShift @auth(level: USER) {
|
||||
shifts {
|
||||
id
|
||||
shiftName
|
||||
startDate
|
||||
endDate
|
||||
assignedStaff
|
||||
}
|
||||
}
|
||||
|
||||
query getShiftById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
shift(id: $id) {
|
||||
id
|
||||
shiftName
|
||||
startDate
|
||||
endDate
|
||||
assignedStaff
|
||||
createdDate
|
||||
updatedDate
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query filterShift(
|
||||
$shiftName: String,
|
||||
$startDate: Timestamp,
|
||||
$endDate: Timestamp
|
||||
) @auth(level: USER) {
|
||||
shifts(
|
||||
where: {
|
||||
shiftName: { eq: $shiftName }
|
||||
startDate: { eq: $startDate }
|
||||
endDate: { eq: $endDate }
|
||||
}
|
||||
) {
|
||||
id
|
||||
shiftName
|
||||
startDate
|
||||
endDate
|
||||
assignedStaff
|
||||
}
|
||||
}
|
||||
@@ -1,171 +0,0 @@
|
||||
mutation CreateStaff(
|
||||
$employeeName: String!,
|
||||
$vendorId: String,
|
||||
$vendorName: String,
|
||||
$manager: String,
|
||||
$contactNumber: String,
|
||||
$phone:String # nuevo,
|
||||
$email: String,
|
||||
$department: StaffDepartment,
|
||||
$hubLocation: String,
|
||||
$eventLocation:String, # nuevo
|
||||
$address:String, # nuevo
|
||||
$city:String, # nuevo
|
||||
$track: String,
|
||||
$position: String,
|
||||
$position2:String, # nuevo
|
||||
$initial:String, # nuevo
|
||||
$profileType: ProfileType,
|
||||
$employmentType: EmploymentType,
|
||||
$english: EnglishLevel,
|
||||
$rate: Float,
|
||||
$rating: Float,
|
||||
$reliabilityScore: Int,
|
||||
$backgroundCheckStatus: BackgroundCheckStatus,
|
||||
$notes: String,
|
||||
$accountingComments:String, # nuevo
|
||||
$shiftCoveragePercentage:Int, # nuevo
|
||||
$cancellationCount:Int, # nuevo
|
||||
$noShowCount:Int, # nuevo
|
||||
$totalShifts:Int, # nuevo
|
||||
$invoiced:Boolean, # nuevo
|
||||
$englishRequired:Boolean, # nuevo
|
||||
$checkIn:String, # nuevo
|
||||
$scheduleDays:String, # nuevo
|
||||
$replacedBy:String, # nuevo
|
||||
$action:String, # nuevo
|
||||
$ro:String, # nuevo
|
||||
$mon:String, # nuevo
|
||||
) @auth(level: USER) {
|
||||
staff_insert(
|
||||
data: {
|
||||
employeeName: $employeeName
|
||||
vendorId: $vendorId
|
||||
vendorName: $vendorName
|
||||
manager: $manager
|
||||
contactNumber: $contactNumber
|
||||
phone:$phone
|
||||
email: $email
|
||||
department: $department
|
||||
hubLocation: $hubLocation
|
||||
eventLocation:$eventLocation
|
||||
address:$address
|
||||
city:$city
|
||||
track: $track
|
||||
position: $position
|
||||
position2:$position2
|
||||
initial:$initial
|
||||
profileType: $profileType
|
||||
employmentType: $employmentType
|
||||
english: $english
|
||||
rate: $rate
|
||||
rating: $rating
|
||||
reliabilityScore: $reliabilityScore
|
||||
backgroundCheckStatus: $backgroundCheckStatus
|
||||
notes: $notes
|
||||
accountingComments:$accountingComments
|
||||
shiftCoveragePercentage:$shiftCoveragePercentage
|
||||
cancellationCount:$cancellationCount
|
||||
noShowCount:$noShowCount
|
||||
totalShifts:$totalShifts
|
||||
invoiced:$invoiced
|
||||
englishRequired:$englishRequired
|
||||
checkIn:$checkIn
|
||||
scheduleDays:$scheduleDays
|
||||
replacedBy:$replacedBy
|
||||
action:$action
|
||||
ro:$ro
|
||||
mon:$mon
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateStaff(
|
||||
$id: UUID!,
|
||||
$employeeName: String,
|
||||
$vendorId: String,
|
||||
$vendorName: String,
|
||||
$manager: String,
|
||||
$contactNumber: String,
|
||||
$phone: String,
|
||||
$email: String,
|
||||
$department: StaffDepartment,
|
||||
$hubLocation: String,
|
||||
$eventLocation: String,
|
||||
$address: String,
|
||||
$city: String,
|
||||
$track: String,
|
||||
$position: String,
|
||||
$position2:String,
|
||||
$initial:String,
|
||||
$profileType: ProfileType,
|
||||
$employmentType: EmploymentType,
|
||||
$english: EnglishLevel,
|
||||
$englishRequired:Boolean # nuevo
|
||||
$rate: Float,
|
||||
$rating: Float,
|
||||
$reliabilityScore: Int,
|
||||
$backgroundCheckStatus: BackgroundCheckStatus,
|
||||
$notes: String,
|
||||
$accountingComments:String,
|
||||
$shiftCoveragePercentage:Int,
|
||||
$cancellationCount:Int,
|
||||
$noShowCount:Int,
|
||||
$totalShifts:Int,
|
||||
$invoiced:Boolean,
|
||||
$checkIn:String,
|
||||
$scheduleDays:String,
|
||||
$replacedBy:String,
|
||||
$action:String,
|
||||
$ro:String,
|
||||
$mon:String,
|
||||
) @auth(level: USER) {
|
||||
staff_update(
|
||||
id: $id,
|
||||
data: {
|
||||
employeeName: $employeeName
|
||||
vendorId: $vendorId
|
||||
vendorName: $vendorName
|
||||
manager: $manager
|
||||
contactNumber: $contactNumber
|
||||
phone:$phone # nuevo
|
||||
email: $email
|
||||
department: $department
|
||||
hubLocation: $hubLocation
|
||||
eventLocation:$eventLocation # nuevo
|
||||
address:$address # nuevo
|
||||
city:$city # nuevo
|
||||
track: $track
|
||||
position: $position
|
||||
position2:$position2 # nuevo
|
||||
initial:$initial # nuevo
|
||||
profileType: $profileType
|
||||
employmentType: $employmentType
|
||||
english: $english
|
||||
englishRequired:$englishRequired # nuevo
|
||||
rate: $rate
|
||||
rating: $rating
|
||||
reliabilityScore: $reliabilityScore
|
||||
backgroundCheckStatus: $backgroundCheckStatus
|
||||
notes: $notes
|
||||
accountingComments:$accountingComments # nuevo
|
||||
shiftCoveragePercentage:$shiftCoveragePercentage # nuevo
|
||||
cancellationCount:$cancellationCount # nuevo
|
||||
noShowCount:$noShowCount # nuevo
|
||||
totalShifts:$totalShifts # nuevo
|
||||
invoiced:$invoiced # nuevo
|
||||
checkIn:$checkIn # nuevo
|
||||
scheduleDays:$scheduleDays # nuevo
|
||||
replacedBy:$replacedBy # nuevo
|
||||
action:$action # nuevo
|
||||
ro:$ro # nuevo
|
||||
mon:$mon # nuevo
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteStaff(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
staff_delete(id: $id)
|
||||
}
|
||||
@@ -1,125 +0,0 @@
|
||||
query listStaff @auth(level: USER) {
|
||||
staffs {
|
||||
id
|
||||
employeeName
|
||||
vendorId
|
||||
vendorName
|
||||
manager
|
||||
contactNumber
|
||||
phone # nuevo
|
||||
email
|
||||
department
|
||||
hubLocation
|
||||
eventLocation # nuevo
|
||||
address # nuevo
|
||||
city # nuevo
|
||||
track
|
||||
position
|
||||
position2
|
||||
initial # nuevo
|
||||
profileType
|
||||
employmentType
|
||||
english
|
||||
englishRequired # nuevo
|
||||
rate
|
||||
rating
|
||||
reliabilityScore
|
||||
backgroundCheckStatus
|
||||
notes
|
||||
accountingComments # nuevo
|
||||
shiftCoveragePercentage # nuevo
|
||||
cancellationCount # nuevo
|
||||
noShowCount # nuevo
|
||||
totalShifts # nuevo
|
||||
invoiced # nuevo
|
||||
checkIn # nuevo
|
||||
scheduleDays # nuevo
|
||||
replacedBy # nuevo
|
||||
action # nuevo
|
||||
ro # nuevo
|
||||
mon # nuevo
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
staff(id: $id) {
|
||||
id
|
||||
employeeName
|
||||
vendorId
|
||||
vendorName
|
||||
manager
|
||||
contactNumber
|
||||
phone # nuevo
|
||||
email
|
||||
department
|
||||
hubLocation
|
||||
eventLocation # nuevo
|
||||
address # nuevo
|
||||
city # nuevo
|
||||
track
|
||||
position
|
||||
position2 # nuevo
|
||||
initial # nuevo
|
||||
profileType
|
||||
employmentType
|
||||
english
|
||||
rate
|
||||
rating
|
||||
reliabilityScore
|
||||
backgroundCheckStatus
|
||||
notes
|
||||
accountingComments # nuevo
|
||||
shiftCoveragePercentage # nuevo
|
||||
cancellationCount # nuevo
|
||||
noShowCount # nuevo
|
||||
totalShifts # nuevo
|
||||
invoiced # nuevo
|
||||
englishRequired # nuevo
|
||||
checkIn # nuevo
|
||||
scheduleDays # nuevo
|
||||
replacedBy # nuevo
|
||||
action # nuevo
|
||||
ro # nuevo
|
||||
mon # nuevo
|
||||
}
|
||||
}
|
||||
|
||||
query filterStaff(
|
||||
$employeeName: String,
|
||||
$vendorId: String,
|
||||
$department: StaffDepartment,
|
||||
$employmentType: EmploymentType,
|
||||
$english: EnglishLevel,
|
||||
$backgroundCheckStatus: BackgroundCheckStatus
|
||||
) @auth(level: USER) {
|
||||
staffs(
|
||||
where: {
|
||||
employeeName: { eq: $employeeName }
|
||||
vendorId: { eq: $vendorId }
|
||||
department: { eq: $department }
|
||||
employmentType: { eq: $employmentType }
|
||||
english: { eq: $english }
|
||||
backgroundCheckStatus: { eq: $backgroundCheckStatus }
|
||||
}
|
||||
) {
|
||||
id
|
||||
employeeName
|
||||
vendorId
|
||||
vendorName
|
||||
department
|
||||
hubLocation
|
||||
eventLocation # nuevo
|
||||
position
|
||||
position2
|
||||
employmentType
|
||||
english
|
||||
rate
|
||||
rating
|
||||
reliabilityScore
|
||||
backgroundCheckStatus
|
||||
notes
|
||||
invoiced # nuevo
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
mutation CreateTeam(
|
||||
$teamName: String!,
|
||||
$ownerId: String!,
|
||||
$ownerName: String!,
|
||||
$ownerRole: TeamOwnerRole!,
|
||||
$favoriteStaff: String,
|
||||
$blockedStaff: String
|
||||
) @auth(level: USER) {
|
||||
team_insert(
|
||||
data: {
|
||||
teamName: $teamName
|
||||
ownerId: $ownerId
|
||||
ownerName: $ownerName
|
||||
ownerRole: $ownerRole
|
||||
favoriteStaff: $favoriteStaff
|
||||
blockedStaff: $blockedStaff
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateTeam(
|
||||
$id: UUID!,
|
||||
$teamName: String,
|
||||
$ownerId: String,
|
||||
$ownerName: String,
|
||||
$ownerRole: TeamOwnerRole,
|
||||
$favoriteStaff: String,
|
||||
$blockedStaff: String
|
||||
) @auth(level: USER) {
|
||||
team_update(
|
||||
id: $id,
|
||||
data: {
|
||||
teamName: $teamName
|
||||
ownerId: $ownerId
|
||||
ownerName: $ownerName
|
||||
ownerRole: $ownerRole
|
||||
favoriteStaff: $favoriteStaff
|
||||
blockedStaff: $blockedStaff
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteTeam(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
team_delete(id: $id)
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
query listTeam (
|
||||
$orderByCreatedDate: OrderDirection
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
teams(
|
||||
orderBy: { createdDate: $orderByCreatedDate }
|
||||
limit: $limit
|
||||
) {
|
||||
id
|
||||
teamName
|
||||
ownerId
|
||||
ownerName
|
||||
ownerRole
|
||||
favoriteStaff
|
||||
blockedStaff
|
||||
}
|
||||
}
|
||||
|
||||
query getTeamById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
team(id: $id) {
|
||||
id
|
||||
teamName
|
||||
ownerId
|
||||
ownerName
|
||||
ownerRole
|
||||
favoriteStaff
|
||||
blockedStaff
|
||||
}
|
||||
}
|
||||
|
||||
query filterTeam(
|
||||
$teamName: String,
|
||||
$ownerId: String,
|
||||
$ownerRole: TeamOwnerRole
|
||||
) @auth(level: USER) {
|
||||
teams(
|
||||
where: {
|
||||
teamName: { eq: $teamName }
|
||||
ownerId: { eq: $ownerId }
|
||||
ownerRole: { eq: $ownerRole }
|
||||
}
|
||||
) {
|
||||
id
|
||||
teamName
|
||||
ownerId
|
||||
ownerName
|
||||
ownerRole
|
||||
favoriteStaff
|
||||
blockedStaff
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
mutation CreateTeamHub(
|
||||
$teamId: UUID!,
|
||||
$hubName: String!,
|
||||
$departments: String
|
||||
) @auth(level: USER) {
|
||||
teamHub_insert(
|
||||
data: {
|
||||
teamId: $teamId
|
||||
hubName: $hubName
|
||||
departments: $departments
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateTeamHub(
|
||||
$id: UUID!,
|
||||
$teamId: UUID,
|
||||
$hubName: String,
|
||||
$departments: String
|
||||
) @auth(level: USER) {
|
||||
teamHub_update(
|
||||
id: $id,
|
||||
data: {
|
||||
teamId: $teamId
|
||||
hubName: $hubName
|
||||
departments: $departments
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteTeamHub(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
teamHub_delete(id: $id)
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
query listTeamHub @auth(level: USER) {
|
||||
teamHubs {
|
||||
id
|
||||
teamId
|
||||
hubName
|
||||
departments
|
||||
}
|
||||
}
|
||||
|
||||
query getTeamHubById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
teamHub(id: $id) {
|
||||
id
|
||||
teamId
|
||||
hubName
|
||||
departments
|
||||
}
|
||||
}
|
||||
|
||||
query filterTeamHub(
|
||||
$teamId: UUID,
|
||||
$hubName: String
|
||||
) @auth(level: USER) {
|
||||
teamHubs(
|
||||
where: {
|
||||
teamId: { eq: $teamId }
|
||||
hubName: { eq: $hubName }
|
||||
}
|
||||
) {
|
||||
id
|
||||
teamId
|
||||
hubName
|
||||
departments
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
mutation CreateTeamMember(
|
||||
$teamId: UUID!,
|
||||
$memberName: String!,
|
||||
$email: String!,
|
||||
$role: TeamMemberRole,
|
||||
$isActive: Boolean
|
||||
) @auth(level: USER) {
|
||||
teamMember_insert(
|
||||
data: {
|
||||
teamId: $teamId
|
||||
memberName: $memberName
|
||||
email: $email
|
||||
role: $role
|
||||
isActive: $isActive
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateTeamMember(
|
||||
$id: UUID!,
|
||||
$teamId: UUID,
|
||||
$memberName: String,
|
||||
$email: String,
|
||||
$role: TeamMemberRole,
|
||||
$isActive: Boolean
|
||||
) @auth(level: USER) {
|
||||
teamMember_update(
|
||||
id: $id,
|
||||
data: {
|
||||
teamId: $teamId
|
||||
memberName: $memberName
|
||||
email: $email
|
||||
role: $role
|
||||
isActive: $isActive
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteTeamMember(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
teamMember_delete(id: $id)
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
query listTeamMember @auth(level: USER) {
|
||||
teamMembers {
|
||||
id
|
||||
teamId
|
||||
memberName
|
||||
email
|
||||
role
|
||||
isActive
|
||||
}
|
||||
}
|
||||
|
||||
query getTeamMemberById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
teamMember(id: $id) {
|
||||
id
|
||||
teamId
|
||||
memberName
|
||||
email
|
||||
role
|
||||
isActive
|
||||
}
|
||||
}
|
||||
|
||||
query filterTeamMember(
|
||||
$teamId: UUID,
|
||||
$memberName: String,
|
||||
$email: String,
|
||||
$role: TeamMemberRole,
|
||||
$isActive: Boolean
|
||||
) @auth(level: USER) {
|
||||
teamMembers(
|
||||
where: {
|
||||
teamId: { eq: $teamId }
|
||||
memberName: { eq: $memberName }
|
||||
email: { eq: $email }
|
||||
role: { eq: $role }
|
||||
isActive: { eq: $isActive }
|
||||
}
|
||||
) {
|
||||
id
|
||||
teamId
|
||||
memberName
|
||||
email
|
||||
role
|
||||
isActive
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
mutation CreateTeamMemberInvite(
|
||||
$teamId: UUID!,
|
||||
$email: String!,
|
||||
$inviteStatus: TeamMemberInviteStatus!
|
||||
) @auth(level: USER) {
|
||||
teamMemberInvite_insert(
|
||||
data: {
|
||||
teamId: $teamId
|
||||
email: $email
|
||||
inviteStatus: $inviteStatus
|
||||
# inviteCode se genera por default con uuidV4()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateTeamMemberInvite(
|
||||
$id: UUID!,
|
||||
$teamId: UUID,
|
||||
$email: String,
|
||||
$inviteStatus: TeamMemberInviteStatus
|
||||
) @auth(level: USER) {
|
||||
teamMemberInvite_update(
|
||||
id: $id,
|
||||
data: {
|
||||
teamId: $teamId
|
||||
email: $email
|
||||
inviteStatus: $inviteStatus
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteTeamMemberInvite(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
teamMemberInvite_delete(id: $id)
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
query listTeamMemberInvite @auth(level: USER) {
|
||||
teamMemberInvites {
|
||||
id
|
||||
teamId
|
||||
inviteCode
|
||||
email
|
||||
inviteStatus
|
||||
}
|
||||
}
|
||||
|
||||
query getTeamMemberInviteById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
teamMemberInvite(id: $id) {
|
||||
id
|
||||
teamId
|
||||
inviteCode
|
||||
email
|
||||
inviteStatus
|
||||
}
|
||||
}
|
||||
|
||||
query filterTeamMemberInvite(
|
||||
$teamId: UUID,
|
||||
$email: String,
|
||||
$inviteStatus: TeamMemberInviteStatus
|
||||
) @auth(level: USER) {
|
||||
teamMemberInvites(
|
||||
where: {
|
||||
teamId: { eq: $teamId }
|
||||
email: { eq: $email }
|
||||
inviteStatus: { eq: $inviteStatus }
|
||||
}
|
||||
) {
|
||||
id
|
||||
teamId
|
||||
inviteCode
|
||||
email
|
||||
inviteStatus
|
||||
}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
mutation CreateUser(
|
||||
$id: String!, # Firebase UID
|
||||
$email: String!,
|
||||
$fullName: String!,
|
||||
$role: UserBaseRole!,
|
||||
$userRole: String,
|
||||
$photoUrl: String
|
||||
) @auth(level: USER) {
|
||||
user_insert(
|
||||
data: {
|
||||
id: $id
|
||||
email: $email
|
||||
fullName: $fullName
|
||||
role: $role
|
||||
userRole: $userRole
|
||||
photoUrl: $photoUrl
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateUser(
|
||||
$id: String!,
|
||||
$email: String,
|
||||
$fullName: String,
|
||||
$role: UserBaseRole,
|
||||
$userRole: String,
|
||||
$photoUrl: String
|
||||
) @auth(level: USER) {
|
||||
user_update(
|
||||
id: $id,
|
||||
data: {
|
||||
email: $email
|
||||
fullName: $fullName
|
||||
role: $role
|
||||
userRole: $userRole
|
||||
photoUrl: $photoUrl
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteUser(
|
||||
$id: String!
|
||||
) @auth(level: USER) {
|
||||
user_delete(id: $id)
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
query listUsers @auth(level: USER) {
|
||||
users {
|
||||
id
|
||||
email
|
||||
fullName
|
||||
role
|
||||
userRole
|
||||
photoUrl
|
||||
createdDate
|
||||
updatedDate
|
||||
}
|
||||
}
|
||||
|
||||
query getUserById(
|
||||
$id: String!
|
||||
) @auth(level: USER) {
|
||||
user(id: $id) {
|
||||
id
|
||||
email
|
||||
fullName
|
||||
role
|
||||
userRole
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
|
||||
query filterUsers(
|
||||
$id: String,
|
||||
$email: String,
|
||||
$role: UserBaseRole,
|
||||
$userRole: String
|
||||
) @auth(level: USER) {
|
||||
users(
|
||||
where: {
|
||||
id: { eq: $id }
|
||||
email: { eq: $email }
|
||||
role: { eq: $role }
|
||||
userRole: { eq: $userRole }
|
||||
}
|
||||
) {
|
||||
id
|
||||
email
|
||||
fullName
|
||||
role
|
||||
userRole
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
52
dataconnect/connector/vendor/mutations.gql
vendored
52
dataconnect/connector/vendor/mutations.gql
vendored
@@ -1,52 +0,0 @@
|
||||
mutation CreateVendor(
|
||||
$vendorNumber: String!,
|
||||
$legalName: String!,
|
||||
$region: VendorRegion!,
|
||||
$platformType: VendorPlatformType!,
|
||||
$primaryContactEmail: String!,
|
||||
$approvalStatus: VendorApprovalStatus!,
|
||||
$isActive: Boolean
|
||||
) @auth(level: USER) {
|
||||
vendor_insert(
|
||||
data: {
|
||||
vendorNumber: $vendorNumber
|
||||
legalName: $legalName
|
||||
region: $region
|
||||
platformType: $platformType
|
||||
primaryContactEmail: $primaryContactEmail
|
||||
approvalStatus: $approvalStatus
|
||||
isActive: $isActive
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateVendor(
|
||||
$id: UUID!,
|
||||
$vendorNumber: String,
|
||||
$legalName: String,
|
||||
$region: VendorRegion,
|
||||
$platformType: VendorPlatformType,
|
||||
$primaryContactEmail: String,
|
||||
$approvalStatus: VendorApprovalStatus,
|
||||
$isActive: Boolean
|
||||
) @auth(level: USER) {
|
||||
vendor_update(
|
||||
id: $id,
|
||||
data: {
|
||||
vendorNumber: $vendorNumber
|
||||
legalName: $legalName
|
||||
region: $region
|
||||
platformType: $platformType
|
||||
primaryContactEmail: $primaryContactEmail
|
||||
approvalStatus: $approvalStatus
|
||||
isActive: $isActive
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteVendor(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
vendor_delete(id: $id)
|
||||
}
|
||||
|
||||
57
dataconnect/connector/vendor/queries.gql
vendored
57
dataconnect/connector/vendor/queries.gql
vendored
@@ -1,57 +0,0 @@
|
||||
query listVendor @auth(level: USER) {
|
||||
vendors {
|
||||
id
|
||||
vendorNumber
|
||||
legalName
|
||||
region
|
||||
platformType
|
||||
primaryContactEmail
|
||||
approvalStatus
|
||||
isActive
|
||||
}
|
||||
}
|
||||
|
||||
query getVendorById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
vendor(id: $id) {
|
||||
id
|
||||
vendorNumber
|
||||
legalName
|
||||
region
|
||||
platformType
|
||||
primaryContactEmail
|
||||
approvalStatus
|
||||
isActive
|
||||
}
|
||||
}
|
||||
|
||||
query filterVendors(
|
||||
$region: VendorRegion,
|
||||
$approvalStatus: VendorApprovalStatus,
|
||||
$isActive: Boolean,
|
||||
$vendorNumber:String,
|
||||
$primaryContactEmail:String,
|
||||
$legalName: String,
|
||||
$platformType: VendorPlatformType
|
||||
) @auth(level: USER) {
|
||||
vendors(where:{
|
||||
region: { eq: $region }
|
||||
approvalStatus: { eq: $approvalStatus }
|
||||
isActive: { eq: $isActive }
|
||||
vendorNumber: { eq: $vendorNumber }
|
||||
primaryContactEmail: { eq: $primaryContactEmail }
|
||||
legalName: { eq: $legalName }
|
||||
platformType: { eq: $platformType }
|
||||
|
||||
}) {
|
||||
id
|
||||
vendorNumber
|
||||
legalName
|
||||
region
|
||||
platformType
|
||||
primaryContactEmail
|
||||
approvalStatus
|
||||
isActive
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
mutation CreateVendorDefaultSetting(
|
||||
$vendorName: String!,
|
||||
$defaultMarkupPercentage: Float!,
|
||||
$defaultVendorFeePercentage: Float!
|
||||
) @auth(level: USER) {
|
||||
vendorDefaultSetting_insert(
|
||||
data: {
|
||||
vendorName: $vendorName
|
||||
defaultMarkupPercentage: $defaultMarkupPercentage
|
||||
defaultVendorFeePercentage: $defaultVendorFeePercentage
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateVendorDefaultSetting(
|
||||
$id: UUID!,
|
||||
$vendorName: String,
|
||||
$defaultMarkupPercentage: Float,
|
||||
$defaultVendorFeePercentage: Float
|
||||
) @auth(level: USER) {
|
||||
vendorDefaultSetting_update(
|
||||
id: $id,
|
||||
data: {
|
||||
vendorName: $vendorName
|
||||
defaultMarkupPercentage: $defaultMarkupPercentage
|
||||
defaultVendorFeePercentage: $defaultVendorFeePercentage
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteVendorDefaultSetting(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
vendorDefaultSetting_delete(id: $id)
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
query listVendorDefaultSettings @auth(level: USER) {
|
||||
vendorDefaultSettings {
|
||||
id
|
||||
vendorName
|
||||
defaultMarkupPercentage
|
||||
defaultVendorFeePercentage
|
||||
}
|
||||
}
|
||||
|
||||
query getVendorDefaultSettingById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
vendorDefaultSetting(id: $id) {
|
||||
id
|
||||
vendorName
|
||||
defaultMarkupPercentage
|
||||
defaultVendorFeePercentage
|
||||
}
|
||||
}
|
||||
|
||||
query filterVendorDefaultSettings(
|
||||
$vendorName: String,
|
||||
$defaultMarkupPercentage: Float,
|
||||
$defaultVendorFeePercentage: Float
|
||||
) @auth(level: USER) {
|
||||
vendorDefaultSettings(
|
||||
where: {
|
||||
vendorName: { eq: $vendorName }
|
||||
defaultMarkupPercentage: { eq: $defaultMarkupPercentage }
|
||||
defaultVendorFeePercentage: { eq: $defaultVendorFeePercentage }
|
||||
}
|
||||
) {
|
||||
id
|
||||
vendorName
|
||||
defaultMarkupPercentage
|
||||
defaultVendorFeePercentage
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
mutation CreateVendorRate(
|
||||
$vendorName: String!,
|
||||
$category: VendorRateCategory!,
|
||||
$roleName: String!,
|
||||
$employeeWage: Float!,
|
||||
$markupPercentage: Float,
|
||||
$vendorFeePercentage: Float,
|
||||
$clientRate: Float!
|
||||
) @auth(level: USER) {
|
||||
vendorRate_insert(
|
||||
data: {
|
||||
vendorName: $vendorName
|
||||
category: $category
|
||||
roleName: $roleName
|
||||
employeeWage: $employeeWage
|
||||
markupPercentage: $markupPercentage
|
||||
vendorFeePercentage: $vendorFeePercentage
|
||||
clientRate: $clientRate
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateVendorRate(
|
||||
$id: UUID!,
|
||||
$vendorName: String,
|
||||
$category: VendorRateCategory,
|
||||
$roleName: String,
|
||||
$employeeWage: Float,
|
||||
$markupPercentage: Float,
|
||||
$vendorFeePercentage: Float,
|
||||
$clientRate: Float
|
||||
) @auth(level: USER) {
|
||||
vendorRate_update(
|
||||
id: $id,
|
||||
data: {
|
||||
vendorName: $vendorName
|
||||
category: $category
|
||||
roleName: $roleName
|
||||
employeeWage: $employeeWage
|
||||
markupPercentage: $markupPercentage
|
||||
vendorFeePercentage: $vendorFeePercentage
|
||||
clientRate: $clientRate
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteVendorRate(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
vendorRate_delete(id: $id)
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
query listVendorRate @auth(level: USER) {
|
||||
vendorRates {
|
||||
id
|
||||
vendorName
|
||||
category
|
||||
roleName
|
||||
employeeWage
|
||||
markupPercentage
|
||||
vendorFeePercentage
|
||||
clientRate
|
||||
}
|
||||
}
|
||||
|
||||
query getVendorRateById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
vendorRate(id: $id) {
|
||||
id
|
||||
vendorName
|
||||
category
|
||||
roleName
|
||||
employeeWage
|
||||
markupPercentage
|
||||
vendorFeePercentage
|
||||
clientRate
|
||||
createdDate
|
||||
updatedDate
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query filterVendorRates(
|
||||
$vendorName: String,
|
||||
$category: VendorRateCategory,
|
||||
$roleName: String,
|
||||
$minClientRate: Float,
|
||||
$maxClientRate: Float
|
||||
) @auth(level: USER) {
|
||||
vendorRates(
|
||||
where: {
|
||||
vendorName: { eq: $vendorName }
|
||||
category: { eq: $category }
|
||||
roleName: { eq: $roleName }
|
||||
clientRate: { ge: $minClientRate, le: $maxClientRate }
|
||||
}
|
||||
) {
|
||||
id
|
||||
vendorName
|
||||
category
|
||||
roleName
|
||||
employeeWage
|
||||
markupPercentage
|
||||
vendorFeePercentage
|
||||
clientRate
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
mutation CreateWorkforce(
|
||||
$workforceNumber: String!,
|
||||
$vendorId: UUID!,
|
||||
$firstName: String!,
|
||||
$lastName: String!,
|
||||
$employmentType: WorkforceEmploymentType
|
||||
) @auth(level: USER) {
|
||||
workforce_insert(
|
||||
data: {
|
||||
workforceNumber: $workforceNumber
|
||||
vendorId: $vendorId
|
||||
firstName: $firstName
|
||||
lastName: $lastName
|
||||
employmentType: $employmentType
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateWorkforce(
|
||||
$id: UUID!,
|
||||
$workforceNumber: String,
|
||||
$vendorId: UUID,
|
||||
$firstName: String,
|
||||
$lastName: String,
|
||||
$employmentType: WorkforceEmploymentType
|
||||
) @auth(level: USER) {
|
||||
workforce_update(
|
||||
id: $id,
|
||||
data: {
|
||||
workforceNumber: $workforceNumber
|
||||
vendorId: $vendorId
|
||||
firstName: $firstName
|
||||
lastName: $lastName
|
||||
employmentType: $employmentType
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteWorkforce(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
workforce_delete(id: $id)
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
query listWorkforce @auth(level: USER) {
|
||||
workforces {
|
||||
id
|
||||
workforceNumber
|
||||
vendorId
|
||||
firstName
|
||||
lastName
|
||||
employmentType
|
||||
}
|
||||
}
|
||||
|
||||
query getWorkforceById(
|
||||
$id: UUID!
|
||||
) @auth(level: USER) {
|
||||
workforce(id: $id) {
|
||||
id
|
||||
workforceNumber
|
||||
vendorId
|
||||
firstName
|
||||
lastName
|
||||
employmentType
|
||||
}
|
||||
}
|
||||
|
||||
query filterWorkforce(
|
||||
$workforceNumber: String,
|
||||
$vendorId: UUID,
|
||||
$firstName: String,
|
||||
$lastName: String,
|
||||
$employmentType: WorkforceEmploymentType
|
||||
) @auth(level: USER) {
|
||||
workforces(
|
||||
where: {
|
||||
workforceNumber: { eq: $workforceNumber }
|
||||
vendorId: { eq: $vendorId }
|
||||
firstName: { eq: $firstName }
|
||||
lastName: { eq: $lastName }
|
||||
employmentType: { eq: $employmentType }
|
||||
}
|
||||
) {
|
||||
id
|
||||
workforceNumber
|
||||
vendorId
|
||||
firstName
|
||||
lastName
|
||||
employmentType
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
specVersion: "v1"
|
||||
serviceId: "krow-workforce-db"
|
||||
location: "us-central1"
|
||||
schema:
|
||||
source: "./schema"
|
||||
datasource:
|
||||
postgresql:
|
||||
database: "krow_db"
|
||||
cloudSql:
|
||||
instanceId: "krow-sql"
|
||||
# schemaValidation: "STRICT" # STRICT mode makes Postgres schema match Data Connect exactly.
|
||||
# schemaValidation: "COMPATIBLE" # COMPATIBLE mode makes Postgres schema compatible with Data Connect.
|
||||
connectorDirs: ["./connector"]
|
||||
@@ -1,8 +0,0 @@
|
||||
connectorId: example
|
||||
generate:
|
||||
javascriptSdk:
|
||||
- outputDir: ../../frontend-web/src/dataconnect-generated
|
||||
package: "@dataconnect/generated"
|
||||
packageJsonDir: ../../frontend-web
|
||||
react: true
|
||||
angular: false
|
||||
@@ -1,33 +0,0 @@
|
||||
# Example mutations for a simple movie app
|
||||
|
||||
# Create a movie based on user input
|
||||
mutation CreateMovie($title: String!, $genre: String!, $imageUrl: String!)
|
||||
@auth(level: USER_EMAIL_VERIFIED, insecureReason: "Any email verified users can create a new movie.") {
|
||||
movie_insert(data: { title: $title, genre: $genre, imageUrl: $imageUrl })
|
||||
}
|
||||
|
||||
# Upsert (update or insert) a user's username based on their auth.uid
|
||||
mutation UpsertUser($username: String!) @auth(level: USER) {
|
||||
# The "auth.uid" server value ensures that users can only register their own user.
|
||||
user_upsert(data: { id_expr: "auth.uid", username: $username })
|
||||
}
|
||||
|
||||
# Add a review for a movie
|
||||
mutation AddReview($movieId: UUID!, $rating: Int!, $reviewText: String!)
|
||||
@auth(level: USER) {
|
||||
review_upsert(
|
||||
data: {
|
||||
userId_expr: "auth.uid"
|
||||
movieId: $movieId
|
||||
rating: $rating
|
||||
reviewText: $reviewText
|
||||
# reviewDate defaults to today in the schema. No need to set it manually.
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
# Logged in user can delete their review for a movie
|
||||
mutation DeleteReview($movieId: UUID!) @auth(level: USER) {
|
||||
# The "auth.uid" server value ensures that users can only delete their own reviews.
|
||||
review_delete(key: { userId_expr: "auth.uid", movieId: $movieId })
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
# Example queries for a simple movie app.
|
||||
|
||||
# @auth() directives control who can call each operation.
|
||||
# Anyone should be able to list all movies, so the auth level is set to PUBLIC
|
||||
query ListMovies @auth(level: PUBLIC, insecureReason: "Anyone can list all movies.") {
|
||||
movies {
|
||||
id
|
||||
title
|
||||
imageUrl
|
||||
genre
|
||||
}
|
||||
}
|
||||
|
||||
# List all users, only admins should be able to list all users, so we use NO_ACCESS
|
||||
query ListUsers @auth(level: NO_ACCESS) {
|
||||
users {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
|
||||
# Logged in users can list all their reviews and movie titles associated with the review
|
||||
# Since the query uses the uid of the current authenticated user, we set auth level to USER
|
||||
query ListUserReviews @auth(level: USER) {
|
||||
user(key: { id_expr: "auth.uid" }) {
|
||||
id
|
||||
username
|
||||
# <field>_on_<foreign_key_field> makes it easy to grab info from another table
|
||||
# Here, we use it to grab all the reviews written by the user.
|
||||
reviews: reviews_on_user {
|
||||
rating
|
||||
reviewDate
|
||||
reviewText
|
||||
movie {
|
||||
id
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Get movie by id
|
||||
query GetMovieById($id: UUID!) @auth(level: PUBLIC, insecureReason: "Anyone can get a movie by id.") {
|
||||
movie(id: $id) {
|
||||
id
|
||||
title
|
||||
imageUrl
|
||||
genre
|
||||
metadata: movieMetadata_on_movie {
|
||||
rating
|
||||
releaseYear
|
||||
description
|
||||
}
|
||||
reviews: reviews_on_movie {
|
||||
reviewText
|
||||
reviewDate
|
||||
rating
|
||||
user {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Search for movies, actors, and reviews
|
||||
query SearchMovie($titleInput: String, $genre: String) @auth(level: PUBLIC, insecureReason: "Anyone can search for movies.") {
|
||||
movies(
|
||||
where: {
|
||||
_and: [{ genre: { eq: $genre } }, { title: { contains: $titleInput } }]
|
||||
}
|
||||
) {
|
||||
id
|
||||
title
|
||||
genre
|
||||
imageUrl
|
||||
}
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
# Example schema for simple movie review app
|
||||
|
||||
# User table is keyed by Firebase Auth UID.
|
||||
type User @table {
|
||||
# `@default(expr: "auth.uid")` sets it to Firebase Auth UID during insert and upsert.
|
||||
id: String! @default(expr: "auth.uid")
|
||||
username: String! @col(dataType: "varchar(50)")
|
||||
# The `user: User!` field in the Review table generates the following one-to-many query field.
|
||||
# reviews_on_user: [Review!]!
|
||||
# The `Review` join table the following many-to-many query field.
|
||||
# movies_via_Review: [Movie!]!
|
||||
}
|
||||
|
||||
# Movie is keyed by a randomly generated UUID.
|
||||
type Movie @table {
|
||||
# If you do not pass a 'key' to `@table`, Data Connect automatically adds the following 'id' column.
|
||||
# Feel free to uncomment and customize it.
|
||||
# id: UUID! @default(expr: "uuidV4()")
|
||||
title: String!
|
||||
imageUrl: String!
|
||||
genre: String
|
||||
}
|
||||
|
||||
# MovieMetadata is a metadata attached to a Movie.
|
||||
# Movie <-> MovieMetadata is a one-to-one relationship
|
||||
type MovieMetadata @table {
|
||||
# @unique ensures each Movie can only one MovieMetadata.
|
||||
movie: Movie! @unique
|
||||
# The movie field adds the following foreign key field. Feel free to uncomment and customize it.
|
||||
# movieId: UUID!
|
||||
rating: Float
|
||||
releaseYear: Int
|
||||
description: String
|
||||
}
|
||||
|
||||
# Reviews is a join table between User and Movie.
|
||||
# It has a composite primary keys `userUid` and `movieId`.
|
||||
# A user can leave reviews for many movies. A movie can have reviews from many users.
|
||||
# User <-> Review is a one-to-many relationship
|
||||
# Movie <-> Review is a one-to-many relationship
|
||||
# Movie <-> User is a many-to-many relationship
|
||||
type Review @table(name: "Reviews", key: ["movie", "user"]) {
|
||||
user: User!
|
||||
# The user field adds the following foreign key field. Feel free to uncomment and customize it.
|
||||
# userUid: String!
|
||||
movie: Movie!
|
||||
# The movie field adds the following foreign key field. Feel free to uncomment and customize it.
|
||||
# movieId: UUID!
|
||||
rating: Int
|
||||
reviewText: String
|
||||
reviewDate: Date! @default(expr: "request.time")
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
enum VendorRateCategory {
|
||||
KITCHEN_AND_CULINARY
|
||||
CONCESSIONS
|
||||
FACILITIES
|
||||
BARTENDING
|
||||
SECURITY
|
||||
EVENT_STAFF
|
||||
MANAGEMENT
|
||||
TECHNICAL
|
||||
OTHER
|
||||
}
|
||||
|
||||
type VendorRate @table(name: "vendor_rates") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
vendorName: String!
|
||||
category: VendorRateCategory!
|
||||
roleName: String!
|
||||
employeeWage: Float!
|
||||
markupPercentage: Float
|
||||
vendorFeePercentage: Float
|
||||
clientRate: Float!
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
enum ActivityType {
|
||||
EVENT_CREATED
|
||||
EVENT_UPDATED
|
||||
STAFF_ASSIGNED
|
||||
INVOICE_PAID
|
||||
INVOICE_CREATED
|
||||
VENDOR_APPROVED
|
||||
MESSAGE_RECEIVED
|
||||
}
|
||||
|
||||
type ActivityLog @table(name: "activity_logs") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
title: String!
|
||||
description: String!
|
||||
activityType: ActivityType!
|
||||
userId: String! # user_id (FK lógica a User.id)
|
||||
isRead: Boolean @default(expr: "false")
|
||||
iconType: String
|
||||
iconColor: String
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
enum AssignmentStatus {
|
||||
PENDING
|
||||
CONFIRMED
|
||||
CHECKED_IN
|
||||
IN_PROGRESS
|
||||
COMPLETED
|
||||
CANCELLED
|
||||
NO_SHOW
|
||||
}
|
||||
|
||||
type Assignment @table(name: "assignments") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
assignmentNumber: String
|
||||
orderId: UUID! # order_id (FK lógica a Order.id)
|
||||
workforceId: UUID! # workforce_id (FK lógica a Workforce.id)
|
||||
vendorId: UUID! # vendor_id (FK lógica a Vendor.id)
|
||||
role: String!
|
||||
assignmentStatus: AssignmentStatus!
|
||||
scheduledStart: Timestamp!
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
enum BusinessSector {
|
||||
BON_APPETIT
|
||||
EUREST
|
||||
ARAMARK
|
||||
EPICUREAN_GROUP
|
||||
CHARTWELLS
|
||||
OTHER
|
||||
}
|
||||
|
||||
enum BusinessRateGroup {
|
||||
STANDARD
|
||||
PREMIUM
|
||||
ENTERPRISE
|
||||
CUSTOM
|
||||
}
|
||||
|
||||
enum BusinessStatus {
|
||||
ACTIVE
|
||||
INACTIVE
|
||||
PENDING
|
||||
}
|
||||
|
||||
type Business @table(name: "business") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
businessName: String!
|
||||
contactName: String!
|
||||
email: String
|
||||
sector: BusinessSector
|
||||
rateGroup: BusinessRateGroup!
|
||||
status: BusinessStatus
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
enum CertificationType {
|
||||
LEGAL
|
||||
OPERATIONAL
|
||||
SAFETY
|
||||
TRAINING
|
||||
LICENSE
|
||||
OTHER
|
||||
}
|
||||
|
||||
enum CertificationStatus {
|
||||
CURRENT
|
||||
EXPIRING_SOON
|
||||
EXPIRED
|
||||
PENDING_VALIDATION
|
||||
}
|
||||
|
||||
enum CertificationValidationStatus {
|
||||
APPROVED
|
||||
PENDING_EXPERT_REVIEW
|
||||
REJECTED
|
||||
AI_VERIFIED
|
||||
AI_FLAGGED
|
||||
MANUAL_REVIEW_NEEDED
|
||||
}
|
||||
|
||||
type Certification @table(name: "certification") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
employeeName: String!
|
||||
certificationName: String!
|
||||
certificationType: CertificationType
|
||||
status: CertificationStatus
|
||||
expiryDate: String!
|
||||
validationStatus: CertificationValidationStatus
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
enum ConversationType {
|
||||
CLIENT_VENDOR
|
||||
STAFF_CLIENT
|
||||
STAFF_ADMIN
|
||||
VENDOR_ADMIN
|
||||
CLIENT_ADMIN
|
||||
GROUP_STAFF
|
||||
GROUP_EVENT_STAFF
|
||||
}
|
||||
|
||||
enum ConversationStatus {
|
||||
ACTIVE
|
||||
ARCHIVED
|
||||
CLOSED
|
||||
}
|
||||
|
||||
type Conversation @table(name: "conversations") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
participants: String! # participants (jsonb -> String, required array of strings)
|
||||
conversationType: ConversationType!
|
||||
relatedTo: UUID! # related_to (generic FK as string)
|
||||
status: ConversationStatus
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
type Enterprise @table(name: "enterprise") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
enterpriseNumber: String!
|
||||
enterpriseName: String!
|
||||
enterpriseCode: String!
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
|
||||
enum EventStatus {
|
||||
DRAFT
|
||||
ACTIVE
|
||||
PENDING
|
||||
ASSIGNED
|
||||
CONFIRMED
|
||||
COMPLETED
|
||||
CANCELED
|
||||
PARTIAL
|
||||
PARTIAL_STAFFED
|
||||
FULLY_STAFFED
|
||||
EVENT_CREATED
|
||||
}
|
||||
|
||||
enum RecurrenceType {
|
||||
SINGLE
|
||||
DATE_RANGE
|
||||
SCATTER
|
||||
}
|
||||
|
||||
#enums cant start by a number, reason of C1099
|
||||
enum ContractType {
|
||||
W2
|
||||
C1099
|
||||
TEMP
|
||||
CONTRACT
|
||||
}
|
||||
|
||||
type Event @table(name: "events") {
|
||||
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
eventName: String!
|
||||
isRapid: Boolean @default(expr: "false")
|
||||
isRecurring: Boolean @default(expr: "false")
|
||||
isMultiDay: Boolean @default(expr: "false")
|
||||
recurrenceType: RecurrenceType
|
||||
recurrenceStartDate: Timestamp
|
||||
recurrenceEndDate: Timestamp
|
||||
scatterDates: Any
|
||||
multiDayStartDate: Timestamp
|
||||
multiDayEndDate: Timestamp
|
||||
bufferTimeBefore: Float @default(expr: "0")
|
||||
bufferTimeAfter: Float @default(expr: "0")
|
||||
conflictDetectionEnabled: Boolean @default(expr: "true")
|
||||
detectedConflicts: Any
|
||||
businessId: UUID!
|
||||
businessName: String
|
||||
vendorId: String @default(expr: "auth.uid")
|
||||
vendorName: String
|
||||
hub: String
|
||||
eventLocation: String
|
||||
contractType: ContractType
|
||||
poReference: String
|
||||
status: EventStatus!
|
||||
date: String!
|
||||
shifts: Any
|
||||
addons: Any
|
||||
total: Float
|
||||
clientName: String
|
||||
clientEmail: String
|
||||
clientPhone: String
|
||||
invoiceId: UUID
|
||||
notes: String
|
||||
requested: Int @default(expr: "0")
|
||||
assignedStaff: Any
|
||||
orderType: String
|
||||
department: String
|
||||
recurringStartDate: String
|
||||
recurringEndDate: String
|
||||
recurringDays: Any
|
||||
permanentStartDate: String
|
||||
permanentDays: Any
|
||||
includeBackup: Boolean
|
||||
backupStaffCount: Int
|
||||
recurringTime: String
|
||||
permanentTime: String
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
enum InvoiceStatus {
|
||||
DRAFT
|
||||
PENDING_REVIEW
|
||||
APPROVED
|
||||
DISPUTED
|
||||
UNDER_REVIEW
|
||||
RESOLVED
|
||||
OVERDUE
|
||||
PAID
|
||||
RECONCILED
|
||||
CANCELLED
|
||||
}
|
||||
|
||||
type Invoice @table(name: "invoices") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
invoiceNumber: String!
|
||||
amount: Float!
|
||||
status: InvoiceStatus!
|
||||
issueDate: Timestamp!
|
||||
dueDate: Timestamp!
|
||||
disputedItems: String
|
||||
isAutoGenerated: Boolean @default(expr: "false") # is_auto_generated
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
type Message @table(name: "messages") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
conversationId: UUID! # conversation_id (FK lógica a Conversation.id)
|
||||
senderName: String!
|
||||
content: String!
|
||||
readBy: String # read_by (jsonb -> String, array de user IDs)
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
enum OrderType {
|
||||
STANDARD
|
||||
LAST_MINUTE
|
||||
EMERGENCY
|
||||
RECURRING
|
||||
}
|
||||
|
||||
enum OrderStatus {
|
||||
DRAFT
|
||||
SUBMITTED
|
||||
CONFIRMED
|
||||
IN_PROGRESS
|
||||
COMPLETED
|
||||
CANCELLED
|
||||
}
|
||||
|
||||
type Order @table(name: "orders") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
orderNumber: String!
|
||||
partnerId: UUID!
|
||||
orderType: OrderType
|
||||
orderStatus: OrderStatus
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
enum PartnerType {
|
||||
CORPORATE
|
||||
EDUCATION
|
||||
HEALTHCARE
|
||||
SPORTS_ENTERTAINMENT
|
||||
GOVERNMENT
|
||||
}
|
||||
|
||||
type Partner @table(name: "partner") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
partnerName: String!
|
||||
partnerNumber: String!
|
||||
partnerType: PartnerType # partner_type
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
enum SectorType {
|
||||
FOOD_SERVICE
|
||||
FACILITIES
|
||||
HEALTHCARE
|
||||
EDUCATION
|
||||
CORPORATE
|
||||
SPORTS_ENTERTAINMENT
|
||||
}
|
||||
|
||||
type Sector @table(name: "sector") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
sectorNumber: String!
|
||||
sectorName: String!
|
||||
sectorType: SectorType
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
type Shift @table(name: "shifts") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
shiftName: String!
|
||||
startDate: Timestamp!
|
||||
endDate: Timestamp
|
||||
assignedStaff: String # assigned_staff (jsonb -> String, array de objects)
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
enum EmploymentType {
|
||||
FULL_TIME
|
||||
PART_TIME
|
||||
ON_CALL
|
||||
WEEKENDS
|
||||
SPECIFIC_DAYS
|
||||
SEASONAL
|
||||
MEDICAL_LEAVE
|
||||
}
|
||||
|
||||
enum StaffDepartment {
|
||||
OPERATIONS
|
||||
SALES
|
||||
HR
|
||||
FINANCE
|
||||
IT
|
||||
MARKETING
|
||||
CUSTOMER_SERVICE
|
||||
LOGISTICS
|
||||
}
|
||||
|
||||
enum ProfileType {
|
||||
SKILLED
|
||||
BEGINNER
|
||||
CROSS_TRAINED
|
||||
}
|
||||
|
||||
enum EnglishLevel {
|
||||
FLUENT
|
||||
INTERMEDIATE
|
||||
BASIC
|
||||
NONE
|
||||
}
|
||||
|
||||
enum BackgroundCheckStatus {
|
||||
PENDING
|
||||
CLEARED
|
||||
FAILED
|
||||
EXPIRED
|
||||
NOT_REQUIRED
|
||||
}
|
||||
|
||||
type Staff @table(name: "staffs") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
employeeName: String! @col(name: "employee_name")
|
||||
initial:String@col(name:"initial") # nuevo
|
||||
vendorId: String @default(expr: "auth.uid")#String @col(name: "vendor_id") # vendor_id (FK lógica a Vendor.id)
|
||||
vendorName: String @col(name: "vendor_name")
|
||||
manager: String
|
||||
contactNumber: String @col(name: "contact_number")
|
||||
phone: String @col(name:"phone") # nuevo
|
||||
email: String
|
||||
department: StaffDepartment
|
||||
hubLocation: String @col(name: "hub_location")
|
||||
eventLocation:String@col(name:"event_location") # nuevo
|
||||
address:String@col(name:"address") # nuevo
|
||||
city:String@col(name:"city") # nuevo
|
||||
track: String
|
||||
position: String
|
||||
position2: String @col(name:"position_2") # nuevo
|
||||
profileType: ProfileType @col(name: "profile_type")
|
||||
employmentType: EmploymentType @col(name: "employment_type")
|
||||
english: EnglishLevel
|
||||
rate: Float
|
||||
rating: Float
|
||||
reliabilityScore: Int @col(name: "reliability_score")
|
||||
backgroundCheckStatus: BackgroundCheckStatus @col(name: "background_check_status")
|
||||
notes: String
|
||||
accountingComments: String @col(name:"accounting_comments") # nuevo
|
||||
shiftCoveragePercentage: Int @col(name:"shift_coverage_percentage") # nuevo
|
||||
cancellationCount: Int @col(name:"cancellation_count") # nuevo
|
||||
noShowCount: Int @col(name:"no_show_count") # nuevo
|
||||
totalShifts: Int @col(name:"total_shifts") # nuevo
|
||||
invoiced: Boolean @default(expr:"false") # nuevo
|
||||
englishRequired: Boolean @col(name:"english_required")@default(expr:"false") # nuevo
|
||||
checkIn: String @col(name:"check_in") # nuevo
|
||||
scheduleDays: String @col(name:"schedule_days") # nuevo
|
||||
replacedBy: String @col(name:"replaced_by") # nuevo
|
||||
action: String # nuevo
|
||||
ro: String # nuevo
|
||||
mon: String # nuevo
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
enum TeamOwnerRole {
|
||||
ADMIN
|
||||
PROCUREMENT
|
||||
OPERATOR
|
||||
SECTOR
|
||||
CLIENT
|
||||
VENDOR
|
||||
WORKFORCE
|
||||
}
|
||||
|
||||
type Team @table(name: "team") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
teamName: String!
|
||||
ownerId: String!
|
||||
ownerName: String!
|
||||
ownerRole: TeamOwnerRole!
|
||||
favoriteStaff: String
|
||||
blockedStaff: String
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
type TeamHub @table(name: "team_hubs") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
teamId: UUID!
|
||||
hubName: String!
|
||||
departments: String
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
enum TeamMemberRole {
|
||||
ADMIN
|
||||
MANAGER
|
||||
MEMBER
|
||||
VIEWER
|
||||
}
|
||||
|
||||
type TeamMember @table(name: "team_members") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
teamId: UUID!
|
||||
memberName: String!
|
||||
email: String!
|
||||
role: TeamMemberRole
|
||||
isActive: Boolean @default(expr: "true")
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
enum TeamMemberInviteStatus {
|
||||
PENDING
|
||||
ACCEPTED
|
||||
EXPIRED
|
||||
CANCELLED
|
||||
}
|
||||
|
||||
type TeamMemberInvite @table(name: "team_member_invites") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
teamId: UUID!
|
||||
inviteCode: String! @default(expr: "uuidV4()")
|
||||
email: String!
|
||||
inviteStatus: TeamMemberInviteStatus!
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
enum UserBaseRole {
|
||||
ADMIN
|
||||
USER
|
||||
}
|
||||
|
||||
type User @table(name: "users") {
|
||||
id: String! # user_id / uid de Firebase
|
||||
email: String!
|
||||
fullName: String!
|
||||
role: UserBaseRole!
|
||||
userRole: String
|
||||
photoUrl: String
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
enum VendorRegion {
|
||||
NATIONAL
|
||||
BAY_AREA
|
||||
SOUTHERN_CALIFORNIA
|
||||
NORTHERN_CALIFORNIA
|
||||
WEST
|
||||
EAST
|
||||
MIDWEST
|
||||
SOUTH
|
||||
}
|
||||
|
||||
enum VendorPlatformType {
|
||||
FULL_PLATFORM
|
||||
BUILDING_PLATFORM
|
||||
PARTIAL_TECH
|
||||
TRADITIONAL
|
||||
}
|
||||
|
||||
enum VendorApprovalStatus {
|
||||
PENDING
|
||||
APPROVED
|
||||
SUSPENDED
|
||||
TERMINATED
|
||||
}
|
||||
|
||||
type Vendor @table(name: "vendors") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
vendorNumber: String!
|
||||
legalName: String!
|
||||
region: VendorRegion!
|
||||
platformType: VendorPlatformType!
|
||||
primaryContactEmail: String!
|
||||
approvalStatus: VendorApprovalStatus!
|
||||
isActive: Boolean @default(value: true)
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
type VendorDefaultSetting @table(name: "vendor_default_settings") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
vendorName: String!
|
||||
defaultMarkupPercentage: Float!
|
||||
defaultVendorFeePercentage: Float!
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
# enums cant start by a number, reason of W1099
|
||||
enum WorkforceEmploymentType {
|
||||
W2
|
||||
W1099
|
||||
TEMPORARY
|
||||
CONTRACT
|
||||
}
|
||||
|
||||
type Workforce @table(name: "workforce") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
workforceNumber: String!
|
||||
vendorId: UUID! # vendor_id (FK lógica a Vendor.id)
|
||||
firstName: String!
|
||||
lastName: String!
|
||||
employmentType: WorkforceEmploymentType # employment_type
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
@@ -1,279 +0,0 @@
|
||||
mutation @transaction {
|
||||
movie_insertMany(
|
||||
data: [
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440000",
|
||||
title: "Quantum Paradox",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fquantum_paradox.jpeg?alt=media&token=4142e2a1-bf43-43b5-b7cf-6616be3fd4e3",
|
||||
genre: "sci-fi"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440001",
|
||||
title: "The Lone Outlaw",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Flone_outlaw.jpeg?alt=media&token=15525ffc-208f-4b59-b506-ae8348e06e85",
|
||||
genre: "western"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440002",
|
||||
title: "Celestial Harmony",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fcelestial_harmony.jpeg?alt=media&token=3edf1cf9-c2f5-4c75-9819-36ff6a734c9a",
|
||||
genre: "romance"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440003",
|
||||
title: "Noir Mystique",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fnoir_mystique.jpeg?alt=media&token=3299adba-cb98-4302-8b23-aeb679a4f913",
|
||||
genre: "mystery"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440004",
|
||||
title: "The Forgotten Island",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fforgotten_island.jpeg?alt=media&token=bc2b16e1-caed-4649-952c-73b6113f205c",
|
||||
genre: "adventure"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440005",
|
||||
title: "Digital Nightmare",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fdigital_nightmare.jpeg?alt=media&token=335ec842-1ca4-4b09-abd1-e96d9f5c0c2f",
|
||||
genre: "horror"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440006",
|
||||
title: "Eclipse of Destiny",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Feclipse_destiny.jpeg?alt=media&token=346649b3-cb5c-4d7e-b0d4-6f02e3df5959",
|
||||
genre: "fantasy"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440007",
|
||||
title: "Heart of Steel",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fheart_steel.jpeg?alt=media&token=17883d71-329b-415a-86f8-dd4d9e941d7f",
|
||||
genre: "sci-fi"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440008",
|
||||
title: "Rise of the Crimson Empire",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Frise_crimson_empire.jpeg?alt=media&token=6faa73ad-7504-4146-8f3a-50b90f607f33",
|
||||
genre: "action"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440009",
|
||||
title: "Silent Waves",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fsilent_waves.jpeg?alt=media&token=bd626bf1-ec60-4e57-aa07-87ba14e35bb7",
|
||||
genre: "drama"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440010",
|
||||
title: "Echoes of the Past",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fecho_of_past.jpeg?alt=media&token=d866aa27-8534-4d72-8988-9da4a1b9e452",
|
||||
genre: "historical"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440011",
|
||||
title: "Beyond the Horizon",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fbeyond_horizon.jpeg?alt=media&token=31493973-0692-4e6e-8b88-afb1aaea17ee",
|
||||
genre: "sci-fi"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440012",
|
||||
title: "Shadows and Lies",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fshadows_lies.jpeg?alt=media&token=01afb80d-caee-47f8-a00e-aea8b9e459a2",
|
||||
genre: "crime"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440013",
|
||||
title: "The Last Symphony",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Flast_symphony.jpeg?alt=media&token=f9bf80cd-3d8e-4e24-8503-7feb11f4e397",
|
||||
genre: "drama"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440014",
|
||||
title: "Moonlit Crusade",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fmoonlit_crusade.jpeg?alt=media&token=b13241f5-d7d0-4370-b651-07847ad99dc2",
|
||||
genre: "fantasy"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440015",
|
||||
title: "Abyss of the Deep",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fabyss_deep.jpeg?alt=media&token=2417321d-2451-4ec0-9ed6-6297042170e6",
|
||||
genre: "horror"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440017",
|
||||
title: "The Infinite Knot",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Finfinite_knot.jpeg?alt=media&token=93d54d93-d933-4663-a6fe-26b707ef823e",
|
||||
genre: "romance"
|
||||
},
|
||||
{
|
||||
id: "550e8400-e29b-41d4-a716-446655440019",
|
||||
title: "Veil of Illusion",
|
||||
imageUrl: "https://firebasestorage.googleapis.com/v0/b/fdc-web-quickstart.appspot.com/o/movie%2Fveil_illusion.jpeg?alt=media&token=7bf09a3c-c531-478a-9d02-5d99fca9393b",
|
||||
genre: "mystery"
|
||||
}
|
||||
]
|
||||
)
|
||||
movieMetadata_insertMany(
|
||||
data: [
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440000",
|
||||
rating: 7.9,
|
||||
releaseYear: 2025,
|
||||
description: "A group of scientists accidentally open a portal to a parallel universe, causing a rift in time. As the team races to close the portal, they encounter alternate versions of themselves, leading to shocking revelations."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440001",
|
||||
rating: 8.2,
|
||||
releaseYear: 2023,
|
||||
description: "In the lawless Wild West, a mysterious gunslinger with a hidden past takes on a corrupt sheriff and his band of outlaws to bring justice to a small town."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440002",
|
||||
rating: 7.5,
|
||||
releaseYear: 2024,
|
||||
description: "Two astronauts, stationed on a remote space station, fall in love amidst the isolation of deep space. But when a mysterious signal disrupts their communication, they must find a way to reconnect and survive."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440003",
|
||||
rating: 8.0,
|
||||
releaseYear: 2022,
|
||||
description: "A private detective gets caught up in a web of lies, deception, and betrayal while investigating the disappearance of a famous actress in 1940s Hollywood."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440004",
|
||||
rating: 7.6,
|
||||
releaseYear: 2025,
|
||||
description: "An explorer leads an expedition to a remote island rumored to be home to mythical creatures. As the team ventures deeper into the island, they uncover secrets that change the course of history."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440005",
|
||||
rating: 6.9,
|
||||
releaseYear: 2024,
|
||||
description: "A tech-savvy teenager discovers a cursed app that brings nightmares to life. As the horrors of the digital world cross into reality, she must find a way to break the curse before it's too late."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440006",
|
||||
rating: 8.1,
|
||||
releaseYear: 2026,
|
||||
description: "In a kingdom on the brink of war, a prophecy speaks of an eclipse that will grant power to the rightful ruler. As factions vie for control, a young warrior must decide where his true loyalty lies."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440007",
|
||||
rating: 7.7,
|
||||
releaseYear: 2023,
|
||||
description: "A brilliant scientist creates a robot with a human heart. As the robot struggles to understand emotions, it becomes entangled in a plot that could change the fate of humanity."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440008",
|
||||
rating: 8.4,
|
||||
releaseYear: 2025,
|
||||
description: "A legendary warrior rises to challenge the tyrannical rule of a powerful empire. As rebellion brews, the warrior must unite different factions to lead an uprising."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440009",
|
||||
rating: 8.2,
|
||||
releaseYear: 2024,
|
||||
description: "A talented pianist, who loses his hearing in a tragic accident, must rediscover his passion for music with the help of a young music teacher who believes in him."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440010",
|
||||
rating: 7.8,
|
||||
releaseYear: 2023,
|
||||
description: "A historian stumbles upon an ancient artifact that reveals hidden truths about an empire long forgotten. As she deciphers the clues, a shadowy organization tries to stop her from unearthing the past."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440011",
|
||||
rating: 8.5,
|
||||
releaseYear: 2026,
|
||||
description: "In the future, Earth's best pilots are sent on a mission to explore a mysterious planet beyond the solar system. What they find changes humanity's understanding of the universe forever."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440012",
|
||||
rating: 7.9,
|
||||
releaseYear: 2022,
|
||||
description: "A young detective with a dark past investigates a series of mysterious murders in a city plagued by corruption. As she digs deeper, she realizes nothing is as it seems."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440013",
|
||||
rating: 8.0,
|
||||
releaseYear: 2024,
|
||||
description: "An aging composer struggling with memory loss attempts to complete his final symphony. With the help of a young prodigy, he embarks on an emotional journey through his memories and legacy."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440014",
|
||||
rating: 8.3,
|
||||
releaseYear: 2025,
|
||||
description: "A knight is chosen by an ancient order to embark on a quest under the light of the full moon. Facing mythical beasts and treacherous landscapes, he seeks a relic that could save his kingdom."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440015",
|
||||
rating: 7.2,
|
||||
releaseYear: 2023,
|
||||
description: "When a group of marine biologists descends into the unexplored depths of the ocean, they encounter a terrifying and ancient force. Now, they must survive as the abyss comes alive."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440017",
|
||||
rating: 7.4,
|
||||
releaseYear: 2026,
|
||||
description: "Two souls destined to meet across multiple lifetimes struggle to find each other in a chaotic world. With each incarnation, they get closer, but time itself becomes their greatest obstacle."
|
||||
},
|
||||
{
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440019",
|
||||
rating: 7.8,
|
||||
releaseYear: 2022,
|
||||
description: "A magician-turned-detective uses his skills in illusion to solve crimes. When a series of murders leaves the city in fear, he must reveal the truth hidden behind a veil of deceit."
|
||||
}
|
||||
]
|
||||
)
|
||||
user_insertMany(
|
||||
data: [
|
||||
{ id: "SnLgOC3lN4hcIl69s53cW0Q8R1T2", username: "sherlock_h" },
|
||||
{ id: "fep4fXpGWsaRpuphq9CIrBIXQ0S2", username: "hercule_p" },
|
||||
{ id: "TBedjwCX0Jf955Uuoxk6k74sY0l1", username: "jane_d" }
|
||||
]
|
||||
)
|
||||
review_insertMany(
|
||||
data: [
|
||||
{
|
||||
userId: "SnLgOC3lN4hcIl69s53cW0Q8R1T2",
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440000",
|
||||
rating: 5,
|
||||
reviewText: "An incredible movie with a mind-blowing plot!",
|
||||
reviewDate: "2025-10-01"
|
||||
},
|
||||
{
|
||||
userId: "fep4fXpGWsaRpuphq9CIrBIXQ0S2",
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440001",
|
||||
rating: 5,
|
||||
reviewText: "A revolutionary film that changed cinema forever.",
|
||||
reviewDate: "2025-10-01"
|
||||
},
|
||||
{
|
||||
userId: "TBedjwCX0Jf955Uuoxk6k74sY0l1",
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440002",
|
||||
rating: 5,
|
||||
reviewText: "A visually stunning and emotionally impactful movie.",
|
||||
reviewDate: "2025-10-01"
|
||||
},
|
||||
{
|
||||
userId: "SnLgOC3lN4hcIl69s53cW0Q8R1T2",
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440003",
|
||||
rating: 4,
|
||||
reviewText: "A fantastic superhero film with great performances.",
|
||||
reviewDate: "2025-10-01"
|
||||
},
|
||||
{
|
||||
userId: "fep4fXpGWsaRpuphq9CIrBIXQ0S2",
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440004",
|
||||
rating: 5,
|
||||
reviewText: "An amazing film that keeps you on the edge of your seat.",
|
||||
reviewDate: "2025-10-01"
|
||||
},
|
||||
{
|
||||
userId: "TBedjwCX0Jf955Uuoxk6k74sY0l1",
|
||||
movieId: "550e8400-e29b-41d4-a716-446655440005",
|
||||
rating: 5,
|
||||
reviewText: "An absolute classic with unforgettable dialogue.",
|
||||
reviewDate: "2025-10-01"
|
||||
}
|
||||
]
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user