Skip to content

[Due for payment 2026-05-28] [HR Import] MergeHR actions and API parameter types [F05] #90598

@francoisl

Description

@francoisl

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 OwnerCurrent Issue Owner: @bernhardoj

Metadata

Metadata

Labels

DailyKSv2InternalRequires API changes or must be handled by Expensify staff

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions