solving problems of validations and adding query of application
This commit is contained in:
@@ -543,6 +543,36 @@ query listAcceptedApplicationsByShiftRoleKey(
|
||||
}
|
||||
}
|
||||
|
||||
query listOverlappingAcceptedApplicationsByStaff(
|
||||
$staffId: UUID!
|
||||
$newStart: Timestamp!
|
||||
$newEnd: Timestamp!
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
applications(
|
||||
where: {
|
||||
staffId: { eq: $staffId }
|
||||
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE ] }
|
||||
shiftRole: {
|
||||
startTime: { lt: $newEnd }
|
||||
endTime: { gt: $newStart }
|
||||
}
|
||||
}
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
orderBy: { appliedAt: ASC }
|
||||
) {
|
||||
id
|
||||
shiftId
|
||||
roleId
|
||||
checkInTime
|
||||
checkOutTime
|
||||
staff { id fullName email phone photoUrl }
|
||||
shiftRole { startTime endTime }
|
||||
}
|
||||
}
|
||||
|
||||
#getting staffs of an shiftrole status for orders of the day view client
|
||||
query listAcceptedApplicationsByBusinessForDay(
|
||||
$businessId: UUID!
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
specVersion: "v1"
|
||||
serviceId: "krow-workforce-db"
|
||||
serviceId: "krow-workforce-db-validation"
|
||||
location: "us-central1"
|
||||
schema:
|
||||
source: "./schema"
|
||||
@@ -7,7 +7,7 @@ schema:
|
||||
postgresql:
|
||||
database: "krow_db"
|
||||
cloudSql:
|
||||
instanceId: "krow-sql"
|
||||
instanceId: "krow-sql-validation"
|
||||
# schemaValidation: "STRICT" # STRICT mode makes Postgres schema match Data Connect exactly.
|
||||
# schemaValidation: "COMPATIBLE" # COMPATIBLE mode makes Postgres schema compatible with Data Connect.
|
||||
connectorDirs: ["./connector"]
|
||||
|
||||
6
internal/launchpad/package-lock.json
generated
Normal file
6
internal/launchpad/package-lock.json
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "launchpad",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {}
|
||||
}
|
||||
Reference in New Issue
Block a user