Skip to content

Regenerate V2 client for Annotations & Stamps surface#60

Open
bzajzon-laserfiche wants to merge 3 commits into
mainfrom
story/674508-annotations-stamps
Open

Regenerate V2 client for Annotations & Stamps surface#60
bzajzon-laserfiche wants to merge 3 commits into
mainfrom
story/674508-annotations-stamps

Conversation

@bzajzon-laserfiche

Copy link
Copy Markdown
Contributor

Regenerates the V2 JS client against the combined Annotations & Stamps server surface (server PR Laserfiche/site-api-repository!173492, WI #674508).

Changes

  • Re-regen lf-repository-api-client-v2 (swagger.json + index.ts) against the final annotations/stamps surface; the stale GetStampImage scope query param is dropped.
  • Add generate-client/swagger-override.json carrying the polymorphic Annotation discriminator override so the generated client deserializes annotation subtypes correctly.
  • Production server URL restored in swagger.json servers[] and index.ts defaults (localhost-regen trap).
  • test(v2): trim CheckInCheckOut teardown to only undo/unlock when still locked, cutting two slow error-path round-trips per test.

Notes

  • Regen-only: no package.json version bump and no publish — version bump + publish ship in a separate, manually-approved release PR after the server side merges.
  • No new annotation/stamp integration tests are added here (none exist yet for JS); the only test change is the CICO teardown optimization on an existing endpoint.

Adds AnnotationsClient and StampsClient (from the server's [OpenApiTag] split):
annotation read/write (polymorphic Annotation + 14 subtypes), annotation reasons CRUD,
attachment/image binary uploads, and the stamp catalog. Extends swagger-override.json with
the Annotation discriminator block (propertyName annotationType + 14-subtype mapping) so
NSwag generates real Annotation.fromJS dispatch instead of a throw-only abstract body
(the same override the Entry polymorphic response needs). Prod baseUrl restored after the
local regen.
…le GetStampImage scope; restore prod baseUrl)
…tting two slow error-path round-trips per test
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.

1 participant