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