Skip to content

feat: add districtId to ApiAgentPatch #93

@nadavosa

Description

@nadavosa

Summary

ApiAgentPatch is missing the districtId field. The Agent entity has a districtId FK column, but the PATCH type doesn't expose it, so coordinators cannot update an agent's district through the dashboard.

Proposed change

Add districtId?: number to ApiAgentPatch in src/types/api/agent.ts:

export interface ApiAgentPatch {
  // existing fields ...
  districtId?: number;
}

Relates to

need4deed-org/be#451

Acceptance criteria

  • ApiAgentPatch exposes districtId?: number
  • New SDK version published so BE and FE can consume it

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions