import {AssignmentService} from 'ceo-core/application/services/assignment-service.js'Method Summary
| Public Methods | ||
| public |
checkinAndFetch(assignmentId: string, lockId: string): * Attempt to release a assignment lock, then update assignment store |
|
| public |
checkoutAndFetch(srn: string): * Attempt to obtain a assignment lock, then update the assignment store |
|
| public |
Create new assignment item |
|
| public |
Fetch paginated assignment items |
|
| public |
Fetch single assignment update |
|
| public |
Remove (delete) assignment item |
|
| public |
Run a query on the search endpoint. |
|
| public |
Update existing assignment item |
|
| public |
updateAssignment(assignment: *): * |
|
| public |
updateAssignments(assignment: *): * |
|
| public |
updatePagination(pagination: *): * |
|
Inherited Summary
| From class BaseService | ||
| public |
Preform a DELETE action |
|
| public |
Preform a GET action |
|
| public |
Preform a POST action |
|
| public |
postUpload(url: string, data: object, params: object): object Preform a POST action |
|
| public |
Preform a PUT action |
|
Public Methods
public checkinAndFetch(assignmentId: string, lockId: string): * source
Attempt to release a assignment lock, then update assignment store
Return:
| * |
public checkoutAndFetch(srn: string): * source
Attempt to obtain a assignment lock, then update the assignment store
Params:
| Name | Type | Attribute | Description |
| srn | string | valid SRN |
Return:
| * |
public fetch(opts: object): * source
Fetch paginated assignment items
Params:
| Name | Type | Attribute | Description |
| opts | object | Hash of query options |
Return:
| * |
public fetchOne(id: string, opts: object, forceUpdate: Boolean): * source
Fetch single assignment update
Return:
| * |
public remove(id: string): * source
Remove (delete) assignment item
Params:
| Name | Type | Attribute | Description |
| id | string |
Return:
| * |
public search(opts: object): * source
Run a query on the search endpoint. See search docs for query info
Params:
| Name | Type | Attribute | Description |
| opts | object | Query has |
Return:
| * |
public update(id: string, data: object, callback: Function): * source
Update existing assignment item
Return:
| * |
public updateAssignment(assignment: *): * source
Params:
| Name | Type | Attribute | Description |
| assignment | * |
Return:
| * |
public updateAssignments(assignment: *): * source
Params:
| Name | Type | Attribute | Description |
| assignment | * |
Return:
| * |
public updatePagination(pagination: *): * source
Params:
| Name | Type | Attribute | Description |
| pagination | * |
Return:
| * |