Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions docs/reference/endpoint-inventory.json
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,27 @@
"variables": [
"companyId"
]
},
"UNSTABLE_TimeOff.PolicyList": {
"endpoints": [
{
"method": "GET",
"path": "/v1/companies/:companyUuid/time_off_policies"
},
{
"method": "PUT",
"path": "/v1/time_off_policies/:timeOffPolicyUuid/deactivate"
},
{
"method": "GET",
"path": "/v1/companies/:companyId/employees"
}
],
"variables": [
"companyId",
"companyUuid",
"timeOffPolicyUuid"
]
}
},
"flows": {
Expand Down Expand Up @@ -2088,8 +2109,25 @@
"UNSTABLE_TimeOff.ViewPolicyDetails",
"UNSTABLE_TimeOff.ViewPolicyEmployees"
],
"endpoints": [],
"variables": []
"endpoints": [
{
"method": "GET",
"path": "/v1/companies/:companyUuid/time_off_policies"
},
{
"method": "PUT",
"path": "/v1/time_off_policies/:timeOffPolicyUuid/deactivate"
},
{
"method": "GET",
"path": "/v1/companies/:companyId/employees"
}
],
"variables": [
"companyId",
"companyUuid",
"timeOffPolicyUuid"
]
}
}
}
8 changes: 8 additions & 0 deletions docs/reference/endpoint-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ import inventory from '@gusto/embedded-react-sdk/endpoint-inventory.json'
| **Payroll.TransitionCreation** | POST | `/v1/companies/:companyId/payrolls` |
| | GET | `/v1/companies/:companyId/pay_schedules` |

## UNSTABLE_TimeOff components

| Component | Method | Path |
| --- | --- | --- |
| **UNSTABLE_TimeOff.PolicyList** | GET | `/v1/companies/:companyUuid/time_off_policies` |
| | PUT | `/v1/time_off_policies/:timeOffPolicyUuid/deactivate` |
| | GET | `/v1/companies/:companyId/employees` |

## Flows

Flows compose multiple blocks into a single workflow. The endpoint list for a flow is the union of all its block endpoints.
Expand Down
Loading
Loading