You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, we're using this library to fetch some entries from the delivery api via the getEntries method. For these entries, we'd like to examine their published version. I noticed the API & library are returning the sys.publishedVersion field (and is mentioned in the docs here), but it seems to be missing from the TypeScript types in this library.
Expected Behavior
Given an Entry, I'd expect to be able to access the sys.publishedVersion field, i.e.
We're developing a new feature that involves keeping track of which version of a particular entry a user has seen (so we can let users know if/when there's a new version available than the last one they saw) and we were planning on leveraging the publishedVersion field for this.
Environment
Language Version: node v22.12.0
Package Manager Version: pnpm v9.15.0
Browser Version: n/a
Operating System: Darwin P62P7H941C 23.6.0 Darwin Kernel Version 23.6.0: Thu Sep 12 23:35:29 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6000 arm64
Package Version: 11.3.2
Which API are you using?: Delivery
The text was updated successfully, but these errors were encountered:
Hello, we're using this library to fetch some entries from the delivery api via the
getEntries
method. For these entries, we'd like to examine their published version. I noticed the API & library are returning thesys.publishedVersion
field (and is mentioned in the docs here), but it seems to be missing from the TypeScript types in this library.Expected Behavior
Given an
Entry
, I'd expect to be able to access thesys.publishedVersion
field, i.e.Actual Behavior
The code results in a TypeScript error:
Possible Solution
I think it's just be a matter of adding
publishedVersion: number;
to theEntitySys
type.Steps to Reproduce
Copy aforementioned code into a TypeScript project that has
contentful
installed as a dependency or see the TS error on https://codesandbox.io/p/sandbox/serene-voice-h6rdc2Context
We're developing a new feature that involves keeping track of which version of a particular entry a user has seen (so we can let users know if/when there's a new version available than the last one they saw) and we were planning on leveraging the
publishedVersion
field for this.Environment
The text was updated successfully, but these errors were encountered: