Open f-huang opened 1 year ago
@leewang0 did you get to see this issue ? Thank you in avance 🙏 🙂
UP @leewang0 🙏 I can draft a Pull request if needed
@f-huang @leonard-henriquez while I agree this is a nice quality of life improvement, it would be a backwards-incompatible change in type. The API should never emit a null id, but we don't want to bump to version 4.x right now and it would differ from all of our other SDKs too. Apologies in advance.
Merge category API
CRM (Customer Relationship Management)
Issue
Currently when creating or fetching data using CRM SDK, every returned object is typed with
?
. It is kind of bothersome because when using these objects I must check everytime that theid
exists.As
id
is a property of Merge's API, I cannot figure why and/or in which circumstances it is typed as optional ?Example for
Account
objectWhat I would like
id
in following objects are typed asreadonly id: string
:Account
AccountDetails
Address
Contact
Opportunity
Stage
Task
User
I can open a PR about this if needed :) Thank you.