foundry-vtt-types icon indicating copy to clipboard operation
foundry-vtt-types copied to clipboard

V11 Data Models

Open kmoschcau opened this issue 1 year ago • 3 comments
trafficstars

This is a draft PR to get data models working as they are in Foundry V11.

kmoschcau avatar May 10 '24 18:05 kmoschcau

Tracking the goals for the branch

  • [x] client
    • [x] core
      • [x] hooks
      • [x] packages
    • [x] data
      • [x] abstract
      • [x] collections
      • [x] documents
  • [x] common
    • [x] abstract
    • [x] data
    • [x] documents
    • [x] packages
    • [x] config.mjs
    • [x] constants.mjs
    • [x] module.mjs
    • [x] types.mjs

JPMeehan avatar May 16 '24 21:05 JPMeehan

Documents status (excluding TODOs)

  • [x] ActiveEffect
  • [x] ActorDelta
  • [x] Actor
  • [x] Adventure
  • [x] AmbientLight
  • [x] AmbientSound
  • [x] Card
  • [x] Cards
  • [x] ChatMessage
  • [x] Combat
  • [x] Combatant
  • [x] Drawing
  • [x] FogExploration
  • [x] Folder
  • [x] Item
  • [x] JournalEntryPage
  • [x] JournalEntry
  • [x] Macro
  • [x] MeasuredTemplate
  • [x] Note
  • [x] PlaylistSound
  • [x] Playlist
  • [x] Scene
  • [x] Setting
  • [x] TableResult
  • [x] Table
  • [x] Tile
  • [x] Token
  • [x] User
  • [x] Wall

JPMeehan avatar May 17 '24 21:05 JPMeehan

Outstanding issues

  • [x] StringField choices (most visible in Folder)
  • [x] Embedded Collections, especially recursion issues surrounding Canvas documents like Token and AmbientLight
  • [x] ForeignDocumentField returns the noted type rather than the ConfiguredDocumentClass
  • [x] NumberField.Options handling (for TableResult)
  • [x] PlaceablesLayer#history "Type instantiation is excessively deep and possibly infinite"
  • [x] ShaderField#_cast "Initialized Type" handling isn't happy

JPMeehan avatar May 27 '24 23:05 JPMeehan