@7h3laughingman/pf2e-helpers 7.10.13 → 8.1.0
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/dist/utilities/foundry-helpers.d.ts +15 -15
- package/dist/utilities/index.d.ts +2 -0
- package/dist/utilities/index.js +2 -0
- package/dist/zod/actor/base.d.ts +4 -4
- package/dist/zod/actor/creature.d.ts +2 -2
- package/dist/zod/constants.d.ts +21 -23
- package/dist/zod/constants.js +3 -5
- package/dist/zod/document.js +1 -1
- package/dist/zod/rules/ae-like.d.ts +2 -2
- package/dist/zod/rules/roll-options.d.ts +1 -1
- package/package.json +63 -62
- package/dist/lib-wrapper/index.d.ts +0 -1
- package/dist/socketlib/index.d.ts +0 -1
|
@@ -8,8 +8,6 @@ import {
|
|
|
8
8
|
EncounterPF2e,
|
|
9
9
|
ItemPF2e,
|
|
10
10
|
MacroPF2e,
|
|
11
|
-
MeasuredTemplateDocumentPF2e,
|
|
12
|
-
MeasuredTemplatePF2e,
|
|
13
11
|
RegionBehaviorPF2e,
|
|
14
12
|
RegionDocumentPF2e,
|
|
15
13
|
RegionPF2e,
|
|
@@ -31,7 +29,6 @@ export * from "@7h3laughingman/foundry-helpers/utilities";
|
|
|
31
29
|
export function isPlaceableObject(value: unknown, embeddedName: "AmbientLight"): value is AmbientLightPF2e;
|
|
32
30
|
export function isPlaceableObject(value: unknown, embeddedName: "AmbientSound"): value is AmbientSound;
|
|
33
31
|
export function isPlaceableObject(value: unknown, embeddedName: "Drawing"): value is Drawing;
|
|
34
|
-
export function isPlaceableObject(value: unknown, embeddedName: "MeasuredTemplate"): value is MeasuredTemplatePF2e;
|
|
35
32
|
export function isPlaceableObject(value: unknown, embeddedName: "Note"): value is Note;
|
|
36
33
|
export function isPlaceableObject(value: unknown, embeddedName: "Region"): value is RegionPF2e;
|
|
37
34
|
export function isPlaceableObject(value: unknown, embeddedName: "Tile"): value is Tile;
|
|
@@ -45,9 +42,6 @@ export function placeableObjectHasScene(
|
|
|
45
42
|
value: Maybe<AmbientSound>
|
|
46
43
|
): value is AmbientSound<AmbientSoundDocument<ScenePF2e>>;
|
|
47
44
|
export function placeableObjectHasScene(value: Maybe<Drawing>): value is Drawing<DrawingDocument<ScenePF2e>>;
|
|
48
|
-
export function placeableObjectHasScene(
|
|
49
|
-
value: Maybe<MeasuredTemplatePF2e>
|
|
50
|
-
): value is MeasuredTemplatePF2e<MeasuredTemplateDocumentPF2e<ScenePF2e>>;
|
|
51
45
|
export function placeableObjectHasScene(value: Maybe<Note>): value is Note<NoteDocument<ScenePF2e>>;
|
|
52
46
|
export function placeableObjectHasScene(value: Maybe<RegionPF2e>): value is RegionPF2e<RegionDocumentPF2e<ScenePF2e>>;
|
|
53
47
|
export function placeableObjectHasScene(value: Maybe<Tile>): value is Tile<TileDocument<ScenePF2e>>;
|
|
@@ -59,11 +53,14 @@ export function isDocumentType(
|
|
|
59
53
|
documentName: "ActiveEffect"
|
|
60
54
|
): value is ActiveEffectPF2e<ActorPF2e | ItemPF2e | null>;
|
|
61
55
|
export function isDocumentType(value: unknown, documentName: "Actor"): value is ActorPF2e;
|
|
62
|
-
export function isDocumentType(value: unknown, documentName: "ActorDelta"): value is ActorDelta
|
|
56
|
+
export function isDocumentType(value: unknown, documentName: "ActorDelta"): value is ActorDelta<TokenDocument | null>;
|
|
63
57
|
export function isDocumentType(value: unknown, documentName: "Adventure"): value is Adventure;
|
|
64
58
|
export function isDocumentType(value: unknown, documentName: "AmbientLight"): value is AmbientLightDocumentPF2e;
|
|
65
|
-
export function isDocumentType(
|
|
66
|
-
|
|
59
|
+
export function isDocumentType(
|
|
60
|
+
value: unknown,
|
|
61
|
+
documentName: "AmbientSound"
|
|
62
|
+
): value is AmbientSoundDocument<Scene | null>;
|
|
63
|
+
export function isDocumentType(value: unknown, documentName: "Card"): value is Card<Cards | null>;
|
|
67
64
|
export function isDocumentType(value: unknown, documentName: "Cards"): value is Cards;
|
|
68
65
|
export function isDocumentType(value: unknown, documentName: "ChatMessage"): value is ChatMessagePF2e;
|
|
69
66
|
export function isDocumentType(value: unknown, documentName: "Combat"): value is EncounterPF2e;
|
|
@@ -76,9 +73,9 @@ export function isDocumentType(value: unknown, documentName: "Item"): value is I
|
|
|
76
73
|
export function isDocumentType(value: unknown, documentName: "JournalEntry"): value is JournalEntry;
|
|
77
74
|
export function isDocumentType(value: unknown, documentName: "JournalEntryCategory"): value is JournalEntryCategory;
|
|
78
75
|
export function isDocumentType(value: unknown, documentName: "JournalEntryPage"): value is JournalEntryPage;
|
|
76
|
+
export function isDocumentType(value: unknown, documentName: "Level"): value is Level;
|
|
79
77
|
export function isDocumentType(value: unknown, documentName: "Macro"): value is MacroPF2e;
|
|
80
|
-
export function isDocumentType(value: unknown, documentName: "
|
|
81
|
-
export function isDocumentType(value: unknown, documentName: "Note"): value is NoteDocument;
|
|
78
|
+
export function isDocumentType(value: unknown, documentName: "Note"): value is NoteDocument<Scene | null>;
|
|
82
79
|
export function isDocumentType(value: unknown, documentName: "Playlist"): value is Playlist;
|
|
83
80
|
export function isDocumentType(value: unknown, documentName: "PlaylistSound"): value is PlaylistSound;
|
|
84
81
|
export function isDocumentType(value: unknown, documentName: "Region"): value is RegionDocumentPF2e;
|
|
@@ -96,17 +93,20 @@ export function documentHasParent(
|
|
|
96
93
|
value: Maybe<ActiveEffectPF2e<ActorPF2e | ItemPF2e | null>>
|
|
97
94
|
): value is ActiveEffectPF2e<ActorPF2e | ItemPF2e>;
|
|
98
95
|
export function documentHasParent(value: Maybe<ActorPF2e>): value is ActorPF2e<TokenDocumentPF2e>;
|
|
99
|
-
export function documentHasParent(
|
|
96
|
+
export function documentHasParent(
|
|
97
|
+
value: Maybe<ActorDelta<TokenDocument | null>>
|
|
98
|
+
): value is ActorDelta<TokenDocumentPF2e>;
|
|
100
99
|
export function documentHasParent(value: Maybe<AmbientLightDocumentPF2e>): value is AmbientLightDocumentPF2e<ScenePF2e>;
|
|
101
|
-
export function documentHasParent(
|
|
100
|
+
export function documentHasParent(
|
|
101
|
+
value: Maybe<AmbientSoundDocument<Scene | null>>
|
|
102
|
+
): value is AmbientSoundDocument<ScenePF2e>;
|
|
102
103
|
export function documentHasParent(value: Maybe<CombatantPF2e>): value is CombatantPF2e<EncounterPF2e>;
|
|
103
104
|
export function documentHasParent(value: Maybe<CombatantGroup>): value is CombatantGroup<EncounterPF2e>;
|
|
104
105
|
export function documentHasParent(value: Maybe<DrawingDocument>): value is DrawingDocument<ScenePF2e>;
|
|
105
106
|
export function documentHasParent(value: Maybe<ItemPF2e>): value is ItemPF2e<ActorPF2e>;
|
|
106
107
|
export function documentHasParent(value: Maybe<JournalEntryCategory>): value is JournalEntryCategory<JournalEntry>;
|
|
107
108
|
export function documentHasParent(value: Maybe<JournalEntryPage>): value is JournalEntryPage<JournalEntry>;
|
|
108
|
-
export function documentHasParent(value: Maybe<
|
|
109
|
-
export function documentHasParent(value: Maybe<NoteDocument>): value is NoteDocument<ScenePF2e>;
|
|
109
|
+
export function documentHasParent(value: Maybe<NoteDocument<Scene | null>>): value is NoteDocument<ScenePF2e>;
|
|
110
110
|
export function documentHasParent(value: Maybe<PlaylistSound>): value is PlaylistSound<Playlist>;
|
|
111
111
|
export function documentHasParent(value: Maybe<RegionDocumentPF2e>): value is RegionDocumentPF2e<ScenePF2e>;
|
|
112
112
|
export function documentHasParent(value: Maybe<RegionBehaviorPF2e>): value is RegionBehaviorPF2e<RegionDocumentPF2e>;
|
|
@@ -3,8 +3,10 @@ export * from "./check.js";
|
|
|
3
3
|
export * from "./damage.js";
|
|
4
4
|
export * from "./distance.js";
|
|
5
5
|
export * from "./foundry-helpers.js";
|
|
6
|
+
export * from "./item.js";
|
|
6
7
|
export * from "./notes.js";
|
|
7
8
|
export * from "./roll.js";
|
|
9
|
+
export * from "./rules.js";
|
|
8
10
|
export * from "./scene.js";
|
|
9
11
|
export * from "./system.js";
|
|
10
12
|
export * from "./token.js";
|
package/dist/utilities/index.js
CHANGED
|
@@ -3,8 +3,10 @@ export * from "./check.js";
|
|
|
3
3
|
export * from "./damage.js";
|
|
4
4
|
export * from "./distance.js";
|
|
5
5
|
export * from "./foundry-helpers.js";
|
|
6
|
+
export * from "./item.js";
|
|
6
7
|
export * from "./notes.js";
|
|
7
8
|
export * from "./roll.js";
|
|
9
|
+
export * from "./rules.js";
|
|
8
10
|
export * from "./scene.js";
|
|
9
11
|
export * from "./system.js";
|
|
10
12
|
export * from "./token.js";
|
package/dist/zod/actor/base.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const zActorAlliance: z.ZodLiteral<ActorAlliance>;
|
|
|
7
7
|
export declare const zSaveType: z.ZodCustom<"fortitude" | "reflex" | "will", "fortitude" | "reflex" | "will">;
|
|
8
8
|
export declare const zDCSlug: z.ZodUnion<readonly [z.ZodLiteral<"perception" | "armor" | "ac">, z.ZodCustom<"fortitude" | "reflex" | "will", "fortitude" | "reflex" | "will">, z.ZodCustom<"performance" | "athletics" | "deception" | "stealth" | "nature" | "crafting" | "acrobatics" | "arcana" | "diplomacy" | "intimidation" | "medicine" | "occultism" | "religion" | "society" | "survival" | "thievery", "performance" | "athletics" | "deception" | "stealth" | "nature" | "crafting" | "acrobatics" | "arcana" | "diplomacy" | "intimidation" | "medicine" | "occultism" | "religion" | "society" | "survival" | "thievery">]>;
|
|
9
9
|
export declare const zMovementType: z.ZodLiteral<MovementType>;
|
|
10
|
-
export declare const zImmunityType: z.ZodCustom<"time" | "custom" | "controlled" | "
|
|
11
|
-
export declare const zWeaknessType: z.ZodCustom<"time" | "custom" | "
|
|
12
|
-
export declare const zResistanceType: z.ZodCustom<"time" | "custom" | "
|
|
13
|
-
export declare const zIWRType: z.ZodUnion<readonly [z.ZodCustom<"time" | "custom" | "controlled" | "
|
|
10
|
+
export declare const zImmunityType: z.ZodCustom<"time" | "custom" | "controlled" | "force" | "light" | "blinded" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "auditory" | "healing" | "illusion" | "plant" | "mental" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "curse" | "emotion" | "inhaled" | "olfactory" | "poison" | "polymorph" | "possession" | "scrying" | "sleep" | "visual" | "detection" | "disease" | "prediction" | "trip" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "clumsy" | "confused" | "dazzled" | "deafened" | "doomed" | "drained" | "enfeebled" | "fascinated" | "fatigued" | "fleeing" | "frightened" | "grabbed" | "immobilized" | "off-guard" | "paralyzed" | "petrified" | "prone" | "restrained" | "sickened" | "slowed" | "stunned" | "stupefied" | "unconscious" | "wounded" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "aging" | "area-damage" | "critical-hits" | "death-effects" | "energy" | "fear-effects" | "fortune-effects" | "magic" | "misfortune-effects" | "non-magical" | "nonlethal-attacks" | "object-immunities" | "precision" | "salt-water" | "spell-deflection" | "swarm-attacks" | "swarm-mind" | "unarmed-attacks", "time" | "custom" | "controlled" | "force" | "light" | "blinded" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "auditory" | "healing" | "illusion" | "plant" | "mental" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "curse" | "emotion" | "inhaled" | "olfactory" | "poison" | "polymorph" | "possession" | "scrying" | "sleep" | "visual" | "detection" | "disease" | "prediction" | "trip" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "clumsy" | "confused" | "dazzled" | "deafened" | "doomed" | "drained" | "enfeebled" | "fascinated" | "fatigued" | "fleeing" | "frightened" | "grabbed" | "immobilized" | "off-guard" | "paralyzed" | "petrified" | "prone" | "restrained" | "sickened" | "slowed" | "stunned" | "stupefied" | "unconscious" | "wounded" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "aging" | "area-damage" | "critical-hits" | "death-effects" | "energy" | "fear-effects" | "fortune-effects" | "magic" | "misfortune-effects" | "non-magical" | "nonlethal-attacks" | "object-immunities" | "precision" | "salt-water" | "spell-deflection" | "swarm-attacks" | "swarm-mind" | "unarmed-attacks">;
|
|
11
|
+
export declare const zWeaknessType: z.ZodCustom<"time" | "custom" | "force" | "light" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "magical" | "mythic" | "plant" | "mental" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "emotion" | "poison" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "weapons" | "spells" | "glass" | "vorpal" | "area-damage" | "critical-hits" | "energy" | "non-magical" | "nonlethal-attacks" | "precision" | "salt-water" | "unarmed-attacks" | "all-damage" | "arrow-vulnerability" | "axe-vulnerability" | "ghost-touch" | "salt" | "splash-damage" | "vampire-weaknesses" | "vorpal-fear" | "vulnerable-to-sunlight" | "weapons-shedding-bright-light", "time" | "custom" | "force" | "light" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "magical" | "mythic" | "plant" | "mental" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "emotion" | "poison" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "weapons" | "spells" | "glass" | "vorpal" | "area-damage" | "critical-hits" | "energy" | "non-magical" | "nonlethal-attacks" | "precision" | "salt-water" | "unarmed-attacks" | "all-damage" | "arrow-vulnerability" | "axe-vulnerability" | "ghost-touch" | "salt" | "splash-damage" | "vampire-weaknesses" | "vorpal-fear" | "vulnerable-to-sunlight" | "weapons-shedding-bright-light">;
|
|
12
|
+
export declare const zResistanceType: z.ZodCustom<"time" | "custom" | "force" | "light" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "magical" | "mythic" | "plant" | "mental" | "nonlethal" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "poison" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "weapons" | "spells" | "vorpal" | "area-damage" | "critical-hits" | "energy" | "non-magical" | "nonlethal-attacks" | "precision" | "salt-water" | "unarmed-attacks" | "all-damage" | "ghost-touch" | "salt" | "weapons-shedding-bright-light" | "axes" | "damage-from-spells" | "protean-anatomy" | "vorpal-adamantine", "time" | "custom" | "force" | "light" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "magical" | "mythic" | "plant" | "mental" | "nonlethal" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "poison" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "weapons" | "spells" | "vorpal" | "area-damage" | "critical-hits" | "energy" | "non-magical" | "nonlethal-attacks" | "precision" | "salt-water" | "unarmed-attacks" | "all-damage" | "ghost-touch" | "salt" | "weapons-shedding-bright-light" | "axes" | "damage-from-spells" | "protean-anatomy" | "vorpal-adamantine">;
|
|
13
|
+
export declare const zIWRType: z.ZodUnion<readonly [z.ZodCustom<"time" | "custom" | "controlled" | "force" | "light" | "blinded" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "auditory" | "healing" | "illusion" | "plant" | "mental" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "curse" | "emotion" | "inhaled" | "olfactory" | "poison" | "polymorph" | "possession" | "scrying" | "sleep" | "visual" | "detection" | "disease" | "prediction" | "trip" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "clumsy" | "confused" | "dazzled" | "deafened" | "doomed" | "drained" | "enfeebled" | "fascinated" | "fatigued" | "fleeing" | "frightened" | "grabbed" | "immobilized" | "off-guard" | "paralyzed" | "petrified" | "prone" | "restrained" | "sickened" | "slowed" | "stunned" | "stupefied" | "unconscious" | "wounded" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "aging" | "area-damage" | "critical-hits" | "death-effects" | "energy" | "fear-effects" | "fortune-effects" | "magic" | "misfortune-effects" | "non-magical" | "nonlethal-attacks" | "object-immunities" | "precision" | "salt-water" | "spell-deflection" | "swarm-attacks" | "swarm-mind" | "unarmed-attacks", "time" | "custom" | "controlled" | "force" | "light" | "blinded" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "auditory" | "healing" | "illusion" | "plant" | "mental" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "curse" | "emotion" | "inhaled" | "olfactory" | "poison" | "polymorph" | "possession" | "scrying" | "sleep" | "visual" | "detection" | "disease" | "prediction" | "trip" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "clumsy" | "confused" | "dazzled" | "deafened" | "doomed" | "drained" | "enfeebled" | "fascinated" | "fatigued" | "fleeing" | "frightened" | "grabbed" | "immobilized" | "off-guard" | "paralyzed" | "petrified" | "prone" | "restrained" | "sickened" | "slowed" | "stunned" | "stupefied" | "unconscious" | "wounded" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "aging" | "area-damage" | "critical-hits" | "death-effects" | "energy" | "fear-effects" | "fortune-effects" | "magic" | "misfortune-effects" | "non-magical" | "nonlethal-attacks" | "object-immunities" | "precision" | "salt-water" | "spell-deflection" | "swarm-attacks" | "swarm-mind" | "unarmed-attacks">, z.ZodCustom<"time" | "custom" | "force" | "light" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "magical" | "mythic" | "plant" | "mental" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "emotion" | "poison" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "weapons" | "spells" | "glass" | "vorpal" | "area-damage" | "critical-hits" | "energy" | "non-magical" | "nonlethal-attacks" | "precision" | "salt-water" | "unarmed-attacks" | "all-damage" | "arrow-vulnerability" | "axe-vulnerability" | "ghost-touch" | "salt" | "splash-damage" | "vampire-weaknesses" | "vorpal-fear" | "vulnerable-to-sunlight" | "weapons-shedding-bright-light", "time" | "custom" | "force" | "light" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "magical" | "mythic" | "plant" | "mental" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "emotion" | "poison" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "weapons" | "spells" | "glass" | "vorpal" | "area-damage" | "critical-hits" | "energy" | "non-magical" | "nonlethal-attacks" | "precision" | "salt-water" | "unarmed-attacks" | "all-damage" | "arrow-vulnerability" | "axe-vulnerability" | "ghost-touch" | "salt" | "splash-damage" | "vampire-weaknesses" | "vorpal-fear" | "vulnerable-to-sunlight" | "weapons-shedding-bright-light">, z.ZodCustom<"time" | "custom" | "force" | "light" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "magical" | "mythic" | "plant" | "mental" | "nonlethal" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "poison" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "weapons" | "spells" | "vorpal" | "area-damage" | "critical-hits" | "energy" | "non-magical" | "nonlethal-attacks" | "precision" | "salt-water" | "unarmed-attacks" | "all-damage" | "ghost-touch" | "salt" | "weapons-shedding-bright-light" | "axes" | "damage-from-spells" | "protean-anatomy" | "vorpal-adamantine", "time" | "custom" | "force" | "light" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "magical" | "mythic" | "plant" | "mental" | "nonlethal" | "radiation" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "poison" | "physical" | "abysium" | "adamantine" | "dawnsilver" | "djezet" | "duskwood" | "inubrix" | "noqual" | "orichalcum" | "peachwood" | "siccatite" | "silver" | "cold-iron" | "persistent-damage" | "bleed" | "bludgeoning" | "piercing" | "slashing" | "weapons" | "spells" | "vorpal" | "area-damage" | "critical-hits" | "energy" | "non-magical" | "nonlethal-attacks" | "precision" | "salt-water" | "unarmed-attacks" | "all-damage" | "ghost-touch" | "salt" | "weapons-shedding-bright-light" | "axes" | "damage-from-spells" | "protean-anatomy" | "vorpal-adamantine">]>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CreatureActorType, ModeOfBeing, SenseAcuity, SpecialVisionType } from "@7h3laughingman/pf2e-types/module/actor/creature/types.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
export declare const zCreatureActorType: z.ZodLiteral<CreatureActorType>;
|
|
4
|
-
export declare const zCreatureTrait: z.ZodCustom<"time" | "div" | "monitor" | "
|
|
4
|
+
export declare const zCreatureTrait: z.ZodCustom<"time" | "div" | "monitor" | "force" | "light" | "android" | "construct" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "clockwork" | "illusion" | "mythic" | "plant" | "tech" | "mental" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "fey" | "kobold" | "poison" | "beast" | "dream" | "eidolon" | "fungus" | "incorporeal" | "shadow" | "summoned" | "aiuvarin" | "anadi" | "aphorite" | "ardande" | "astrazoan" | "athamaru" | "automaton" | "awakened-animal" | "azarketi" | "bantrid" | "barathu" | "beastkin" | "borai" | "brenneri" | "bugbear" | "catfolk" | "centaur" | "changeling" | "conrasu" | "contemplative" | "copaxi" | "corpsefolk" | "dhampir" | "dragonblood" | "dragonet" | "dragonkin" | "dromaar" | "duskwalker" | "dwarf" | "elebrian" | "elf" | "entu-colony" | "fetchling" | "fleshwarp" | "fonqugon" | "formian" | "ganzi" | "gap-touched" | "geniekin" | "gfolian" | "ghoran" | "gnoll" | "gnome" | "goblin" | "goloma" | "grippli" | "halfling" | "hobgoblin" | "human" | "hungerseed" | "ijtikri" | "ikeshti" | "izalguun" | "jotunborn" | "kalo" | "kasatha" | "kashrishi" | "khizar" | "kitsune" | "lashunta" | "leshy" | "lizardfolk" | "madrosarai" | "maraquoi" | "merfolk" | "minotaur" | "moyishuu" | "naari" | "nagaji" | "nephilim" | "novian" | "orc" | "oread" | "orocoran" | "osharu" | "pahtra" | "poppet" | "prismeni" | "ratfolk" | "raxilite" | "reflection" | "ryphorian" | "samsaran" | "sarangay" | "sarcesian" | "shirren" | "shisk" | "shobhad" | "shoony" | "skeleton" | "skittermander" | "sprite" | "strix" | "suli" | "surki" | "sylph" | "talos" | "talphi" | "tanuki" | "tengu" | "trox" | "undine" | "urog" | "vanara" | "vesk" | "vishkanya" | "vlaka" | "wayang" | "worlanisi" | "xenometric-android" | "yaksha" | "yaoguai" | "aeon" | "aberration" | "aesir" | "agathion" | "amphibious" | "angel" | "animal" | "anugobu" | "aquatic" | "archon" | "astral" | "asura" | "azata" | "blight" | "boggard" | "caligni" | "celestial" | "charau-ka" | "cosmic" | "couatl" | "daemon" | "darvakka" | "demon" | "dero" | "devil" | "dinosaur" | "dragon" | "drift" | "drow" | "duergar" | "elemental" | "ethereal" | "experiment" | "fiend" | "genie" | "ghost" | "ghoul" | "ghul" | "giant" | "gigas" | "girtablilu" | "golem" | "graveknight" | "gremlin" | "grioth" | "hag" | "hantu" | "herald" | "hryngar" | "humanoid" | "inevitable" | "jinsul" | "kaiju" | "kami" | "kothama" | "kovintus" | "kucharn" | "lilu" | "locathah" | "maftet" | "mindless" | "minion" | "morlock" | "mortic" | "mummy" | "munavri" | "mutant" | "nindoru" | "nymph" | "oni" | "ooze" | "paaridar" | "palinthanos" | "persona-flirt" | "persona-guardian" | "persona-leader" | "persona-scholar" | "persona-scoundrel" | "persona-underdog" | "persona-warrior" | "persona-wildcard" | "petitioner" | "phantom" | "protean" | "psychopomp" | "qlippoth" | "rakshasa" | "robot" | "sahkil" | "sea-devil" | "sedacthy" | "serpentfolk" | "seugathi" | "shabti" | "shade" | "siktempora" | "skelm" | "skulk" | "soulbound" | "spectra" | "sporeborn" | "spriggan" | "stheno" | "swarm" | "tane" | "tanggal" | "titan" | "troll" | "troop" | "undead" | "urdefhan" | "vampire" | "velstrac" | "werecreature" | "wight" | "wild-hunt" | "wraith" | "wraithvine" | "wyrwood" | "xulgath" | "zombie", "time" | "div" | "monitor" | "force" | "light" | "android" | "construct" | "arcane" | "divine" | "occult" | "primal" | "alchemical" | "clockwork" | "illusion" | "mythic" | "plant" | "tech" | "mental" | "spirit" | "vitality" | "void" | "holy" | "unholy" | "acid" | "cold" | "electricity" | "fire" | "sonic" | "air" | "earth" | "metal" | "water" | "wood" | "fey" | "kobold" | "poison" | "beast" | "dream" | "eidolon" | "fungus" | "incorporeal" | "shadow" | "summoned" | "aiuvarin" | "anadi" | "aphorite" | "ardande" | "astrazoan" | "athamaru" | "automaton" | "awakened-animal" | "azarketi" | "bantrid" | "barathu" | "beastkin" | "borai" | "brenneri" | "bugbear" | "catfolk" | "centaur" | "changeling" | "conrasu" | "contemplative" | "copaxi" | "corpsefolk" | "dhampir" | "dragonblood" | "dragonet" | "dragonkin" | "dromaar" | "duskwalker" | "dwarf" | "elebrian" | "elf" | "entu-colony" | "fetchling" | "fleshwarp" | "fonqugon" | "formian" | "ganzi" | "gap-touched" | "geniekin" | "gfolian" | "ghoran" | "gnoll" | "gnome" | "goblin" | "goloma" | "grippli" | "halfling" | "hobgoblin" | "human" | "hungerseed" | "ijtikri" | "ikeshti" | "izalguun" | "jotunborn" | "kalo" | "kasatha" | "kashrishi" | "khizar" | "kitsune" | "lashunta" | "leshy" | "lizardfolk" | "madrosarai" | "maraquoi" | "merfolk" | "minotaur" | "moyishuu" | "naari" | "nagaji" | "nephilim" | "novian" | "orc" | "oread" | "orocoran" | "osharu" | "pahtra" | "poppet" | "prismeni" | "ratfolk" | "raxilite" | "reflection" | "ryphorian" | "samsaran" | "sarangay" | "sarcesian" | "shirren" | "shisk" | "shobhad" | "shoony" | "skeleton" | "skittermander" | "sprite" | "strix" | "suli" | "surki" | "sylph" | "talos" | "talphi" | "tanuki" | "tengu" | "trox" | "undine" | "urog" | "vanara" | "vesk" | "vishkanya" | "vlaka" | "wayang" | "worlanisi" | "xenometric-android" | "yaksha" | "yaoguai" | "aeon" | "aberration" | "aesir" | "agathion" | "amphibious" | "angel" | "animal" | "anugobu" | "aquatic" | "archon" | "astral" | "asura" | "azata" | "blight" | "boggard" | "caligni" | "celestial" | "charau-ka" | "cosmic" | "couatl" | "daemon" | "darvakka" | "demon" | "dero" | "devil" | "dinosaur" | "dragon" | "drift" | "drow" | "duergar" | "elemental" | "ethereal" | "experiment" | "fiend" | "genie" | "ghost" | "ghoul" | "ghul" | "giant" | "gigas" | "girtablilu" | "golem" | "graveknight" | "gremlin" | "grioth" | "hag" | "hantu" | "herald" | "hryngar" | "humanoid" | "inevitable" | "jinsul" | "kaiju" | "kami" | "kothama" | "kovintus" | "kucharn" | "lilu" | "locathah" | "maftet" | "mindless" | "minion" | "morlock" | "mortic" | "mummy" | "munavri" | "mutant" | "nindoru" | "nymph" | "oni" | "ooze" | "paaridar" | "palinthanos" | "persona-flirt" | "persona-guardian" | "persona-leader" | "persona-scholar" | "persona-scoundrel" | "persona-underdog" | "persona-warrior" | "persona-wildcard" | "petitioner" | "phantom" | "protean" | "psychopomp" | "qlippoth" | "rakshasa" | "robot" | "sahkil" | "sea-devil" | "sedacthy" | "serpentfolk" | "seugathi" | "shabti" | "shade" | "siktempora" | "skelm" | "skulk" | "soulbound" | "spectra" | "sporeborn" | "spriggan" | "stheno" | "swarm" | "tane" | "tanggal" | "titan" | "troll" | "troop" | "undead" | "urdefhan" | "vampire" | "velstrac" | "werecreature" | "wight" | "wild-hunt" | "wraith" | "wraithvine" | "wyrwood" | "xulgath" | "zombie">;
|
|
5
5
|
export declare const zCreatureType: z.ZodCustom<"time" | "monitor" | "construct" | "plant" | "spirit" | "vitality" | "void" | "fey" | "beast" | "dream" | "fungus" | "shadow" | "aberration" | "animal" | "astral" | "celestial" | "dragon" | "elemental" | "ethereal" | "fiend" | "giant" | "humanoid" | "ooze" | "petitioner" | "undead", "time" | "monitor" | "construct" | "plant" | "spirit" | "vitality" | "void" | "fey" | "beast" | "dream" | "fungus" | "shadow" | "aberration" | "animal" | "astral" | "celestial" | "dragon" | "elemental" | "ethereal" | "fiend" | "giant" | "humanoid" | "ooze" | "petitioner" | "undead">;
|
|
6
6
|
export declare const zLanguage: z.ZodCustom<string, string>;
|
|
7
7
|
export declare const zAttitude: z.ZodCustom<"friendly" | "helpful" | "hostile" | "indifferent" | "unfriendly", "friendly" | "helpful" | "hostile" | "indifferent" | "unfriendly">;
|
|
8
8
|
export declare const zModeOfBeing: z.ZodLiteral<ModeOfBeing>;
|
|
9
9
|
export declare const zSenseAcuity: z.ZodLiteral<SenseAcuity>;
|
|
10
|
-
export declare const zSenseType: z.ZodCustom<"darkvision" | "tremorsense" | "bloodsense" | "echolocation" | "greater-darkvision" | "infrared-vision" | "lifesense" | "low-light-vision" | "magicsense" | "motion-sense" | "scent" | "see-invisibility" | "spiritsense" | "thoughtsense" | "truesight" | "wavesense", "darkvision" | "tremorsense" | "bloodsense" | "echolocation" | "greater-darkvision" | "infrared-vision" | "lifesense" | "low-light-vision" | "magicsense" | "motion-sense" | "scent" | "see-invisibility" | "spiritsense" | "thoughtsense" | "truesight" | "wavesense">;
|
|
10
|
+
export declare const zSenseType: z.ZodCustom<"darkvision" | "tremorsense" | "bloodsense" | "echolocation" | "electromagnetic-sense" | "greater-darkvision" | "infrared-vision" | "lifesense" | "low-light-vision" | "magicsense" | "motion-sense" | "scent" | "see-invisibility" | "spiritsense" | "thoughtsense" | "truesight" | "wavesense", "darkvision" | "tremorsense" | "bloodsense" | "echolocation" | "electromagnetic-sense" | "greater-darkvision" | "infrared-vision" | "lifesense" | "low-light-vision" | "magicsense" | "motion-sense" | "scent" | "see-invisibility" | "spiritsense" | "thoughtsense" | "truesight" | "wavesense">;
|
|
11
11
|
export declare const zSpecialVisionType: z.ZodLiteral<SpecialVisionType>;
|
package/dist/zod/constants.d.ts
CHANGED
|
@@ -1,60 +1,58 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const zActiveEffectChangeType: z.ZodLiteral<0 | 10 | 20 | 50 | 40 | 30>;
|
|
3
3
|
export declare const zCanvasPerformanceMode: z.ZodLiteral<0 | 2 | 1 | 3>;
|
|
4
4
|
export declare const zChatMessageStyle: z.ZodLiteral<0 | 2 | 1 | 3>;
|
|
5
5
|
export declare const zCompatibilityMode: z.ZodLiteral<0 | 2 | 1 | 3>;
|
|
6
6
|
export declare const zLightingLevel: z.ZodLiteral<0 | 2 | 1 | 3 | -1 | -2>;
|
|
7
|
-
export declare const zPrimaryDocumentType: z.ZodLiteral<"Actor" | "Cards" | "ChatMessage" | "Combat" | "FogExploration" | "Folder" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "Setting" | "
|
|
8
|
-
export declare const zEmbeddedDocumentType: z.ZodLiteral<"Item" | "ActiveEffect" | "
|
|
9
|
-
export declare const zDocumentType: z.ZodLiteral<"Actor" | "Cards" | "ChatMessage" | "Combat" | "FogExploration" | "Folder" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "Setting" | "
|
|
10
|
-
export declare const zWorldDocumentType: z.ZodLiteral<"Actor" | "Cards" | "ChatMessage" | "Combat" | "FogExploration" | "Folder" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "Setting"
|
|
11
|
-
export declare const zCompendiumDocumentType: z.ZodLiteral<"Actor" | "Cards" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "Adventure">;
|
|
7
|
+
export declare const zPrimaryDocumentType: z.ZodLiteral<"User" | "Actor" | "Cards" | "ChatMessage" | "Combat" | "FogExploration" | "Folder" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "Setting" | "ActiveEffect" | "Adventure">;
|
|
8
|
+
export declare const zEmbeddedDocumentType: z.ZodLiteral<"Item" | "ActiveEffect" | "Drawing" | "Token" | "Note" | "AmbientLight" | "Level" | "Region" | "RegionBehavior" | "AmbientSound" | "Tile" | "Wall" | "Card" | "PlaylistSound" | "TableResult" | "JournalEntryPage" | "ActorDelta" | "Combatant" | "CombatantGroup" | "JournalEntryCategory">;
|
|
9
|
+
export declare const zDocumentType: z.ZodLiteral<"User" | "Actor" | "Cards" | "ChatMessage" | "Combat" | "FogExploration" | "Folder" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "Setting" | "ActiveEffect" | "Adventure" | "Drawing" | "Token" | "Note" | "AmbientLight" | "Level" | "Region" | "RegionBehavior" | "AmbientSound" | "Tile" | "Wall" | "Card" | "PlaylistSound" | "TableResult" | "JournalEntryPage" | "ActorDelta" | "Combatant" | "CombatantGroup" | "JournalEntryCategory">;
|
|
10
|
+
export declare const zWorldDocumentType: z.ZodLiteral<"User" | "Actor" | "Cards" | "ChatMessage" | "Combat" | "FogExploration" | "Folder" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "Setting">;
|
|
11
|
+
export declare const zCompendiumDocumentType: z.ZodLiteral<"Actor" | "Cards" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "ActiveEffect" | "Adventure">;
|
|
12
12
|
export declare const zDocumentOwnershipString: z.ZodLiteral<"INHERIT" | "NONE" | "LIMITED" | "OBSERVER" | "OWNER">;
|
|
13
13
|
export declare const zDocumentOwnershipLevel: z.ZodLiteral<0 | 2 | 1 | 3 | -1>;
|
|
14
|
-
export declare const zRollMode: z.ZodLiteral<"publicroll" | "gmroll" | "blindroll" | "selfroll">;
|
|
15
14
|
export declare const zDrawingFillType: z.ZodLiteral<0 | 2 | 1>;
|
|
16
|
-
export declare const zFolderDocumentType: z.ZodLiteral<"Actor" | "Cards" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "Adventure" | "Compendium">;
|
|
17
|
-
export declare const zMovementDirection: z.ZodLiteral<2 | 1 | 4 | 8 | 16 | 32
|
|
15
|
+
export declare const zFolderDocumentType: z.ZodLiteral<"Actor" | "Cards" | "Item" | "JournalEntry" | "Macro" | "Playlist" | "RollTable" | "Scene" | "ActiveEffect" | "Adventure" | "Compendium">;
|
|
16
|
+
export declare const zMovementDirection: z.ZodLiteral<2 | 1 | 4 | 8 | 16 | 32>;
|
|
18
17
|
export declare const zGridType: z.ZodLiteral<0 | 2 | 1 | 3 | 4 | 5>;
|
|
19
18
|
export declare const zGridDiagonalRule: z.ZodLiteral<0 | 2 | 1 | 3 | 4 | 5 | 6>;
|
|
20
19
|
export declare const zGridSnappingMode: z.ZodLiteral<2 | 1 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 16384 | 240 | 3840 | 4096 | 8192 | 32768 | 61440>;
|
|
21
|
-
export declare const zMacroScope: z.ZodLiteral<"global" | "
|
|
20
|
+
export declare const zMacroScope: z.ZodLiteral<"global" | "actor" | "actors">;
|
|
22
21
|
export declare const zMacroType: z.ZodLiteral<"script" | "chat">;
|
|
23
22
|
export declare const zPlaylistMode: z.ZodLiteral<0 | 2 | 1 | -1>;
|
|
24
23
|
export declare const zPlaylistSortMode: z.ZodLiteral<"a" | "m">;
|
|
25
24
|
export declare const zDirectorySearchMode: z.ZodLiteral<"name" | "full">;
|
|
26
25
|
export declare const zPackageType: z.ZodLiteral<"module" | "system" | "world">;
|
|
27
|
-
export declare const zPackageAvailabilityCode: z.ZodLiteral<0 | 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 9>;
|
|
26
|
+
export declare const zPackageAvailabilityCode: z.ZodLiteral<0 | 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 11 | 9>;
|
|
28
27
|
export declare const zSoftwareUpdateChannel: z.ZodLiteral<"stable" | "prototype" | "testing" | "development">;
|
|
29
28
|
export declare const zTableResultType: z.ZodLiteral<"text" | "document">;
|
|
30
29
|
export declare const zJournalEntryPageFormat: z.ZodLiteral<2 | 1>;
|
|
31
30
|
export declare const zTextAnchorPoint: z.ZodLiteral<0 | 2 | 1 | 3 | 4>;
|
|
32
|
-
export declare const zTileOcclusionMode: z.ZodLiteral<0 | 1 |
|
|
31
|
+
export declare const zTileOcclusionMode: z.ZodLiteral<0 | 2 | 1 | 4 | 8>;
|
|
33
32
|
export declare const zTokenDisplayMode: z.ZodLiteral<0 | 10 | 20 | 50 | 40 | 30>;
|
|
34
33
|
export declare const zTokenDisposition: z.ZodLiteral<0 | 1 | -1 | -2>;
|
|
35
34
|
export declare const zTokenShapeType: z.ZodLiteral<0 | 2 | 1 | 3 | 4 | 5>;
|
|
36
35
|
export declare const zUserRoleName: z.ZodLiteral<"NONE" | "PLAYER" | "TRUSTED" | "ASSISTANT" | "GAMEMASTER">;
|
|
37
36
|
export declare const zUserRole: z.ZodLiteral<"0" | "1" | "2" | "3" | "4">;
|
|
38
|
-
export declare const
|
|
39
|
-
export declare const
|
|
40
|
-
export declare const zWallDirection: z.ZodLiteral<0 | 2 | 1>;
|
|
37
|
+
export declare const zUserPermission: z.ZodLiteral<"ACTOR_CREATE" | "BROADCAST_AUDIO" | "BROADCAST_VIDEO" | "CARDS_CREATE" | "DRAWING_CREATE" | "ITEM_CREATE" | "FILES_BROWSE" | "FILES_UPLOAD" | "JOURNAL_CREATE" | "MACRO_SCRIPT" | "MANUAL_ROLLS" | "MESSAGE_WHISPER" | "NOTE_CREATE" | "PING_CANVAS" | "PLAYLIST_CREATE" | "REGION_CREATE" | "SETTINGS_MODIFY" | "SHOW_CURSOR" | "SHOW_RULER" | "TOKEN_CREATE" | "TOKEN_DELETE" | "TOKEN_CONFIGURE" | "WALL_DOORS" | "QUERY_USER">;
|
|
38
|
+
export declare const zEdgeDirection: z.ZodLiteral<0 | 2 | 1>;
|
|
41
39
|
export declare const zWallDoorType: z.ZodLiteral<0 | 2 | 1>;
|
|
42
40
|
export declare const zWallDoorState: z.ZodLiteral<0 | 2 | 1>;
|
|
43
41
|
export declare const zWallDoorInteraction: z.ZodLiteral<"open" | "close" | "test" | "lock" | "unlock">;
|
|
44
42
|
export declare const zWallRestrictionType: z.ZodLiteral<"move" | "light" | "sight" | "sound">;
|
|
45
|
-
export declare const
|
|
43
|
+
export declare const zEdgeSenseType: z.ZodLiteral<0 | 10 | 20 | 40 | 30>;
|
|
46
44
|
export declare const zWallMovementType: z.ZodLiteral<0 | 20>;
|
|
47
45
|
export declare const zImageFileExtension: z.ZodLiteral<"svg" | "apng" | "avif" | "bmp" | "gif" | "jpeg" | "jpg" | "png" | "tiff" | "webp">;
|
|
48
46
|
export declare const zVideoFileExtension: z.ZodLiteral<"m4v" | "mp4" | "ogv" | "webm">;
|
|
49
|
-
export declare const zAudioFileExtension: z.ZodLiteral<"ogg" | "opus" | "
|
|
50
|
-
export declare const zFileExtension: z.ZodLiteral<"ogg" | "opus" | "svg" | "json" | "
|
|
51
|
-
export declare const zFileCategory: z.ZodLiteral<"
|
|
47
|
+
export declare const zAudioFileExtension: z.ZodLiteral<"ogg" | "opus" | "mid" | "webm" | "aac" | "flac" | "m4a" | "mp3" | "wav">;
|
|
48
|
+
export declare const zFileExtension: z.ZodLiteral<"ogg" | "opus" | "svg" | "json" | "apng" | "avif" | "bmp" | "gif" | "jpeg" | "jpg" | "png" | "tiff" | "webp" | "mid" | "m4v" | "mp4" | "ogv" | "webm" | "aac" | "flac" | "m4a" | "mp3" | "wav" | "pdf" | "fbx" | "glb" | "gltf" | "mtl" | "obj" | "stl" | "usdz" | "otf" | "ttf" | "woff" | "woff2" | "csv" | "md" | "tsv" | "txt" | "xml" | "yml" | "yaml">;
|
|
49
|
+
export declare const zFileCategory: z.ZodLiteral<"TEXT" | "HTML" | "IMAGE" | "VIDEO" | "AUDIO" | "FONT" | "GRAPHICS">;
|
|
52
50
|
export declare const zRegionMovementSegmentType: z.ZodLiteral<0 | 1 | -1>;
|
|
53
|
-
export declare const zDrawingShapeType: z.ZodLiteral<"r" | "p" | "
|
|
51
|
+
export declare const zDrawingShapeType: z.ZodLiteral<"r" | "p" | "f" | "e" | "t">;
|
|
54
52
|
export declare const zShapeDataType: z.ZodLiteral<"circle" | "ellipse" | "polygon" | "rectangle">;
|
|
55
|
-
export declare const zUserAction: z.ZodLiteral<"update" | "
|
|
53
|
+
export declare const zUserAction: z.ZodLiteral<"update" | "create" | "delete">;
|
|
56
54
|
export declare const zHexColorstring: z.ZodTemplateLiteral<`#${string}`>;
|
|
57
|
-
export declare const zAudioFilePath: z.ZodTemplateLiteral<`${string}.webm` | `${string}.ogg` | `${string}.opus` | `${string}.
|
|
55
|
+
export declare const zAudioFilePath: z.ZodTemplateLiteral<`${string}.webm` | `${string}.ogg` | `${string}.opus` | `${string}.mid` | `${string}.aac` | `${string}.flac` | `${string}.m4a` | `${string}.mp3` | `${string}.wav`>;
|
|
58
56
|
export declare const zImageFilePath: z.ZodTemplateLiteral<`${string}.svg` | `${string}.apng` | `${string}.avif` | `${string}.bmp` | `${string}.gif` | `${string}.jpeg` | `${string}.jpg` | `${string}.png` | `${string}.tiff` | `${string}.webp`>;
|
|
59
57
|
export declare const zVideoFilePath: z.ZodTemplateLiteral<`${string}.m4v` | `${string}.mp4` | `${string}.ogv` | `${string}.webm`>;
|
|
60
|
-
export declare const zFilePath: z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}.webm` | `${string}.ogg` | `${string}.opus` | `${string}.
|
|
58
|
+
export declare const zFilePath: z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}.webm` | `${string}.ogg` | `${string}.opus` | `${string}.mid` | `${string}.aac` | `${string}.flac` | `${string}.m4a` | `${string}.mp3` | `${string}.wav`>, z.ZodTemplateLiteral<`${string}.svg` | `${string}.apng` | `${string}.avif` | `${string}.bmp` | `${string}.gif` | `${string}.jpeg` | `${string}.jpg` | `${string}.png` | `${string}.tiff` | `${string}.webp`>, z.ZodTemplateLiteral<`${string}.m4v` | `${string}.mp4` | `${string}.ogv` | `${string}.webm`>]>;
|
package/dist/zod/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as R from "remeda";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
export const
|
|
3
|
+
export const zActiveEffectChangeType = z.literal(R.values(CONST.ACTIVE_EFFECT_CHANGE_TYPES));
|
|
4
4
|
export const zCanvasPerformanceMode = z.literal(R.values(CONST.CANVAS_PERFORMANCE_MODES));
|
|
5
5
|
export const zChatMessageStyle = z.literal(R.values(CONST.CHAT_MESSAGE_STYLES));
|
|
6
6
|
export const zCompatibilityMode = z.literal(R.values(CONST.COMPATIBILITY_MODES));
|
|
@@ -12,7 +12,6 @@ export const zWorldDocumentType = z.literal(R.values(CONST.WORLD_DOCUMENT_TYPES)
|
|
|
12
12
|
export const zCompendiumDocumentType = z.literal(R.values(CONST.COMPENDIUM_DOCUMENT_TYPES));
|
|
13
13
|
export const zDocumentOwnershipString = z.literal(R.keys(CONST.DOCUMENT_OWNERSHIP_LEVELS));
|
|
14
14
|
export const zDocumentOwnershipLevel = z.literal(R.values(CONST.DOCUMENT_OWNERSHIP_LEVELS));
|
|
15
|
-
export const zRollMode = z.literal(R.values(CONST.DICE_ROLL_MODES));
|
|
16
15
|
export const zDrawingFillType = z.literal(R.values(CONST.DRAWING_FILL_TYPES));
|
|
17
16
|
export const zFolderDocumentType = z.literal(R.values(CONST.FOLDER_DOCUMENT_TYPES));
|
|
18
17
|
export const zMovementDirection = z.literal(R.values(CONST.MOVEMENT_DIRECTIONS));
|
|
@@ -36,14 +35,13 @@ export const zTokenDisposition = z.literal(R.values(CONST.TOKEN_DISPOSITIONS));
|
|
|
36
35
|
export const zTokenShapeType = z.literal(R.values(CONST.TOKEN_SHAPES));
|
|
37
36
|
export const zUserRoleName = z.literal(R.keys(CONST.USER_ROLES));
|
|
38
37
|
export const zUserRole = z.literal(R.keys(CONST.USER_ROLE_NAMES));
|
|
39
|
-
export const zMeasuredTemplateType = z.literal(R.values(CONST.MEASURED_TEMPLATE_TYPES));
|
|
40
38
|
export const zUserPermission = z.literal(R.keys(CONST.USER_PERMISSIONS));
|
|
41
|
-
export const
|
|
39
|
+
export const zEdgeDirection = z.literal(R.values(CONST.EDGE_DIRECTIONS));
|
|
42
40
|
export const zWallDoorType = z.literal(R.values(CONST.WALL_DOOR_TYPES));
|
|
43
41
|
export const zWallDoorState = z.literal(R.values(CONST.WALL_DOOR_STATES));
|
|
44
42
|
export const zWallDoorInteraction = z.literal(R.values(CONST.WALL_DOOR_INTERACTIONS));
|
|
45
43
|
export const zWallRestrictionType = z.literal(R.values(CONST.WALL_RESTRICTION_TYPES));
|
|
46
|
-
export const
|
|
44
|
+
export const zEdgeSenseType = z.literal(R.values(CONST.EDGE_SENSE_TYPES));
|
|
47
45
|
export const zWallMovementType = z.literal(R.values(CONST.WALL_MOVEMENT_TYPES));
|
|
48
46
|
export const zImageFileExtension = z.literal(R.keys(CONST.IMAGE_FILE_EXTENSIONS));
|
|
49
47
|
export const zVideoFileExtension = z.literal(R.keys(CONST.VIDEO_FILE_EXTENSIONS));
|
package/dist/zod/document.js
CHANGED
|
@@ -18,7 +18,7 @@ export function zDocumentUUID(type, embedded) {
|
|
|
18
18
|
return false;
|
|
19
19
|
if (embedded === false && resolvedUUID.embedded.length)
|
|
20
20
|
return false;
|
|
21
|
-
if (!resolvedUUID.
|
|
21
|
+
if (!resolvedUUID.id || !foundry.data.validators.isValidId(resolvedUUID.id))
|
|
22
22
|
return false;
|
|
23
23
|
return true;
|
|
24
24
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const zAELikeChangeMode: z.ZodLiteral<"add" | "remove" | "multiply" | "upgrade" | "override" | "subtract" | "downgrade">;
|
|
3
3
|
export type zAELikeChangeMode = z.infer<typeof zAELikeChangeMode>;
|
|
4
|
-
export declare const zAELikeDataPrepPhase: z.ZodLiteral<"
|
|
4
|
+
export declare const zAELikeDataPrepPhase: z.ZodLiteral<"applyAEs" | "beforeDerived" | "afterDerived" | "beforeRoll">;
|
|
5
5
|
export type zAELikeDataPrepPhase = z.infer<typeof zAELikeDataPrepPhase>;
|
|
6
6
|
export declare const zAELikeSource: z.ZodObject<{
|
|
7
7
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -16,7 +16,7 @@ export declare const zAELikeSource: z.ZodObject<{
|
|
|
16
16
|
testDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
17
|
mode: z.ZodOptional<z.ZodLiteral<"add" | "remove" | "multiply" | "upgrade" | "override" | "subtract" | "downgrade">>;
|
|
18
18
|
path: z.ZodOptional<z.ZodString>;
|
|
19
|
-
phase: z.ZodOptional<z.ZodLiteral<"
|
|
19
|
+
phase: z.ZodOptional<z.ZodLiteral<"applyAEs" | "beforeDerived" | "afterDerived" | "beforeRoll">>;
|
|
20
20
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodType<object, object, z.core.$ZodTypeInternals<object, object>>]>>;
|
|
21
21
|
merge: z.ZodOptional<z.ZodBoolean>;
|
|
22
22
|
}, z.core.$loose>;
|
|
@@ -17,7 +17,7 @@ export declare const zRollOptionSource: z.ZodObject<{
|
|
|
17
17
|
key: z.ZodLiteral<"RollOption">;
|
|
18
18
|
domain: z.ZodOptional<z.ZodString>;
|
|
19
19
|
option: z.ZodOptional<z.ZodString>;
|
|
20
|
-
phase: z.ZodOptional<z.ZodLiteral<"
|
|
20
|
+
phase: z.ZodOptional<z.ZodLiteral<"applyAEs" | "beforeDerived" | "afterDerived" | "beforeRoll">>;
|
|
21
21
|
suboptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
22
22
|
label: z.ZodString;
|
|
23
23
|
value: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
}
|
|
2
|
+
"name": "@7h3laughingman/pf2e-helpers",
|
|
3
|
+
"version": "8.1.0",
|
|
4
|
+
"description": "Basic helpers used for developed modules for the PF2e/SF2e system.",
|
|
5
|
+
"homepage": "https://github.com/7H3LaughingMan/pf2e-helpers#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/7H3LaughingMan/pf2e-helpers/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/7H3LaughingMan/pf2e-helpers.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "7H3LaughingMan <7H3LaughingMan@proton.me> (https://github.com/7H3LaughingMan)",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./lib-wrapper": "./dist/lib-wrapper/index.d.ts",
|
|
18
|
+
"./socketlib": "./dist/socketlib/index.d.ts",
|
|
19
|
+
"./utilities": "./dist/utilities/index.js",
|
|
20
|
+
"./zod": "./dist/zod/index.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"./dist/*"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@7h3laughingman/foundry-helpers": "~14.361.0",
|
|
27
|
+
"@7h3laughingman/foundry-types": "~14.360.9",
|
|
28
|
+
"@7h3laughingman/pf2e-types": "~8.0.2",
|
|
29
|
+
"remeda": "^2.34.1",
|
|
30
|
+
"zod": "^4.4.3"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@eslint/js": "^10.0.1",
|
|
34
|
+
"@eslint/json": "^1.2.0",
|
|
35
|
+
"@types/jquery": "^3.5.34",
|
|
36
|
+
"eslint": "^10.3.0",
|
|
37
|
+
"eslint-config-prettier": "^10.1.8",
|
|
38
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
39
|
+
"husky": "^9.1.7",
|
|
40
|
+
"lint-staged": "^17.0.4",
|
|
41
|
+
"native-copyfiles": "^2.0.1",
|
|
42
|
+
"prettier-plugin-organize-imports": "^4.3.0",
|
|
43
|
+
"tsc-alias": "^1.8.17",
|
|
44
|
+
"typescript": "5.9.3",
|
|
45
|
+
"typescript-eslint": "^8.59.3"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=24"
|
|
49
|
+
},
|
|
50
|
+
"lint-staged": {
|
|
51
|
+
"*.{ts,mts,cts,tsc,js,mjs,cjs,jsx}": [
|
|
52
|
+
"eslint --fix",
|
|
53
|
+
"prettier --write"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"sideEffects": false,
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsc && tsc-alias",
|
|
59
|
+
"copyfiles": "copyfiles src/**/*.js src/**/*.d.ts dist -u 1",
|
|
60
|
+
"eslint:fix": "eslint src --fix && prettier src --write",
|
|
61
|
+
"eslint": "eslint src",
|
|
62
|
+
"tsc": "tsc"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@7h3laughingman/foundry-helpers/lib-wrapper";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@7h3laughingman/foundry-helpers/socketlib";
|