The TagResponse type is incompatible with internal tooling in atlas-next; this moves to handling the JSON deserialization inside ts-nomic to ensure clearer typing.
Note that since DslRule is not defined in this package, we will still need to typecast on getting this response.
:rocket:
This description was created by Ellipsis for commit 678d356a3f41cb5b7f1019cadf418ef3661fde0d
Summary:
This PR deprecates the TagResponse type, introduces UnparsedTagResponse for JSON deserialization, and updates related functions in src/projection.ts for improved type clarity.
Key points:
Deprecates TagResponse type in src/projection.ts.
Introduces UnparsedTagResponse type for JSON deserialization.
Adds parseTagResponse function to convert UnparsedTagResponse to Tag.
Updates createTag and updateTag methods to return Tag instead of TagResponse.
Deprecates getTags method in favor of new tags method.
tags method returns parsed list of tags using parseTagResponse.
The TagResponse type is incompatible with internal tooling in atlas-next; this moves to handling the JSON deserialization inside ts-nomic to ensure clearer typing.
Note that since DslRule is not defined in this package, we will still need to typecast on getting this response.
Summary:
This PR deprecates the
TagResponse
type, introducesUnparsedTagResponse
for JSON deserialization, and updates related functions insrc/projection.ts
for improved type clarity.Key points:
TagResponse
type insrc/projection.ts
.UnparsedTagResponse
type for JSON deserialization.parseTagResponse
function to convertUnparsedTagResponse
toTag
.createTag
andupdateTag
methods to returnTag
instead ofTagResponse
.getTags
method in favor of newtags
method.tags
method returns parsed list of tags usingparseTagResponse
.Generated with :heart: by ellipsis.dev