@league-of-foundry-developers/foundry-vtt-types 9.280.1 → 12.331.1-beta
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/README.md +21 -18
- package/index-lenient.d.mts +7 -0
- package/index.d.mts +5 -0
- package/package.json +67 -39
- package/src/foundry/client/apps/app.d.mts +595 -0
- package/src/foundry/client/apps/av/av-config.d.mts +93 -0
- package/src/foundry/client/apps/av/cameras.d.mts +189 -0
- package/src/foundry/client/apps/av/index.d.mts +3 -0
- package/src/foundry/client/apps/dialogs/folder-export.d.mts +16 -0
- package/src/foundry/client/apps/dialogs/index.d.mts +1 -0
- package/src/foundry/client/apps/form.d.mts +469 -0
- package/src/foundry/client/apps/forms/actor.d.mts +176 -0
- package/src/foundry/client/apps/forms/adventure-exporter.d.mts +132 -0
- package/src/foundry/client/apps/forms/adventure-importer.d.mts +85 -0
- package/src/foundry/client/apps/forms/base-sheet.d.mts +45 -0
- package/src/foundry/client/apps/forms/card-config.d.mts +48 -0
- package/src/foundry/client/apps/forms/cards-config.d.mts +141 -0
- package/src/foundry/client/apps/forms/combat-config.d.mts +51 -0
- package/src/foundry/client/apps/forms/combatant-config.d.mts +45 -0
- package/src/foundry/client/apps/forms/default-sheets-config.d.mts +46 -0
- package/src/foundry/client/apps/forms/effect-config.d.mts +77 -0
- package/src/foundry/client/apps/forms/folder-config.d.mts +60 -0
- package/src/foundry/client/apps/forms/fonts.d.mts +168 -0
- package/src/foundry/client/apps/forms/grid-config.d.mts +144 -0
- package/src/foundry/client/apps/forms/image-popout.d.mts +179 -0
- package/src/foundry/client/apps/forms/index.d.mts +26 -0
- package/src/foundry/client/apps/forms/item.d.mts +58 -0
- package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +313 -0
- package/src/foundry/client/apps/forms/journal-sheet.d.mts +312 -0
- package/src/foundry/client/apps/forms/macro-config.d.mts +59 -0
- package/src/foundry/client/apps/forms/measure-template.d.mts +59 -0
- package/src/foundry/client/apps/forms/ownership.d.mts +66 -0
- package/src/foundry/client/apps/forms/playlist-config.d.mts +46 -0
- package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +63 -0
- package/src/foundry/client/apps/forms/roll-table-config.d.mts +160 -0
- package/src/foundry/client/apps/forms/scene-config.d.mts +157 -0
- package/src/foundry/client/apps/forms/sheet-config.d.mts +202 -0
- package/src/foundry/client/apps/forms/user-config.d.mts +71 -0
- package/src/foundry/client/apps/hud/chatbubble.d.mts +113 -0
- package/src/foundry/client/apps/hud/container.d.mts +54 -0
- package/src/foundry/client/apps/hud/controls.d.mts +166 -0
- package/src/foundry/client/apps/hud/hotbar.d.mts +169 -0
- package/src/foundry/client/apps/hud/hud.d.mts +87 -0
- package/src/foundry/client/apps/hud/index.d.mts +9 -0
- package/src/foundry/client/apps/hud/menu.d.mts +77 -0
- package/src/foundry/client/apps/hud/navigation.d.mts +116 -0
- package/src/foundry/client/apps/hud/pause.d.mts +32 -0
- package/src/foundry/client/apps/hud/players.d.mts +82 -0
- package/src/foundry/client/apps/i18n.d.mts +162 -0
- package/src/foundry/client/apps/index.d.mts +10 -0
- package/src/foundry/client/apps/placeables/drawing-config.d.mts +80 -0
- package/src/foundry/client/apps/placeables/drawing-hud.d.mts +31 -0
- package/src/foundry/client/apps/placeables/index.d.mts +10 -0
- package/src/foundry/client/apps/placeables/light-config.d.mts +100 -0
- package/src/foundry/client/apps/placeables/note-config.d.mts +65 -0
- package/src/foundry/client/apps/placeables/sound-config.d.mts +43 -0
- package/src/foundry/client/apps/placeables/tile-config.d.mts +54 -0
- package/src/foundry/client/apps/placeables/tile-hud.d.mts +37 -0
- package/src/foundry/client/apps/placeables/token-config.d.mts +244 -0
- package/src/foundry/client/apps/placeables/token-hud.d.mts +134 -0
- package/src/foundry/client/apps/placeables/wall-config.d.mts +63 -0
- package/src/foundry/client/apps/sidebar/apps/chat-popout.d.mts +39 -0
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +98 -0
- package/src/foundry/client/apps/sidebar/apps/compendium.d.mts +93 -0
- package/src/foundry/client/apps/sidebar/apps/index.d.mts +10 -0
- package/src/foundry/client/apps/sidebar/apps/invitation-links.d.mts +32 -0
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +180 -0
- package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +135 -0
- package/src/foundry/client/apps/sidebar/apps/permission-config.d.mts +72 -0
- package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +121 -0
- package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +54 -0
- package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +57 -0
- package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +276 -0
- package/src/foundry/client/apps/sidebar/document-directory.d.mts +164 -0
- package/src/foundry/client/apps/sidebar/index.d.mts +7 -0
- package/src/foundry/client/apps/sidebar/package-configuration.d.mts +86 -0
- package/src/foundry/client/apps/sidebar/sidebar-tab.d.mts +80 -0
- package/src/foundry/client/apps/sidebar/sidebar.d.mts +95 -0
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +20 -0
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +12 -0
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +364 -0
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +156 -0
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +105 -0
- package/src/foundry/client/apps/sidebar/tabs/index.d.mts +12 -0
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +14 -0
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +13 -0
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +16 -0
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +275 -0
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +13 -0
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +34 -0
- package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +72 -0
- package/src/foundry/client/apps/templates.d.mts +546 -0
- package/src/foundry/client/audio/audio.d.mts +390 -0
- package/src/foundry/client/audio/container.d.mts +176 -0
- package/src/foundry/client/audio/index.d.mts +3 -0
- package/src/foundry/client/audio/sound.d.mts +307 -0
- package/src/foundry/client/av/client.d.mts +162 -0
- package/src/foundry/client/av/clients/index.d.mts +1 -0
- package/src/foundry/client/av/clients/simplepeer.d.mts +155 -0
- package/src/foundry/client/av/index.d.mts +4 -0
- package/src/foundry/client/av/master.d.mts +191 -0
- package/src/foundry/client/av/settings.d.mts +315 -0
- package/src/foundry/client/config.d.mts +2856 -0
- package/src/foundry/client/core/clipboard.d.mts +20 -0
- package/src/foundry/client/core/document-index.d.mts +118 -0
- package/src/foundry/client/core/gamepad.d.mts +62 -0
- package/src/foundry/client/core/hooks.d.mts +132 -0
- package/src/foundry/client/core/image.d.mts +190 -0
- package/src/foundry/client/core/index.d.mts +20 -0
- package/src/foundry/client/core/issues.d.mts +102 -0
- package/src/foundry/client/core/keybindings.d.mts +312 -0
- package/src/foundry/client/core/keyboard.d.mts +224 -0
- package/src/foundry/client/core/mouse.d.mts +28 -0
- package/src/foundry/client/core/nue.d.mts +38 -0
- package/src/foundry/client/core/packages.d.mts +185 -0
- package/src/foundry/client/core/settings.d.mts +260 -0
- package/src/foundry/client/core/socket.d.mts +16 -0
- package/src/foundry/client/core/sorting.d.mts +76 -0
- package/src/foundry/client/core/time.d.mts +73 -0
- package/src/foundry/client/core/tooltip.d.mts +198 -0
- package/src/foundry/client/core/tour.d.mts +279 -0
- package/src/foundry/client/core/tours.d.mts +22 -0
- package/src/foundry/client/core/utils.d.mts +71 -0
- package/src/foundry/client/core/video.d.mts +161 -0
- package/src/foundry/client/core/workers.d.mts +128 -0
- package/src/foundry/client/data/abstract/canvas-document.d.mts +63 -0
- package/src/foundry/client/data/abstract/client-document.d.mts +717 -0
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +135 -0
- package/src/foundry/client/data/abstract/document-collection.d.mts +204 -0
- package/src/foundry/client/data/abstract/index.d.mts +5 -0
- package/src/foundry/client/data/abstract/world-collection.d.mts +171 -0
- package/src/foundry/client/data/collections/actors.d.mts +41 -0
- package/src/foundry/client/data/collections/cards.d.mts +12 -0
- package/src/foundry/client/data/collections/combats.d.mts +43 -0
- package/src/foundry/client/data/collections/compendium-collection.d.mts +504 -0
- package/src/foundry/client/data/collections/compendium-folders.d.mts +13 -0
- package/src/foundry/client/data/collections/compendium-packs.d.mts +27 -0
- package/src/foundry/client/data/collections/fog.d.mts +17 -0
- package/src/foundry/client/data/collections/folder.d.mts +27 -0
- package/src/foundry/client/data/collections/index.d.mts +17 -0
- package/src/foundry/client/data/collections/items.d.mts +14 -0
- package/src/foundry/client/data/collections/journal.d.mts +62 -0
- package/src/foundry/client/data/collections/macros.d.mts +32 -0
- package/src/foundry/client/data/collections/messages.d.mts +35 -0
- package/src/foundry/client/data/collections/playlists.d.mts +34 -0
- package/src/foundry/client/data/collections/scenes.d.mts +68 -0
- package/src/foundry/client/data/collections/settings.d.mts +29 -0
- package/src/foundry/client/data/collections/tables.d.mts +21 -0
- package/src/foundry/client/data/collections/users.d.mts +50 -0
- package/src/foundry/client/data/documents/active-effect.d.mts +348 -0
- package/src/foundry/client/data/documents/actor-delta.d.mts +88 -0
- package/src/foundry/client/data/documents/actor.d.mts +301 -0
- package/src/foundry/client/data/documents/adventure.d.mts +94 -0
- package/src/foundry/client/data/documents/ambient-light.d.mts +32 -0
- package/src/foundry/client/data/documents/ambient-sound.d.mts +19 -0
- package/src/foundry/client/data/documents/card.d.mts +115 -0
- package/src/foundry/client/data/documents/cards.d.mts +342 -0
- package/src/foundry/client/data/documents/chat-message.d.mts +218 -0
- package/src/foundry/client/data/documents/combat.d.mts +315 -0
- package/src/foundry/client/data/documents/combatant.d.mts +90 -0
- package/src/foundry/client/data/documents/drawing.d.mts +24 -0
- package/src/foundry/client/data/documents/fog-exploration.d.mts +51 -0
- package/src/foundry/client/data/documents/folder.d.mts +123 -0
- package/src/foundry/client/data/documents/index.d.mts +30 -0
- package/src/foundry/client/data/documents/item.d.mts +55 -0
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +219 -0
- package/src/foundry/client/data/documents/journal-entry.d.mts +71 -0
- package/src/foundry/client/data/documents/macro.d.mts +73 -0
- package/src/foundry/client/data/documents/measured-template.d.mts +29 -0
- package/src/foundry/client/data/documents/note.d.mts +35 -0
- package/src/foundry/client/data/documents/playlist-sound.d.mts +114 -0
- package/src/foundry/client/data/documents/playlist.d.mts +196 -0
- package/src/foundry/client/data/documents/scene.d.mts +228 -0
- package/src/foundry/client/data/documents/setting.d.mts +43 -0
- package/src/foundry/client/data/documents/table-result.d.mts +29 -0
- package/src/foundry/client/data/documents/table.d.mts +310 -0
- package/src/foundry/client/data/documents/tile.d.mts +21 -0
- package/src/foundry/client/data/documents/token.d.mts +342 -0
- package/src/foundry/client/data/documents/user.d.mts +153 -0
- package/src/foundry/client/data/documents/wall.d.mts +19 -0
- package/src/foundry/client/data/index.d.mts +3 -0
- package/src/foundry/client/game.d.mts +702 -0
- package/src/foundry/client/head.d.mts +87 -0
- package/src/foundry/client/hooks.d.mts +1184 -0
- package/src/foundry/client/index.d.mts +13 -0
- package/src/foundry/client/pixi/board.d.mts +927 -0
- package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +83 -0
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +116 -0
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +35 -0
- package/src/foundry/client/pixi/core/containers/index.d.mts +8 -0
- package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +62 -0
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +43 -0
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +199 -0
- package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +326 -0
- package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +21 -0
- package/src/foundry/client/pixi/core/index.d.mts +4 -0
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +160 -0
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +80 -0
- package/src/foundry/client/pixi/core/interaction/index.d.mts +8 -0
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +264 -0
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +58 -0
- package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +73 -0
- package/src/foundry/client/pixi/core/interaction/pings/index.d.mts +2 -0
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +115 -0
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +103 -0
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +52 -0
- package/src/foundry/client/pixi/core/interaction/targets.d.mts +45 -0
- package/src/foundry/client/pixi/core/loader.d.mts +206 -0
- package/src/foundry/client/pixi/core/shapes/index.d.mts +6 -0
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +119 -0
- package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.mts +31 -0
- package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +110 -0
- package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +27 -0
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +165 -0
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +251 -0
- package/src/foundry/client/pixi/extensions/circle.d.mts +130 -0
- package/src/foundry/client/pixi/extensions/index.d.mts +3 -0
- package/src/foundry/client/pixi/extensions/polygon.d.mts +152 -0
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +226 -0
- package/src/foundry/client/pixi/groups/effects.d.mts +189 -0
- package/src/foundry/client/pixi/groups/environment.d.mts +80 -0
- package/src/foundry/client/pixi/groups/hidden.d.mts +40 -0
- package/src/foundry/client/pixi/groups/index.d.mts +7 -0
- package/src/foundry/client/pixi/groups/interface.d.mts +74 -0
- package/src/foundry/client/pixi/groups/overlay.d.mts +18 -0
- package/src/foundry/client/pixi/groups/primary.d.mts +207 -0
- package/src/foundry/client/pixi/groups/rendered.d.mts +18 -0
- package/src/foundry/client/pixi/index.d.mts +10 -0
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +79 -0
- package/src/foundry/client/pixi/layers/base/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +139 -0
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +598 -0
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +27 -0
- package/src/foundry/client/pixi/layers/controls/door.d.mts +70 -0
- package/src/foundry/client/pixi/layers/controls/hud.d.mts +114 -0
- package/src/foundry/client/pixi/layers/controls/index.d.mts +5 -0
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +229 -0
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +316 -0
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +34 -0
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +27 -0
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +74 -0
- package/src/foundry/client/pixi/layers/effects/index.d.mts +6 -0
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +194 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +47 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/index.d.mts +2 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +20 -0
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +172 -0
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +32 -0
- package/src/foundry/client/pixi/layers/grid/index.d.mts +2 -0
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +225 -0
- package/src/foundry/client/pixi/layers/index.d.mts +6 -0
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +37 -0
- package/src/foundry/client/pixi/layers/masks/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +55 -0
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +85 -0
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +92 -0
- package/src/foundry/client/pixi/layers/placeables/index.d.mts +8 -0
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +137 -0
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +99 -0
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +129 -0
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +60 -0
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +114 -0
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +180 -0
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +210 -0
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +169 -0
- package/src/foundry/client/pixi/perception/color-manager.d.mts +86 -0
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +196 -0
- package/src/foundry/client/pixi/perception/fog.d.mts +102 -0
- package/src/foundry/client/pixi/perception/index.d.mts +7 -0
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +166 -0
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +197 -0
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +152 -0
- package/src/foundry/client/pixi/placeable.d.mts +586 -0
- package/src/foundry/client/pixi/placeables/drawing.d.mts +292 -0
- package/src/foundry/client/pixi/placeables/index.d.mts +9 -0
- package/src/foundry/client/pixi/placeables/light.d.mts +140 -0
- package/src/foundry/client/pixi/placeables/note.d.mts +114 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/drawing-shape.d.mts +143 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/index.d.mts +5 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/occludable-object.d.mts +175 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +159 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/tile-mesh.d.mts +52 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/token-mesh.d.mts +62 -0
- package/src/foundry/client/pixi/placeables/sound.d.mts +133 -0
- package/src/foundry/client/pixi/placeables/template.d.mts +211 -0
- package/src/foundry/client/pixi/placeables/tile.d.mts +284 -0
- package/src/foundry/client/pixi/placeables/token.d.mts +825 -0
- package/src/foundry/client/pixi/placeables/wall.d.mts +275 -0
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +60 -0
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +21 -0
- package/src/foundry/client/pixi/webgl/extensions/blend-modes.d.mts +53 -0
- package/src/foundry/client/pixi/webgl/extensions/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/helpers/framebugger-snapshot.d.mts +22 -0
- package/src/foundry/client/pixi/webgl/helpers/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +61 -0
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +80 -0
- package/src/foundry/client/pixi/webgl/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/base.d.mts +691 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/lighting.d.mts +642 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/vision.d.mts +216 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/base.d.mts +102 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/effect.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/fog.d.mts +34 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/index.d.mts +5 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/rain.d.mts +24 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/snow.d.mts +20 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +163 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/filters.d.mts +462 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/fxaa.d.mts +74 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/index.d.mts +4 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +101 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +16 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/index.d.mts +6 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/inverse-occlusion.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/invisibility.d.mts +28 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/monochromatic.d.mts +30 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +69 -0
- package/src/foundry/client/pixi/workers/index.d.mts +1 -0
- package/src/foundry/client/pixi/workers/texture-worker.d.mts +125 -0
- package/src/foundry/client/tours/canvas-tour.d.mts +9 -0
- package/src/foundry/client/tours/index.d.mts +3 -0
- package/src/foundry/client/tours/setup-tour.d.mts +26 -0
- package/src/foundry/client/tours/sidebar-tour.d.mts +9 -0
- package/src/foundry/client/ui/context.d.mts +213 -0
- package/src/foundry/client/ui/dialog.d.mts +326 -0
- package/src/foundry/client/ui/drag.d.mts +128 -0
- package/src/foundry/client/ui/dragdrop.d.mts +124 -0
- package/src/foundry/client/ui/editor.d.mts +546 -0
- package/src/foundry/client/ui/filepicker.d.mts +477 -0
- package/src/foundry/client/ui/filter.d.mts +148 -0
- package/src/foundry/client/ui/forms.d.mts +85 -0
- package/src/foundry/client/ui/index.d.mts +12 -0
- package/src/foundry/client/ui/notifications.d.mts +136 -0
- package/src/foundry/client/ui/prosemirror.d.mts +171 -0
- package/src/foundry/client/ui/secrets.d.mts +75 -0
- package/src/foundry/client/ui/tabs.d.mts +117 -0
- package/src/foundry/client-esm/applications/_module.d.mts +25 -0
- package/src/foundry/client-esm/applications/_types.d.mts +38 -0
- package/src/foundry/client-esm/applications/api/_module.d.mts +9 -0
- package/src/foundry/client-esm/applications/api/application.d.mts +705 -0
- package/src/foundry/client-esm/applications/api/dialog.d.mts +268 -0
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +119 -0
- package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +180 -0
- package/src/foundry/client-esm/applications/apps/_module.d.mts +7 -0
- package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +53 -0
- package/src/foundry/client-esm/applications/apps/permission-config.d.mts +60 -0
- package/src/foundry/client-esm/applications/dice/_module.d.mts +6 -0
- package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +98 -0
- package/src/foundry/client-esm/applications/elements/_module.d.mts +16 -0
- package/src/foundry/client-esm/applications/elements/color-picker.d.mts +26 -0
- package/src/foundry/client-esm/applications/elements/document-tags.d.mts +90 -0
- package/src/foundry/client-esm/applications/elements/file-picker.d.mts +62 -0
- package/src/foundry/client-esm/applications/elements/form-element.d.mts +106 -0
- package/src/foundry/client-esm/applications/elements/hue-slider.d.mts +20 -0
- package/src/foundry/client-esm/applications/elements/multi-select.d.mts +95 -0
- package/src/foundry/client-esm/applications/elements/prosemirror-editor.d.mts +53 -0
- package/src/foundry/client-esm/applications/elements/range-picker.d.mts +41 -0
- package/src/foundry/client-esm/applications/elements/string-tags.d.mts +73 -0
- package/src/foundry/client-esm/applications/forms/fields.d.mts +219 -0
- package/src/foundry/client-esm/applications/sheets/_module.d.mts +12 -0
- package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +31 -0
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +22 -0
- package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +13 -0
- package/src/foundry/client-esm/applications/sheets/region-config.d.mts +13 -0
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/ui/_module.d.mts +6 -0
- package/src/foundry/client-esm/applications/ui/region-legend.d.mts +12 -0
- package/src/foundry/client-esm/audio/_module.d.mts +13 -0
- package/src/foundry/client-esm/audio/_types.d.mts +1 -0
- package/src/foundry/client-esm/canvas/_module.d.mts +11 -0
- package/src/foundry/client-esm/canvas/edges/_module.d.mts +9 -0
- package/src/foundry/client-esm/canvas/edges/collision.d.mts +93 -0
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +184 -0
- package/src/foundry/client-esm/canvas/edges/edges.d.mts +23 -0
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +134 -0
- package/src/foundry/client-esm/canvas/regions/_module.d.mts +10 -0
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +1 -0
- package/src/foundry/client-esm/canvas/smaa/blend.d.mts +6 -0
- package/src/foundry/client-esm/canvas/smaa/edges.d.mts +6 -0
- package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +56 -0
- package/src/foundry/client-esm/canvas/smaa/weights.d.mts +6 -0
- package/src/foundry/client-esm/canvas/sources/_module.d.mts +15 -0
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +243 -0
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +162 -0
- package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +47 -0
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +77 -0
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +91 -0
- package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +43 -0
- package/src/foundry/client-esm/canvas/sources/point-movement-source.d.mts +15 -0
- package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +29 -0
- package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +206 -0
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +328 -0
- package/src/foundry/client-esm/canvas/tokens/_module.d.mts +7 -0
- package/src/foundry/client-esm/client.d.mts +291 -0
- package/src/foundry/client-esm/data/_module.d.mts +8 -0
- package/src/foundry/client-esm/data/client-backend.d.mts +52 -0
- package/src/foundry/client-esm/data/region-behaviors/_module.d.mts +14 -0
- package/src/foundry/client-esm/dice/_module.d.mts +13 -0
- package/src/foundry/client-esm/dice/_types.d.mts +61 -0
- package/src/foundry/client-esm/dice/parser.d.mts +205 -0
- package/src/foundry/client-esm/dice/roll.d.mts +645 -0
- package/src/foundry/client-esm/dice/terms/_module.d.mts +17 -0
- package/src/foundry/client-esm/dice/terms/coin.d.mts +68 -0
- package/src/foundry/client-esm/dice/terms/dice.d.mts +381 -0
- package/src/foundry/client-esm/dice/terms/die.d.mts +241 -0
- package/src/foundry/client-esm/dice/terms/fate.d.mts +50 -0
- package/src/foundry/client-esm/dice/terms/function.d.mts +104 -0
- package/src/foundry/client-esm/dice/terms/numeric.d.mts +56 -0
- package/src/foundry/client-esm/dice/terms/operator.d.mts +55 -0
- package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +105 -0
- package/src/foundry/client-esm/dice/terms/pool.d.mts +278 -0
- package/src/foundry/client-esm/dice/terms/string.d.mts +34 -0
- package/src/foundry/client-esm/dice/terms/term.d.mts +160 -0
- package/src/foundry/client-esm/dice/twister.d.mts +134 -0
- package/src/foundry/client-esm/helpers/_module.d.mts +8 -0
- package/src/foundry/client-esm/helpers/_types.d.mts +51 -0
- package/src/foundry/client-esm/helpers/compendium-art.d.mts +47 -0
- package/src/foundry/clipper/clipper.d.mts +927 -0
- package/src/foundry/clipper/index.d.mts +1 -0
- package/src/foundry/common/abstract/_types.d.mts +274 -0
- package/src/foundry/common/abstract/backend.d.mts +190 -0
- package/src/foundry/common/abstract/data.d.mts +457 -0
- package/src/foundry/common/abstract/document.d.mts +1372 -0
- package/src/foundry/common/abstract/embedded-collection-delta.d.mts +96 -0
- package/src/foundry/common/abstract/embedded-collection.d.mts +252 -0
- package/src/foundry/common/abstract/module.d.mts +13 -0
- package/src/foundry/common/abstract/singleton-collection.d.mts +19 -0
- package/src/foundry/common/abstract/socket.d.mts +36 -0
- package/src/foundry/common/abstract/type-data.d.mts +337 -0
- package/src/foundry/common/config.d.mts +302 -0
- package/src/foundry/common/constants.d.mts +2054 -0
- package/src/foundry/common/data/data.d.mts +667 -0
- package/src/foundry/common/data/fields.d.mts +3388 -0
- package/src/foundry/common/data/module.d.mts +9 -0
- package/src/foundry/common/data/validation-failure.d.mts +174 -0
- package/src/foundry/common/data/validators.d.mts +30 -0
- package/src/foundry/common/documents/_module.d.mts +35 -0
- package/src/foundry/common/documents/_types.d.mts +143 -0
- package/src/foundry/common/documents/active-effect.d.mts +229 -0
- package/src/foundry/common/documents/actor-delta.d.mts +132 -0
- package/src/foundry/common/documents/actor.d.mts +209 -0
- package/src/foundry/common/documents/adventure.d.mts +212 -0
- package/src/foundry/common/documents/ambient-light.d.mts +107 -0
- package/src/foundry/common/documents/ambient-sound.d.mts +142 -0
- package/src/foundry/common/documents/card.d.mts +254 -0
- package/src/foundry/common/documents/cards.d.mts +191 -0
- package/src/foundry/common/documents/chat-message.d.mts +208 -0
- package/src/foundry/common/documents/combat.d.mts +124 -0
- package/src/foundry/common/documents/combatant.d.mts +127 -0
- package/src/foundry/common/documents/drawing.d.mts +255 -0
- package/src/foundry/common/documents/fog-exploration.d.mts +110 -0
- package/src/foundry/common/documents/folder.d.mts +130 -0
- package/src/foundry/common/documents/item.d.mts +181 -0
- package/src/foundry/common/documents/journal-entry-page.d.mts +229 -0
- package/src/foundry/common/documents/journal-entry.d.mts +133 -0
- package/src/foundry/common/documents/macro.d.mts +190 -0
- package/src/foundry/common/documents/measured-template.d.mts +183 -0
- package/src/foundry/common/documents/module.d.mts +35 -0
- package/src/foundry/common/documents/note.d.mts +195 -0
- package/src/foundry/common/documents/playlist-sound.d.mts +131 -0
- package/src/foundry/common/documents/playlist.d.mts +160 -0
- package/src/foundry/common/documents/roll-table.d.mts +153 -0
- package/src/foundry/common/documents/scene.d.mts +395 -0
- package/src/foundry/common/documents/setting.d.mts +88 -0
- package/src/foundry/common/documents/table-result.d.mts +157 -0
- package/src/foundry/common/documents/tile.d.mts +204 -0
- package/src/foundry/common/documents/token.d.mts +515 -0
- package/src/foundry/common/documents/user.d.mts +247 -0
- package/src/foundry/common/documents/wall.d.mts +196 -0
- package/src/foundry/common/grid/_module.d.mts +10 -0
- package/src/foundry/common/grid/base.d.mts +640 -0
- package/src/foundry/common/grid/grid-hex.d.mts +55 -0
- package/src/foundry/common/grid/gridless.d.mts +71 -0
- package/src/foundry/common/grid/hexagonal.d.mts +391 -0
- package/src/foundry/common/grid/square.d.mts +100 -0
- package/src/foundry/common/packages/base-module.d.mts +46 -0
- package/src/foundry/common/packages/base-package.d.mts +677 -0
- package/src/foundry/common/packages/base-system.d.mts +90 -0
- package/src/foundry/common/packages/base-world.d.mts +116 -0
- package/src/foundry/common/packages/module.d.mts +28 -0
- package/src/foundry/common/packages/sub-types.d.mts +42 -0
- package/src/foundry/common/primitives/array.d.mts +56 -0
- package/src/foundry/common/primitives/date.d.mts +24 -0
- package/src/foundry/common/primitives/math.d.mts +103 -0
- package/src/foundry/common/primitives/module.d.mts +8 -0
- package/src/foundry/common/primitives/number.d.mts +91 -0
- package/src/foundry/common/primitives/regex.d.mts +12 -0
- package/src/foundry/common/primitives/regexp.d.mts +12 -0
- package/src/foundry/common/primitives/set.d.mts +105 -0
- package/src/foundry/common/primitives/string.d.mts +58 -0
- package/src/foundry/common/primitives/url.d.mts +18 -0
- package/src/foundry/common/prosemirror/_module.d.mts +82 -0
- package/src/foundry/common/prosemirror/click-handler.d.mts +34 -0
- package/src/foundry/common/prosemirror/content-link-plugin.d.mts +47 -0
- package/src/foundry/common/prosemirror/dirty-plugin.d.mts +13 -0
- package/src/foundry/common/prosemirror/dom-parser.d.mts +9 -0
- package/src/foundry/common/prosemirror/dropdown.d.mts +65 -0
- package/src/foundry/common/prosemirror/extensions.d.mts +12 -0
- package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +82 -0
- package/src/foundry/common/prosemirror/image-plugin.d.mts +82 -0
- package/src/foundry/common/prosemirror/index.d.mts +22 -0
- package/src/foundry/common/prosemirror/input-rules.d.mts +34 -0
- package/src/foundry/common/prosemirror/keymaps.d.mts +47 -0
- package/src/foundry/common/prosemirror/menu.d.mts +255 -0
- package/src/foundry/common/prosemirror/paste-transformer.d.mts +22 -0
- package/src/foundry/common/prosemirror/plugin.d.mts +24 -0
- package/src/foundry/common/prosemirror/schema/attribute-capture.d.mts +39 -0
- package/src/foundry/common/prosemirror/schema/core.d.mts +51 -0
- package/src/foundry/common/prosemirror/schema/image-link-node.d.mts +29 -0
- package/src/foundry/common/prosemirror/schema/image-node.d.mts +19 -0
- package/src/foundry/common/prosemirror/schema/index.d.mts +12 -0
- package/src/foundry/common/prosemirror/schema/link-mark.d.mts +30 -0
- package/src/foundry/common/prosemirror/schema/lists.d.mts +55 -0
- package/src/foundry/common/prosemirror/schema/marks.d.mts +44 -0
- package/src/foundry/common/prosemirror/schema/other.d.mts +149 -0
- package/src/foundry/common/prosemirror/schema/schema-definition.d.mts +39 -0
- package/src/foundry/common/prosemirror/schema/secret-node.d.mts +27 -0
- package/src/foundry/common/prosemirror/schema/tables.d.mts +106 -0
- package/src/foundry/common/prosemirror/schema/utils.d.mts +37 -0
- package/src/foundry/common/prosemirror/schema.d.mts +138 -0
- package/src/foundry/common/prosemirror/string-serializer.d.mts +120 -0
- package/src/foundry/common/prosemirror/util.d.mts +43 -0
- package/src/foundry/common/types.d.mts +332 -0
- package/src/foundry/common/utils/bitmask.d.mts +110 -0
- package/src/foundry/common/utils/collection.d.mts +176 -0
- package/src/foundry/common/utils/color.d.mts +291 -0
- package/src/foundry/common/utils/event-emitter.d.mts +62 -0
- package/src/foundry/common/utils/geometry.d.mts +198 -0
- package/src/foundry/common/utils/helpers.d.mts +752 -0
- package/src/foundry/common/utils/http.d.mts +52 -0
- package/src/foundry/common/utils/iterable-weak-map.d.mts +80 -0
- package/src/foundry/common/utils/iterable-weak-set.d.mts +47 -0
- package/src/foundry/common/utils/logging.d.mts +42 -0
- package/src/foundry/common/utils/module.d.mts +18 -0
- package/src/foundry/common/utils/semaphore.d.mts +82 -0
- package/src/foundry/common/utils/string-tree.d.mts +95 -0
- package/src/foundry/common/utils/word-tree.d.mts +66 -0
- package/src/foundry/index.d.mts +5 -0
- package/src/foundry/public/index.d.mts +1 -0
- package/src/foundry/public/scripts/earcut-edges/earcut-edges.d.mts +11 -0
- package/src/foundry/public/scripts/earcut-edges/index.d.mts +1 -0
- package/src/foundry/public/scripts/index.d.mts +1 -0
- package/src/index.d.mts +2 -0
- package/src/types/augments/index.d.mts +4 -0
- package/src/types/augments/pixi.d.mts +38 -0
- package/src/types/augments/simple-peer.d.mts +13 -0
- package/src/types/augments/socket.io-client.d.mts +12 -0
- package/src/types/augments/tinyMCE.d.mts +72 -0
- package/src/types/config.d.mts +331 -0
- package/src/types/configuredDocuments.d.mts +103 -0
- package/src/types/helperTypes.d.mts +261 -0
- package/src/types/index.d.mts +4 -0
- package/src/types/utils.d.mts +406 -0
- package/index-lenient.d.ts +0 -10
- package/index.d.ts +0 -4
- package/src/foundry/client/apps/app.d.ts +0 -560
- package/src/foundry/client/apps/av/av-config.d.ts +0 -85
- package/src/foundry/client/apps/av/cameras.d.ts +0 -174
- package/src/foundry/client/apps/av/index.d.ts +0 -3
- package/src/foundry/client/apps/form.d.ts +0 -384
- package/src/foundry/client/apps/forms/actor.d.ts +0 -192
- package/src/foundry/client/apps/forms/card-config.d.ts +0 -51
- package/src/foundry/client/apps/forms/cards-config.d.ts +0 -128
- package/src/foundry/client/apps/forms/combat-config.d.ts +0 -41
- package/src/foundry/client/apps/forms/combatant-config.d.ts +0 -49
- package/src/foundry/client/apps/forms/effect-config.d.ts +0 -65
- package/src/foundry/client/apps/forms/folder-config.d.ts +0 -63
- package/src/foundry/client/apps/forms/grid-config.d.ts +0 -151
- package/src/foundry/client/apps/forms/image-popout.d.ts +0 -166
- package/src/foundry/client/apps/forms/index.d.ts +0 -20
- package/src/foundry/client/apps/forms/item.d.ts +0 -71
- package/src/foundry/client/apps/forms/journal-sheet.d.ts +0 -107
- package/src/foundry/client/apps/forms/macro-config.d.ts +0 -71
- package/src/foundry/client/apps/forms/measure-template.d.ts +0 -53
- package/src/foundry/client/apps/forms/permission.d.ts +0 -58
- package/src/foundry/client/apps/forms/playlist-config.d.ts +0 -43
- package/src/foundry/client/apps/forms/playlist-sound-config.d.ts +0 -61
- package/src/foundry/client/apps/forms/roll-table-config.d.ts +0 -175
- package/src/foundry/client/apps/forms/scene-config.d.ts +0 -148
- package/src/foundry/client/apps/forms/sheet-config.d.ts +0 -184
- package/src/foundry/client/apps/forms/user-config.d.ts +0 -74
- package/src/foundry/client/apps/hud/chatbubble.d.ts +0 -89
- package/src/foundry/client/apps/hud/container.d.ts +0 -46
- package/src/foundry/client/apps/hud/controls.d.ts +0 -156
- package/src/foundry/client/apps/hud/hotbar.d.ts +0 -143
- package/src/foundry/client/apps/hud/hud.d.ts +0 -84
- package/src/foundry/client/apps/hud/index.d.ts +0 -9
- package/src/foundry/client/apps/hud/menu.d.ts +0 -71
- package/src/foundry/client/apps/hud/navigation.d.ts +0 -110
- package/src/foundry/client/apps/hud/pause.d.ts +0 -20
- package/src/foundry/client/apps/hud/players.d.ts +0 -55
- package/src/foundry/client/apps/i18n.d.ts +0 -136
- package/src/foundry/client/apps/index.d.ts +0 -9
- package/src/foundry/client/apps/placeables/drawing-config.d.ts +0 -99
- package/src/foundry/client/apps/placeables/drawing-hud.d.ts +0 -32
- package/src/foundry/client/apps/placeables/index.d.ts +0 -10
- package/src/foundry/client/apps/placeables/light-config.d.ts +0 -95
- package/src/foundry/client/apps/placeables/note-config.d.ts +0 -57
- package/src/foundry/client/apps/placeables/sound-config.d.ts +0 -47
- package/src/foundry/client/apps/placeables/tile-config.d.ts +0 -55
- package/src/foundry/client/apps/placeables/tile-hud.d.ts +0 -37
- package/src/foundry/client/apps/placeables/token-config.d.ts +0 -226
- package/src/foundry/client/apps/placeables/token-hud.d.ts +0 -140
- package/src/foundry/client/apps/placeables/wall-config.d.ts +0 -75
- package/src/foundry/client/apps/sidebar/apps/chat-popout.d.ts +0 -34
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.ts +0 -116
- package/src/foundry/client/apps/sidebar/apps/compendium.d.ts +0 -86
- package/src/foundry/client/apps/sidebar/apps/controls-reference.d.ts +0 -30
- package/src/foundry/client/apps/sidebar/apps/index.d.ts +0 -10
- package/src/foundry/client/apps/sidebar/apps/invitation-links.d.ts +0 -37
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.ts +0 -247
- package/src/foundry/client/apps/sidebar/apps/module-management.d.ts +0 -120
- package/src/foundry/client/apps/sidebar/apps/permission-config.d.ts +0 -64
- package/src/foundry/client/apps/sidebar/apps/support-details.d.ts +0 -76
- package/src/foundry/client/apps/sidebar/apps/world-config.d.ts +0 -77
- package/src/foundry/client/apps/sidebar/index.d.ts +0 -5
- package/src/foundry/client/apps/sidebar/sidebar.d.ts +0 -102
- package/src/foundry/client/apps/sidebar/tab-base.d.ts +0 -68
- package/src/foundry/client/apps/sidebar/tab-directory.d.ts +0 -236
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.ts +0 -16
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.ts +0 -6
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.ts +0 -351
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.ts +0 -205
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.ts +0 -77
- package/src/foundry/client/apps/sidebar/tabs/index.d.ts +0 -12
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.ts +0 -10
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.ts +0 -11
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.ts +0 -12
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.ts +0 -306
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.ts +0 -9
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.ts +0 -18
- package/src/foundry/client/apps/sidebar/tabs/settings.d.ts +0 -88
- package/src/foundry/client/apps/templates.d.ts +0 -425
- package/src/foundry/client/audio/audio.d.ts +0 -343
- package/src/foundry/client/audio/container.d.ts +0 -175
- package/src/foundry/client/audio/index.d.ts +0 -3
- package/src/foundry/client/audio/sound.d.ts +0 -303
- package/src/foundry/client/av/client.d.ts +0 -158
- package/src/foundry/client/av/clients/index.d.ts +0 -1
- package/src/foundry/client/av/clients/simplepeer.d.ts +0 -151
- package/src/foundry/client/av/index.d.ts +0 -4
- package/src/foundry/client/av/master.d.ts +0 -187
- package/src/foundry/client/av/settings.d.ts +0 -236
- package/src/foundry/client/config.d.ts +0 -1425
- package/src/foundry/client/core/gamepad.d.ts +0 -53
- package/src/foundry/client/core/hooks.d.ts +0 -967
- package/src/foundry/client/core/image.d.ts +0 -129
- package/src/foundry/client/core/index.d.ts +0 -13
- package/src/foundry/client/core/keybindings.d.ts +0 -298
- package/src/foundry/client/core/keyboard.d.ts +0 -247
- package/src/foundry/client/core/mouse.d.ts +0 -18
- package/src/foundry/client/core/nue.d.ts +0 -34
- package/src/foundry/client/core/settings.d.ts +0 -222
- package/src/foundry/client/core/socket.d.ts +0 -46
- package/src/foundry/client/core/sorting.d.ts +0 -78
- package/src/foundry/client/core/time.d.ts +0 -67
- package/src/foundry/client/core/utils.d.ts +0 -33
- package/src/foundry/client/core/video.d.ts +0 -65
- package/src/foundry/client/data/abstract/canvas-document.d.ts +0 -70
- package/src/foundry/client/data/abstract/client-backend.d.ts +0 -206
- package/src/foundry/client/data/abstract/client-document.d.ts +0 -439
- package/src/foundry/client/data/abstract/document-collection.d.ts +0 -192
- package/src/foundry/client/data/abstract/index.d.ts +0 -5
- package/src/foundry/client/data/abstract/world-collection.d.ts +0 -167
- package/src/foundry/client/data/collections/actors.d.ts +0 -35
- package/src/foundry/client/data/collections/cards.d.ts +0 -8
- package/src/foundry/client/data/collections/combats.d.ts +0 -43
- package/src/foundry/client/data/collections/compendium.d.ts +0 -321
- package/src/foundry/client/data/collections/fog.d.ts +0 -7
- package/src/foundry/client/data/collections/folder.d.ts +0 -27
- package/src/foundry/client/data/collections/index.d.ts +0 -15
- package/src/foundry/client/data/collections/items.d.ts +0 -10
- package/src/foundry/client/data/collections/journal.d.ts +0 -26
- package/src/foundry/client/data/collections/macros.d.ts +0 -26
- package/src/foundry/client/data/collections/messages.d.ts +0 -39
- package/src/foundry/client/data/collections/playlists.d.ts +0 -41
- package/src/foundry/client/data/collections/scenes.d.ts +0 -62
- package/src/foundry/client/data/collections/settings.d.ts +0 -25
- package/src/foundry/client/data/collections/tables.d.ts +0 -17
- package/src/foundry/client/data/collections/users.d.ts +0 -43
- package/src/foundry/client/data/documents/active-effect.d.ts +0 -172
- package/src/foundry/client/data/documents/actor.d.ts +0 -231
- package/src/foundry/client/data/documents/ambient-light.d.ts +0 -18
- package/src/foundry/client/data/documents/ambient-sound.d.ts +0 -9
- package/src/foundry/client/data/documents/card.d.ts +0 -133
- package/src/foundry/client/data/documents/cards.d.ts +0 -376
- package/src/foundry/client/data/documents/chat-message.d.ts +0 -267
- package/src/foundry/client/data/documents/combat.d.ts +0 -227
- package/src/foundry/client/data/documents/combatant.d.ts +0 -104
- package/src/foundry/client/data/documents/drawing.d.ts +0 -19
- package/src/foundry/client/data/documents/fog-exploration.d.ts +0 -64
- package/src/foundry/client/data/documents/folder.d.ts +0 -115
- package/src/foundry/client/data/documents/index.d.ts +0 -27
- package/src/foundry/client/data/documents/item.d.ts +0 -59
- package/src/foundry/client/data/documents/journal-entry.d.ts +0 -71
- package/src/foundry/client/data/documents/macro.d.ts +0 -60
- package/src/foundry/client/data/documents/measured-template.d.ts +0 -21
- package/src/foundry/client/data/documents/note.d.ts +0 -19
- package/src/foundry/client/data/documents/playlist-sound.d.ts +0 -117
- package/src/foundry/client/data/documents/playlist.d.ts +0 -192
- package/src/foundry/client/data/documents/scene.d.ts +0 -465
- package/src/foundry/client/data/documents/setting.d.ts +0 -35
- package/src/foundry/client/data/documents/table-result.d.ts +0 -30
- package/src/foundry/client/data/documents/table.d.ts +0 -220
- package/src/foundry/client/data/documents/tile.d.ts +0 -13
- package/src/foundry/client/data/documents/token.d.ts +0 -281
- package/src/foundry/client/data/documents/user.d.ts +0 -155
- package/src/foundry/client/data/documents/wall.d.ts +0 -9
- package/src/foundry/client/data/index.d.ts +0 -3
- package/src/foundry/client/dice/dice/coin.d.ts +0 -49
- package/src/foundry/client/dice/dice/die.d.ts +0 -230
- package/src/foundry/client/dice/dice/fate.d.ts +0 -37
- package/src/foundry/client/dice/dice/index.d.ts +0 -3
- package/src/foundry/client/dice/index.d.ts +0 -5
- package/src/foundry/client/dice/roll.d.ts +0 -495
- package/src/foundry/client/dice/term.d.ts +0 -123
- package/src/foundry/client/dice/terms/dice.d.ts +0 -277
- package/src/foundry/client/dice/terms/index.d.ts +0 -7
- package/src/foundry/client/dice/terms/math.d.ts +0 -69
- package/src/foundry/client/dice/terms/numeric.d.ts +0 -53
- package/src/foundry/client/dice/terms/operator.d.ts +0 -18
- package/src/foundry/client/dice/terms/parenthetical.d.ts +0 -51
- package/src/foundry/client/dice/terms/pool.d.ts +0 -235
- package/src/foundry/client/dice/terms/string.d.ts +0 -31
- package/src/foundry/client/dice/twister.d.ts +0 -134
- package/src/foundry/client/game.d.ts +0 -682
- package/src/foundry/client/head.d.ts +0 -44
- package/src/foundry/client/index.d.ts +0 -12
- package/src/foundry/client/pixi/board.d.ts +0 -632
- package/src/foundry/client/pixi/core/containers/cached-container.d.ts +0 -64
- package/src/foundry/client/pixi/core/containers/index.d.ts +0 -3
- package/src/foundry/client/pixi/core/containers/quadtree.d.ts +0 -166
- package/src/foundry/client/pixi/core/containers/sampler-mesh.d.ts +0 -22
- package/src/foundry/client/pixi/core/culling.d.ts +0 -37
- package/src/foundry/client/pixi/core/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.ts +0 -148
- package/src/foundry/client/pixi/core/interaction/control-icon.d.ts +0 -58
- package/src/foundry/client/pixi/core/interaction/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.ts +0 -323
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.ts +0 -48
- package/src/foundry/client/pixi/core/interaction/targets.d.ts +0 -51
- package/src/foundry/client/pixi/core/loader.d.ts +0 -157
- package/src/foundry/client/pixi/core/shapes/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/shapes/normalized-rectangle.d.ts +0 -31
- package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.ts +0 -263
- package/src/foundry/client/pixi/core/shapes/precise-text.d.ts +0 -18
- package/src/foundry/client/pixi/core/shapes/ray.d.ts +0 -200
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.ts +0 -110
- package/src/foundry/client/pixi/groups/effects.d.ts +0 -29
- package/src/foundry/client/pixi/groups/index.d.ts +0 -3
- package/src/foundry/client/pixi/groups/interface.d.ts +0 -27
- package/src/foundry/client/pixi/groups/primary.d.ts +0 -40
- package/src/foundry/client/pixi/index.d.ts +0 -10
- package/src/foundry/client/pixi/layer.d.ts +0 -105
- package/src/foundry/client/pixi/layers/controls/cursor.d.ts +0 -27
- package/src/foundry/client/pixi/layers/controls/door.d.ts +0 -67
- package/src/foundry/client/pixi/layers/controls/hud.d.ts +0 -117
- package/src/foundry/client/pixi/layers/controls/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/controls/ruler.d.ts +0 -207
- package/src/foundry/client/pixi/layers/controls.d.ts +0 -144
- package/src/foundry/client/pixi/layers/drawings.d.ts +0 -116
- package/src/foundry/client/pixi/layers/effects/effect.d.ts +0 -133
- package/src/foundry/client/pixi/layers/effects/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/effects/leaves.d.ts +0 -79
- package/src/foundry/client/pixi/layers/effects/rain.d.ts +0 -107
- package/src/foundry/client/pixi/layers/effects/snow.d.ts +0 -62
- package/src/foundry/client/pixi/layers/effects.d.ts +0 -61
- package/src/foundry/client/pixi/layers/grid/grid.d.ts +0 -171
- package/src/foundry/client/pixi/layers/grid/hex.d.ts +0 -118
- package/src/foundry/client/pixi/layers/grid/highlight.d.ts +0 -28
- package/src/foundry/client/pixi/layers/grid/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/grid/square.d.ts +0 -48
- package/src/foundry/client/pixi/layers/grid.d.ts +0 -204
- package/src/foundry/client/pixi/layers/index.d.ts +0 -15
- package/src/foundry/client/pixi/layers/lighting.d.ts +0 -229
- package/src/foundry/client/pixi/layers/map.d.ts +0 -263
- package/src/foundry/client/pixi/layers/notes.d.ts +0 -64
- package/src/foundry/client/pixi/layers/sight.d.ts +0 -313
- package/src/foundry/client/pixi/layers/sounds.d.ts +0 -112
- package/src/foundry/client/pixi/layers/templates.d.ts +0 -51
- package/src/foundry/client/pixi/layers/tokens.d.ts +0 -169
- package/src/foundry/client/pixi/layers/walls.d.ts +0 -321
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.ts +0 -406
- package/src/foundry/client/pixi/perception/index.d.ts +0 -2
- package/src/foundry/client/pixi/perception/perception-manager.d.ts +0 -107
- package/src/foundry/client/pixi/placeable.d.ts +0 -414
- package/src/foundry/client/pixi/placeables/drawing.d.ts +0 -289
- package/src/foundry/client/pixi/placeables/index.d.ts +0 -8
- package/src/foundry/client/pixi/placeables/light.d.ts +0 -126
- package/src/foundry/client/pixi/placeables/note.d.ts +0 -67
- package/src/foundry/client/pixi/placeables/sound.d.ts +0 -131
- package/src/foundry/client/pixi/placeables/template.d.ts +0 -153
- package/src/foundry/client/pixi/placeables/tile.d.ts +0 -315
- package/src/foundry/client/pixi/placeables/token.d.ts +0 -722
- package/src/foundry/client/pixi/placeables/wall.d.ts +0 -268
- package/src/foundry/client/pixi/placeables.d.ts +0 -520
- package/src/foundry/client/pixi/sources/base-source.d.ts +0 -145
- package/src/foundry/client/pixi/sources/index.d.ts +0 -4
- package/src/foundry/client/pixi/sources/light-source.d.ts +0 -413
- package/src/foundry/client/pixi/sources/sound-source.d.ts +0 -45
- package/src/foundry/client/pixi/sources/vision-source.d.ts +0 -123
- package/src/foundry/client/pixi/webgl/base.d.ts +0 -69
- package/src/foundry/client/pixi/webgl/blend_modes.d.ts +0 -33
- package/src/foundry/client/pixi/webgl/filters.d.ts +0 -182
- package/src/foundry/client/pixi/webgl/index.d.ts +0 -5
- package/src/foundry/client/pixi/webgl/lighting.d.ts +0 -480
- package/src/foundry/client/pixi/webgl/sampler.d.ts +0 -19
- package/src/foundry/client/ui/context.d.ts +0 -136
- package/src/foundry/client/ui/dialog.d.ts +0 -286
- package/src/foundry/client/ui/drag.d.ts +0 -105
- package/src/foundry/client/ui/dragdrop.d.ts +0 -118
- package/src/foundry/client/ui/editor.d.ts +0 -321
- package/src/foundry/client/ui/filepicker.d.ts +0 -510
- package/src/foundry/client/ui/filter.d.ts +0 -106
- package/src/foundry/client/ui/forms.d.ts +0 -47
- package/src/foundry/client/ui/index.d.ts +0 -10
- package/src/foundry/client/ui/notifications.d.ts +0 -110
- package/src/foundry/client/ui/tabs.d.ts +0 -103
- package/src/foundry/common/abstract/backend.mjs.d.ts +0 -253
- package/src/foundry/common/abstract/data.mjs.d.ts +0 -316
- package/src/foundry/common/abstract/document.mjs.d.ts +0 -838
- package/src/foundry/common/abstract/embedded-collection.mjs.d.ts +0 -79
- package/src/foundry/common/abstract/module.mjs.d.ts +0 -6
- package/src/foundry/common/config.mjs/index.d.ts +0 -1
- package/src/foundry/common/config.mjs/releaseData.d.ts +0 -100
- package/src/foundry/common/constants.mjs.d.ts +0 -940
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +0 -168
- package/src/foundry/common/data/data.mjs/actorData.d.ts +0 -219
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +0 -166
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +0 -154
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +0 -195
- package/src/foundry/common/data/data.mjs/animationData.d.ts +0 -91
- package/src/foundry/common/data/data.mjs/cardData.d.ts +0 -264
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +0 -67
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +0 -237
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +0 -220
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +0 -80
- package/src/foundry/common/data/data.mjs/combatData.d.ts +0 -149
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +0 -136
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +0 -55
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +0 -407
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +0 -80
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +0 -109
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +0 -115
- package/src/foundry/common/data/data.mjs/folderData.d.ts +0 -155
- package/src/foundry/common/data/data.mjs/index.d.ts +0 -31
- package/src/foundry/common/data/data.mjs/itemData.d.ts +0 -184
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +0 -132
- package/src/foundry/common/data/data.mjs/lightData.d.ts +0 -227
- package/src/foundry/common/data/data.mjs/macroData.d.ts +0 -199
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +0 -212
- package/src/foundry/common/data/data.mjs/noteData.d.ts +0 -233
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +0 -201
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +0 -159
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +0 -75
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +0 -189
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +0 -665
- package/src/foundry/common/data/data.mjs/settingData.d.ts +0 -86
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +0 -167
- package/src/foundry/common/data/data.mjs/tileData.d.ts +0 -246
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +0 -62
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +0 -47
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +0 -505
- package/src/foundry/common/data/data.mjs/userData.d.ts +0 -177
- package/src/foundry/common/data/data.mjs/videoData.d.ts +0 -70
- package/src/foundry/common/data/data.mjs/wallData.d.ts +0 -222
- package/src/foundry/common/data/fields.mjs.d.ts +0 -526
- package/src/foundry/common/data/module.mjs.d.ts +0 -3
- package/src/foundry/common/data/validators.mjs.d.ts +0 -56
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +0 -44
- package/src/foundry/common/documents.mjs/baseActor.d.ts +0 -68
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +0 -38
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +0 -31
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +0 -29
- package/src/foundry/common/documents.mjs/baseCard.d.ts +0 -58
- package/src/foundry/common/documents.mjs/baseCards.d.ts +0 -39
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +0 -49
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +0 -40
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +0 -48
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +0 -54
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +0 -41
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +0 -30
- package/src/foundry/common/documents.mjs/baseItem.d.ts +0 -57
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +0 -26
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +0 -42
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +0 -66
- package/src/foundry/common/documents.mjs/baseNote.d.ts +0 -39
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +0 -32
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +0 -37
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +0 -31
- package/src/foundry/common/documents.mjs/baseScene.d.ts +0 -120
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +0 -38
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +0 -52
- package/src/foundry/common/documents.mjs/baseTile.d.ts +0 -29
- package/src/foundry/common/documents.mjs/baseToken.d.ts +0 -44
- package/src/foundry/common/documents.mjs/baseUser.d.ts +0 -102
- package/src/foundry/common/documents.mjs/baseWall.d.ts +0 -43
- package/src/foundry/common/documents.mjs/index.d.ts +0 -28
- package/src/foundry/common/module.mjs.d.ts +0 -114
- package/src/foundry/common/packages.mjs/index.d.ts +0 -8
- package/src/foundry/common/packages.mjs/moduleData.d.ts +0 -55
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +0 -58
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +0 -88
- package/src/foundry/common/packages.mjs/packageData.d.ts +0 -319
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +0 -69
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +0 -75
- package/src/foundry/common/packages.mjs/systemData.d.ts +0 -58
- package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +0 -9
- package/src/foundry/common/packages.mjs/worldData.d.ts +0 -76
- package/src/foundry/common/types.mjs.d.ts +0 -299
- package/src/foundry/common/utils/collection.mjs.d.ts +0 -151
- package/src/foundry/common/utils/geometry.mjs.d.ts +0 -148
- package/src/foundry/common/utils/helpers.mjs.d.ts +0 -498
- package/src/foundry/common/utils/http.mjs.d.ts +0 -52
- package/src/foundry/common/utils/module.mjs.d.ts +0 -5
- package/src/foundry/common/utils/primitives.mjs.d.ts +0 -287
- package/src/foundry/common/utils/semaphore.mjs.d.ts +0 -83
- package/src/foundry/index.d.ts +0 -3
- package/src/foundry/templates/index.d.ts +0 -1
- package/src/foundry/templates/views/layouts/main.hbs.d.ts +0 -11
- package/src/index.d.ts +0 -2
- package/src/types/augments/index.d.ts +0 -6
- package/src/types/augments/pixiGraphicsSmooth.d.ts +0 -7
- package/src/types/augments/pixiLegacyGraphics.d.ts +0 -7
- package/src/types/augments/pixiParticles.d.ts +0 -7
- package/src/types/augments/simple-peer.d.ts +0 -13
- package/src/types/augments/socket.io-client.d.ts +0 -12
- package/src/types/augments/tinyMCE.d.ts +0 -82
- package/src/types/config.d.ts +0 -183
- package/src/types/helperTypes.d.ts +0 -151
- package/src/types/index.d.ts +0 -3
- package/src/types/utils.d.ts +0 -143
- /package/src/foundry/client/apps/av/{camera-popout.d.ts → camera-popout.d.mts} +0 -0
- /package/src/foundry/client/{tail.d.ts → tail.d.mts} +0 -0
@@ -1,838 +0,0 @@
|
|
1
|
-
import { BaseUser } from '../documents.mjs';
|
2
|
-
import { AnyDocumentData } from './data.mjs';
|
3
|
-
import {
|
4
|
-
ConfiguredDocumentClass,
|
5
|
-
DocumentConstructor,
|
6
|
-
ToObjectFalseType,
|
7
|
-
DocumentType,
|
8
|
-
ConstructorDataType
|
9
|
-
} from '../../../types/helperTypes';
|
10
|
-
import EmbeddedCollection from './embedded-collection.mjs';
|
11
|
-
|
12
|
-
type ParentType<T extends Document<any, any>> = T extends Document<any, infer U> ? U : never;
|
13
|
-
export type ContextType<T extends Document<any, any>> = Context<ParentType<T>>;
|
14
|
-
export type DocumentDataType<T extends Document<any, any>> = T extends Document<infer U, any> ? U : never;
|
15
|
-
|
16
|
-
/**
|
17
|
-
* The abstract base class shared by both client and server-side which defines the model for a single document type.
|
18
|
-
*/
|
19
|
-
declare abstract class Document<
|
20
|
-
ConcreteDocumentData extends AnyDocumentData,
|
21
|
-
Parent extends Document<any, any> | null = null,
|
22
|
-
ConcreteMetadata extends Metadata<any> = Metadata<any>
|
23
|
-
> {
|
24
|
-
/**
|
25
|
-
* Create a new Document by providing an initial data object.
|
26
|
-
* @param data - Initial data provided to construct the Document
|
27
|
-
* @param context - Additional parameters which define Document context
|
28
|
-
*/
|
29
|
-
constructor(data?: ConstructorDataType<ConcreteDocumentData>, context?: Context<Parent>);
|
30
|
-
|
31
|
-
/**
|
32
|
-
* An immutable reverse-reference to the parent Document to which this embedded Document belongs.
|
33
|
-
*/
|
34
|
-
readonly parent: Parent | null;
|
35
|
-
|
36
|
-
/**
|
37
|
-
* An immutable reference to a containing Compendium collection to which this Document belongs.
|
38
|
-
*/
|
39
|
-
readonly pack: string | null;
|
40
|
-
|
41
|
-
/**
|
42
|
-
* The base data object for this Document which persists both the original source and any derived data.
|
43
|
-
*/
|
44
|
-
readonly data: ConcreteDocumentData;
|
45
|
-
|
46
|
-
/**
|
47
|
-
* Perform one-time initialization tasks which only occur when the Document is first constructed.
|
48
|
-
*/
|
49
|
-
protected _initialize(): void;
|
50
|
-
|
51
|
-
/**
|
52
|
-
* Every document must define an object which represents its data schema.
|
53
|
-
* This must be a subclass of the DocumentData interface.
|
54
|
-
*
|
55
|
-
* @remarks
|
56
|
-
* This method is abstract and needs to be implemented by inheriting classes.
|
57
|
-
*/
|
58
|
-
static get schema(): ConstructorOf<AnyDocumentData>;
|
59
|
-
|
60
|
-
/**
|
61
|
-
* Default metadata which applies to each instance of this Document type.
|
62
|
-
* @defaultValue
|
63
|
-
* ```typescript
|
64
|
-
* {
|
65
|
-
* name: "Document",
|
66
|
-
* collection: "documents",
|
67
|
-
* label: "DOCUMENT.Document",
|
68
|
-
* types: [],
|
69
|
-
* embedded: {},
|
70
|
-
* hasSystemData: false,
|
71
|
-
* permissions: {
|
72
|
-
* create: "ASSISTANT",
|
73
|
-
* update: "ASSISTANT",
|
74
|
-
* delete: "ASSISTANT"
|
75
|
-
* },
|
76
|
-
* pack: null
|
77
|
-
* }
|
78
|
-
* ```
|
79
|
-
*/
|
80
|
-
static get metadata(): Metadata<any>;
|
81
|
-
|
82
|
-
/**
|
83
|
-
* The database backend used to execute operations and handle results
|
84
|
-
*/
|
85
|
-
static get database(): CONFIG['DatabaseBackend'];
|
86
|
-
|
87
|
-
/**
|
88
|
-
* Return a reference to the implemented subclass of this base document type.
|
89
|
-
*/
|
90
|
-
static get implementation(): ConstructorOf<Document<any, any>>; // Referencing the concrete class the config is not possible because accessors cannot be generic and there is not static polymorphic this type
|
91
|
-
|
92
|
-
/**
|
93
|
-
* The named collection to which this Document belongs.
|
94
|
-
*/
|
95
|
-
static get collectionName(): string;
|
96
|
-
|
97
|
-
/**
|
98
|
-
* The canonical name of this Document type, for example "Actor".
|
99
|
-
*/
|
100
|
-
static get documentName(): string;
|
101
|
-
|
102
|
-
/**
|
103
|
-
* The named collection to which this Document belongs.
|
104
|
-
*/
|
105
|
-
get collectionName(): ConcreteMetadata['collection'];
|
106
|
-
|
107
|
-
/**
|
108
|
-
* The canonical name of this Document type, for example "Actor".
|
109
|
-
*/
|
110
|
-
get documentName(): ConcreteMetadata['name'];
|
111
|
-
|
112
|
-
/**
|
113
|
-
* The canonical identifier for this Document
|
114
|
-
*/
|
115
|
-
get id(): string | null;
|
116
|
-
|
117
|
-
/**
|
118
|
-
* Test whether this Document is embedded within a parent Document
|
119
|
-
*/
|
120
|
-
get isEmbedded(): boolean;
|
121
|
-
|
122
|
-
/**
|
123
|
-
* The name of this Document, if it has one assigned
|
124
|
-
*/
|
125
|
-
get name(): string | null;
|
126
|
-
|
127
|
-
/**
|
128
|
-
* Test whether a given User has a sufficient role in order to create Documents of this type in general.
|
129
|
-
* @param user - The User being tested
|
130
|
-
* @returns Does the User have a sufficient role to create?
|
131
|
-
*/
|
132
|
-
static canUserCreate(user: BaseUser): boolean;
|
133
|
-
|
134
|
-
/**
|
135
|
-
* Clone a document, creating a new document by combining current data with provided overrides.
|
136
|
-
* The cloned document is ephemeral and not yet saved to the database.
|
137
|
-
* @param data - Additional data which overrides current document data at the time of creation
|
138
|
-
* (default: `{}`)
|
139
|
-
* @param save - Save the clone to the World database?
|
140
|
-
* (default: `false`)
|
141
|
-
* @param context - Additional context options passed to the create method
|
142
|
-
* (default: `{}`)
|
143
|
-
* @returns The cloned Document instance
|
144
|
-
*/
|
145
|
-
clone(
|
146
|
-
data?: DeepPartial<
|
147
|
-
ConstructorDataType<ConcreteDocumentData> | (ConstructorDataType<ConcreteDocumentData> & Record<string, unknown>)
|
148
|
-
>,
|
149
|
-
{ save, ...context }?: { save: boolean } & DocumentModificationContext
|
150
|
-
): TemporaryDocument<this> | Promise<TemporaryDocument<this> | undefined>;
|
151
|
-
|
152
|
-
/**
|
153
|
-
* Get the permission level that a specific User has over this Document, a value in CONST.DOCUMENT_PERMISSION_LEVELS.
|
154
|
-
* @param user - The User being tested
|
155
|
-
* @returns A numeric permission level from CONST.DOCUMENT_PERMISSION_LEVELS or null
|
156
|
-
*/
|
157
|
-
getUserLevel(user: BaseUser): foundry.CONST.DOCUMENT_PERMISSION_LEVELS | null;
|
158
|
-
|
159
|
-
/**
|
160
|
-
* Test whether a certain User has a requested permission level (or greater) over the Document
|
161
|
-
* @param user - The User being tested
|
162
|
-
* @param permission - The permission level from DOCUMENT_PERMISSION_LEVELS to test
|
163
|
-
* @param exact - Require the exact permission level requested?
|
164
|
-
* (default: `false`)
|
165
|
-
* @returns Does the user have this permission level over the Document?
|
166
|
-
*/
|
167
|
-
testUserPermission(
|
168
|
-
user: BaseUser,
|
169
|
-
permission: keyof typeof foundry.CONST.DOCUMENT_PERMISSION_LEVELS | foundry.CONST.DOCUMENT_PERMISSION_LEVELS,
|
170
|
-
{ exact }?: { exact?: boolean }
|
171
|
-
): boolean;
|
172
|
-
|
173
|
-
/**
|
174
|
-
* Test whether a given User has permission to perform some action on this Document
|
175
|
-
* @param user - The User attempting modification
|
176
|
-
* @param action - The attempted action
|
177
|
-
* @param data - Data involved in the attempted action
|
178
|
-
* (default: `{}`)
|
179
|
-
* @returns Does the User have permission?
|
180
|
-
*/
|
181
|
-
canUserModify(user: BaseUser, action: 'create' | 'update' | 'delete', data?: object): boolean;
|
182
|
-
|
183
|
-
/**
|
184
|
-
* Create multiple Documents using provided input data.
|
185
|
-
* Data is provided as an array of objects where each individual object becomes one new Document.
|
186
|
-
*
|
187
|
-
* @param data - An array of data objects used to create multiple documents
|
188
|
-
* (default: `[]`)
|
189
|
-
* @param context - Additional context which customizes the creation workflow
|
190
|
-
* (default: `{}`)
|
191
|
-
* @returns An array of created Document instances
|
192
|
-
*Additional context which customizes the creation workflow
|
193
|
-
* @example <caption>Create a single Document</caption>
|
194
|
-
* ```typescript
|
195
|
-
* const data = [{name: "New Actor", type: "character", img: "path/to/profile.jpg"}];
|
196
|
-
* const created = await Actor.createDocuments(data);
|
197
|
-
* ```
|
198
|
-
*
|
199
|
-
* @example <caption>Create multiple Documents</caption>
|
200
|
-
* ```typescript
|
201
|
-
* const data = [{name: "Tim", type: "npc"], [{name: "Tom", type: "npc"}];
|
202
|
-
* const created = await Actor.createDocuments(data);
|
203
|
-
* ```
|
204
|
-
*
|
205
|
-
* @example <caption>Create multiple embedded Documents within a parent</caption>
|
206
|
-
* ```typescript
|
207
|
-
* const actor = game.actors.getName("Tim");
|
208
|
-
* const data = [{name: "Sword", type: "weapon"}, {name: "Breastplate", type: "equipment"}];
|
209
|
-
* const created = await Item.createDocuments(data, {parent: actor});this
|
210
|
-
* ```
|
211
|
-
*
|
212
|
-
* @example <caption>Create a Document within a Compendium pack</caption>
|
213
|
-
* ```typescript
|
214
|
-
* const data = [{name: "Compendium Actor", type: "character", img: "path/to/profile.jpg"}];
|
215
|
-
* const created = await Actor.createDocuments(data, {pack: "mymodule.mypack"});
|
216
|
-
* ```
|
217
|
-
*/
|
218
|
-
static createDocuments<T extends DocumentConstructor>(
|
219
|
-
this: T,
|
220
|
-
data: Array<
|
221
|
-
| ConstructorDataType<InstanceType<T>['data']>
|
222
|
-
| (ConstructorDataType<InstanceType<T>['data']> & Record<string, unknown>)
|
223
|
-
>,
|
224
|
-
context: DocumentModificationContext & { temporary: false }
|
225
|
-
): Promise<StoredDocument<InstanceType<ConfiguredDocumentClass<T>>>[]>;
|
226
|
-
static createDocuments<T extends DocumentConstructor>(
|
227
|
-
this: T,
|
228
|
-
data: Array<
|
229
|
-
| ConstructorDataType<InstanceType<T>['data']>
|
230
|
-
| (ConstructorDataType<InstanceType<T>['data']> & Record<string, unknown>)
|
231
|
-
>,
|
232
|
-
context: DocumentModificationContext & { temporary: boolean }
|
233
|
-
): Promise<InstanceType<ConfiguredDocumentClass<T>>[]>;
|
234
|
-
static createDocuments<T extends DocumentConstructor>(
|
235
|
-
this: T,
|
236
|
-
data?: Array<
|
237
|
-
| ConstructorDataType<InstanceType<T>['data']>
|
238
|
-
| (ConstructorDataType<InstanceType<T>['data']> & Record<string, unknown>)
|
239
|
-
>,
|
240
|
-
context?: DocumentModificationContext
|
241
|
-
): Promise<StoredDocument<InstanceType<ConfiguredDocumentClass<T>>>[]>;
|
242
|
-
|
243
|
-
/**
|
244
|
-
* Update multiple Document instances using provided differential data.
|
245
|
-
* Data is provided as an array of objects where each individual object updates one existing Document.
|
246
|
-
*
|
247
|
-
* @param updates - An array of differential data objects, each used to update a single Document
|
248
|
-
* (default: `[]`)
|
249
|
-
* @param context - Additional context which customizes the update workflow
|
250
|
-
* (default: `{}`)
|
251
|
-
* @returns An array of updated Document instances
|
252
|
-
*
|
253
|
-
* @example <caption>Update a single Document</caption>
|
254
|
-
* ```typescript
|
255
|
-
* const updates = [{_id: "12ekjf43kj2312ds", name: "Timothy"}];
|
256
|
-
* const updated = await Actor.updateDocuments(updates);
|
257
|
-
* ```
|
258
|
-
*
|
259
|
-
* @example <caption>Update multiple Documents</caption>
|
260
|
-
* ```typescript
|
261
|
-
* const updates = [{_id: "12ekjf43kj2312ds", name: "Timothy"}, {_id: "kj549dk48k34jk34", name: "Thomas"}]};
|
262
|
-
* const updated = await Actor.updateDocuments(updates);
|
263
|
-
* ```
|
264
|
-
*
|
265
|
-
* @example <caption>Update multiple embedded Documents within a parent</caption>
|
266
|
-
* ```typescript
|
267
|
-
* const actor = game.actors.getName("Timothy");
|
268
|
-
* const updates = [{_id: sword.id, name: "Magic Sword"}, {_id: shield.id, name: "Magic Shield"}];
|
269
|
-
* const updated = await Item.updateDocuments(updates, {parent: actor});
|
270
|
-
* ```
|
271
|
-
*
|
272
|
-
* @example <caption>Update Documents within a Compendium pack</caption>
|
273
|
-
* ```typescript
|
274
|
-
* const actor = await pack.getDocument(documentId);
|
275
|
-
* const updated = await Actor.updateDocuments([{_id: actor.id, name: "New Name"}], {pack: "mymodule.mypack"});
|
276
|
-
* ```
|
277
|
-
*/
|
278
|
-
static updateDocuments<T extends DocumentConstructor>(
|
279
|
-
this: T,
|
280
|
-
updates?: Array<
|
281
|
-
DeepPartial<
|
282
|
-
| ConstructorDataType<InstanceType<T>['data']>
|
283
|
-
| (ConstructorDataType<InstanceType<T>['data']> & Record<string, unknown>)
|
284
|
-
>
|
285
|
-
>,
|
286
|
-
context?: DocumentModificationContext & foundry.utils.MergeObjectOptions
|
287
|
-
): Promise<InstanceType<ConfiguredDocumentClass<T>>[]>;
|
288
|
-
|
289
|
-
/**
|
290
|
-
* Delete one or multiple existing Documents using an array of provided ids.
|
291
|
-
* Data is provided as an array of string ids for the documents to delete.
|
292
|
-
*
|
293
|
-
* @param ids - An array of string ids for the documents to be deleted
|
294
|
-
* (default: `[]`)
|
295
|
-
* @param context - Additional context which customizes the update workflow
|
296
|
-
* (default: `{}`)
|
297
|
-
* @returns An array of deleted Document instances
|
298
|
-
*
|
299
|
-
* @example <caption>Delete a single Document</caption>
|
300
|
-
* ```typescript
|
301
|
-
* const tim = game.actors.getName("Tim");
|
302
|
-
* const deleted = await Actor.deleteDocuments([tim.id]);
|
303
|
-
* ```
|
304
|
-
*
|
305
|
-
* @example <caption>Delete multiple Documents</caption>
|
306
|
-
* ```typescript
|
307
|
-
* const tim = game.actors.getName("Tim");
|
308
|
-
* const tom = game.actors.getName("Tom");
|
309
|
-
* const deleted = await Actor.deleteDocuments([tim.id, tom.id]);
|
310
|
-
* ```
|
311
|
-
*
|
312
|
-
* @example <caption>Delete multiple embedded Documents within a parent</caption>
|
313
|
-
* ```typescript
|
314
|
-
* const tim = game.actors.getName("Tim");
|
315
|
-
* const sword = tim.items.getName("Sword");
|
316
|
-
* const shield = tim.items.getName("Shield");
|
317
|
-
* const deleted = await Item.deleteDocuments([sword.id, shield.id], parent: actor});
|
318
|
-
* ```
|
319
|
-
*
|
320
|
-
* @example <caption>Delete Documents within a Compendium pack</caption>
|
321
|
-
* ```typescript
|
322
|
-
* const actor = await pack.getDocument(documentId);
|
323
|
-
* const deleted = await Actor.deleteDocuments([actor.id], {pack: "mymodule.mypack"});
|
324
|
-
* ```
|
325
|
-
*/
|
326
|
-
static deleteDocuments<T extends DocumentConstructor>(
|
327
|
-
this: T,
|
328
|
-
ids?: string[],
|
329
|
-
context?: DocumentModificationContext
|
330
|
-
): Promise<InstanceType<ConfiguredDocumentClass<T>>[]>;
|
331
|
-
|
332
|
-
/**
|
333
|
-
* Create a new Document using provided input data, saving it to the database.
|
334
|
-
* @see {@link Document.createDocuments}
|
335
|
-
* @param data - Initial data used to create this Document
|
336
|
-
* @param context - Additional context which customizes the creation workflow
|
337
|
-
* (default: `{}`)
|
338
|
-
* @returns The created Document instance
|
339
|
-
*
|
340
|
-
* @example <caption>Create a World-level Item</caption>
|
341
|
-
* ```typescript
|
342
|
-
* const data = [{name: "Special Sword", type: "weapon"}];
|
343
|
-
* const created = await Item.create(data);
|
344
|
-
* ```
|
345
|
-
*
|
346
|
-
* @example <caption>Create an Actor-owned Item</caption>
|
347
|
-
* ```typescript
|
348
|
-
* const data = [{name: "Special Sword", type: "weapon"}];
|
349
|
-
* const actor = game.actors.getName("My Hero");
|
350
|
-
* const created = await Item.create(data, {parent: actor});
|
351
|
-
* ```
|
352
|
-
*
|
353
|
-
* @example <caption>Create an Item in a Compendium pack</caption>
|
354
|
-
* ```typescript
|
355
|
-
* const data = [{name: "Special Sword", type: "weapon"}];
|
356
|
-
* const created = await Item.create(data, {pack: "mymodule.mypack"});
|
357
|
-
* ```
|
358
|
-
*
|
359
|
-
* @remarks If no document has actually been created, the returned {@link Promise} resolves to `undefined`.
|
360
|
-
*/
|
361
|
-
static create<T extends DocumentConstructor>(
|
362
|
-
this: T,
|
363
|
-
data:
|
364
|
-
| ConstructorDataType<InstanceType<T>['data']>
|
365
|
-
| (ConstructorDataType<InstanceType<T>['data']> & Record<string, unknown>),
|
366
|
-
context: DocumentModificationContext & { temporary: false }
|
367
|
-
): Promise<StoredDocument<InstanceType<ConfiguredDocumentClass<T>>> | undefined>;
|
368
|
-
static create<T extends DocumentConstructor>(
|
369
|
-
this: T,
|
370
|
-
data:
|
371
|
-
| ConstructorDataType<InstanceType<T>['data']>
|
372
|
-
| (ConstructorDataType<InstanceType<T>['data']> & Record<string, unknown>),
|
373
|
-
context: DocumentModificationContext & { temporary: boolean }
|
374
|
-
): Promise<InstanceType<ConfiguredDocumentClass<T>> | undefined>;
|
375
|
-
static create<T extends DocumentConstructor>(
|
376
|
-
this: T,
|
377
|
-
data:
|
378
|
-
| ConstructorDataType<InstanceType<T>['data']>
|
379
|
-
| (ConstructorDataType<InstanceType<T>['data']> & Record<string, unknown>),
|
380
|
-
context?: DocumentModificationContext
|
381
|
-
): Promise<StoredDocument<InstanceType<ConfiguredDocumentClass<T>>> | undefined>;
|
382
|
-
|
383
|
-
/**
|
384
|
-
* Update this Document using incremental data, saving it to the database.
|
385
|
-
* @see {@link Document.updateDocuments}
|
386
|
-
* @param data - Differential update data which modifies the existing values of this document data
|
387
|
-
* (default: `{}`)
|
388
|
-
* @param context - Additional context which customizes the update workflow
|
389
|
-
* (default: `{}`)
|
390
|
-
* @returns The updated Document instance
|
391
|
-
*
|
392
|
-
* @remarks If no document has actually been updated, the returned {@link Promise} resolves to `undefined`.
|
393
|
-
*/
|
394
|
-
update(
|
395
|
-
data?: DeepPartial<
|
396
|
-
ConstructorDataType<ConcreteDocumentData> | (ConstructorDataType<ConcreteDocumentData> & Record<string, unknown>)
|
397
|
-
>,
|
398
|
-
context?: DocumentModificationContext & foundry.utils.MergeObjectOptions
|
399
|
-
): Promise<this | undefined>;
|
400
|
-
|
401
|
-
/**
|
402
|
-
* Delete this Document, removing it from the database.
|
403
|
-
* @see {@link Document.deleteDocuments}
|
404
|
-
* @param context - Additional context which customizes the deletion workflow
|
405
|
-
* (default: `{}`)
|
406
|
-
* @returns The deleted Document instance
|
407
|
-
*
|
408
|
-
* @remarks If no document has actually been deleted, the returned {@link Promise} resolves to `undefined`.
|
409
|
-
*/
|
410
|
-
delete(context?: DocumentModificationContext): Promise<this | undefined>;
|
411
|
-
|
412
|
-
/**
|
413
|
-
* Obtain a reference to the Array of source data within the data object for a certain embedded Document name
|
414
|
-
* @param embeddedName - The name of the embedded Document type
|
415
|
-
* @returns The Collection instance of embedded Documents of the requested type
|
416
|
-
*/
|
417
|
-
getEmbeddedCollection(embeddedName: string): EmbeddedCollection<DocumentConstructor, AnyDocumentData>; // TODO: Improve
|
418
|
-
|
419
|
-
/**
|
420
|
-
* Get an embedded document by it's id from a named collection in the parent document.
|
421
|
-
* @param embeddedName - The name of the embedded Document type
|
422
|
-
* @param id - The id of the child document to retrieve
|
423
|
-
* @param options - Additional options which modify how embedded documents are retrieved
|
424
|
-
* @param strict - Throw an Error if the requested id does not exist. See Collection#get
|
425
|
-
* (default: `false`)
|
426
|
-
* @returns The retrieved embedded Document instance, or undefined
|
427
|
-
*/
|
428
|
-
getEmbeddedDocument(
|
429
|
-
embeddedName: string,
|
430
|
-
id: string,
|
431
|
-
{ strict }?: { strict?: boolean }
|
432
|
-
): Document<any, this> | undefined;
|
433
|
-
|
434
|
-
/**
|
435
|
-
* Create multiple embedded Document instances within this parent Document using provided input data.
|
436
|
-
* @see {@link Document.createDocuments}
|
437
|
-
* @param embeddedName - The name of the embedded Document type
|
438
|
-
* @param data - An array of data objects used to create multiple documents
|
439
|
-
* (default: `[]`)
|
440
|
-
* @param context - Additional context which customizes the creation workflow
|
441
|
-
* (default: `{}`)
|
442
|
-
* @returns An array of created Document instances
|
443
|
-
*/
|
444
|
-
createEmbeddedDocuments(
|
445
|
-
embeddedName: string,
|
446
|
-
data: Array<Record<string, unknown>>,
|
447
|
-
context: DocumentModificationContext & { temporary: false }
|
448
|
-
): Promise<Array<StoredDocument<Document<any, this>>>>;
|
449
|
-
createEmbeddedDocuments(
|
450
|
-
embeddedName: string,
|
451
|
-
data: Array<Record<string, unknown>>,
|
452
|
-
context: DocumentModificationContext & { temporary: boolean }
|
453
|
-
): Promise<Array<Document<any, this>>>;
|
454
|
-
createEmbeddedDocuments(
|
455
|
-
embeddedName: string,
|
456
|
-
data: Array<Record<string, unknown>>,
|
457
|
-
context?: DocumentModificationContext
|
458
|
-
): Promise<Array<StoredDocument<Document<any, this>>>>;
|
459
|
-
|
460
|
-
/**
|
461
|
-
* Update multiple embedded Document instances within a parent Document using provided differential data.
|
462
|
-
* @see {@link Document.updateDocuments}
|
463
|
-
* @param embeddedName - The name of the embedded Document type
|
464
|
-
* @param updates - An array of differential data objects, each used to update a single Document
|
465
|
-
* (default: `[]`)
|
466
|
-
* @param context - Additional context which customizes the creation workflow
|
467
|
-
* (default: `{}`)
|
468
|
-
* @returns An array of updated Document instances
|
469
|
-
*/
|
470
|
-
updateEmbeddedDocuments(
|
471
|
-
embeddedName: string,
|
472
|
-
updates?: Array<Record<string, unknown>>,
|
473
|
-
context?: DocumentModificationContext
|
474
|
-
): Promise<Array<Document<any, this>>>;
|
475
|
-
|
476
|
-
/**
|
477
|
-
* Delete multiple embedded Document instances within a parent Document using provided string ids.
|
478
|
-
* @see {@link Document.deleteDocuments}
|
479
|
-
* @param embeddedName - The name of the embedded Document type
|
480
|
-
* @param ids - An array of string ids for each Document to be deleted
|
481
|
-
* @param context - Additional context which customizes the deletion workflow
|
482
|
-
* (default: `{}`)
|
483
|
-
* @returns An array of deleted Document instances
|
484
|
-
*/
|
485
|
-
deleteEmbeddedDocuments(
|
486
|
-
embeddedName: string,
|
487
|
-
ids: Array<string>,
|
488
|
-
context?: DocumentModificationContext
|
489
|
-
): Promise<Array<Document<any, this>>>;
|
490
|
-
|
491
|
-
/**
|
492
|
-
* Get the value of a "flag" for this document
|
493
|
-
* See the setFlag method for more details on flags
|
494
|
-
*
|
495
|
-
* @param scope - The flag scope which namespaces the key
|
496
|
-
* @param key - The flag key
|
497
|
-
* @returns The flag value
|
498
|
-
*/
|
499
|
-
getFlag<
|
500
|
-
S extends keyof ConcreteDocumentData['_source']['flags'],
|
501
|
-
K extends keyof ConcreteDocumentData['_source']['flags'][S]
|
502
|
-
>(scope: S, key: K): ConcreteDocumentData['_source']['flags'][S][K];
|
503
|
-
getFlag<
|
504
|
-
S extends keyof ConcreteDocumentData['_source']['flags'],
|
505
|
-
K extends keyof Required<ConcreteDocumentData['_source']['flags']>[S]
|
506
|
-
>(scope: S, key: K): Required<ConcreteDocumentData['_source']['flags']>[S][K] | undefined;
|
507
|
-
getFlag<S extends keyof ConcreteDocumentData['_source']['flags']>(
|
508
|
-
scope: S,
|
509
|
-
key: string
|
510
|
-
): unknown extends ConcreteDocumentData['_source']['flags'][S] ? unknown : never;
|
511
|
-
getFlag(scope: string, key: string): unknown;
|
512
|
-
|
513
|
-
/**
|
514
|
-
* Assign a "flag" to this document.
|
515
|
-
* Flags represent key-value type data which can be used to store flexible or arbitrary data required by either
|
516
|
-
* the core software, game systems, or user-created modules.
|
517
|
-
*
|
518
|
-
* Each flag should be set using a scope which provides a namespace for the flag to help prevent collisions.
|
519
|
-
*
|
520
|
-
* Flags set by the core software use the "core" scope.
|
521
|
-
* Flags set by game systems or modules should use the canonical name attribute for the module
|
522
|
-
* Flags set by an individual world should "world" as the scope.
|
523
|
-
*
|
524
|
-
* Flag values can assume almost any data type. Setting a flag value to null will delete that flag.
|
525
|
-
*
|
526
|
-
* @param scope - The flag scope which namespaces the key
|
527
|
-
* @param key - The flag key
|
528
|
-
* @param value - The flag value
|
529
|
-
* @returns A Promise resolving to the updated document
|
530
|
-
*/
|
531
|
-
setFlag<
|
532
|
-
S extends keyof ConcreteDocumentData['_source']['flags'],
|
533
|
-
K extends keyof Required<ConcreteDocumentData['_source']['flags']>[S],
|
534
|
-
V extends Required<ConcreteDocumentData['_source']['flags']>[S][K]
|
535
|
-
>(scope: S, key: K, value: V): Promise<this>;
|
536
|
-
setFlag<S extends keyof ConcreteDocumentData['_source']['flags'], K extends string>(
|
537
|
-
scope: S,
|
538
|
-
key: K,
|
539
|
-
v: unknown extends ConcreteDocumentData['_source']['flags'][S] ? unknown : never
|
540
|
-
): Promise<this>;
|
541
|
-
|
542
|
-
/**
|
543
|
-
* Remove a flag assigned to the document
|
544
|
-
* @param scope - The flag scope which namespaces the key
|
545
|
-
* @param key - The flag key
|
546
|
-
* @returns The updated document instance
|
547
|
-
*/
|
548
|
-
unsetFlag(scope: string, key: string): Promise<this>;
|
549
|
-
|
550
|
-
/**
|
551
|
-
* Perform preliminary operations before a Document of this type is created.
|
552
|
-
* Pre-creation operations only occur for the client which requested the operation.
|
553
|
-
* @param data - The initial data used to create the document
|
554
|
-
* @param options - Additional options which modify the creation request
|
555
|
-
* @param user - The User requesting the document creation
|
556
|
-
*/
|
557
|
-
protected _preCreate(
|
558
|
-
data: ConstructorDataType<ConcreteDocumentData>,
|
559
|
-
options: DocumentModificationOptions,
|
560
|
-
user: BaseUser
|
561
|
-
): Promise<void>;
|
562
|
-
|
563
|
-
/**
|
564
|
-
* Perform preliminary operations before a Document of this type is updated.
|
565
|
-
* Pre-update operations only occur for the client which requested the operation.
|
566
|
-
* @param changed - The differential data that is changed relative to the documents prior values
|
567
|
-
* @param options - Additional options which modify the update request
|
568
|
-
* @param user - The User requesting the document update
|
569
|
-
*/
|
570
|
-
protected _preUpdate(
|
571
|
-
changed: DeepPartial<ConstructorDataType<ConcreteDocumentData>>,
|
572
|
-
options: DocumentModificationOptions,
|
573
|
-
user: BaseUser
|
574
|
-
): Promise<void>;
|
575
|
-
|
576
|
-
/**
|
577
|
-
* Perform preliminary operations before a Document of this type is deleted.
|
578
|
-
* Pre-delete operations only occur for the client which requested the operation.
|
579
|
-
* @param options - Additional options which modify the deletion request
|
580
|
-
* @param user - The User requesting the document deletion
|
581
|
-
*/
|
582
|
-
protected _preDelete(options: DocumentModificationOptions, user: BaseUser): Promise<void>;
|
583
|
-
|
584
|
-
/**
|
585
|
-
* Perform follow-up operations after a Document of this type is created.
|
586
|
-
* Post-creation operations occur for all clients after the creation is broadcast.
|
587
|
-
* @param data - The data from which the document was created
|
588
|
-
* @param options- Additional options which modify the creation request
|
589
|
-
* @param user - The id of the User requesting the document update
|
590
|
-
*/
|
591
|
-
protected _onCreate(
|
592
|
-
data: ConcreteDocumentData['_source'],
|
593
|
-
options: DocumentModificationOptions,
|
594
|
-
userId: string
|
595
|
-
): void;
|
596
|
-
|
597
|
-
/**
|
598
|
-
* Perform follow-up operations after a Document of this type is updated.
|
599
|
-
* Post-update operations occur for all clients after the update is broadcast.
|
600
|
-
* @param changed - The differential data that was changed relative to the documents prior values
|
601
|
-
* @param options - Additional options which modify the update request
|
602
|
-
* @param user - The id of the User requesting the document update
|
603
|
-
*/
|
604
|
-
protected _onUpdate(
|
605
|
-
changed: DeepPartial<ConcreteDocumentData['_source']>,
|
606
|
-
options: DocumentModificationOptions,
|
607
|
-
userId: string
|
608
|
-
): void;
|
609
|
-
|
610
|
-
/**
|
611
|
-
* Perform follow-up operations after a Document of this type is deleted.
|
612
|
-
* Post-deletion operations occur for all clients after the deletion is broadcast.
|
613
|
-
* @param options- Additional options which modify the deletion request
|
614
|
-
* @param user - The id of the User requesting the document update
|
615
|
-
*/
|
616
|
-
protected _onDelete(options: DocumentModificationOptions, userId: string): void;
|
617
|
-
|
618
|
-
/**
|
619
|
-
* Perform follow-up operations when a set of Documents of this type are created.
|
620
|
-
* This is where side effects of creation should be implemented.
|
621
|
-
* Post-creation side effects are performed only for the client which requested the operation.
|
622
|
-
* @param documents- The Document instances which were created
|
623
|
-
* @param context - The context for the modification operation
|
624
|
-
*
|
625
|
-
* @remarks The base implementation returns `void` but it is typed as
|
626
|
-
* `unknown` to allow deriving classes to return whatever they want. The
|
627
|
-
* return type is not meant to be used.
|
628
|
-
*/
|
629
|
-
protected static _onCreateDocuments<T extends DocumentConstructor>(
|
630
|
-
this: T,
|
631
|
-
documents: Array<InstanceType<ConfiguredDocumentClass<T>>>,
|
632
|
-
context: DocumentModificationContext
|
633
|
-
): Promise<unknown>;
|
634
|
-
|
635
|
-
/**
|
636
|
-
* Perform follow-up operations when a set of Documents of this type are updated.
|
637
|
-
* This is where side effects of updates should be implemented.
|
638
|
-
* Post-update side effects are performed only for the client which requested the operation.
|
639
|
-
* @param documents - The Document instances which were updated
|
640
|
-
* @param context - The context for the modification operation
|
641
|
-
*
|
642
|
-
* @remarks The base implementation returns `void` but it is typed as
|
643
|
-
* `unknown` to allow deriving classes to return whatever they want. The
|
644
|
-
* return type is not meant to be used.
|
645
|
-
*/
|
646
|
-
protected static _onUpdateDocuments<T extends DocumentConstructor>(
|
647
|
-
this: T,
|
648
|
-
documents: Array<InstanceType<ConfiguredDocumentClass<T>>>,
|
649
|
-
context: DocumentModificationContext
|
650
|
-
): Promise<unknown>;
|
651
|
-
|
652
|
-
/**
|
653
|
-
* Perform follow-up operations when a set of Documents of this type are deleted.
|
654
|
-
* This is where side effects of deletion should be implemented.
|
655
|
-
* Post-deletion side effects are performed only for the client which requested the operation.
|
656
|
-
* @param documents - The Document instances which were deleted
|
657
|
-
* @param context - The context for the modification operation
|
658
|
-
*
|
659
|
-
* @remarks The base implementation returns `void` but it is typed as
|
660
|
-
* `unknown` to allow deriving classes to return whatever they want. The
|
661
|
-
* return type is not meant to be used.
|
662
|
-
*/
|
663
|
-
protected static _onDeleteDocuments<T extends DocumentConstructor>(
|
664
|
-
this: T,
|
665
|
-
documents: Array<InstanceType<ConfiguredDocumentClass<T>>>,
|
666
|
-
context: DocumentModificationContext
|
667
|
-
): Promise<unknown>;
|
668
|
-
|
669
|
-
/**
|
670
|
-
* Transform the Document instance into a plain object.
|
671
|
-
* The created object is an independent copy of the original data.
|
672
|
-
* See DocumentData#toObject
|
673
|
-
* @param source - Draw values from the underlying data source rather than transformed values
|
674
|
-
* @returns The extracted primitive object
|
675
|
-
*/
|
676
|
-
toObject(
|
677
|
-
source?: true
|
678
|
-
): this['id'] extends string
|
679
|
-
? ReturnType<this['data']['toJSON']> & { _id: string }
|
680
|
-
: ReturnType<this['data']['toJSON']>;
|
681
|
-
toObject(
|
682
|
-
source: false
|
683
|
-
): this['id'] extends string
|
684
|
-
? ToObjectFalseType<ConcreteDocumentData> & { _id: string }
|
685
|
-
: ToObjectFalseType<ConcreteDocumentData>;
|
686
|
-
|
687
|
-
/**
|
688
|
-
* Convert the Document instance to a primitive object which can be serialized.
|
689
|
-
* See DocumentData#toJSON
|
690
|
-
* @returns The document data expressed as a plain object
|
691
|
-
*/
|
692
|
-
toJSON(): this['id'] extends string
|
693
|
-
? ReturnType<this['data']['toJSON']> & { _id: string }
|
694
|
-
: ReturnType<this['data']['toJSON']>;
|
695
|
-
|
696
|
-
/**
|
697
|
-
* For Documents which include game system data, migrate the system data object to conform to its latest data model.
|
698
|
-
* The data model is defined by the template.json specification included by the game system.
|
699
|
-
* @returns The migrated system data object
|
700
|
-
*/
|
701
|
-
migrateSystemData(): object;
|
702
|
-
}
|
703
|
-
|
704
|
-
export interface DocumentModificationOptions {
|
705
|
-
/**
|
706
|
-
* Block the dispatch of preCreate hooks for this operation
|
707
|
-
* @defaultValue `false`
|
708
|
-
*/
|
709
|
-
noHook?: boolean;
|
710
|
-
|
711
|
-
/**
|
712
|
-
* Return an index of the Document collection, used only during a get operation.
|
713
|
-
* @defaultValue `false`
|
714
|
-
*/
|
715
|
-
index?: boolean;
|
716
|
-
|
717
|
-
/**
|
718
|
-
* An array of fields to retrieve when indexing the collection
|
719
|
-
*/
|
720
|
-
indexFields?: string[];
|
721
|
-
|
722
|
-
/**
|
723
|
-
* When performing a creation operation, keep the provided _id instead of clearing it.
|
724
|
-
* @defaultValue `false`
|
725
|
-
*/
|
726
|
-
keepId?: boolean;
|
727
|
-
|
728
|
-
/**
|
729
|
-
* When performing a creation operation, keep existing _id values of documents embedded within the one being created instead of generating new ones.
|
730
|
-
* @defaultValue `true`
|
731
|
-
*/
|
732
|
-
keepEmbeddedIds?: boolean;
|
733
|
-
|
734
|
-
/**
|
735
|
-
* Create a temporary document which is not saved to the database. Only used during creation.
|
736
|
-
* @defaultValue `false`
|
737
|
-
*/
|
738
|
-
temporary?: boolean;
|
739
|
-
|
740
|
-
/**
|
741
|
-
* Automatically re-render existing applications associated with the document.
|
742
|
-
* @defaultValue `true`
|
743
|
-
*/
|
744
|
-
render?: boolean;
|
745
|
-
|
746
|
-
/**
|
747
|
-
* Automatically create and render the Document sheet when the Document is first created.
|
748
|
-
* @defaultValue `false`
|
749
|
-
*/
|
750
|
-
renderSheet?: boolean;
|
751
|
-
|
752
|
-
/**
|
753
|
-
* Difference each update object against current Document data to reduce the size of the transferred data. Only used during update.
|
754
|
-
* @defaultValue `true`
|
755
|
-
*/
|
756
|
-
diff?: boolean;
|
757
|
-
|
758
|
-
/**
|
759
|
-
* Merge objects recursively. If false, inner objects will be replaced explicitly. Use with caution!
|
760
|
-
* @defaultValue `true`
|
761
|
-
*/
|
762
|
-
recursive?: boolean;
|
763
|
-
|
764
|
-
/**
|
765
|
-
* Is the operation undoing a previous operation, only used by embedded Documents within a Scene
|
766
|
-
*/
|
767
|
-
isUndo?: boolean;
|
768
|
-
|
769
|
-
/**
|
770
|
-
* Whether to delete all documents of a given type, regardless of the array of ids provided. Only used during a delete operation.
|
771
|
-
*/
|
772
|
-
deleteAll?: boolean;
|
773
|
-
}
|
774
|
-
|
775
|
-
declare global {
|
776
|
-
interface DocumentModificationContext extends DocumentModificationOptions {
|
777
|
-
/**
|
778
|
-
* A parent Document within which these Documents should be embedded
|
779
|
-
*/
|
780
|
-
parent?: Document<any, any>;
|
781
|
-
|
782
|
-
/**
|
783
|
-
* A Compendium pack identifier within which the Documents should be modified
|
784
|
-
*/
|
785
|
-
pack?: string;
|
786
|
-
}
|
787
|
-
}
|
788
|
-
|
789
|
-
export interface Context<Parent extends Document<any, any> | null> {
|
790
|
-
/**
|
791
|
-
* A parent document within which this Document is embedded
|
792
|
-
*/
|
793
|
-
parent?: Parent;
|
794
|
-
|
795
|
-
/**
|
796
|
-
* A named compendium pack within which this Document exists
|
797
|
-
*/
|
798
|
-
pack?: string;
|
799
|
-
}
|
800
|
-
|
801
|
-
export interface Metadata<ConcreteDocument extends Document<any, any>> {
|
802
|
-
name: DocumentType;
|
803
|
-
collection: string;
|
804
|
-
label: string;
|
805
|
-
labelPlural: string; // This is not set for the Document class but every class that implements Document actually provides it.
|
806
|
-
types: readonly string[];
|
807
|
-
embedded: Record<string, ConstructorOf<Document<any, any>>>;
|
808
|
-
hasSystemData: boolean;
|
809
|
-
permissions: {
|
810
|
-
create: string | ((user: BaseUser, doc: ConcreteDocument, data: ConcreteDocument['data']['_source']) => boolean);
|
811
|
-
update:
|
812
|
-
| string
|
813
|
-
| ((
|
814
|
-
user: BaseUser,
|
815
|
-
doc: ConcreteDocument,
|
816
|
-
data: DeepPartial<ConstructorDataType<ConcreteDocument['data']>>
|
817
|
-
) => boolean);
|
818
|
-
delete: string | ((user: BaseUser, doc: ConcreteDocument, data: {}) => boolean);
|
819
|
-
};
|
820
|
-
pack: any;
|
821
|
-
}
|
822
|
-
|
823
|
-
export interface DocumentMetadata {
|
824
|
-
name: 'Document';
|
825
|
-
collection: 'documents';
|
826
|
-
label: 'DOCUMENT.Document';
|
827
|
-
types: [];
|
828
|
-
embedded: {};
|
829
|
-
hasSystemData: false;
|
830
|
-
permissions: {
|
831
|
-
create: 'ASSISTANT';
|
832
|
-
update: 'ASSISTANT';
|
833
|
-
delete: 'ASSISTANT';
|
834
|
-
};
|
835
|
-
pack: null;
|
836
|
-
}
|
837
|
-
|
838
|
-
export default Document;
|