@league-of-foundry-developers/foundry-vtt-types 12.331.4-beta → 12.331.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/package.json +18 -1
  2. package/src/configuration/configuration.d.mts +1 -1
  3. package/src/foundry/client/apps/app.d.mts +1 -1
  4. package/src/foundry/client/apps/av/av-config.d.mts +1 -1
  5. package/src/foundry/client/apps/av/cameras.d.mts +1 -1
  6. package/src/foundry/client/apps/dice/dice-config.d.mts +1 -1
  7. package/src/foundry/client/apps/form.d.mts +1 -1
  8. package/src/foundry/client/apps/forms/actor.d.mts +1 -1
  9. package/src/foundry/client/apps/forms/adventure-exporter.d.mts +1 -1
  10. package/src/foundry/client/apps/forms/adventure-importer.d.mts +1 -1
  11. package/src/foundry/client/apps/forms/base-sheet.d.mts +1 -1
  12. package/src/foundry/client/apps/forms/card-config.d.mts +1 -1
  13. package/src/foundry/client/apps/forms/cards-config.d.mts +1 -1
  14. package/src/foundry/client/apps/forms/combat-config.d.mts +1 -1
  15. package/src/foundry/client/apps/forms/effect-config.d.mts +1 -1
  16. package/src/foundry/client/apps/forms/folder-config.d.mts +7 -2
  17. package/src/foundry/client/apps/forms/fonts.d.mts +1 -1
  18. package/src/foundry/client/apps/forms/grid-config.d.mts +1 -1
  19. package/src/foundry/client/apps/forms/image-popout.d.mts +1 -1
  20. package/src/foundry/client/apps/forms/item.d.mts +1 -1
  21. package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +1 -1
  22. package/src/foundry/client/apps/forms/journal-sheet.d.mts +1 -1
  23. package/src/foundry/client/apps/forms/macro-config.d.mts +1 -1
  24. package/src/foundry/client/apps/forms/measure-template.d.mts +1 -1
  25. package/src/foundry/client/apps/forms/ownership.d.mts +1 -1
  26. package/src/foundry/client/apps/forms/playlist-config.d.mts +1 -1
  27. package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +1 -1
  28. package/src/foundry/client/apps/forms/roll-table-config.d.mts +1 -1
  29. package/src/foundry/client/apps/forms/scene-config.d.mts +1 -1
  30. package/src/foundry/client/apps/forms/sheet-config.d.mts +1 -1
  31. package/src/foundry/client/apps/forms/user-config.d.mts +1 -1
  32. package/src/foundry/client/apps/hud/chatbubble.d.mts +1 -1
  33. package/src/foundry/client/apps/hud/container.d.mts +1 -1
  34. package/src/foundry/client/apps/hud/controls.d.mts +1 -1
  35. package/src/foundry/client/apps/hud/hotbar.d.mts +1 -1
  36. package/src/foundry/client/apps/hud/hud.d.mts +1 -1
  37. package/src/foundry/client/apps/hud/menu.d.mts +1 -1
  38. package/src/foundry/client/apps/hud/navigation.d.mts +1 -1
  39. package/src/foundry/client/apps/hud/pause.d.mts +1 -1
  40. package/src/foundry/client/apps/hud/players.d.mts +1 -1
  41. package/src/foundry/client/apps/placeables/drawing-config.d.mts +1 -1
  42. package/src/foundry/client/apps/placeables/drawing-hud.d.mts +1 -1
  43. package/src/foundry/client/apps/placeables/note-config.d.mts +1 -1
  44. package/src/foundry/client/apps/placeables/tile-config.d.mts +1 -1
  45. package/src/foundry/client/apps/placeables/tile-hud.d.mts +1 -1
  46. package/src/foundry/client/apps/placeables/token-config.d.mts +1 -1
  47. package/src/foundry/client/apps/placeables/token-hud.d.mts +1 -1
  48. package/src/foundry/client/apps/placeables/wall-config.d.mts +1 -1
  49. package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +1 -1
  50. package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +1 -1
  51. package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +1 -1
  52. package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +1 -1
  53. package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +1 -1
  54. package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +1 -1
  55. package/src/foundry/client/apps/sidebar/package-configuration.d.mts +1 -1
  56. package/src/foundry/client/apps/sidebar/sidebar.d.mts +1 -1
  57. package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +1 -1
  58. package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +1 -1
  59. package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +1 -1
  60. package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +1 -1
  61. package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +1 -1
  62. package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +1 -1
  63. package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +1 -1
  64. package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +1 -1
  65. package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +1 -1
  66. package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +1 -1
  67. package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +1 -1
  68. package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +1 -1
  69. package/src/foundry/client/av/client.d.mts +1 -1
  70. package/src/foundry/client/av/clients/simplepeer.d.mts +1 -1
  71. package/src/foundry/client/av/master.d.mts +1 -1
  72. package/src/foundry/client/av/settings.d.mts +1 -1
  73. package/src/foundry/client/config.d.mts +1 -1
  74. package/src/foundry/client/core/hooks.d.mts +1 -1
  75. package/src/foundry/client/core/image.d.mts +1 -1
  76. package/src/foundry/client/core/keybindings.d.mts +1 -1
  77. package/src/foundry/client/core/packages.d.mts +4 -2
  78. package/src/foundry/client/core/settings.d.mts +1 -1
  79. package/src/foundry/client/core/socket.d.mts +1 -1
  80. package/src/foundry/client/core/tooltip.d.mts +1 -1
  81. package/src/foundry/client/core/tour.d.mts +1 -1
  82. package/src/foundry/client/core/utils.d.mts +1 -1
  83. package/src/foundry/client/core/workers.d.mts +1 -1
  84. package/src/foundry/client/data/abstract/canvas-document.d.mts +9 -20
  85. package/src/foundry/client/data/abstract/client-document.d.mts +133 -71
  86. package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +2 -2
  87. package/src/foundry/client/data/abstract/document-collection.d.mts +1 -1
  88. package/src/foundry/client/data/abstract/world-collection.d.mts +8 -1
  89. package/src/foundry/client/data/collections/actors.d.mts +1 -1
  90. package/src/foundry/client/data/collections/cards.d.mts +1 -1
  91. package/src/foundry/client/data/collections/combats.d.mts +1 -1
  92. package/src/foundry/client/data/collections/compendium-collection.d.mts +5 -4
  93. package/src/foundry/client/data/collections/fog.d.mts +1 -1
  94. package/src/foundry/client/data/collections/folder.d.mts +1 -1
  95. package/src/foundry/client/data/collections/items.d.mts +1 -1
  96. package/src/foundry/client/data/collections/journal.d.mts +1 -1
  97. package/src/foundry/client/data/collections/macros.d.mts +1 -1
  98. package/src/foundry/client/data/collections/messages.d.mts +1 -1
  99. package/src/foundry/client/data/collections/playlists.d.mts +1 -1
  100. package/src/foundry/client/data/collections/scenes.d.mts +1 -1
  101. package/src/foundry/client/data/collections/settings.d.mts +1 -1
  102. package/src/foundry/client/data/collections/tables.d.mts +1 -1
  103. package/src/foundry/client/data/collections/users.d.mts +4 -4
  104. package/src/foundry/client/data/documents/active-effect.d.mts +124 -48
  105. package/src/foundry/client/data/documents/actor-delta.d.mts +53 -22
  106. package/src/foundry/client/data/documents/actor.d.mts +147 -93
  107. package/src/foundry/client/data/documents/adventure.d.mts +74 -45
  108. package/src/foundry/client/data/documents/ambient-light.d.mts +13 -10
  109. package/src/foundry/client/data/documents/ambient-sound.d.mts +12 -7
  110. package/src/foundry/client/data/documents/card.d.mts +57 -34
  111. package/src/foundry/client/data/documents/cards.d.mts +171 -135
  112. package/src/foundry/client/data/documents/chat-message.d.mts +131 -72
  113. package/src/foundry/client/data/documents/combat.d.mts +80 -60
  114. package/src/foundry/client/data/documents/combatant.d.mts +53 -20
  115. package/src/foundry/client/data/documents/drawing.d.mts +12 -7
  116. package/src/foundry/client/data/documents/fog-exploration.d.mts +57 -17
  117. package/src/foundry/client/data/documents/folder.d.mts +114 -31
  118. package/src/foundry/client/data/documents/item.d.mts +31 -21
  119. package/src/foundry/client/data/documents/journal-entry-page.d.mts +90 -57
  120. package/src/foundry/client/data/documents/journal-entry.d.mts +29 -34
  121. package/src/foundry/client/data/documents/macro.d.mts +60 -34
  122. package/src/foundry/client/data/documents/measured-template.d.mts +13 -8
  123. package/src/foundry/client/data/documents/note.d.mts +14 -7
  124. package/src/foundry/client/data/documents/playlist-sound.d.mts +29 -33
  125. package/src/foundry/client/data/documents/playlist.d.mts +74 -54
  126. package/src/foundry/client/data/documents/region-behavior.d.mts +16 -7
  127. package/src/foundry/client/data/documents/region.d.mts +53 -48
  128. package/src/foundry/client/data/documents/scene.d.mts +310 -89
  129. package/src/foundry/client/data/documents/setting.d.mts +24 -23
  130. package/src/foundry/client/data/documents/table-result.d.mts +20 -8
  131. package/src/foundry/client/data/documents/table.d.mts +19 -13
  132. package/src/foundry/client/data/documents/tile.d.mts +13 -7
  133. package/src/foundry/client/data/documents/token.d.mts +148 -117
  134. package/src/foundry/client/data/documents/user.d.mts +141 -53
  135. package/src/foundry/client/data/documents/wall.d.mts +17 -10
  136. package/src/foundry/client/game.d.mts +1 -1
  137. package/src/foundry/client/head.d.mts +1 -1
  138. package/src/foundry/client/hooks.d.mts +9 -18
  139. package/src/foundry/client/pixi/board.d.mts +3 -2
  140. package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +1 -1
  141. package/src/foundry/client/pixi/core/containers/cached-container.d.mts +1 -1
  142. package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +1 -1
  143. package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +1 -1
  144. package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +1 -1
  145. package/src/foundry/client/pixi/core/containers/quadtree.d.mts +1 -1
  146. package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +1 -1
  147. package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +1 -1
  148. package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +1 -1
  149. package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +1 -1
  150. package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +1 -1
  151. package/src/foundry/client/pixi/core/interaction/ping.d.mts +1 -1
  152. package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +1 -1
  153. package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +1 -8
  154. package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +1 -1
  155. package/src/foundry/client/pixi/core/interaction/targets.d.mts +1 -1
  156. package/src/foundry/client/pixi/core/loader.d.mts +1 -1
  157. package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +1 -1
  158. package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +1 -1
  159. package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +1 -1
  160. package/src/foundry/client/pixi/core/shapes/ray.d.mts +1 -1
  161. package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +1 -1
  162. package/src/foundry/client/pixi/extensions/circle.d.mts +1 -1
  163. package/src/foundry/client/pixi/extensions/observable-transform.d.mts +1 -1
  164. package/src/foundry/client/pixi/extensions/polygon.d.mts +1 -1
  165. package/src/foundry/client/pixi/extensions/rectangle.d.mts +1 -1
  166. package/src/foundry/client/pixi/groups/effects.d.mts +1 -1
  167. package/src/foundry/client/pixi/groups/environment.d.mts +1 -1
  168. package/src/foundry/client/pixi/groups/hidden.d.mts +1 -1
  169. package/src/foundry/client/pixi/groups/interface.d.mts +1 -1
  170. package/src/foundry/client/pixi/groups/overlay.d.mts +1 -1
  171. package/src/foundry/client/pixi/groups/primary.d.mts +1 -1
  172. package/src/foundry/client/pixi/groups/rendered.d.mts +1 -1
  173. package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +1 -1
  174. package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +1 -1
  175. package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +1 -1
  176. package/src/foundry/client/pixi/layers/controls/cursor.d.mts +1 -1
  177. package/src/foundry/client/pixi/layers/controls/door.d.mts +1 -1
  178. package/src/foundry/client/pixi/layers/controls/layer.d.mts +1 -1
  179. package/src/foundry/client/pixi/layers/controls/ruler.d.mts +1 -1
  180. package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +1 -1
  181. package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +1 -1
  182. package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +1 -1
  183. package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +1 -1
  184. package/src/foundry/client/pixi/layers/effects/visibility.d.mts +1 -1
  185. package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +1 -1
  186. package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +1 -1
  187. package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +1 -1
  188. package/src/foundry/client/pixi/layers/grid/highlight.d.mts +1 -1
  189. package/src/foundry/client/pixi/layers/grid/layer.d.mts +1 -1
  190. package/src/foundry/client/pixi/layers/grid/mesh.d.mts +1 -1
  191. package/src/foundry/client/pixi/layers/masks/depth.d.mts +1 -1
  192. package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +1 -1
  193. package/src/foundry/client/pixi/layers/masks/vision.d.mts +1 -1
  194. package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +1 -1
  195. package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +1 -1
  196. package/src/foundry/client/pixi/layers/placeables/notes.d.mts +1 -1
  197. package/src/foundry/client/pixi/layers/placeables/regions.d.mts +1 -1
  198. package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +1 -1
  199. package/src/foundry/client/pixi/layers/placeables/templates.d.mts +1 -1
  200. package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +1 -1
  201. package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +1 -1
  202. package/src/foundry/client/pixi/layers/placeables/walls.d.mts +1 -1
  203. package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +1 -1
  204. package/src/foundry/client/pixi/perception/detection-mode.d.mts +1 -1
  205. package/src/foundry/client/pixi/perception/fog.d.mts +1 -1
  206. package/src/foundry/client/pixi/perception/perception-manager.d.mts +1 -1
  207. package/src/foundry/client/pixi/perception/vision-mode.d.mts +1 -1
  208. package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +1 -1
  209. package/src/foundry/client/pixi/placeable.d.mts +2 -1
  210. package/src/foundry/client/pixi/placeables/drawing.d.mts +1 -1
  211. package/src/foundry/client/pixi/placeables/light.d.mts +1 -7
  212. package/src/foundry/client/pixi/placeables/note.d.mts +1 -1
  213. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +1 -1
  214. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +1 -1
  215. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +1 -1
  216. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +1 -1
  217. package/src/foundry/client/pixi/placeables/region.d.mts +1 -1
  218. package/src/foundry/client/pixi/placeables/sound.d.mts +1 -1
  219. package/src/foundry/client/pixi/placeables/template.d.mts +1 -1
  220. package/src/foundry/client/pixi/placeables/tile.d.mts +1 -1
  221. package/src/foundry/client/pixi/placeables/token.d.mts +1 -1
  222. package/src/foundry/client/pixi/placeables/wall.d.mts +1 -1
  223. package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +1 -1
  224. package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +1 -1
  225. package/src/foundry/client/pixi/webgl/helpers/framebuffer-snapshot.d.mts +1 -1
  226. package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +1 -1
  227. package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +1 -1
  228. package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +1 -1
  229. package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +1 -1
  230. package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +1 -1
  231. package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +1 -1
  232. package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +1 -1
  233. package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +1 -1
  234. package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +1 -1
  235. package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +1 -1
  236. package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +1 -1
  237. package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +1 -1
  238. package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +1 -1
  239. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +1 -1
  240. package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +1 -1
  241. package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +1 -1
  242. package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +1 -1
  243. package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +1 -1
  244. package/src/foundry/client/pixi/workers/texture-worker.d.mts +1 -1
  245. package/src/foundry/client/ui/context.d.mts +1 -1
  246. package/src/foundry/client/ui/dialog.d.mts +1 -1
  247. package/src/foundry/client/ui/dragdrop.d.mts +1 -1
  248. package/src/foundry/client/ui/editor.d.mts +1 -1
  249. package/src/foundry/client/ui/filepicker.d.mts +1 -1
  250. package/src/foundry/client/ui/filter.d.mts +1 -1
  251. package/src/foundry/client-esm/applications/api/application.d.mts +1 -9
  252. package/src/foundry/client-esm/applications/api/dialog.d.mts +1 -1
  253. package/src/foundry/client-esm/applications/api/document-sheet.d.mts +1 -1
  254. package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +1 -1
  255. package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +1 -1
  256. package/src/foundry/client-esm/applications/apps/permission-config.d.mts +1 -1
  257. package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +1 -1
  258. package/src/foundry/client-esm/applications/forms/fields.d.mts +1 -1
  259. package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +1 -1
  260. package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +1 -1
  261. package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +1 -1
  262. package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +1 -1
  263. package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +1 -1
  264. package/src/foundry/client-esm/applications/sheets/region-config.d.mts +1 -1
  265. package/src/foundry/client-esm/applications/sheets/user-config.d.mts +1 -1
  266. package/src/foundry/client-esm/applications/ui/region-legend.d.mts +1 -1
  267. package/src/foundry/client-esm/audio/biquad.d.mts +1 -1
  268. package/src/foundry/client-esm/audio/convolver.d.mts +1 -1
  269. package/src/foundry/client-esm/audio/helper.d.mts +1 -1
  270. package/src/foundry/client-esm/audio/sound.d.mts +2 -2
  271. package/src/foundry/client-esm/canvas/edges/collision.d.mts +1 -1
  272. package/src/foundry/client-esm/canvas/edges/edge.d.mts +1 -1
  273. package/src/foundry/client-esm/canvas/edges/vertex.d.mts +1 -1
  274. package/src/foundry/client-esm/canvas/scene-manager.d.mts +1 -1
  275. package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +1 -1
  276. package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +1 -1
  277. package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +1 -1
  278. package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +1 -1
  279. package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +1 -1
  280. package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +1 -1
  281. package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +1 -1
  282. package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +1 -1
  283. package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +1 -1
  284. package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +1 -1
  285. package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +3 -2
  286. package/src/foundry/client-esm/canvas/tokens/ring.d.mts +1 -1
  287. package/src/foundry/client-esm/data/client-backend.d.mts +1 -1
  288. package/src/foundry/client-esm/data/region-behaviors/adjust-darkness-level.d.mts +4 -5
  289. package/src/foundry/client-esm/data/region-behaviors/base.d.mts +1 -1
  290. package/src/foundry/client-esm/data/region-behaviors/display-scrolling-text.d.mts +1 -1
  291. package/src/foundry/client-esm/data/region-behaviors/toggle-behavior.d.mts +4 -4
  292. package/src/foundry/client-esm/dice/roll.d.mts +5 -8
  293. package/src/foundry/client-esm/dice/terms/coin.d.mts +1 -1
  294. package/src/foundry/client-esm/dice/terms/dice.d.mts +1 -1
  295. package/src/foundry/client-esm/dice/terms/die.d.mts +1 -1
  296. package/src/foundry/client-esm/dice/terms/fate.d.mts +1 -1
  297. package/src/foundry/client-esm/dice/terms/function.d.mts +1 -1
  298. package/src/foundry/client-esm/dice/terms/numeric.d.mts +1 -1
  299. package/src/foundry/client-esm/dice/terms/operator.d.mts +1 -1
  300. package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +1 -1
  301. package/src/foundry/client-esm/dice/terms/pool.d.mts +1 -1
  302. package/src/foundry/client-esm/dice/terms/string.d.mts +1 -1
  303. package/src/foundry/client-esm/dice/terms/term.d.mts +1 -1
  304. package/src/foundry/common/abstract/backend.d.mts +1 -1
  305. package/src/foundry/common/abstract/data.d.mts +197 -146
  306. package/src/foundry/common/abstract/document.d.mts +198 -81
  307. package/src/foundry/common/abstract/embedded-collection-delta.d.mts +1 -1
  308. package/src/foundry/common/abstract/embedded-collection.d.mts +1 -1
  309. package/src/foundry/common/abstract/socket.d.mts +1 -1
  310. package/src/foundry/common/abstract/type-data.d.mts +4 -1
  311. package/src/foundry/common/config.d.mts +7 -1
  312. package/src/foundry/common/constants.d.mts +1 -1
  313. package/src/foundry/common/data/data.d.mts +42 -12
  314. package/src/foundry/common/data/fields.d.mts +656 -252
  315. package/src/foundry/common/documents/_types.d.mts +0 -6
  316. package/src/foundry/common/documents/active-effect.d.mts +116 -53
  317. package/src/foundry/common/documents/actor-delta.d.mts +139 -58
  318. package/src/foundry/common/documents/actor.d.mts +105 -51
  319. package/src/foundry/common/documents/adventure.d.mts +84 -39
  320. package/src/foundry/common/documents/ambient-light.d.mts +66 -38
  321. package/src/foundry/common/documents/ambient-sound.d.mts +66 -38
  322. package/src/foundry/common/documents/card.d.mts +100 -59
  323. package/src/foundry/common/documents/cards.d.mts +97 -42
  324. package/src/foundry/common/documents/chat-message.d.mts +105 -52
  325. package/src/foundry/common/documents/combat.d.mts +101 -48
  326. package/src/foundry/common/documents/combatant.d.mts +94 -50
  327. package/src/foundry/common/documents/drawing.d.mts +87 -46
  328. package/src/foundry/common/documents/fog-exploration.d.mts +87 -41
  329. package/src/foundry/common/documents/folder.d.mts +100 -46
  330. package/src/foundry/common/documents/item.d.mts +116 -45
  331. package/src/foundry/common/documents/journal-entry-page.d.mts +90 -40
  332. package/src/foundry/common/documents/journal-entry.d.mts +90 -39
  333. package/src/foundry/common/documents/macro.d.mts +116 -52
  334. package/src/foundry/common/documents/measured-template.d.mts +80 -44
  335. package/src/foundry/common/documents/note.d.mts +75 -39
  336. package/src/foundry/common/documents/playlist-sound.d.mts +88 -47
  337. package/src/foundry/common/documents/playlist.d.mts +101 -50
  338. package/src/foundry/common/documents/region-behavior.d.mts +71 -40
  339. package/src/foundry/common/documents/region.d.mts +68 -40
  340. package/src/foundry/common/documents/roll-table.d.mts +43 -9
  341. package/src/foundry/common/documents/scene.d.mts +190 -43
  342. package/src/foundry/common/documents/setting.d.mts +98 -42
  343. package/src/foundry/common/documents/table-result.d.mts +98 -48
  344. package/src/foundry/common/documents/tile.d.mts +77 -43
  345. package/src/foundry/common/documents/token.d.mts +95 -52
  346. package/src/foundry/common/documents/user.d.mts +100 -89
  347. package/src/foundry/common/documents/wall.d.mts +47 -17
  348. package/src/foundry/common/grid/base.d.mts +1 -1
  349. package/src/foundry/common/grid/gridless.d.mts +1 -1
  350. package/src/foundry/common/grid/hexagonal.d.mts +1 -1
  351. package/src/foundry/common/grid/square.d.mts +1 -1
  352. package/src/foundry/common/packages/base-package.d.mts +37 -14
  353. package/src/foundry/common/packages/base-system.d.mts +39 -0
  354. package/src/foundry/common/packages/base-world.d.mts +8 -1
  355. package/src/foundry/common/packages/sub-types.d.mts +3 -5
  356. package/src/foundry/common/primitives/array.d.mts +1 -1
  357. package/src/foundry/common/primitives/string.d.mts +1 -1
  358. package/src/foundry/common/prosemirror/dirty-plugin.d.mts +1 -1
  359. package/src/foundry/common/prosemirror/dom-parser.d.mts +1 -1
  360. package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +1 -1
  361. package/src/foundry/common/prosemirror/image-plugin.d.mts +1 -1
  362. package/src/foundry/common/prosemirror/paste-transformer.d.mts +1 -1
  363. package/src/foundry/common/prosemirror/plugin.d.mts +1 -1
  364. package/src/foundry/common/types.d.mts +1 -1
  365. package/src/foundry/common/utils/bitmask.d.mts +1 -1
  366. package/src/foundry/common/utils/collection.d.mts +1 -1
  367. package/src/foundry/common/utils/event-emitter.d.mts +1 -1
  368. package/src/foundry/common/utils/helpers.d.mts +1 -1
  369. package/src/foundry/public/scripts/clipper/clipper.d.mts +1 -1
  370. package/src/types/augments/particles.d.mts +1 -1
  371. package/src/types/augments/pixi.d.mts +1 -1
  372. package/src/types/augments/smooth.d.mts +1 -1
  373. package/src/types/augments/tinyMCE.d.mts +1 -1
  374. package/src/types/config.d.mts +2 -5
  375. package/src/types/documentConfiguration.d.mts +1 -1
  376. package/src/types/lib.d.mts +1 -1
  377. package/src/types/workers/image-compressor.d.mts +1 -1
@@ -1,7 +1,6 @@
1
- import type { AnyMutableObject, AnyObject, InexactPartial } from "fvtt-types/utils";
1
+ import type { AnyMutableObject } from "#utils";
2
2
  import type DataModel from "../abstract/data.d.mts";
3
3
  import type Document from "../abstract/document.d.mts";
4
- import type * as CONST from "../constants.mts";
5
4
  import type { SchemaField } from "../data/fields.d.mts";
6
5
  import type { LogCompatibilityWarningOptions } from "../utils/logging.d.mts";
7
6
 
@@ -30,31 +29,64 @@ declare abstract class BaseMacro<out _SubType extends BaseMacro.SubType = BaseMa
30
29
  */
31
30
  constructor(...args: Macro.ConstructorArgs);
32
31
 
32
+ /**
33
+ * @defaultValue
34
+ * ```js
35
+ * mergeObject(super.metadata, {
36
+ * name: "Macro",
37
+ * collection: "macros",
38
+ * indexed: true,
39
+ * compendiumIndexFields: ["_id", "name", "img", "sort", "folder"],
40
+ * label: "DOCUMENT.Macro",
41
+ * labelPlural: "DOCUMENT.Macros",
42
+ * coreTypes: Object.values(CONST.MACRO_TYPES),
43
+ * permissions: {
44
+ * create: this.#canCreate,
45
+ * update: this.#canUpdate
46
+ * },
47
+ * schemaVersion: "12.324"
48
+ * })
49
+ * ```
50
+ */
33
51
  static override metadata: BaseMacro.Metadata;
34
52
 
35
53
  static override defineSchema(): BaseMacro.Schema;
36
54
 
37
55
  /**
38
56
  * The default icon used for newly created Macro documents.
57
+ * @defaultValue `"icons/svg/dice-target.svg"`
39
58
  */
40
- static DEFAULT_ICON: "icons/svg/dice-target.svg";
59
+ static DEFAULT_ICON: string;
41
60
 
61
+ /**
62
+ * @remarks
63
+ * Migrations:
64
+ * - `flags.core.sourceId` to `_stats.compendiumSource` (since v12, no specified end)
65
+ */
42
66
  static override migrateData(source: AnyMutableObject): AnyMutableObject;
43
67
 
68
+ /**
69
+ * @remarks
70
+ * @throws If `data.command` doesn't pass {@link foundry.data.fields.JavaScriptField | `JavaScriptField`} validation
71
+ */
72
+ static override validateJoint(data: Macro.Source): void;
73
+
74
+ /** @remarks Returns `user.hasRole("PLAYER")` */
44
75
  static override canUserCreate(user: User.Implementation): boolean;
45
76
 
77
+ /**
78
+ * @remarks Returns `true` if `user` is the `author` of the `Macro` and `options.exact` is falsey.
79
+ * Otherwise, forwards to {@link Document.testUserPermission | `Document#testUserPermission`}
80
+ */
81
+ // options: not null (destructured)
46
82
  override testUserPermission(
47
83
  user: User.Implementation,
48
- permission: keyof typeof CONST.DOCUMENT_OWNERSHIP_LEVELS | CONST.DOCUMENT_OWNERSHIP_LEVELS,
49
- options?: InexactPartial<{
50
- /**
51
- * Require the exact permission level requested?
52
- * @defaultValue `false`
53
- */
54
- exact: boolean;
55
- }>,
84
+ permission: Document.ActionPermission,
85
+ options?: Document.TestUserPermissionOptions,
56
86
  ): boolean;
57
87
 
88
+ // _preCreate is overridden with no type changes
89
+
58
90
  /*
59
91
  * After this point these are not really overridden methods.
60
92
  * They are here because Foundry's documents are complex and have lots of edge cases.
@@ -69,37 +101,37 @@ declare abstract class BaseMacro<out _SubType extends BaseMacro.SubType = BaseMa
69
101
 
70
102
  static " fvtt_types_internal_document_name_static": "Macro";
71
103
 
72
- readonly parentCollection: Macro.ParentCollectionName | null;
104
+ override readonly parentCollection: Macro.ParentCollectionName | null;
73
105
 
74
- readonly pack: string | null;
106
+ override readonly pack: string | null;
75
107
 
76
108
  static override get implementation(): Macro.ImplementationClass;
77
109
 
78
- static get baseDocument(): typeof BaseMacro;
110
+ static override get baseDocument(): typeof BaseMacro;
79
111
 
80
- static get collectionName(): Macro.ParentCollectionName;
112
+ static override get collectionName(): Macro.ParentCollectionName;
81
113
 
82
- static get documentName(): Macro.Name;
114
+ static override get documentName(): Macro.Name;
83
115
 
84
- static get TYPES(): BaseMacro.SubType[];
116
+ static override get TYPES(): BaseMacro.SubType[];
85
117
 
86
- static get hasTypeData(): true;
118
+ static override get hasTypeData(): true;
87
119
 
88
- static get hierarchy(): Macro.Hierarchy;
120
+ static override get hierarchy(): Macro.Hierarchy;
89
121
 
90
122
  override parent: BaseMacro.Parent;
91
123
 
92
- static createDocuments<Temporary extends boolean | undefined = false>(
124
+ static override createDocuments<Temporary extends boolean | undefined = false>(
93
125
  data: Array<Macro.Implementation | Macro.CreateData> | undefined,
94
126
  operation?: Document.Database.CreateOperation<Macro.Database.Create<Temporary>>,
95
127
  ): Promise<Array<Document.TemporaryIf<Macro.Implementation, Temporary>>>;
96
128
 
97
- static updateDocuments(
129
+ static override updateDocuments(
98
130
  updates: Macro.UpdateData[] | undefined,
99
131
  operation?: Document.Database.UpdateDocumentsOperation<Macro.Database.Update>,
100
132
  ): Promise<Macro.Implementation[]>;
101
133
 
102
- static deleteDocuments(
134
+ static override deleteDocuments(
103
135
  ids: readonly string[] | undefined,
104
136
  operation?: Document.Database.DeleteDocumentsOperation<Macro.Database.Delete>,
105
137
  ): Promise<Macro.Implementation[]>;
@@ -139,110 +171,142 @@ declare abstract class BaseMacro<out _SubType extends BaseMacro.SubType = BaseMa
139
171
  key: Key,
140
172
  ): Promise<this>;
141
173
 
142
- protected _preCreate(
174
+ protected override _preCreate(
143
175
  data: Macro.CreateData,
144
176
  options: Macro.Database.PreCreateOptions,
145
177
  user: User.Implementation,
146
178
  ): Promise<boolean | void>;
147
179
 
148
- protected _onCreate(data: Macro.CreateData, options: Macro.Database.OnCreateOperation, userId: string): void;
180
+ protected override _onCreate(data: Macro.CreateData, options: Macro.Database.OnCreateOperation, userId: string): void;
149
181
 
150
- protected static _preCreateOperation(
182
+ protected static override _preCreateOperation(
151
183
  documents: Macro.Implementation[],
152
184
  operation: Document.Database.PreCreateOperationStatic<Macro.Database.Create>,
153
185
  user: User.Implementation,
154
186
  ): Promise<boolean | void>;
155
187
 
156
- protected static _onCreateOperation(
188
+ protected static override _onCreateOperation(
157
189
  documents: Macro.Implementation[],
158
190
  operation: Macro.Database.Create,
159
191
  user: User.Implementation,
160
192
  ): Promise<void>;
161
193
 
162
- protected _preUpdate(
194
+ protected override _preUpdate(
163
195
  changed: Macro.UpdateData,
164
196
  options: Macro.Database.PreUpdateOptions,
165
197
  user: User.Implementation,
166
198
  ): Promise<boolean | void>;
167
199
 
168
- protected _onUpdate(changed: Macro.UpdateData, options: Macro.Database.OnUpdateOperation, userId: string): void;
200
+ protected override _onUpdate(
201
+ changed: Macro.UpdateData,
202
+ options: Macro.Database.OnUpdateOperation,
203
+ userId: string,
204
+ ): void;
169
205
 
170
- protected static _preUpdateOperation(
206
+ protected static override _preUpdateOperation(
171
207
  documents: Macro.Implementation[],
172
208
  operation: Macro.Database.Update,
173
209
  user: User.Implementation,
174
210
  ): Promise<boolean | void>;
175
211
 
176
- protected static _onUpdateOperation(
212
+ protected static override _onUpdateOperation(
177
213
  documents: Macro.Implementation[],
178
214
  operation: Macro.Database.Update,
179
215
  user: User.Implementation,
180
216
  ): Promise<void>;
181
217
 
182
- protected _preDelete(options: Macro.Database.PreDeleteOptions, user: User.Implementation): Promise<boolean | void>;
218
+ protected override _preDelete(
219
+ options: Macro.Database.PreDeleteOptions,
220
+ user: User.Implementation,
221
+ ): Promise<boolean | void>;
183
222
 
184
- protected _onDelete(options: Macro.Database.OnDeleteOperation, userId: string): void;
223
+ protected override _onDelete(options: Macro.Database.OnDeleteOperation, userId: string): void;
185
224
 
186
- protected static _preDeleteOperation(
225
+ protected static override _preDeleteOperation(
187
226
  documents: Macro.Implementation[],
188
227
  operation: Macro.Database.Delete,
189
228
  user: User.Implementation,
190
229
  ): Promise<boolean | void>;
191
230
 
192
- protected static _onDeleteOperation(
231
+ protected static override _onDeleteOperation(
193
232
  documents: Macro.Implementation[],
194
233
  operation: Macro.Database.Delete,
195
234
  user: User.Implementation,
196
235
  ): Promise<void>;
197
236
 
198
- static get hasSystemData(): true;
237
+ static override get hasSystemData(): true;
199
238
 
200
239
  // These data field things have been ticketed but will probably go into backlog hell for a while.
201
240
  // We'll end up copy and pasting without modification for now I think. It makes it a tiny bit easier to update though.
202
- protected static _addDataFieldShims(data: AnyObject, shims: AnyObject, options?: Document.DataFieldShimOptions): void;
203
241
 
204
- protected static _addDataFieldMigration(
205
- data: AnyObject,
242
+ // options: not null (parameter default only in _addDataFieldShim)
243
+ protected static override _addDataFieldShims(
244
+ data: AnyMutableObject,
245
+ shims: Record<string, string>,
246
+ options?: Document.DataFieldShimOptions,
247
+ ): void;
248
+
249
+ // options: not null (parameter default only)
250
+ protected static override _addDataFieldShim(
251
+ data: AnyMutableObject,
252
+ oldKey: string,
253
+ newKey: string,
254
+ options?: Document.DataFieldShimOptions,
255
+ ): void;
256
+
257
+ protected static override _addDataFieldMigration(
258
+ data: AnyMutableObject,
206
259
  oldKey: string,
207
260
  newKey: string,
208
- apply?: (data: AnyObject) => unknown,
209
- ): unknown;
261
+ apply?: ((data: AnyMutableObject) => unknown) | null,
262
+ ): boolean;
210
263
 
211
- protected static _logDataFieldMigration(
264
+ // options: not null (destructured where forwarded)
265
+ protected static override _logDataFieldMigration(
212
266
  oldKey: string,
213
267
  newKey: string,
214
268
  options?: LogCompatibilityWarningOptions,
215
269
  ): void;
216
270
 
217
- protected static _onCreateDocuments(
271
+ /**
272
+ * @deprecated since v12, will be removed in v14
273
+ * @remarks "The `Document._onCreateDocuments` static method is deprecated in favor of {@link Document._onCreateOperation | `Document._onCreateOperation`}"
274
+ */
275
+ protected static override _onCreateDocuments(
218
276
  documents: Macro.Implementation[],
219
277
  context: Document.ModificationContext<Macro.Parent>,
220
278
  ): Promise<void>;
221
279
 
222
- protected static _onUpdateDocuments(
280
+ /**
281
+ * @deprecated since v12, will be removed in v14
282
+ * @remarks "The `Document._onUpdateDocuments` static method is deprecated in favor of {@link Document._onUpdateOperation | `Document._onUpdateOperation`}"
283
+ */
284
+ protected static override _onUpdateDocuments(
223
285
  documents: Macro.Implementation[],
224
286
  context: Document.ModificationContext<Macro.Parent>,
225
287
  ): Promise<void>;
226
288
 
227
- protected static _onDeleteDocuments(
289
+ /**
290
+ * @deprecated since v12, will be removed in v14
291
+ * @remarks "The `Document._onDeleteDocuments` static method is deprecated in favor of {@link Document._onDeleteOperation | `Document._onDeleteOperation`}"
292
+ */
293
+ protected static override _onDeleteDocuments(
228
294
  documents: Macro.Implementation[],
229
295
  context: Document.ModificationContext<Macro.Parent>,
230
296
  ): Promise<void>;
231
297
 
232
298
  /* DataModel overrides */
233
299
 
234
- protected static _schema: SchemaField<Macro.Schema>;
300
+ protected static override _schema: SchemaField<Macro.Schema>;
235
301
 
236
- static get schema(): SchemaField<Macro.Schema>;
302
+ static override get schema(): SchemaField<Macro.Schema>;
237
303
 
238
- static override validateJoint(data: Macro.Source): void;
239
-
240
- static override fromSource(
241
- source: Macro.CreateData,
242
- { strict, ...context }?: DataModel.FromSourceOptions,
243
- ): Macro.Implementation;
304
+ // options: not null (parameter default only, destructured in super)
305
+ static override fromSource(source: Macro.CreateData, context?: DataModel.FromSourceOptions): Macro.Implementation;
244
306
 
245
307
  static override fromJSON(json: string): Macro.Implementation;
308
+
309
+ static #BaseMacro: true;
246
310
  }
247
311
  export default BaseMacro;
248
312
 
@@ -1,4 +1,4 @@
1
- import type { AnyMutableObject, AnyObject } from "fvtt-types/utils";
1
+ import type { AnyMutableObject } from "#utils";
2
2
  import type DataModel from "../abstract/data.d.mts";
3
3
  import type Document from "../abstract/document.mts";
4
4
  import type { DataField, SchemaField } from "../data/fields.d.mts";
@@ -46,22 +46,28 @@ declare abstract class BaseMeasuredTemplate extends Document<"MeasuredTemplate",
46
46
 
47
47
  static override defineSchema(): BaseMeasuredTemplate.Schema;
48
48
 
49
+ /**
50
+ * @remarks Returns `true` if `user` is the `author` of the `MeasuredTemplate` and `options.exact` is falsey.
51
+ * Otherwise, forwards to {@link Document.testUserPermission | Document#testUserPermission`}
52
+ */
49
53
  // options: not null (destructured)
50
54
  override testUserPermission(
51
- user: User.Internal.Implementation,
52
- permission: Document.TestableOwnershipLevel,
55
+ user: User.Implementation,
56
+ permission: Document.ActionPermission,
53
57
  options?: Document.TestUserPermissionOptions,
54
58
  ): boolean;
55
59
 
56
60
  /**
57
- * @remarks Migrates:
58
- * - `user` to `author`
61
+ * @remarks
62
+ * Migrations:
63
+ * - `user` to `author` (since v12, no specified end)
59
64
  */
60
65
  static override migrateData(source: AnyMutableObject): AnyMutableObject;
61
66
 
62
67
  /**
63
- * @remarks Shims:
64
- * - `user` to `author` since v12, until v14
68
+ * @remarks
69
+ * Shims:
70
+ * - `user` to `author` (since v12, until v14)
65
71
  */
66
72
  // options: not null (destructured)
67
73
  static override shimData(data: AnyMutableObject, options?: DataModel.ShimDataOptions): AnyMutableObject;
@@ -89,37 +95,37 @@ declare abstract class BaseMeasuredTemplate extends Document<"MeasuredTemplate",
89
95
  // Same as Document for now
90
96
  protected static override _initializationOrder(): Generator<[string, DataField.Any]>;
91
97
 
92
- readonly parentCollection: MeasuredTemplateDocument.ParentCollectionName | null;
98
+ override readonly parentCollection: MeasuredTemplateDocument.ParentCollectionName | null;
93
99
 
94
- readonly pack: string | null;
100
+ override readonly pack: string | null;
95
101
 
96
102
  static override get implementation(): MeasuredTemplateDocument.ImplementationClass;
97
103
 
98
- static get baseDocument(): typeof BaseMeasuredTemplate;
104
+ static override get baseDocument(): typeof BaseMeasuredTemplate;
99
105
 
100
- static get collectionName(): MeasuredTemplateDocument.ParentCollectionName;
106
+ static override get collectionName(): MeasuredTemplateDocument.ParentCollectionName;
101
107
 
102
- static get documentName(): MeasuredTemplateDocument.Name;
108
+ static override get documentName(): MeasuredTemplateDocument.Name;
103
109
 
104
- static get TYPES(): CONST.BASE_DOCUMENT_TYPE[];
110
+ static override get TYPES(): CONST.BASE_DOCUMENT_TYPE[];
105
111
 
106
- static get hasTypeData(): undefined;
112
+ static override get hasTypeData(): undefined;
107
113
 
108
- static get hierarchy(): MeasuredTemplateDocument.Hierarchy;
114
+ static override get hierarchy(): MeasuredTemplateDocument.Hierarchy;
109
115
 
110
116
  override parent: MeasuredTemplateDocument.Parent;
111
117
 
112
- static createDocuments<Temporary extends boolean | undefined = false>(
118
+ static override createDocuments<Temporary extends boolean | undefined = false>(
113
119
  data: Array<MeasuredTemplateDocument.Implementation | MeasuredTemplateDocument.CreateData> | undefined,
114
120
  operation?: Document.Database.CreateOperation<MeasuredTemplateDocument.Database.Create<Temporary>>,
115
121
  ): Promise<Array<Document.TemporaryIf<MeasuredTemplateDocument.Implementation, Temporary>>>;
116
122
 
117
- static updateDocuments(
123
+ static override updateDocuments(
118
124
  updates: MeasuredTemplateDocument.UpdateData[] | undefined,
119
125
  operation?: Document.Database.UpdateDocumentsOperation<MeasuredTemplateDocument.Database.Update>,
120
126
  ): Promise<MeasuredTemplateDocument.Implementation[]>;
121
127
 
122
- static deleteDocuments(
128
+ static override deleteDocuments(
123
129
  ids: readonly string[] | undefined,
124
130
  operation?: Document.Database.DeleteDocumentsOperation<MeasuredTemplateDocument.Database.Delete>,
125
131
  ): Promise<MeasuredTemplateDocument.Implementation[]>;
@@ -162,119 +168,149 @@ declare abstract class BaseMeasuredTemplate extends Document<"MeasuredTemplate",
162
168
  Key extends MeasuredTemplateDocument.Flags.Key<Scope>,
163
169
  >(scope: Scope, key: Key): Promise<this>;
164
170
 
165
- protected _preCreate(
171
+ protected override _preCreate(
166
172
  data: MeasuredTemplateDocument.CreateData,
167
173
  options: MeasuredTemplateDocument.Database.PreCreateOptions,
168
174
  user: User.Implementation,
169
175
  ): Promise<boolean | void>;
170
176
 
171
- protected _onCreate(
177
+ protected override _onCreate(
172
178
  data: MeasuredTemplateDocument.CreateData,
173
179
  options: MeasuredTemplateDocument.Database.OnCreateOperation,
174
180
  userId: string,
175
181
  ): void;
176
182
 
177
- protected static _preCreateOperation(
183
+ protected static override _preCreateOperation(
178
184
  documents: MeasuredTemplateDocument.Implementation[],
179
185
  operation: Document.Database.PreCreateOperationStatic<MeasuredTemplateDocument.Database.Create>,
180
186
  user: User.Implementation,
181
187
  ): Promise<boolean | void>;
182
188
 
183
- protected static _onCreateOperation(
189
+ protected static override _onCreateOperation(
184
190
  documents: MeasuredTemplateDocument.Implementation[],
185
191
  operation: MeasuredTemplateDocument.Database.Create,
186
192
  user: User.Implementation,
187
193
  ): Promise<void>;
188
194
 
189
- protected _preUpdate(
195
+ protected override _preUpdate(
190
196
  changed: MeasuredTemplateDocument.UpdateData,
191
197
  options: MeasuredTemplateDocument.Database.PreUpdateOptions,
192
198
  user: User.Implementation,
193
199
  ): Promise<boolean | void>;
194
200
 
195
- protected _onUpdate(
201
+ protected override _onUpdate(
196
202
  changed: MeasuredTemplateDocument.UpdateData,
197
203
  options: MeasuredTemplateDocument.Database.OnUpdateOperation,
198
204
  userId: string,
199
205
  ): void;
200
206
 
201
- protected static _preUpdateOperation(
207
+ protected static override _preUpdateOperation(
202
208
  documents: MeasuredTemplateDocument.Implementation[],
203
209
  operation: MeasuredTemplateDocument.Database.Update,
204
210
  user: User.Implementation,
205
211
  ): Promise<boolean | void>;
206
212
 
207
- protected static _onUpdateOperation(
213
+ protected static override _onUpdateOperation(
208
214
  documents: MeasuredTemplateDocument.Implementation[],
209
215
  operation: MeasuredTemplateDocument.Database.Update,
210
216
  user: User.Implementation,
211
217
  ): Promise<void>;
212
218
 
213
- protected _preDelete(
219
+ protected override _preDelete(
214
220
  options: MeasuredTemplateDocument.Database.PreDeleteOptions,
215
221
  user: User.Implementation,
216
222
  ): Promise<boolean | void>;
217
223
 
218
- protected _onDelete(options: MeasuredTemplateDocument.Database.OnDeleteOperation, userId: string): void;
224
+ protected override _onDelete(options: MeasuredTemplateDocument.Database.OnDeleteOperation, userId: string): void;
219
225
 
220
- protected static _preDeleteOperation(
226
+ protected static override _preDeleteOperation(
221
227
  documents: MeasuredTemplateDocument.Implementation[],
222
228
  operation: MeasuredTemplateDocument.Database.Delete,
223
229
  user: User.Implementation,
224
230
  ): Promise<boolean | void>;
225
231
 
226
- protected static _onDeleteOperation(
232
+ protected static override _onDeleteOperation(
227
233
  documents: MeasuredTemplateDocument.Implementation[],
228
234
  operation: MeasuredTemplateDocument.Database.Delete,
229
235
  user: User.Implementation,
230
236
  ): Promise<void>;
231
237
 
232
- static get hasSystemData(): undefined;
238
+ static override get hasSystemData(): undefined;
233
239
 
234
240
  // These data field things have been ticketed but will probably go into backlog hell for a while.
235
241
  // We'll end up copy and pasting without modification for now I think. It makes it a tiny bit easier to update though.
236
- protected static _addDataFieldShims(data: AnyObject, shims: AnyObject, options?: Document.DataFieldShimOptions): void;
237
242
 
238
- protected static _addDataFieldMigration(
239
- data: AnyObject,
243
+ // options: not null (parameter default only in _addDataFieldShim)
244
+ protected static override _addDataFieldShims(
245
+ data: AnyMutableObject,
246
+ shims: Record<string, string>,
247
+ options?: Document.DataFieldShimOptions,
248
+ ): void;
249
+
250
+ // options: not null (parameter default only)
251
+ protected static override _addDataFieldShim(
252
+ data: AnyMutableObject,
240
253
  oldKey: string,
241
254
  newKey: string,
242
- apply?: (data: AnyObject) => unknown,
243
- ): unknown;
255
+ options?: Document.DataFieldShimOptions,
256
+ ): void;
244
257
 
245
- protected static _logDataFieldMigration(
258
+ protected static override _addDataFieldMigration(
259
+ data: AnyMutableObject,
260
+ oldKey: string,
261
+ newKey: string,
262
+ apply?: ((data: AnyMutableObject) => unknown) | null,
263
+ ): boolean;
264
+
265
+ // options: not null (destructured where forwarded)
266
+ protected static override _logDataFieldMigration(
246
267
  oldKey: string,
247
268
  newKey: string,
248
269
  options?: LogCompatibilityWarningOptions,
249
270
  ): void;
250
271
 
251
- protected static _onCreateDocuments(
272
+ /**
273
+ * @deprecated since v12, will be removed in v14
274
+ * @remarks "The `Document._onCreateDocuments` static method is deprecated in favor of {@link Document._onCreateOperation | `Document._onCreateOperation`}"
275
+ */
276
+ protected static override _onCreateDocuments(
252
277
  documents: MeasuredTemplateDocument.Implementation[],
253
278
  context: Document.ModificationContext<MeasuredTemplateDocument.Parent>,
254
279
  ): Promise<void>;
255
280
 
256
- protected static _onUpdateDocuments(
281
+ /**
282
+ * @deprecated since v12, will be removed in v14
283
+ * @remarks "The `Document._onUpdateDocuments` static method is deprecated in favor of {@link Document._onUpdateOperation | `Document._onUpdateOperation`}"
284
+ */
285
+ protected static override _onUpdateDocuments(
257
286
  documents: MeasuredTemplateDocument.Implementation[],
258
287
  context: Document.ModificationContext<MeasuredTemplateDocument.Parent>,
259
288
  ): Promise<void>;
260
289
 
261
- protected static _onDeleteDocuments(
290
+ /**
291
+ * @deprecated since v12, will be removed in v14
292
+ * @remarks "The `Document._onDeleteDocuments` static method is deprecated in favor of {@link Document._onDeleteOperation | `Document._onDeleteOperation`}"
293
+ */
294
+ protected static override _onDeleteDocuments(
262
295
  documents: MeasuredTemplateDocument.Implementation[],
263
296
  context: Document.ModificationContext<MeasuredTemplateDocument.Parent>,
264
297
  ): Promise<void>;
265
298
 
266
- protected static _schema: SchemaField<MeasuredTemplateDocument.Schema>;
299
+ protected static override _schema: SchemaField<MeasuredTemplateDocument.Schema>;
267
300
 
268
- static get schema(): SchemaField<MeasuredTemplateDocument.Schema>;
301
+ static override get schema(): SchemaField<MeasuredTemplateDocument.Schema>;
269
302
 
270
- static validateJoint(data: MeasuredTemplateDocument.Source): void;
303
+ static override validateJoint(data: MeasuredTemplateDocument.Source): void;
271
304
 
305
+ // options: not null (parameter default only, destructured in super)
272
306
  static override fromSource(
273
307
  source: MeasuredTemplateDocument.CreateData,
274
- { strict, ...context }?: DataModel.FromSourceOptions,
308
+ context?: DataModel.FromSourceOptions,
275
309
  ): MeasuredTemplateDocument.Implementation;
276
310
 
277
311
  static override fromJSON(json: string): MeasuredTemplateDocument.Implementation;
312
+
313
+ static #BaseMeasuredTemplate: true;
278
314
  }
279
315
 
280
316
  export default BaseMeasuredTemplate;