Skip to content

V2: Persons phone label is incorrectly typed as boolean #695

@JulienZD

Description

@JulienZD

The AddPersonRequestPhonesInner interface has label typed as boolean. In reality this is a string, as can be seen in the Update person API docs

Image

As a result, I cannot attach a label using the SDK without @ts-expect-error

personsApi.updatePerson({
  id: personId,
  UpdatePersonRequest: {
    name: 'John Doe',
    phones: [
      {
         value: phoneNumber,
         // This errors, string is not assignable to type boolean
         label: 'custom_label',
      },
     ],
  },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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