Task
Create the actions and API parameter types that the rest of the frontend will call.
Files:
-
src/libs/actions/connections/MergeHR.ts — new action file with:
connectPolicyToMergeHR(policyID, connectionName, providerSlug)
syncMergeHR(policyID, connectionName)
updateMergeHRApprovalMode(policyID, connectionName, mode)
updateMergeHRFinalApprover(policyID, connectionName, accountID)
disconnectMergeHR(policyID, connectionName)
Each writes optimistically to Onyx (Pattern B), using the same policy.connections.<name>.config shape.
-
src/libs/API/parameters/:
ConnectPolicyToMergeHRParams.ts
SyncPolicyToMergeHRParams.ts
UpdateMergeHRApprovalModeParams.ts
UpdateMergeHRFinalApproverParams.ts
Each carries policyID and connectionName (and providerSlug on the connect call).
Dependencies: F1.
Issue Owner
Current Issue Owner: @bernhardoj
Task
Create the actions and API parameter types that the rest of the frontend will call.
Files:
src/libs/actions/connections/MergeHR.ts— new action file with:connectPolicyToMergeHR(policyID, connectionName, providerSlug)syncMergeHR(policyID, connectionName)updateMergeHRApprovalMode(policyID, connectionName, mode)updateMergeHRFinalApprover(policyID, connectionName, accountID)disconnectMergeHR(policyID, connectionName)Each writes optimistically to Onyx (Pattern B), using the same
policy.connections.<name>.configshape.src/libs/API/parameters/:ConnectPolicyToMergeHRParams.tsSyncPolicyToMergeHRParams.tsUpdateMergeHRApprovalModeParams.tsUpdateMergeHRFinalApproverParams.tsEach carries
policyIDandconnectionName(andproviderSlugon the connect call).Dependencies: F1.
Issue Owner
Current Issue Owner: @bernhardoj