1.0.3 • Published 2 months ago
@pacely-next/api-provider v1.0.3
API Provider for Pacely
Functions
A list of Firebase Functions needed for Pacely.
Resource | What's the trigger? | Method name | What happens? | Condition |
---|---|---|---|---|
time_entries | onDocumentCreated | timeEntryCreated | Update totalTrackedTime on the task. | When a time entry is completed, update the total time on the task. |
time_entries | onDocumentUpdated | timeEntryUpdated | Update totalTrackedTime on the task. | When a time entry is completed, update the total time on the task. |
time_entries | onDocumentUpdated | timeEntryUpdated | Update totalTrackedTime on the project. | When a time entry is completed, update the total time on the project. |
tasks | onDocumentCreated | projectTasksCreated | Update taskStatus on the project. | When a task is created, update total and completed tasks on project. |
tasks | onDocumentUpdated | projectTasksUpdated | Update taskStatus on the project. | When a task is marked completed, update total and completed tasks on project. |
tasks | onDocumentUpdated | projectMembershipUpdated | Update taskIds on the section. | When task membership changes, update the taskSections taskIds |
projects | onDocumentUpdated | updateTaskResource('project') | Update tasks.memberships.project.name on the project. | When a project name changes, update the tasks.memberships.project.name |
task_sections | onDocumentUpdated | updateTaskResource('section') | Update tasks.memberships.section.name on the project. | When a section name changes, update the tasks.memberships.section.name |