js-webflow-api icon indicating copy to clipboard operation
js-webflow-api copied to clipboard

TS FieldType isn't comprehensive of all potential values

Open tctrautman opened this issue 9 months ago • 2 comments

The autogenerated FieldType TS type doesn't seem to be comprehensive of all potential values:

https://github.com/webflow/js-webflow-api/blob/b40a6a12d7dc723ff01ccfeec1e6d30a5d5de73d/src/api/types/FieldType.ts#L8-L23

These are types that I've received from the API that aren't included in the type definitions:

  • SkuSettings
  • TextOption
  • Option
  • MembershipPlan
  • MultiExternalFile
  • Price
  • SkuValues

Is there a publicly available list of all potential values that's more reliable than this autogenerated file (api/types/FieldType.ts)?

tctrautman avatar Mar 21 '25 00:03 tctrautman

Hey @tctrautman - the ts file should be a good source of truth, and likely we missed updating the list here. We'll get this fixed, thank you for reporting

zplata avatar Apr 04 '25 20:04 zplata

Sounds good, thank you!

tctrautman avatar Apr 04 '25 22:04 tctrautman