Placements developer guide
Preparing search index...
@vektorprogrammet/database/placements
claimNextSchoolServiceNotification
Function claimNextSchoolServiceNotification
claimNextSchoolServiceNotification
(
claimId
:
string
,
claimedAt
:
string
,
)
:
Effect
<
|
{
_tag
:
"Quarantined"
;
effectId
:
string
;
failureTag
:
string
}
|
{
_tag
:
"Claimed"
;
claim
:
{
attempts
:
number
;
claimId
:
string
;
effectId
:
string
;
request
:
{
assignments
:
readonly
{
block
:
"1"
|
"2"
;
day
:
"Monday"
|
"Tuesday"
|
"Wednesday"
|
"Thursday"
|
"Friday"
;
firstName
:
string
;
lastName
:
string
;
personId
:
string
&
Brand
<
"PersonId"
>
;
placementId
:
string
;
schoolId
:
number
&
Brand
<
"SchoolId"
>
;
schoolName
:
string
;
}
[]
;
confirmedAt
:
string
;
departmentId
:
string
&
Brand
<
"DepartmentId"
>
;
effectId
:
string
;
personId
:
string
&
Brand
<
"PersonId"
>
;
proposalId
:
string
;
semesterId
:
string
&
Brand
<
"SemesterId"
>
;
}
;
}
;
}
|
undefined
,
SchoolServiceNotificationOutboxError
|
OutboxClaimLost
,
Database
,
>
Parameters
claimId
:
string
claimedAt
:
string
Returns
Effect
<
|
{
_tag
:
"Quarantined"
;
effectId
:
string
;
failureTag
:
string
}
|
{
_tag
:
"Claimed"
;
claim
:
{
attempts
:
number
;
claimId
:
string
;
effectId
:
string
;
request
:
{
assignments
:
readonly
{
block
:
"1"
|
"2"
;
day
:
"Monday"
|
"Tuesday"
|
"Wednesday"
|
"Thursday"
|
"Friday"
;
firstName
:
string
;
lastName
:
string
;
personId
:
string
&
Brand
<
"PersonId"
>
;
placementId
:
string
;
schoolId
:
number
&
Brand
<
"SchoolId"
>
;
schoolName
:
string
;
}
[]
;
confirmedAt
:
string
;
departmentId
:
string
&
Brand
<
"DepartmentId"
>
;
effectId
:
string
;
personId
:
string
&
Brand
<
"PersonId"
>
;
proposalId
:
string
;
semesterId
:
string
&
Brand
<
"SemesterId"
>
;
}
;
}
;
}
|
undefined
,
SchoolServiceNotificationOutboxError
|
OutboxClaimLost
,
Database
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Placements developer guide
Loading...