Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Cisneiros
Copy link
Member

@Cisneiros Cisneiros commented Oct 29, 2025

This PR adds the return type of GET /contacts to include custom properties, as well as the input types for POST and PATCH /contacts to accept property values.


Summary by cubic

Adds typed support for contact custom properties. GET now includes typed property values, and POST/PATCH accept property inputs.

  • New Features
    • GET /contacts returns properties as a map of { type, value } (supports string and number).
    • CreateContactOptions and UpdateContactOptions accept properties: { [key]: string | number | null }.
    • SDK forwards properties in create and update requests; tests updated to cover property handling.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 29, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/resend-node/resend@730

commit: 6349e4b

@Cisneiros Cisneiros marked this pull request as ready for review October 29, 2025 16:13
@Cisneiros Cisneiros requested a review from a team as a code owner October 29, 2025 16:13
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 5 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="src/contacts/interfaces/get-contact.interface.ts">

<violation number="1" location="src/contacts/interfaces/get-contact.interface.ts:21">
The fallback `{ type: string; value: unknown }` branch widens the union so TypeScript will happily accept `{ type: &#39;number&#39;, value: &#39;oops&#39; }`, defeating the new type-safety guarantee for property values.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

@Cisneiros Cisneiros force-pushed the feat/contact-properties-values branch from 32c74c6 to 1ba08fb Compare October 29, 2025 16:47
@Cisneiros Cisneiros force-pushed the feat/contact-properties-values branch from 1ba08fb to 6349e4b Compare October 29, 2025 16:47
@resend resend deleted a comment from cubic-dev-ai bot Oct 29, 2025
@Cisneiros Cisneiros merged commit 5ea897e into canary Oct 29, 2025
11 checks passed
@Cisneiros Cisneiros deleted the feat/contact-properties-values branch October 29, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants