From dcd6edc12f601face05198639d98f8ec4c144007 Mon Sep 17 00:00:00 2001 From: rsek Date: Sat, 9 Apr 2022 22:54:34 -0700 Subject: [PATCH] enable comments so annotation works (oops) --- dist/classes/common/Counter.d.ts | 7 ++ dist/classes/common/Counter.d.ts.map | 2 +- dist/classes/common/Counter.js | 7 ++ dist/classes/common/Counter.js.map | 2 +- dist/classes/common/Suggestions.d.ts | 3 + dist/classes/common/Suggestions.d.ts.map | 2 +- dist/classes/common/Suggestions.js | 7 ++ dist/classes/common/Suggestions.js.map | 2 +- dist/classes/moves/Move.d.ts | 3 + dist/classes/moves/Move.d.ts.map | 2 +- dist/classes/moves/Move.js | 3 + dist/classes/moves/Move.js.map | 2 +- dist/classes/oracles/GameObject.js | 1 + dist/classes/oracles/GameObject.js.map | 2 +- dist/classes/oracles/MultipleRolls.d.ts | 7 ++ dist/classes/oracles/MultipleRolls.d.ts.map | 2 +- dist/classes/oracles/MultipleRolls.js | 7 ++ dist/classes/oracles/MultipleRolls.js.map | 2 +- dist/classes/oracles/Oracle.js | 9 +- dist/classes/oracles/Oracle.js.map | 2 +- dist/classes/oracles/OracleCategory.js | 4 + dist/classes/oracles/OracleCategory.js.map | 2 +- dist/classes/oracles/OracleContent.d.ts | 3 + dist/classes/oracles/OracleContent.d.ts.map | 2 +- dist/classes/oracles/OracleContent.js | 7 ++ dist/classes/oracles/OracleContent.js.map | 2 +- dist/classes/oracles/OracleUsage.js | 4 + dist/classes/oracles/OracleUsage.js.map | 2 +- dist/classes/oracles/Row.d.ts | 28 +++++ dist/classes/oracles/Row.d.ts.map | 2 +- dist/classes/oracles/Row.js | 16 +++ dist/classes/oracles/Row.js.map | 2 +- .../setting_truths/SettingTruthOption.js | 1 + .../setting_truths/SettingTruthOption.js.map | 2 +- dist/game_objects/IGameObjectRecordBase.d.ts | 2 + .../IGameObjectRecordBase.d.ts.map | 2 +- dist/game_objects/enum/Atmosphere.d.ts | 3 + dist/game_objects/enum/Atmosphere.d.ts.map | 2 +- dist/game_objects/enum/Atmosphere.js | 3 + dist/game_objects/enum/Atmosphere.js.map | 2 +- dist/game_objects/enum/Authority.d.ts | 3 + dist/game_objects/enum/Authority.d.ts.map | 2 +- dist/game_objects/enum/Authority.js | 3 + dist/game_objects/enum/Authority.js.map | 2 +- dist/game_objects/enum/Behavior.d.ts | 3 + dist/game_objects/enum/Behavior.d.ts.map | 2 +- dist/game_objects/enum/Behavior.js | 3 + dist/game_objects/enum/Behavior.js.map | 2 +- dist/game_objects/enum/Biome.d.ts | 5 + dist/game_objects/enum/Biome.d.ts.map | 2 +- dist/game_objects/enum/Biome.js | 6 + dist/game_objects/enum/Biome.js.map | 2 +- dist/game_objects/enum/CreatureScale.d.ts | 3 + dist/game_objects/enum/CreatureScale.d.ts.map | 2 +- dist/game_objects/enum/CreatureScale.js | 3 + dist/game_objects/enum/CreatureScale.js.map | 2 +- dist/game_objects/enum/DerelictType.d.ts | 3 + dist/game_objects/enum/DerelictType.d.ts.map | 2 +- dist/game_objects/enum/DerelictType.js | 3 + dist/game_objects/enum/DerelictType.js.map | 2 +- dist/game_objects/enum/Disposition.d.ts | 3 + dist/game_objects/enum/Disposition.d.ts.map | 2 +- dist/game_objects/enum/Disposition.js | 3 + dist/game_objects/enum/Disposition.js.map | 2 +- dist/game_objects/enum/Diversity.d.ts | 3 + dist/game_objects/enum/Diversity.d.ts.map | 2 +- dist/game_objects/enum/Diversity.js | 3 + dist/game_objects/enum/Diversity.js.map | 2 +- dist/game_objects/enum/Dominion.d.ts | 3 + dist/game_objects/enum/Dominion.d.ts.map | 2 +- dist/game_objects/enum/Dominion.js | 3 + dist/game_objects/enum/Dominion.js.map | 2 +- dist/game_objects/enum/Environment.d.ts | 3 + dist/game_objects/enum/Environment.d.ts.map | 2 +- dist/game_objects/enum/Environment.js | 3 + dist/game_objects/enum/Environment.js.map | 2 +- dist/game_objects/enum/FactionType.d.ts | 3 + dist/game_objects/enum/FactionType.d.ts.map | 2 +- dist/game_objects/enum/FactionType.js | 3 + dist/game_objects/enum/FactionType.js.map | 2 +- dist/game_objects/enum/FringeGroup.d.ts | 3 + dist/game_objects/enum/FringeGroup.d.ts.map | 2 +- dist/game_objects/enum/FringeGroup.js | 3 + dist/game_objects/enum/FringeGroup.js.map | 2 +- dist/game_objects/enum/Guild.d.ts | 3 + dist/game_objects/enum/Guild.d.ts.map | 2 +- dist/game_objects/enum/Guild.js | 3 + dist/game_objects/enum/Guild.js.map | 2 +- dist/game_objects/enum/Influence.d.ts | 3 + dist/game_objects/enum/Influence.d.ts.map | 2 +- dist/game_objects/enum/Influence.js | 3 + dist/game_objects/enum/Influence.js.map | 2 +- dist/game_objects/enum/Leadership.d.ts | 3 + dist/game_objects/enum/Leadership.d.ts.map | 2 +- dist/game_objects/enum/Leadership.js | 3 + dist/game_objects/enum/Leadership.js.map | 2 +- dist/game_objects/enum/Life.d.ts | 3 + dist/game_objects/enum/Life.d.ts.map | 2 +- dist/game_objects/enum/Life.js | 3 + dist/game_objects/enum/Life.js.map | 2 +- dist/game_objects/enum/Location.d.ts | 3 + dist/game_objects/enum/Location.d.ts.map | 2 +- dist/game_objects/enum/Location.js | 3 + dist/game_objects/enum/Location.js.map | 2 +- dist/game_objects/enum/LocationTheme.d.ts | 3 + dist/game_objects/enum/LocationTheme.d.ts.map | 2 +- dist/game_objects/enum/LocationTheme.js | 3 + dist/game_objects/enum/LocationTheme.js.map | 2 +- dist/game_objects/enum/PlanetaryClass.d.ts | 3 + .../game_objects/enum/PlanetaryClass.d.ts.map | 2 +- dist/game_objects/enum/PlanetaryClass.js | 3 + dist/game_objects/enum/PlanetaryClass.js.map | 2 +- dist/game_objects/enum/Population.d.ts | 3 + dist/game_objects/enum/Population.d.ts.map | 2 +- dist/game_objects/enum/Population.js | 3 + dist/game_objects/enum/Population.js.map | 2 +- dist/game_objects/enum/Role.d.ts | 3 + dist/game_objects/enum/Role.d.ts.map | 2 +- dist/game_objects/enum/Role.js | 3 + dist/game_objects/enum/Role.js.map | 2 +- dist/index.js | 1 + dist/index.js.map | 2 +- dist/json_out/assets/IAsset.d.ts | 29 +++++ dist/json_out/assets/IAsset.d.ts.map | 2 +- dist/json_out/assets/IAssetInput.d.ts | 6 + dist/json_out/assets/IAssetInput.d.ts.map | 2 +- dist/json_out/assets/index.d.ts | 3 + dist/json_out/assets/index.d.ts.map | 2 +- dist/json_out/assets/index.js | 3 + dist/json_out/assets/index.js.map | 2 +- dist/json_out/common/ChallengeRank.d.ts | 3 + dist/json_out/common/ChallengeRank.d.ts.map | 2 +- dist/json_out/common/ChallengeRank.js | 3 + dist/json_out/common/ChallengeRank.js.map | 2 +- dist/json_out/common/IConditionMeter.d.ts | 9 ++ dist/json_out/common/IConditionMeter.d.ts.map | 2 +- dist/json_out/common/ICounter.d.ts | 12 ++ dist/json_out/common/ICounter.d.ts.map | 2 +- dist/json_out/common/MdString.d.ts | 20 ++++ dist/json_out/common/MdString.d.ts.map | 2 +- dist/json_out/common/index.d.ts | 3 + dist/json_out/common/index.d.ts.map | 2 +- dist/json_out/common/index.js | 3 + dist/json_out/common/index.js.map | 2 +- dist/json_out/encounters/IEncounter.d.ts | 3 + dist/json_out/encounters/IEncounter.d.ts.map | 2 +- dist/json_out/encounters/index.d.ts | 3 + dist/json_out/encounters/index.d.ts.map | 2 +- dist/json_out/encounters/index.js | 3 + dist/json_out/encounters/index.js.map | 2 +- dist/json_out/game_objects/AttributeKey.d.ts | 66 +++++++++++ .../game_objects/AttributeKey.d.ts.map | 2 +- dist/json_out/game_objects/AttributeKey.js | 66 +++++++++++ .../json_out/game_objects/AttributeKey.js.map | 2 +- dist/json_out/game_objects/index.d.ts | 3 + dist/json_out/game_objects/index.d.ts.map | 2 +- dist/json_out/game_objects/index.js | 3 + dist/json_out/game_objects/index.js.map | 2 +- dist/json_out/index.d.ts | 3 + dist/json_out/index.d.ts.map | 2 +- dist/json_out/index.js | 3 + dist/json_out/index.js.map | 2 +- dist/json_out/meta/IDisplay.d.ts | 16 +++ dist/json_out/meta/IDisplay.d.ts.map | 2 +- dist/json_out/meta/IHas.d.ts | 107 ++++++++++++++++++ dist/json_out/meta/IHas.d.ts.map | 2 +- dist/json_out/meta/IRequirements.d.ts | 7 ++ dist/json_out/meta/IRequirements.d.ts.map | 2 +- dist/json_out/meta/ISource.d.ts | 18 +++ dist/json_out/meta/ISource.d.ts.map | 2 +- dist/json_out/meta/ISource.js | 6 + dist/json_out/meta/ISource.js.map | 2 +- dist/json_out/meta/ISuggestions.d.ts | 19 ++++ dist/json_out/meta/ISuggestions.d.ts.map | 2 +- dist/json_out/meta/index.d.ts | 3 + dist/json_out/meta/index.d.ts.map | 2 +- dist/json_out/meta/index.js | 3 + dist/json_out/meta/index.js.map | 2 +- dist/json_out/moves/IMove.d.ts | 25 ++++ dist/json_out/moves/IMove.d.ts.map | 2 +- dist/json_out/moves/index.d.ts | 3 + dist/json_out/moves/index.d.ts.map | 2 +- dist/json_out/moves/index.js | 3 + dist/json_out/moves/index.js.map | 2 +- dist/json_out/oracles/IOracleBase.d.ts | 12 ++ dist/json_out/oracles/IOracleBase.d.ts.map | 2 +- dist/json_out/oracles/IOracleCategory.d.ts | 3 + .../json_out/oracles/IOracleCategory.d.ts.map | 2 +- dist/json_out/oracles/IOracleContent.d.ts | 9 ++ dist/json_out/oracles/IOracleContent.d.ts.map | 2 +- dist/json_out/oracles/IRollTemplate.d.ts | 12 ++ dist/json_out/oracles/IRollTemplate.d.ts.map | 2 +- dist/json_out/oracles/IRow.d.ts | 33 ++++++ dist/json_out/oracles/IRow.d.ts.map | 2 +- dist/json_out/oracles/index.d.ts | 3 + dist/json_out/oracles/index.d.ts.map | 2 +- dist/json_out/oracles/index.js | 3 + dist/json_out/oracles/index.js.map | 2 +- .../setting_truths/ISettingTruth.d.ts | 10 ++ .../setting_truths/ISettingTruth.d.ts.map | 2 +- .../setting_truths/ISettingTruthOption.d.ts | 7 ++ .../ISettingTruthOption.d.ts.map | 2 +- dist/json_out/setting_truths/index.d.ts | 3 + dist/json_out/setting_truths/index.d.ts.map | 2 +- dist/json_out/setting_truths/index.js | 3 + dist/json_out/setting_truths/index.js.map | 2 +- dist/utils/buildAssets.d.ts | 4 + dist/utils/buildAssets.d.ts.map | 2 +- dist/utils/buildAssets.js | 4 + dist/utils/buildAssets.js.map | 2 +- dist/utils/buildDataforged.d.ts | 4 + dist/utils/buildDataforged.d.ts.map | 2 +- dist/utils/buildDataforged.js | 5 + dist/utils/buildDataforged.js.map | 2 +- dist/utils/buildDataforgedLegacy.js | 10 ++ dist/utils/buildDataforgedLegacy.js.map | 2 +- dist/utils/buildEncounters.d.ts | 4 + dist/utils/buildEncounters.d.ts.map | 2 +- dist/utils/buildEncounters.js | 4 + dist/utils/buildEncounters.js.map | 2 +- dist/utils/buildImages.d.ts | 8 ++ dist/utils/buildImages.d.ts.map | 2 +- dist/utils/buildImages.js | 8 ++ dist/utils/buildImages.js.map | 2 +- dist/utils/buildMoveMarkdown.d.ts | 5 + dist/utils/buildMoveMarkdown.d.ts.map | 2 +- dist/utils/buildMoveMarkdown.js | 5 + dist/utils/buildMoveMarkdown.js.map | 2 +- dist/utils/buildMoves.d.ts | 6 + dist/utils/buildMoves.d.ts.map | 2 +- dist/utils/buildMoves.js | 13 +++ dist/utils/buildMoves.js.map | 2 +- dist/utils/buildOracleId.d.ts | 6 + dist/utils/buildOracleId.d.ts.map | 2 +- dist/utils/buildOracleId.js | 6 + dist/utils/buildOracleId.js.map | 2 +- dist/utils/buildOracleMarkdown.d.ts | 5 + dist/utils/buildOracleMarkdown.d.ts.map | 2 +- dist/utils/buildOracleMarkdown.js | 5 + dist/utils/buildOracleMarkdown.js.map | 2 +- dist/utils/buildOracles.d.ts | 4 + dist/utils/buildOracles.d.ts.map | 2 +- dist/utils/buildOracles.js | 8 ++ dist/utils/buildOracles.js.map | 2 +- dist/utils/buildTruths.d.ts | 4 + dist/utils/buildTruths.d.ts.map | 2 +- dist/utils/buildTruths.js | 4 + dist/utils/buildTruths.js.map | 2 +- dist/utils/extractMoveOutcomes.js | 49 ++++++++ dist/utils/extractMoveOutcomes.js.map | 2 +- dist/utils/getNameFromId.d.ts | 3 + dist/utils/getNameFromId.d.ts.map | 2 +- dist/utils/getNameFromId.js | 4 + dist/utils/getNameFromId.js.map | 2 +- dist/utils/io/getAllFiles.d.ts | 7 ++ dist/utils/io/getAllFiles.d.ts.map | 2 +- dist/utils/io/getAllFiles.js | 11 +- dist/utils/io/getAllFiles.js.map | 2 +- dist/utils/io/getSubdirs.d.ts | 6 + dist/utils/io/getSubdirs.d.ts.map | 2 +- dist/utils/io/getSubdirs.js | 6 + dist/utils/io/getSubdirs.js.map | 2 +- dist/utils/io/getYamlFiles.d.ts | 6 + dist/utils/io/getYamlFiles.d.ts.map | 2 +- dist/utils/io/getYamlFiles.js | 6 + dist/utils/io/getYamlFiles.js.map | 2 +- dist/utils/io/writeJSON.d.ts | 4 + dist/utils/io/writeJSON.d.ts.map | 2 +- dist/utils/io/writeJSON.js | 4 + dist/utils/io/writeJSON.js.map | 2 +- dist/utils/io/writeYaml.d.ts | 5 + dist/utils/io/writeYaml.d.ts.map | 2 +- dist/utils/io/writeYaml.js | 6 + dist/utils/io/writeYaml.js.map | 2 +- dist/utils/logging/badEnumError.d.ts | 7 ++ dist/utils/logging/badEnumError.d.ts.map | 2 +- dist/utils/logging/badEnumError.js | 11 ++ dist/utils/logging/badEnumError.js.map | 2 +- dist/utils/logging/badJsonError.d.ts | 9 ++ dist/utils/logging/badJsonError.d.ts.map | 2 +- dist/utils/logging/badJsonError.js | 13 +++ dist/utils/logging/badJsonError.js.map | 2 +- dist/utils/logging/buildLog.d.ts | 4 + dist/utils/logging/buildLog.d.ts.map | 2 +- dist/utils/logging/buildLog.js | 6 + dist/utils/logging/buildLog.js.map | 2 +- dist/utils/md/extractColumnData.js | 2 + dist/utils/md/extractColumnData.js.map | 2 +- dist/utils/md/findById.d.ts | 6 + dist/utils/md/findById.d.ts.map | 2 +- dist/utils/md/findById.js | 6 + dist/utils/md/findById.js.map | 2 +- dist/utils/md/getOracleById.d.ts | 6 + dist/utils/md/getOracleById.d.ts.map | 2 +- dist/utils/md/getOracleById.js | 6 + dist/utils/md/getOracleById.js.map | 2 +- dist/utils/md/getTableByOracleId.d.ts | 6 + dist/utils/md/getTableByOracleId.d.ts.map | 2 +- dist/utils/md/getTableByOracleId.js | 6 + dist/utils/md/getTableByOracleId.js.map | 2 +- dist/utils/md/idToHref.d.ts | 6 + dist/utils/md/idToHref.d.ts.map | 2 +- dist/utils/md/idToHref.js | 6 + dist/utils/md/idToHref.js.map | 2 +- dist/utils/md/longestLength.d.ts | 5 + dist/utils/md/longestLength.d.ts.map | 2 +- dist/utils/md/longestLength.js | 5 + dist/utils/md/longestLength.js.map | 2 +- dist/utils/md/renderMove.d.ts | 6 + dist/utils/md/renderMove.d.ts.map | 2 +- dist/utils/md/renderMove.js | 6 + dist/utils/md/renderMove.js.map | 2 +- dist/utils/md/renderMoveCategory.d.ts | 8 ++ dist/utils/md/renderMoveCategory.d.ts.map | 2 +- dist/utils/md/renderMoveCategory.js | 8 ++ dist/utils/md/renderMoveCategory.js.map | 2 +- dist/utils/md/renderOracle.d.ts | 6 + dist/utils/md/renderOracle.d.ts.map | 2 +- dist/utils/md/renderOracle.js | 6 + dist/utils/md/renderOracle.js.map | 2 +- dist/utils/md/renderOracleCategory.d.ts | 6 + dist/utils/md/renderOracleCategory.d.ts.map | 2 +- dist/utils/md/renderOracleCategory.js | 6 + dist/utils/md/renderOracleCategory.js.map | 2 +- dist/utils/md/renderTable.d.ts | 3 + dist/utils/md/renderTable.d.ts.map | 2 +- dist/utils/md/renderTable.js | 8 ++ dist/utils/md/renderTable.js.map | 2 +- dist/utils/md/toMarkdownTable.js | 2 + dist/utils/md/toMarkdownTable.js.map | 2 +- dist/utils/md/transformHyperlink.d.ts | 11 ++ dist/utils/md/transformHyperlink.d.ts.map | 2 +- dist/utils/md/transformHyperlink.js | 13 +++ dist/utils/md/transformHyperlink.js.map | 2 +- dist/utils/md/transpose2dArray.js | 1 + dist/utils/md/transpose2dArray.js.map | 2 +- .../object_transform/extractRowContent.d.ts | 5 + .../extractRowContent.d.ts.map | 2 +- .../object_transform/extractRowContent.js | 8 ++ .../object_transform/extractRowContent.js.map | 2 +- .../object_transform/extractRowRolls.d.ts | 5 + .../object_transform/extractRowRolls.d.ts.map | 2 +- .../utils/object_transform/extractRowRolls.js | 5 + .../object_transform/extractRowRolls.js.map | 2 +- .../object_transform/inferSetsAttributes.d.ts | 5 + .../inferSetsAttributes.d.ts.map | 2 +- .../object_transform/inferSetsAttributes.js | 5 + .../inferSetsAttributes.js.map | 2 +- .../object_transform/propagateToChildren.d.ts | 6 + .../propagateToChildren.d.ts.map | 2 +- .../object_transform/propagateToChildren.js | 6 + .../propagateToChildren.js.map | 2 +- .../object_transform/replaceInAllStrings.d.ts | 7 ++ .../replaceInAllStrings.d.ts.map | 2 +- .../object_transform/replaceInAllStrings.js | 7 ++ .../replaceInAllStrings.js.map | 2 +- .../object_transform/templateOracle.d.ts | 6 + .../object_transform/templateOracle.d.ts.map | 2 +- dist/utils/object_transform/templateOracle.js | 6 + .../object_transform/templateOracle.js.map | 2 +- .../object_transform/templateOracleInfo.d.ts | 5 + .../templateOracleInfo.d.ts.map | 2 +- .../object_transform/templateOracleInfo.js | 6 + .../templateOracleInfo.js.map | 2 +- .../object_transform/templateOracleTable.d.ts | 5 + .../templateOracleTable.d.ts.map | 2 +- .../object_transform/templateOracleTable.js | 5 + .../templateOracleTable.js.map | 2 +- dist/utils/process_img/cloneImages.d.ts | 5 + dist/utils/process_img/cloneImages.d.ts.map | 2 +- dist/utils/process_img/cloneImages.js | 6 + dist/utils/process_img/cloneImages.js.map | 2 +- .../process_img/convertRasterImages.d.ts | 5 + .../process_img/convertRasterImages.d.ts.map | 2 +- dist/utils/process_img/convertRasterImages.js | 11 ++ .../process_img/convertRasterImages.js.map | 2 +- .../process_yaml/concatWithYamlRefs.d.ts | 6 + .../process_yaml/concatWithYamlRefs.d.ts.map | 2 +- dist/utils/process_yaml/concatWithYamlRefs.js | 6 + .../process_yaml/concatWithYamlRefs.js.map | 2 +- dist/utils/process_yaml/loadOracleData.d.ts | 6 + .../process_yaml/loadOracleData.d.ts.map | 2 +- dist/utils/process_yaml/loadOracleData.js | 6 + dist/utils/process_yaml/loadOracleData.js.map | 2 +- dist/utils/process_yaml/loadYamlRefs.d.ts | 6 + dist/utils/process_yaml/loadYamlRefs.d.ts.map | 2 +- dist/utils/process_yaml/loadYamlRefs.js | 7 ++ dist/utils/process_yaml/loadYamlRefs.js.map | 2 +- .../utils/process_yaml/loadYamlTemplates.d.ts | 5 + .../process_yaml/loadYamlTemplates.d.ts.map | 2 +- dist/utils/process_yaml/loadYamlTemplates.js | 5 + .../process_yaml/loadYamlTemplates.js.map | 2 +- dist/utils/types/PartialBy.d.ts | 4 + dist/utils/types/PartialBy.d.ts.map | 2 +- dist/utils/types/PartialExcept.d.ts | 4 + dist/utils/types/PartialExcept.d.ts.map | 2 +- dist/utils/types/RequireKey.d.ts | 3 + dist/utils/types/RequireKey.d.ts.map | 2 +- dist/utils/types/Stub.d.ts | 8 ++ dist/utils/types/Stub.d.ts.map | 2 +- dist/utils/uniqueStatArrays.d.ts | 9 ++ dist/utils/uniqueStatArrays.d.ts.map | 2 +- dist/utils/uniqueStatArrays.js | 10 ++ dist/utils/uniqueStatArrays.js.map | 2 +- dist/utils/validateColor.d.ts | 5 + dist/utils/validateColor.d.ts.map | 2 +- dist/utils/validateColor.js | 5 + dist/utils/validateColor.js.map | 2 +- dist/utils/validation/enumHas.d.ts | 6 + dist/utils/validation/enumHas.d.ts.map | 2 +- dist/utils/validation/enumHas.js | 6 + dist/utils/validation/enumHas.js.map | 2 +- .../validation/validateRollTemplate.d.ts | 11 ++ .../validation/validateRollTemplate.d.ts.map | 2 +- dist/utils/validation/validateRollTemplate.js | 16 +++ .../validation/validateRollTemplate.js.map | 2 +- dist/utils/validation/validateTable.d.ts | 6 + dist/utils/validation/validateTable.d.ts.map | 2 +- dist/utils/validation/validateTable.js | 7 ++ dist/utils/validation/validateTable.js.map | 2 +- markdown/oracles.md | 4 +- markdown/oracles/characters.md | 2 +- markdown/oracles/derelicts.md | 2 +- tsconfig.json | 2 +- 424 files changed, 1724 insertions(+), 217 deletions(-) diff --git a/dist/classes/common/Counter.d.ts b/dist/classes/common/Counter.d.ts index 249cde660..c5fd81288 100644 --- a/dist/classes/common/Counter.d.ts +++ b/dist/classes/common/Counter.d.ts @@ -1,11 +1,18 @@ import type { ICounter } from "../../json_out/index.js"; import type { StubExcept } from "../../utils/types/Stub.js"; +/** + * Class representing a counter embedded in a Starforged Asset. + */ export declare class Counter implements ICounter { $id: string; Name: string; Min: number; Max: number | null; "Starting Value": number; + /** + * @param json - the json object to build the counter from + * @param id - the id of the Counter + */ constructor(json: StubExcept, id: string); } //# sourceMappingURL=Counter.d.ts.map \ No newline at end of file diff --git a/dist/classes/common/Counter.d.ts.map b/dist/classes/common/Counter.d.ts.map index 277cf08ba..6a73491fd 100644 --- a/dist/classes/common/Counter.d.ts.map +++ b/dist/classes/common/Counter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Counter.d.ts","sourceRoot":"","sources":["../../../src/classes/common/Counter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gCAA2B;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,kCAA6B;AAKvD,qBAAa,OAAQ,YAAW,QAAQ;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAK;IAChB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAK;gBAKjB,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM;CAOlE"} \ No newline at end of file +{"version":3,"file":"Counter.d.ts","sourceRoot":"","sources":["../../../src/classes/common/Counter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gCAA2B;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,kCAA6B;AAEvD;;GAEG;AACH,qBAAa,OAAQ,YAAW,QAAQ;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAK;IAChB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAK;IAC7B;;;OAGG;gBACS,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM;CAOlE"} \ No newline at end of file diff --git a/dist/classes/common/Counter.js b/dist/classes/common/Counter.js index 629a9e82b..3b7307cda 100644 --- a/dist/classes/common/Counter.js +++ b/dist/classes/common/Counter.js @@ -1,4 +1,11 @@ +/** + * Class representing a counter embedded in a Starforged Asset. + */ export class Counter { + /** + * @param json - the json object to build the counter from + * @param id - the id of the Counter + */ constructor(json, id) { this.Min = 0; this["Starting Value"] = 0; diff --git a/dist/classes/common/Counter.js.map b/dist/classes/common/Counter.js.map index 1000ac1b4..2bc29f755 100644 --- a/dist/classes/common/Counter.js.map +++ b/dist/classes/common/Counter.js.map @@ -1 +1 @@ -{"version":3,"file":"Counter.js","sourceRoot":"","sources":["../../../src/classes/common/Counter.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,OAAO;IAUlB,YAAY,IAAyC,EAAE,EAAU;QAPjE,QAAG,GAAW,CAAC,CAAC;QAEhB,sBAAgB,GAAW,CAAC,CAAC;QAM3B,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;QAC5B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"Counter.js","sourceRoot":"","sources":["../../../src/classes/common/Counter.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,OAAO,OAAO;IAMlB;;;OAGG;IACH,YAAY,IAAyC,EAAE,EAAU;QAPjE,QAAG,GAAW,CAAC,CAAC;QAEhB,sBAAgB,GAAW,CAAC,CAAC;QAM3B,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;QAC5B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/common/Suggestions.d.ts b/dist/classes/common/Suggestions.d.ts index d5cf02c0b..948413d0f 100644 --- a/dist/classes/common/Suggestions.d.ts +++ b/dist/classes/common/Suggestions.d.ts @@ -1,6 +1,9 @@ import { GameObject } from "../index.js"; import type { AssetId, EncounterId, ISuggestions, MoveId, OracleTableId } from "../../json_out/index.js"; import type { ISuggestionsYaml } from "../../yaml_in/common/ISuggestionsYaml.js"; +/** + * Object representing "non-canon" suggestions for related Starforged game content. These are intended be offered as convenient shortcuts for the user; having them roll automatically is not recommended. They can be safely ignored if this functionality is not desired. + */ export declare class Suggestions implements ISuggestions { "Game objects"?: GameObject[] | undefined; "Oracle rolls"?: OracleTableId[] | undefined; diff --git a/dist/classes/common/Suggestions.d.ts.map b/dist/classes/common/Suggestions.d.ts.map index 694455ed8..dd0a1e7b8 100644 --- a/dist/classes/common/Suggestions.d.ts.map +++ b/dist/classes/common/Suggestions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Suggestions.d.ts","sourceRoot":"","sources":["../../../src/classes/common/Suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAA0B;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,gCAA2B;AACpG,OAAO,KAAK,EAAE,gBAAgB,EAAE,iDAA4C;AAK5E,qBAAa,WAAY,YAAW,YAAY;IAC9C,cAAc,CAAC,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IAC1C,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;gBAC7B,IAAI,EAAE,gBAAgB;CAkBnC"} \ No newline at end of file +{"version":3,"file":"Suggestions.d.ts","sourceRoot":"","sources":["../../../src/classes/common/Suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAA0B;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,gCAA2B;AACpG,OAAO,KAAK,EAAE,gBAAgB,EAAE,iDAA4C;AAE5E;;GAEG;AACH,qBAAa,WAAY,YAAW,YAAY;IAC9C,cAAc,CAAC,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IAC1C,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;gBAC7B,IAAI,EAAE,gBAAgB;CAkBnC"} \ No newline at end of file diff --git a/dist/classes/common/Suggestions.js b/dist/classes/common/Suggestions.js index 7f8d2fc82..4ed448c30 100644 --- a/dist/classes/common/Suggestions.js +++ b/dist/classes/common/Suggestions.js @@ -1,16 +1,23 @@ import { GameObject } from "../index.js"; +/** + * Object representing "non-canon" suggestions for related Starforged game content. These are intended be offered as convenient shortcuts for the user; having them roll automatically is not recommended. They can be safely ignored if this functionality is not desired. + */ export class Suggestions { constructor(data) { if (data["Game objects"]) { + // console.info("[Suggestions] Game objects", JSON.stringify(data["Game objects"])); this["Game objects"] = data["Game objects"].map(gameObjData => new GameObject(gameObjData)); } if (data["Oracle rolls"]) { + // TODO type check against string this["Oracle rolls"] = data["Oracle rolls"]; } if (data.Moves) { + // TODO type check against string this.Moves = data.Moves; } if (data.Assets) { + // TODO type check against string this.Assets = data.Assets; } } diff --git a/dist/classes/common/Suggestions.js.map b/dist/classes/common/Suggestions.js.map index 13a0bfe13..0952d6bc0 100644 --- a/dist/classes/common/Suggestions.js.map +++ b/dist/classes/common/Suggestions.js.map @@ -1 +1 @@ -{"version":3,"file":"Suggestions.js","sourceRoot":"","sources":["../../../src/classes/common/Suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAA0B;AAO/C,MAAM,OAAO,WAAW;IAMtB,YAAY,IAAsB;QAChC,IAAI,IAAI,CAAC,cAAc,CAAC,EAAE;YAExB,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;SAC7F;QACD,IAAI,IAAI,CAAC,cAAc,CAAC,EAAE;YAExB,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;SAC7C;QACD,IAAI,IAAI,CAAC,KAAK,EAAE;YAEd,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SACzB;QACD,IAAI,IAAI,CAAC,MAAM,EAAE;YAEf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;SAC3B;IACH,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"Suggestions.js","sourceRoot":"","sources":["../../../src/classes/common/Suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAA0B;AAI/C;;GAEG;AACH,MAAM,OAAO,WAAW;IAMtB,YAAY,IAAsB;QAChC,IAAI,IAAI,CAAC,cAAc,CAAC,EAAE;YACxB,oFAAoF;YACpF,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;SAC7F;QACD,IAAI,IAAI,CAAC,cAAc,CAAC,EAAE;YACxB,iCAAiC;YACjC,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;SAC7C;QACD,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,iCAAiC;YACjC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SACzB;QACD,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,iCAAiC;YACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;SAC3B;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/moves/Move.d.ts b/dist/classes/moves/Move.d.ts index 1e03d389f..381036bbc 100644 --- a/dist/classes/moves/Move.d.ts +++ b/dist/classes/moves/Move.d.ts @@ -3,6 +3,9 @@ import type { Suggestions } from "../index.js"; import { MoveOutcomes } from "../index.js"; import { MoveTrigger } from "../index.js"; import type { AssetId, IDisplay, IMove, ISource, MoveCategoryId, MoveId, OracleTableId, ParagraphsString } from "../../json_out/index.js"; +/** + * Object representing a Starforged move. + */ export declare class Move extends SourceInheritor implements IMove { $id: MoveId; Name: string; diff --git a/dist/classes/moves/Move.d.ts.map b/dist/classes/moves/Move.d.ts.map index b5375b18b..ad2e16559 100644 --- a/dist/classes/moves/Move.d.ts.map +++ b/dist/classes/moves/Move.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Move.d.ts","sourceRoot":"","sources":["../../../src/classes/moves/Move.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAA0B;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,oBAA0B;AACrD,OAAO,EAAE,YAAY,EAAE,oBAA0B;AACjD,OAAO,EAAE,WAAW,EAAE,oBAA0B;AAChD,OAAO,KAAK,EAAE,OAAO,EAAG,QAAQ,EAAG,KAAK,EAAG,OAAO,EAAE,cAAc,EAAG,MAAM,EAAG,aAAa,EAAG,gBAAgB,EAAE,gCAA2B;AAQ3I,qBAAa,IAAK,SAAQ,eAAgB,YAAW,KAAK;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACtC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;gBACxB,IAAI,EAAE,KAAK,EAAE,GAAG,eAAe,EAAE,OAAO,EAAE;CAyBvD"} \ No newline at end of file +{"version":3,"file":"Move.d.ts","sourceRoot":"","sources":["../../../src/classes/moves/Move.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAA0B;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,oBAA0B;AACrD,OAAO,EAAE,YAAY,EAAE,oBAA0B;AACjD,OAAO,EAAE,WAAW,EAAE,oBAA0B;AAChD,OAAO,KAAK,EAAE,OAAO,EAAG,QAAQ,EAAG,KAAK,EAAG,OAAO,EAAE,cAAc,EAAG,MAAM,EAAG,aAAa,EAAG,gBAAgB,EAAE,gCAA2B;AAK3I;;GAEG;AACH,qBAAa,IAAK,SAAQ,eAAgB,YAAW,KAAK;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACtC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;gBACxB,IAAI,EAAE,KAAK,EAAE,GAAG,eAAe,EAAE,OAAO,EAAE;CAyBvD"} \ No newline at end of file diff --git a/dist/classes/moves/Move.js b/dist/classes/moves/Move.js index bdc1c2215..ba7e73cc6 100644 --- a/dist/classes/moves/Move.js +++ b/dist/classes/moves/Move.js @@ -3,6 +3,9 @@ import { MoveOutcomes } from "../index.js"; import { MoveTrigger } from "../index.js"; import { buildLog } from "../../utils/logging/buildLog.js"; import _ from "lodash-es"; +/** + * Object representing a Starforged move. + */ export class Move extends SourceInheritor { constructor(json, ...sourceAncestors) { super(json.Source ?? {}, ...sourceAncestors); diff --git a/dist/classes/moves/Move.js.map b/dist/classes/moves/Move.js.map index b0abde8ad..d096ab368 100644 --- a/dist/classes/moves/Move.js.map +++ b/dist/classes/moves/Move.js.map @@ -1 +1 @@ -{"version":3,"file":"Move.js","sourceRoot":"","sources":["../../../src/classes/moves/Move.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAA0B;AAEpD,OAAO,EAAE,YAAY,EAAE,oBAA0B;AACjD,OAAO,EAAE,WAAW,EAAE,oBAA0B;AAGhD,OAAO,EAAE,QAAQ,EAAE,wCAAmC;AACtD,OAAO,CAAC,MAAM,WAAW,CAAC;AAK1B,MAAM,OAAO,IAAK,SAAQ,eAAe;IAavC,YAAY,IAAW,EAAE,GAAG,eAA0B;QACpD,KAAK,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,GAAG,eAAe,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAW,CAAC;QACxF,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,IAAI,CAAC,QAAQ,KAAK,cAAc,EAAE;YACpC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;gBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;aACzC;YACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAA0B,CAAC;SAC9C;QACD,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC;QA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Y,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACtG,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/oracles/GameObject.js b/dist/classes/oracles/GameObject.js index 139489a1f..5f4d33636 100644 --- a/dist/classes/oracles/GameObject.js +++ b/dist/classes/oracles/GameObject.js @@ -9,6 +9,7 @@ export class GameObject { throw badJsonError(this.constructor, json, "Invalid object type"); } this["Object type"] = json["Object type"]; + // this["Inherit rolls"] = json["Inherit rolls"] ?? false; const requiredAttributes = _.omit(json, ["Object type", "Inherit rolls"]); if (Object.keys(requiredAttributes).length) { const requirements = { Attributes: requiredAttributes }; diff --git a/dist/classes/oracles/GameObject.js.map b/dist/classes/oracles/GameObject.js.map index aabf1f508..c51086163 100644 --- a/dist/classes/oracles/GameObject.js.map +++ b/dist/classes/oracles/GameObject.js.map @@ -1 +1 @@ -{"version":3,"file":"GameObject.js","sourceRoot":"","sources":["../../../src/classes/oracles/GameObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAA0B;AAEjD,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,oCAA+B;AAEhF,OAAO,EAAE,YAAY,EAAE,4CAAuC;AAE9D,OAAO,EAAE,OAAO,EAAE,0CAAqC;AAEvD,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B,MAAM,OAAO,UAAU;IAIrB,YAAY,IAAsB;QAChC,IAAI,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE;YACzF,MAAM,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,qBAAqB,CAAC,CAAC;SACnE;QACD,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;QAE1C,MAA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AI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,YAAY,CAAC,CAAC;SAChD;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/oracles/MultipleRolls.d.ts b/dist/classes/oracles/MultipleRolls.d.ts index 8e221b19e..c632f91ca 100644 --- a/dist/classes/oracles/MultipleRolls.d.ts +++ b/dist/classes/oracles/MultipleRolls.d.ts @@ -1,6 +1,13 @@ import type { IMultipleRolls } from "../../json_out/index.js"; +/** + * Represents "Roll twice" and "Roll three times" oracle results. + */ export declare class MultipleRolls implements IMultipleRolls { + /** + * In tabletop play, duplicate results are typically rerolled (p. XX). However, a handful of tables (such as Space Sighting) use multiple rolls to represent discrete objects (rather than features of a single game object), so duplicate results should be allowed. + */ Amount: number; + /** The number of results to be generated from the oracle table. */ "Allow duplicates": boolean; "Make it worse": boolean; constructor(json: IMultipleRolls); diff --git a/dist/classes/oracles/MultipleRolls.d.ts.map b/dist/classes/oracles/MultipleRolls.d.ts.map index 8a1c3eba1..ac6f48d3a 100644 --- a/dist/classes/oracles/MultipleRolls.d.ts.map +++ b/dist/classes/oracles/MultipleRolls.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"MultipleRolls.d.ts","sourceRoot":"","sources":["../../../src/classes/oracles/MultipleRolls.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,gCAA2B;AAOzD,qBAAa,aAAc,YAAW,cAAc;IAIlD,MAAM,EAAE,MAAM,CAAK;IAEnB,kBAAkB,EAAE,OAAO,CAAS;IACpC,eAAe,EAAE,OAAO,CAAS;gBACrB,IAAI,EAAE,cAAc;CAQjC"} \ No newline at end of file +{"version":3,"file":"MultipleRolls.d.ts","sourceRoot":"","sources":["../../../src/classes/oracles/MultipleRolls.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,gCAA2B;AAIzD;;GAEG;AACH,qBAAa,aAAc,YAAW,cAAc;IAClD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAK;IACnB,mEAAmE;IACnE,kBAAkB,EAAE,OAAO,CAAS;IACpC,eAAe,EAAE,OAAO,CAAS;gBACrB,IAAI,EAAE,cAAc;CAQjC"} \ No newline at end of file diff --git a/dist/classes/oracles/MultipleRolls.js b/dist/classes/oracles/MultipleRolls.js index 3b31f4519..099c31bdf 100644 --- a/dist/classes/oracles/MultipleRolls.js +++ b/dist/classes/oracles/MultipleRolls.js @@ -1,8 +1,15 @@ import { badJsonError } from "../../utils/logging/badJsonError.js"; import { is } from "typescript-is"; +/** + * Represents "Roll twice" and "Roll three times" oracle results. + */ export class MultipleRolls { constructor(json) { + /** + * In tabletop play, duplicate results are typically rerolled (p. XX). However, a handful of tables (such as Space Sighting) use multiple rolls to represent discrete objects (rather than features of a single game object), so duplicate results should be allowed. + */ this.Amount = 2; + /** The number of results to be generated from the oracle table. */ this["Allow duplicates"] = false; this["Make it worse"] = false; if (!is(json, object => { function _number(object) { ; if (typeof object !== "number") diff --git a/dist/classes/oracles/MultipleRolls.js.map b/dist/classes/oracles/MultipleRolls.js.map index d8e01b337..50c51146e 100644 --- a/dist/classes/oracles/MultipleRolls.js.map +++ b/dist/classes/oracles/MultipleRolls.js.map @@ -1 +1 @@ -{"version":3,"file":"MultipleRolls.js","sourceRoot":"","sources":["../../../src/classes/oracles/MultipleRolls.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,4CAAuC;AAC9D,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAKnC,MAAM,OAAO,aAAa;IAQxB,YAAY,IAAoB;QAJhC,WAAM,GAAW,CAAC,CAAC;QAEnB,wBAAkB,GAAY,KAAK,CAAC;QACpC,qBAAe,GAAY,KAAK,CAAC;QAE/B,IAAI,CAAC,EAAE,CAAiB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAAC,EAAE;YAC7B,MAAM,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;SAC5C;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAChF,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC;IACzE,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"MultipleRolls.js","sourceRoot":"","sources":["../../../src/classes/oracles/MultipleRolls.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,4CAAuC;AAC9D,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAEnC;;GAEG;AACH,MAAM,OAAO,aAAa;IAQxB,YAAY,IAAoB;QAPhC;;WAEG;QACH,WAAM,GAAW,CAAC,CAAC;QACnB,mEAAmE;QACnE,wBAAkB,GAAY,KAAK,CAAC;QACpC,qBAAe,GAAY,KAAK,CAAC;QAE/B,IAAI,CAAC,EAAE,CAAiB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAAC,EAAE;YAC7B,MAAM,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;SAC5C;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAChF,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC;IACzE,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/oracles/Oracle.js b/dist/classes/oracles/Oracle.js index 7f5445ac4..33007fbf0 100644 --- a/dist/classes/oracles/Oracle.js +++ b/dist/classes/oracles/Oracle.js @@ -11,12 +11,17 @@ import { templateOracle } from "../../utils/object_transform/templateOracle.js"; import { templateOracleTable } from "../../utils/object_transform/templateOracleTable.js"; import _ from "lodash-es"; export class Oracle extends SourceInheritor { - constructor(json, category, memberOf, ...ancestorsJson) { + constructor(json, category, memberOf, ...ancestorsJson + // ancestors should be in ascending order + ) { let jsonClone = _.cloneDeep(json); super(jsonClone.Source ?? {}, ..._.compact(ancestorsJson.map(item => item.Source))); if (jsonClone._templateInfo) { jsonClone = templateOracle(jsonClone, jsonClone._templateInfo); } + // if (!is(json)) { + // throw new Error("json does not conform to IOracleInfoData!"); + // } this.$id = buildOracleId(jsonClone, ...ancestorsJson); buildLog(this.constructor, `Building: ${this.$id}`); this.Name = jsonClone.Name; @@ -40,6 +45,7 @@ export class Oracle extends SourceInheritor { } if (tableData) { this.Table = tableData.map(row => { + // TODO: propagate attributes to row objects const newRow = new Row(this.$id, row); newRow.validateRollTemplate(); return newRow; @@ -65,6 +71,7 @@ export class Oracle extends SourceInheritor { if (typeof this.Usage["Sets attributes"] === "undefined") { this.Usage["Sets attributes"] = []; } + // console.log("attrs", attrs); this.Usage["Sets attributes"] = this.Usage["Sets attributes"].concat(...attrs); } } diff --git a/dist/classes/oracles/Oracle.js.map b/dist/classes/oracles/Oracle.js.map index c2171f255..bdc0eb03f 100644 --- a/dist/classes/oracles/Oracle.js.map +++ b/dist/classes/oracles/Oracle.js.map @@ -1 +1 @@ -{"version":3,"file":"Oracle.js","sourceRoot":"","sources":["../../../src/classes/oracles/Oracle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,oBAA0B;AACpD,OAAO,EAAE,aAAa,EAAE,oBAA0B;AAClD,OAAO,EAAE,aAAa,EAAE,oBAA0B;AAClD,OAAO,EAAE,WAAW,EAAE,oBAA0B;AAChD,OAAO,EAAE,GAAG,EAAE,oBAA0B;AAGxC,OAAO,EAAE,aAAa,EAAE,qCAAgC;AACxD,OAAO,EAAE,QAAQ,EAAE,wCAAmC;AACtD,OAAO,EAAE,mBA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git a/dist/classes/oracles/OracleCategory.js b/dist/classes/oracles/OracleCategory.js index 2c209a33c..ae168275f 100644 --- a/dist/classes/oracles/OracleCategory.js +++ b/dist/classes/oracles/OracleCategory.js @@ -8,6 +8,10 @@ import { propagateToChildren } from "../../utils/object_transform/propagateToChi import _ from "lodash-es"; export class OracleCategory extends SourceInheritor { constructor(json, category, ...ancestorsJson) { + // if (!is(json)) { + // buildLog(this.constructor, "Json does not conform to type!"); + // throw new Error(); + // } super(json.Source ?? {}, ..._.compact(ancestorsJson.map(item => item.Source))); this.$id = buildOracleId(json, ...ancestorsJson); buildLog(this.constructor, `Building: ${this.$id}`); diff --git a/dist/classes/oracles/OracleCategory.js.map b/dist/classes/oracles/OracleCategory.js.map index dcedf4782..71f12bda8 100644 --- a/dist/classes/oracles/OracleCategory.js.map +++ b/dist/classes/oracles/OracleCategory.js.map @@ -1 +1 @@ -{"version":3,"file":"OracleCategory.js","sourceRoot":"","sources":["../../../src/classes/oracles/OracleCategory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,oBAA0B;AACpD,OAAO,EAAE,MAAM,EAAE,oBAA0B;AAC3C,OAAO,EAAE,qBAAqB,EAAE,oBAA0B;AAC1D,OAAO,EAAE,WAAW,EAAE,oBAA0B;AAEhD,OAAO,EAAE,aAAa,EAAE,qCAAgC;AACxD,OAAO,EAAE,QAAQ,EAAE,wCAAmC;AACtD,OAAO,EAAE,mBAAmB,EAAE,4DAAuD;AAErF,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B,MAAM,OAAO,cAAe,SAAQ,eAAe;IAWjD,YACE,IAAyB,EACzB,QAA6C,EAC7C,GAAG,aAAoD;QAMvD,KAAK,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAE/E,IAAI,CAAC,G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AAU,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CACnC,SAAS,CAAC,EAAE;gBACV,IAAI,IAAI,CAAC,KAAK,EAAE;oBACd,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;iBACrD;gBACD,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACjB,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;iBAC3D;gBACD,OAAO,IAAI,cAAc,CAAC,SAAS,EAAE,IAAI,CAAC,GAA6B,EAAE,IAAI,EAAE,GAAG,aAAa,CAAC,CAAC;YACnG,CAAC,CACF,CAAC;SACH;IACH,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"OracleCategory.js","sourceRoot":"","sources":["../../../src/classes/oracles/OracleCategory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,oBAA0B;AACpD,OAAO,EAAE,MAAM,EAAE,oBAA0B;AAC3C,OAAO,EAAE,qBAAqB,EAAE,oBAA0B;AAC1D,OAAO,EAAE,WAAW,EAAE,oBAA0B;AAEhD,OAAO,EAAE,aAAa,EAAE,qCAAgC;AACxD,OAAO,EAAE,QAAQ,EAAE,wCAAmC;AACtD,OAAO,EAAE,mBAAmB,EAAE,4DAAuD;AAErF,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B,MAAM,OAAO,cAAe,SAAQ,eAAe;IAWjD,YACE,IAAyB,EACzB,QAA6C,EAC7C,GAAG,aAAoD;QAEvD,wCAAwC;QACxC,kEAAkE;QAClE,uBAAuB;QACvB,IAAI;QACJ,KAAK,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAE/E,IAAI,CAAC,GAAG,GAAG,aAAa,CAAC,IAAI,E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AAC,GAAG,CACnC,SAAS,CAAC,EAAE;gBACV,IAAI,IAAI,CAAC,KAAK,EAAE;oBACd,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;iBACrD;gBACD,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACjB,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;iBAC3D;gBACD,OAAO,IAAI,cAAc,CAAC,SAAS,EAAE,IAAI,CAAC,GAA6B,EAAE,IAAI,EAAE,GAAG,aAAa,CAAC,CAAC;YACnG,CAAC,CACF,CAAC;SACH;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/oracles/OracleContent.d.ts b/dist/classes/oracles/OracleContent.d.ts index 9a100d887..d70cd721f 100644 --- a/dist/classes/oracles/OracleContent.d.ts +++ b/dist/classes/oracles/OracleContent.d.ts @@ -1,4 +1,7 @@ import type { IOracleContent } from "../../json_out/index.js"; +/** + * Metadata that describes an oracle's semantic or lexical content. + */ export declare class OracleContent implements IOracleContent { "Part of speech"?: string[] | undefined; "Tags"?: string[] | undefined; diff --git a/dist/classes/oracles/OracleContent.d.ts.map b/dist/classes/oracles/OracleContent.d.ts.map index 4600507ae..5666bd6dd 100644 --- a/dist/classes/oracles/OracleContent.d.ts.map +++ b/dist/classes/oracles/OracleContent.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"OracleContent.d.ts","sourceRoot":"","sources":["../../../src/classes/oracles/OracleContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gCAA2B;AAMzD,qBAAa,aAAc,YAAW,cAAc;IAClD,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;gBAClB,IAAI,EAAE,cAAc;CAOjC"} \ No newline at end of file +{"version":3,"file":"OracleContent.d.ts","sourceRoot":"","sources":["../../../src/classes/oracles/OracleContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gCAA2B;AAGzD;;GAEG;AACH,qBAAa,aAAc,YAAW,cAAc;IAClD,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;gBAClB,IAAI,EAAE,cAAc;CAOjC"} \ No newline at end of file diff --git a/dist/classes/oracles/OracleContent.js b/dist/classes/oracles/OracleContent.js index a06f98d7c..f1721dc7a 100644 --- a/dist/classes/oracles/OracleContent.js +++ b/dist/classes/oracles/OracleContent.js @@ -1,5 +1,12 @@ +// import { badJsonError } from "@utils/logging/badJsonError.js"; +/** + * Metadata that describes an oracle's semantic or lexical content. + */ export class OracleContent { constructor(json) { + // if (!(json["Part of speech"]||json["Tags"])) { + // throw badJsonError(this.constructor, json, "Expected IOracleContent"); + // } this["Part of speech"] = json["Part of speech"] ?? undefined; this["Tags"] = json["Tags"] ?? undefined; } diff --git a/dist/classes/oracles/OracleContent.js.map b/dist/classes/oracles/OracleContent.js.map index 8ec1a7afd..c7314b12b 100644 --- a/dist/classes/oracles/OracleContent.js.map +++ b/dist/classes/oracles/OracleContent.js.map @@ -1 +1 @@ -{"version":3,"file":"OracleContent.js","sourceRoot":"","sources":["../../../src/classes/oracles/OracleContent.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,aAAa;IAGxB,YAAY,IAAoB;QAI9B,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC;QAC7D,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC;IAC3C,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"OracleContent.js","sourceRoot":"","sources":["../../../src/classes/oracles/OracleContent.ts"],"names":[],"mappings":"AACA,iEAAiE;AAEjE;;GAEG;AACH,MAAM,OAAO,aAAa;IAGxB,YAAY,IAAoB;QAC9B,iDAAiD;QACjD,2EAA2E;QAC3E,IAAI;QACJ,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC;QAC7D,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC;IAC3C,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/oracles/OracleUsage.js b/dist/classes/oracles/OracleUsage.js index 2e8794b7b..662d30865 100644 --- a/dist/classes/oracles/OracleUsage.js +++ b/dist/classes/oracles/OracleUsage.js @@ -1,6 +1,9 @@ import { Requirements, Suggestions } from "../index.js"; export class OracleUsage { constructor(json) { + // if (!is(json)) { + // throw new Error(); + // } this.Initial = json.Initial; this["Max rolls"] = json["Max rolls"]; this["Min rolls"] = json["Min rolls"]; @@ -12,6 +15,7 @@ export class OracleUsage { if (json.Requires) { this.Requires = new Requirements(json.Requires); } + // this["Sets attributes"] = json["Sets attributes"]; } } //# sourceMappingURL=OracleUsage.js.map \ No newline at end of file diff --git a/dist/classes/oracles/OracleUsage.js.map b/dist/classes/oracles/OracleUsage.js.map index 2ff5fef86..f0053606c 100644 --- a/dist/classes/oracles/OracleUsage.js.map +++ b/dist/classes/oracles/OracleUsage.js.map @@ -1 +1 @@ -{"version":3,"file":"OracleUsage.js","sourceRoot":"","sources":["../../../src/classes/oracles/OracleUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAG,WAAW,EAAE,oBAA0B;AAI/D,MAAM,OAAO,WAAW;IAStB,YAAY,IAAsB;QAIhC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;QACtC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC;QAC7D,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACjD;IAEH,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"OracleUsage.js","sourceRoot":"","sources":["../../../src/classes/oracles/OracleUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAG,WAAW,EAAE,oBAA0B;AAI/D,MAAM,OAAO,WAAW;IAStB,YAAY,IAAsB;QAChC,qCAAqC;QACrC,uBAAuB;QACvB,IAAI;QACJ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;QACtC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC;QAC7D,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACjD;QACD,qDAAqD;IACvD,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/oracles/Row.d.ts b/dist/classes/oracles/Row.d.ts index a3ed3f44b..d1ee77be9 100644 --- a/dist/classes/oracles/Row.d.ts +++ b/dist/classes/oracles/Row.d.ts @@ -1,20 +1,48 @@ import { AttributeSetter, GameObject, MultipleRolls, OracleContent, Suggestions } from "../index.js"; import type { FragmentString, IHasSubtable, IRow, IRowDisplay, OracleTableId, OracleTableRowId, RollTemplate, SentenceString, SettingTruthOptionId, TermString } from "../../json_out/index.js"; import type { IRowYaml } from "../../yaml_in/oracles/IRowYaml.js"; +/** + * Class representing a single row of an oracle table. + */ export declare class Row implements IRow, Partial> { + /** + */ $id: OracleTableRowId | SettingTruthOptionId | null; Floor: number | null; Ceiling: number | null; + /** + */ Result: TermString | FragmentString | SentenceString; + /** + */ Summary?: SentenceString | FragmentString | undefined; + /** + */ "Oracle rolls"?: OracleTableId[] | undefined; + /** + */ "Game objects"?: GameObject[] | undefined; + /** + */ "Multiple rolls"?: MultipleRolls | undefined; + /** + */ Suggestions?: Suggestions | undefined; + /** + */ Attributes?: AttributeSetter | undefined; + /** + */ "Roll template"?: RollTemplate<"Result" | "Summary" | "Description" | never> | undefined; + /** + */ Display?: IRowDisplay; + /** + */ Content?: OracleContent; + /** + * Creates an instance of Row. + */ constructor(parentId: string, json: IRowYaml | IRow); [x: number]: string | undefined; Subtable?: Row[] | undefined; diff --git a/dist/classes/oracles/Row.d.ts.map b/dist/classes/oracles/Row.d.ts.map index 704a035b1..9a97199ad 100644 --- a/dist/classes/oracles/Row.d.ts.map +++ b/dist/classes/oracles/Row.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/classes/oracles/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAG,UAAU,EAAG,aAAa,EAAG,aAAa,EAAG,WAAW,EAAE,oBAA0B;AAE/G,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAA4B,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAU,YA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AAE,QAAQ,GAAG,IAAI;IA2JnD,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAG5B,oBAAoB;CAOrB"} \ No newline at end of file diff --git a/dist/classes/oracles/Row.js b/dist/classes/oracles/Row.js index 25f9f564e..4ccb3cf4f 100644 --- a/dist/classes/oracles/Row.js +++ b/dist/classes/oracles/Row.js @@ -3,7 +3,13 @@ import { badJsonError } from "../../utils/logging/badJsonError.js"; import { validateRollTemplate } from "../../utils/validation/validateRollTemplate.js"; import _ from "lodash-es"; import { is } from "typescript-is"; +/** + * Class representing a single row of an oracle table. + */ export class Row { + /** + * Creates an instance of Row. + */ constructor(parentId, json) { let rowData = _.clone(json); if (Array.isArray(rowData) && rowData.some(item => Array.isArray(item))) { @@ -23,6 +29,8 @@ export class Row { throw new Error(); } rangeString = this.Floor === this.Ceiling ? `${this.Ceiling}` : `${this.Floor}-${this.Ceiling}`; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore this.$id = `${parentId}/${rangeString}`; } const rowContents = Array.isArray(rowData) ? rowData.slice(2) : [_.omit(rowData, ["Floor", "Ceiling"])]; @@ -61,6 +69,7 @@ export class Row { } case "object": { if (this.Floor === null && this.Ceiling === null) { + // null rows only exist to provide display text, so they only get strings assigned to them; break; } _.forEach(item, (value, key) => { @@ -995,14 +1004,18 @@ export class Row { break; } case "Suggestions": { + // console.log("row has suggestions:", JSON.stringify(rowContents)); let newSuggestions; if (Array.isArray(value)) { + // console.log("Received a suggestion array, merging...", value); const suggestData = _.cloneDeep(value); const suggestItems = suggestData.map(item => new Suggestions(item)); newSuggestions = suggestItems.reduce((a, b) => _.merge(a, b)); + // console.log("merged multiple suggestions", newSuggestions); } else { newSuggestions = new Suggestions(value); + // console.log("single suggestion", newSuggestions); } if (!this.Suggestions) { this.Suggestions = newSuggestions; @@ -1010,6 +1023,7 @@ export class Row { else { this.Suggestions = _.merge({ ...this.Suggestions }, { ...newSuggestions }); } + // console.log("final suggestions object", this.Suggestions); break; } case "Result": { @@ -1052,6 +1066,8 @@ export class Row { throw badJsonError(this.constructor, this, "Row doesn't have a result string"); } } + // this has to happen after derived class inheritance, rather than during the class constructor, so that class inheritance works properly. it gets done when the Oracle class builds the rows. + // FIXME: alternately, i could write an abstract class or something, oof. validateRollTemplate() { if (this["Roll template"]) { return validateRollTemplate(this, this["Roll template"]); diff --git a/dist/classes/oracles/Row.js.map b/dist/classes/oracles/Row.js.map index cb3d88d7f..727e42dae 100644 --- a/dist/classes/oracles/Row.js.map +++ b/dist/classes/oracles/Row.js.map @@ -1 +1 @@ -{"version":3,"file":"Row.js","sourceRoot":"","sources":["../../../src/classes/oracles/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAG,UAAU,EAAG,aAAa,EAAG,aAAa,EAAG,WAAW,EAAE,oBAA0B;AAG/G,OAAO,EAAE,YAAY,EAAE,4CAAuC;AAG9D,OAAO,EAAE,oBAAoB,EAAE,uDAAkD;AAGjF,OAAO,CAAC,MAAM,WAAW,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAKnC,MAAM,OAAO,GAAG;IAuCd,YAAY,QAAgB,EAAE,IAAqB;QACjD,IAAI,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE;YAC1F,OAAO,GAAI,OAAyC,CAAC,IAAI,CAAC,CAAC,CAAa,CAAC;SAC1E;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC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BAAoB,CAAC,IAAgD,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;SACrG;aAAM;YACL,OAAO,IAAI,CAAC;SACb;QAAA,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/dist/classes/setting_truths/SettingTruthOption.js b/dist/classes/setting_truths/SettingTruthOption.js index c00e75358..96f1add20 100644 --- a/dist/classes/setting_truths/SettingTruthOption.js +++ b/dist/classes/setting_truths/SettingTruthOption.js @@ -3,6 +3,7 @@ export class SettingTruthOption extends Row { constructor(parentId, json) { super(parentId, json); if (this.Subtable) { + // what is happening here? this.Subtable = this.Subtable.map(row => new Row(`${this.$id ?? "--"}/Subtable`.replaceAll(" ", "_"), row)); this.Subtable.forEach(row => row.validateRollTemplate()); } diff --git a/dist/classes/setting_truths/SettingTruthOption.js.map b/dist/classes/setting_truths/SettingTruthOption.js.map index a6533ce48..dcd7093f7 100644 --- a/dist/classes/setting_truths/SettingTruthOption.js.map +++ b/dist/classes/setting_truths/SettingTruthOption.js.map @@ -1 +1 @@ -{"version":3,"file":"SettingTruthOption.js","sourceRoot":"","sources":["../../../src/classes/setting_truths/SettingTruthOption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,oBAA0B;AAGxC,MAAM,OAAO,kBAAmB,SAAQ,GAAG;IAIzC,YAAY,QAAgB,EAAE,IAAyB;QACrD,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACtB,IAAI,IAAI,CAAC,QAAQ,EAAE;YAEjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;YAC5G,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC,CAAC;SAC1D;QACD,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"SettingTruthOption.js","sourceRoot":"","sources":["../../../src/classes/setting_truths/SettingTruthOption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,oBAA0B;AAGxC,MAAM,OAAO,kBAAmB,SAAQ,GAAG;IAIzC,YAAY,QAAgB,EAAE,IAAyB;QACrD,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACtB,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,0BAA0B;YAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;YAC5G,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC,CAAC;SAC1D;QACD,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;CACF"} \ No newline at end of file diff --git a/dist/game_objects/IGameObjectRecordBase.d.ts b/dist/game_objects/IGameObjectRecordBase.d.ts index f2dffa2ca..5b8e765da 100644 --- a/dist/game_objects/IGameObjectRecordBase.d.ts +++ b/dist/game_objects/IGameObjectRecordBase.d.ts @@ -1,5 +1,7 @@ import type { AttributeKey, GameObjectType } from "../json_out/index.js"; import type { AttributeHash } from "../utils/types/AttributeHash.js"; +/** + */ export declare type IGameObjectRecordBase = { "Object type": T; "Inherit rolls"?: boolean | undefined; diff --git a/dist/game_objects/IGameObjectRecordBase.d.ts.map b/dist/game_objects/IGameObjectRecordBase.d.ts.map index 15b969091..eacd2b965 100644 --- a/dist/game_objects/IGameObjectRecordBase.d.ts.map +++ b/dist/game_objects/IGameObjectRecordBase.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IGameObjectRecordBase.d.ts","sourceRoot":"","sources":["../../src/game_objects/IGameObjectRecordBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,6BAA2B;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,wCAAsC;AAInE,oBAAY,qBAAqB,CAAC,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,YAAY,IAAI;IACpF,aAAa,EAAE,CAAC,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"IGameObjectRecordBase.d.ts","sourceRoot":"","sources":["../../src/game_objects/IGameObjectRecordBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,6BAA2B;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,wCAAsC;AAEnE;GACG;AACH,oBAAY,qBAAqB,CAAC,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,YAAY,IAAI;IACpF,aAAa,EAAE,CAAC,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Atmosphere.d.ts b/dist/game_objects/enum/Atmosphere.d.ts index d9e08dabd..8fe0d50f0 100644 --- a/dist/game_objects/enum/Atmosphere.d.ts +++ b/dist/game_objects/enum/Atmosphere.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Planets / * / Atmosphere + */ declare enum Atmosphere { NoneThin = "None / Thin", Toxic = "Toxic", diff --git a/dist/game_objects/enum/Atmosphere.d.ts.map b/dist/game_objects/enum/Atmosphere.d.ts.map index 22e096582..4f520b06a 100644 --- a/dist/game_objects/enum/Atmosphere.d.ts.map +++ b/dist/game_objects/enum/Atmosphere.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Atmosphere.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Atmosphere.ts"],"names":[],"mappings":"AAGA,aAAK,UAAU;IACb,QAAQ,gBAAgB;IACxB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Atmosphere.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Atmosphere.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,UAAU;IACb,QAAQ,gBAAgB;IACxB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Atmosphere.js b/dist/game_objects/enum/Atmosphere.js index b93f2e40f..4553d37a3 100644 --- a/dist/game_objects/enum/Atmosphere.js +++ b/dist/game_objects/enum/Atmosphere.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Planets / * / Atmosphere + */ var Atmosphere; (function (Atmosphere) { Atmosphere["NoneThin"] = "None / Thin"; diff --git a/dist/game_objects/enum/Atmosphere.js.map b/dist/game_objects/enum/Atmosphere.js.map index 4f0481000..47de8d5ca 100644 --- a/dist/game_objects/enum/Atmosphere.js.map +++ b/dist/game_objects/enum/Atmosphere.js.map @@ -1 +1 @@ -{"version":3,"file":"Atmosphere.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Atmosphere.ts"],"names":[],"mappings":"AAGA,IAAK,UAOJ;AAPD,WAAK,UAAU;IACb,sCAAwB,CAAA;IACxB,6BAAe,CAAA;IACf,qCAAuB,CAAA;IACvB,mCAAqB,CAAA;IACrB,uCAAyB,CAAA;IACzB,6BAAe,CAAA;AACjB,CAAC,EAPI,UAAU,KAAV,UAAU,QAOd;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Atmosphere.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Atmosphere.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,UAOJ;AAPD,WAAK,UAAU;IACb,sCAAwB,CAAA;IACxB,6BAAe,CAAA;IACf,qCAAuB,CAAA;IACvB,mCAAqB,CAAA;IACrB,uCAAyB,CAAA;IACzB,6BAAe,CAAA;AACjB,CAAC,EAPI,UAAU,KAAV,UAAU,QAOd;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Authority.d.ts b/dist/game_objects/enum/Authority.d.ts index ec1885af4..ef75e4113 100644 --- a/dist/game_objects/enum/Authority.d.ts +++ b/dist/game_objects/enum/Authority.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Settlements / Authority + */ export declare enum Authority { NoneLawless = "None / lawless", Ineffectual = "Ineffectual", diff --git a/dist/game_objects/enum/Authority.d.ts.map b/dist/game_objects/enum/Authority.d.ts.map index a3ddd920a..2aa262bca 100644 --- a/dist/game_objects/enum/Authority.d.ts.map +++ b/dist/game_objects/enum/Authority.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Authority.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Authority.ts"],"names":[],"mappings":"AAGA,oBAAY,SAAS;IACnB,WAAW,mBAAmB;IAC9B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B"} \ No newline at end of file +{"version":3,"file":"Authority.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Authority.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB,WAAW,mBAAmB;IAC9B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B"} \ No newline at end of file diff --git a/dist/game_objects/enum/Authority.js b/dist/game_objects/enum/Authority.js index 8a8380cf4..81d17bf52 100644 --- a/dist/game_objects/enum/Authority.js +++ b/dist/game_objects/enum/Authority.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Settlements / Authority + */ export var Authority; (function (Authority) { Authority["NoneLawless"] = "None / lawless"; diff --git a/dist/game_objects/enum/Authority.js.map b/dist/game_objects/enum/Authority.js.map index dd56f32cc..88ec2bfd7 100644 --- a/dist/game_objects/enum/Authority.js.map +++ b/dist/game_objects/enum/Authority.js.map @@ -1 +1 @@ -{"version":3,"file":"Authority.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Authority.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,2CAA8B,CAAA;IAC9B,wCAA2B,CAAA;IAC3B,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,sCAAyB,CAAA;IACzB,gCAAmB,CAAA;IACnB,sCAAyB,CAAA;AAC3B,CAAC,EARW,SAAS,KAAT,SAAS,QAQpB"} \ No newline at end of file +{"version":3,"file":"Authority.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Authority.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,2CAA8B,CAAA;IAC9B,wCAA2B,CAAA;IAC3B,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,sCAAyB,CAAA;IACzB,gCAAmB,CAAA;IACnB,sCAAyB,CAAA;AAC3B,CAAC,EARW,SAAS,KAAT,SAAS,QAQpB"} \ No newline at end of file diff --git a/dist/game_objects/enum/Behavior.d.ts b/dist/game_objects/enum/Behavior.d.ts index 33a83e207..fa8dcd676 100644 --- a/dist/game_objects/enum/Behavior.d.ts +++ b/dist/game_objects/enum/Behavior.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Creatures / Encountered Behavior + */ declare enum Behavior { Ambusher = "Ambusher", Hibernator = "Hibernator", diff --git a/dist/game_objects/enum/Behavior.d.ts.map b/dist/game_objects/enum/Behavior.d.ts.map index c8350c429..9616c7c7f 100644 --- a/dist/game_objects/enum/Behavior.d.ts.map +++ b/dist/game_objects/enum/Behavior.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Behavior.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Behavior.ts"],"names":[],"mappings":"AAGA,aAAK,QAAQ;IACX,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Behavior.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Behavior.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,QAAQ;IACX,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Behavior.js b/dist/game_objects/enum/Behavior.js index b33eddc65..cd19fe601 100644 --- a/dist/game_objects/enum/Behavior.js +++ b/dist/game_objects/enum/Behavior.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Creatures / Encountered Behavior + */ var Behavior; (function (Behavior) { Behavior["Ambusher"] = "Ambusher"; diff --git a/dist/game_objects/enum/Behavior.js.map b/dist/game_objects/enum/Behavior.js.map index 19501ca28..8dd68e8dd 100644 --- a/dist/game_objects/enum/Behavior.js.map +++ b/dist/game_objects/enum/Behavior.js.map @@ -1 +1 @@ -{"version":3,"file":"Behavior.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Behavior.ts"],"names":[],"mappings":"AAGA,IAAK,QAqBJ;AArBD,WAAK,QAAQ;IACX,iCAAqB,CAAA;IACrB,qCAAyB,CAAA;IACzB,sCAA0B,CAAA;IAC1B,0CAA8B,CAAA;IAC9B,+BAAmB,CAAA;IACnB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,uCAA2B,CAAA;IAC3B,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;AACnB,CAAC,EArBI,QAAQ,KAAR,QAAQ,QAqBZ;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Behavior.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Behavior.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,QAqBJ;AArBD,WAAK,QAAQ;IACX,iCAAqB,CAAA;IACrB,qCAAyB,CAAA;IACzB,sCAA0B,CAAA;IAC1B,0CAA8B,CAAA;IAC9B,+BAAmB,CAAA;IACnB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,uCAA2B,CAAA;IAC3B,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;AACnB,CAAC,EArBI,QAAQ,KAAR,QAAQ,QAqBZ;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Biome.d.ts b/dist/game_objects/enum/Biome.d.ts index f20048a07..e74b0876d 100644 --- a/dist/game_objects/enum/Biome.d.ts +++ b/dist/game_objects/enum/Biome.d.ts @@ -1,3 +1,8 @@ +/** + * Set by Oracles / Creatures / Encountered Behavior + * @ignore + * @todo implement + */ declare enum Biome { } export { Biome }; diff --git a/dist/game_objects/enum/Biome.d.ts.map b/dist/game_objects/enum/Biome.d.ts.map index 59b376e32..2948068e1 100644 --- a/dist/game_objects/enum/Biome.d.ts.map +++ b/dist/game_objects/enum/Biome.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Biome.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Biome.ts"],"names":[],"mappings":"AAKA,aAAK,KAAK;CACT;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Biome.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Biome.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,aAAK,KAAK;CACT;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Biome.js b/dist/game_objects/enum/Biome.js index 596b27537..1e9ea3640 100644 --- a/dist/game_objects/enum/Biome.js +++ b/dist/game_objects/enum/Biome.js @@ -1,5 +1,11 @@ +/** + * Set by Oracles / Creatures / Encountered Behavior + * @ignore + * @todo implement + */ var Biome; (function (Biome) { })(Biome || (Biome = {})); +// TODO export { Biome }; //# sourceMappingURL=Biome.js.map \ No newline at end of file diff --git a/dist/game_objects/enum/Biome.js.map b/dist/game_objects/enum/Biome.js.map index 67b06e130..97809acbf 100644 --- a/dist/game_objects/enum/Biome.js.map +++ b/dist/game_objects/enum/Biome.js.map @@ -1 +1 @@ -{"version":3,"file":"Biome.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Biome.ts"],"names":[],"mappings":"AAKA,IAAK,KACJ;AADD,WAAK,KAAK;AACV,CAAC,EADI,KAAK,KAAL,KAAK,QACT;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Biome.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Biome.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,IAAK,KACJ;AADD,WAAK,KAAK;AACV,CAAC,EADI,KAAK,KAAL,KAAK,QACT;AACD,OAAO;AACP,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/CreatureScale.d.ts b/dist/game_objects/enum/CreatureScale.d.ts index f62c242ba..eda00d163 100644 --- a/dist/game_objects/enum/CreatureScale.d.ts +++ b/dist/game_objects/enum/CreatureScale.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Creatures / Scale + */ export declare enum CreatureScale { Minuscule = "Minuscule", Tiny = "Tiny", diff --git a/dist/game_objects/enum/CreatureScale.d.ts.map b/dist/game_objects/enum/CreatureScale.d.ts.map index 5491a9857..352fb3e99 100644 --- a/dist/game_objects/enum/CreatureScale.d.ts.map +++ b/dist/game_objects/enum/CreatureScale.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CreatureScale.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/CreatureScale.ts"],"names":[],"mappings":"AAGA,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd"} \ No newline at end of file +{"version":3,"file":"CreatureScale.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/CreatureScale.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd"} \ No newline at end of file diff --git a/dist/game_objects/enum/CreatureScale.js b/dist/game_objects/enum/CreatureScale.js index 76be2845d..8eff3622a 100644 --- a/dist/game_objects/enum/CreatureScale.js +++ b/dist/game_objects/enum/CreatureScale.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Creatures / Scale + */ export var CreatureScale; (function (CreatureScale) { CreatureScale["Minuscule"] = "Minuscule"; diff --git a/dist/game_objects/enum/CreatureScale.js.map b/dist/game_objects/enum/CreatureScale.js.map index ae84e8a15..7912c5ab1 100644 --- a/dist/game_objects/enum/CreatureScale.js.map +++ b/dist/game_objects/enum/CreatureScale.js.map @@ -1 +1 @@ -{"version":3,"file":"CreatureScale.js","sourceRoot":"","sources":["../../../src/game_objects/enum/CreatureScale.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,8BAAa,CAAA;IACb,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,8BAAa,CAAA;AACf,CAAC,EAVW,aAAa,KAAb,aAAa,QAUxB"} \ No newline at end of file +{"version":3,"file":"CreatureScale.js","sourceRoot":"","sources":["../../../src/game_objects/enum/CreatureScale.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,8BAAa,CAAA;IACb,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,8BAAa,CAAA;AACf,CAAC,EAVW,aAAa,KAAb,aAAa,QAUxB"} \ No newline at end of file diff --git a/dist/game_objects/enum/DerelictType.d.ts b/dist/game_objects/enum/DerelictType.d.ts index fcf637565..f07a28fe7 100644 --- a/dist/game_objects/enum/DerelictType.d.ts +++ b/dist/game_objects/enum/DerelictType.d.ts @@ -1,3 +1,6 @@ +/** + * Set by oracle: Oracles / Derelicts / Type + */ declare enum DerelictType { Starship = "Starship", Settlement = "Settlement" diff --git a/dist/game_objects/enum/DerelictType.d.ts.map b/dist/game_objects/enum/DerelictType.d.ts.map index bf772a903..b1577b352 100644 --- a/dist/game_objects/enum/DerelictType.d.ts.map +++ b/dist/game_objects/enum/DerelictType.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DerelictType.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/DerelictType.ts"],"names":[],"mappings":"AAGA,aAAK,YAAY;IACf,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AACD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"DerelictType.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/DerelictType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,YAAY;IACf,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AACD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/DerelictType.js b/dist/game_objects/enum/DerelictType.js index f15d32aa1..f6f54d147 100644 --- a/dist/game_objects/enum/DerelictType.js +++ b/dist/game_objects/enum/DerelictType.js @@ -1,3 +1,6 @@ +/** + * Set by oracle: Oracles / Derelicts / Type + */ var DerelictType; (function (DerelictType) { DerelictType["Starship"] = "Starship"; diff --git a/dist/game_objects/enum/DerelictType.js.map b/dist/game_objects/enum/DerelictType.js.map index 84683fd99..f43694cc8 100644 --- a/dist/game_objects/enum/DerelictType.js.map +++ b/dist/game_objects/enum/DerelictType.js.map @@ -1 +1 @@ -{"version":3,"file":"DerelictType.js","sourceRoot":"","sources":["../../../src/game_objects/enum/DerelictType.ts"],"names":[],"mappings":"AAGA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACf,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB;AACD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"DerelictType.js","sourceRoot":"","sources":["../../../src/game_objects/enum/DerelictType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,YAGJ;AAHD,WAAK,YAAY;IACf,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB;AACD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Disposition.d.ts b/dist/game_objects/enum/Disposition.d.ts index 2eb77162a..c9f7338bf 100644 --- a/dist/game_objects/enum/Disposition.d.ts +++ b/dist/game_objects/enum/Disposition.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Characters / Disposition + */ declare enum Disposition { Cooperative = "Cooperative", Curious = "Curious", diff --git a/dist/game_objects/enum/Disposition.d.ts.map b/dist/game_objects/enum/Disposition.d.ts.map index 2c89e6d76..ed134bb70 100644 --- a/dist/game_objects/enum/Disposition.d.ts.map +++ b/dist/game_objects/enum/Disposition.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Disposition.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Disposition.ts"],"names":[],"mappings":"AAGA,aAAK,WAAW;IACd,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Disposition.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Disposition.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,WAAW;IACd,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Disposition.js b/dist/game_objects/enum/Disposition.js index 60bc48186..5b86b1145 100644 --- a/dist/game_objects/enum/Disposition.js +++ b/dist/game_objects/enum/Disposition.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Characters / Disposition + */ var Disposition; (function (Disposition) { Disposition["Cooperative"] = "Cooperative"; diff --git a/dist/game_objects/enum/Disposition.js.map b/dist/game_objects/enum/Disposition.js.map index 4cfffd16d..4792e0725 100644 --- a/dist/game_objects/enum/Disposition.js.map +++ b/dist/game_objects/enum/Disposition.js.map @@ -1 +1 @@ -{"version":3,"file":"Disposition.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Disposition.ts"],"names":[],"mappings":"AAGA,IAAK,WAaJ;AAbD,WAAK,WAAW;IACd,0CAA2B,CAAA;IAC3B,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB,kCAAmB,CAAA;AACrB,CAAC,EAbI,WAAW,KAAX,WAAW,QAaf;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Disposition.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Disposition.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,WAaJ;AAbD,WAAK,WAAW;IACd,0CAA2B,CAAA;IAC3B,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB,kCAAmB,CAAA;AACrB,CAAC,EAbI,WAAW,KAAX,WAAW,QAaf;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Diversity.d.ts b/dist/game_objects/enum/Diversity.d.ts index 9332719f6..be105efcf 100644 --- a/dist/game_objects/enum/Diversity.d.ts +++ b/dist/game_objects/enum/Diversity.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Planets / Vital / Diversity + */ declare enum Diversity { Simple = 2, Diverse = 3, diff --git a/dist/game_objects/enum/Diversity.d.ts.map b/dist/game_objects/enum/Diversity.d.ts.map index 82b42aa29..4b9aede7a 100644 --- a/dist/game_objects/enum/Diversity.d.ts.map +++ b/dist/game_objects/enum/Diversity.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Diversity.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Diversity.ts"],"names":[],"mappings":"AAGA,aAAK,SAAS;IACZ,MAAM,IAAI;IACV,OAAO,IAAI;IACX,OAAO,IAAI;IACX,WAAW,IAAI;CAChB;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Diversity.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Diversity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,SAAS;IACZ,MAAM,IAAI;IACV,OAAO,IAAI;IACX,OAAO,IAAI;IACX,WAAW,IAAI;CAChB;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Diversity.js b/dist/game_objects/enum/Diversity.js index d3f65b62a..c8c932fcb 100644 --- a/dist/game_objects/enum/Diversity.js +++ b/dist/game_objects/enum/Diversity.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Planets / Vital / Diversity + */ var Diversity; (function (Diversity) { Diversity[Diversity["Simple"] = 2] = "Simple"; diff --git a/dist/game_objects/enum/Diversity.js.map b/dist/game_objects/enum/Diversity.js.map index 18504ec4d..05d11a05a 100644 --- a/dist/game_objects/enum/Diversity.js.map +++ b/dist/game_objects/enum/Diversity.js.map @@ -1 +1 @@ -{"version":3,"file":"Diversity.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Diversity.ts"],"names":[],"mappings":"AAGA,IAAK,SAKJ;AALD,WAAK,SAAS;IACZ,6CAAU,CAAA;IACV,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,uDAAe,CAAA;AACjB,CAAC,EALI,SAAS,KAAT,SAAS,QAKb;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Diversity.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Diversity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,SAKJ;AALD,WAAK,SAAS;IACZ,6CAAU,CAAA;IACV,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,uDAAe,CAAA;AACjB,CAAC,EALI,SAAS,KAAT,SAAS,QAKb;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Dominion.d.ts b/dist/game_objects/enum/Dominion.d.ts index 96dd37bd6..acda43ba5 100644 --- a/dist/game_objects/enum/Dominion.d.ts +++ b/dist/game_objects/enum/Dominion.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Dominion + */ declare enum Dominion { Agriculture = "Agriculture", Artistry = "Artistry", diff --git a/dist/game_objects/enum/Dominion.d.ts.map b/dist/game_objects/enum/Dominion.d.ts.map index d98844411..093d2b8ee 100644 --- a/dist/game_objects/enum/Dominion.d.ts.map +++ b/dist/game_objects/enum/Dominion.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Dominion.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Dominion.ts"],"names":[],"mappings":"AAGA,aAAK,QAAQ;IACX,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Dominion.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Dominion.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,QAAQ;IACX,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Dominion.js b/dist/game_objects/enum/Dominion.js index 5866b70bd..41873cc31 100644 --- a/dist/game_objects/enum/Dominion.js +++ b/dist/game_objects/enum/Dominion.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Dominion + */ var Dominion; (function (Dominion) { Dominion["Agriculture"] = "Agriculture"; diff --git a/dist/game_objects/enum/Dominion.js.map b/dist/game_objects/enum/Dominion.js.map index 5a77381a4..8f5c3669b 100644 --- a/dist/game_objects/enum/Dominion.js.map +++ b/dist/game_objects/enum/Dominion.js.map @@ -1 +1 @@ -{"version":3,"file":"Dominion.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Dominion.ts"],"names":[],"mappings":"AAGA,IAAK,QAyBJ;AAzBD,WAAK,QAAQ;IACX,uCAA2B,CAAA;IAC3B,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,iDAAqC,CAAA;IACrC,uCAA2B,CAAA;IAC3B,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,uBAAW,CAAA;IACX,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;AACnB,CAAC,EAzBI,QAAQ,KAAR,QAAQ,QAyBZ;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Dominion.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Dominion.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,QAyBJ;AAzBD,WAAK,QAAQ;IACX,uCAA2B,CAAA;IAC3B,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,iDAAqC,CAAA;IACrC,uCAA2B,CAAA;IAC3B,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,uBAAW,CAAA;IACX,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;AACnB,CAAC,EAzBI,QAAQ,KAAR,QAAQ,QAyBZ;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Environment.d.ts b/dist/game_objects/enum/Environment.d.ts index fbe660677..90d639b68 100644 --- a/dist/game_objects/enum/Environment.d.ts +++ b/dist/game_objects/enum/Environment.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Creatures / Environment + */ declare enum Environment { Space = "Space", Interior = "Interior", diff --git a/dist/game_objects/enum/Environment.d.ts.map b/dist/game_objects/enum/Environment.d.ts.map index 6dd8ae59e..2fb0ec053 100644 --- a/dist/game_objects/enum/Environment.d.ts.map +++ b/dist/game_objects/enum/Environment.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Environment.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Environment.ts"],"names":[],"mappings":"AAGA,aAAK,WAAW;IACd,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AACD,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Environment.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,WAAW;IACd,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AACD,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Environment.js b/dist/game_objects/enum/Environment.js index 0588a3e33..5f5439bf5 100644 --- a/dist/game_objects/enum/Environment.js +++ b/dist/game_objects/enum/Environment.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Creatures / Environment + */ var Environment; (function (Environment) { Environment["Space"] = "Space"; diff --git a/dist/game_objects/enum/Environment.js.map b/dist/game_objects/enum/Environment.js.map index 1fd45e1e9..27479f28d 100644 --- a/dist/game_objects/enum/Environment.js.map +++ b/dist/game_objects/enum/Environment.js.map @@ -1 +1 @@ -{"version":3,"file":"Environment.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Environment.ts"],"names":[],"mappings":"AAGA,IAAK,WAMJ;AAND,WAAK,WAAW;IACd,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,0BAAW,CAAA;AACb,CAAC,EANI,WAAW,KAAX,WAAW,QAMf;AACD,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Environment.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,WAMJ;AAND,WAAK,WAAW;IACd,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,0BAAW,CAAA;AACb,CAAC,EANI,WAAW,KAAX,WAAW,QAMf;AACD,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/FactionType.d.ts b/dist/game_objects/enum/FactionType.d.ts index 7e6b126ab..6d5ab9b8c 100644 --- a/dist/game_objects/enum/FactionType.d.ts +++ b/dist/game_objects/enum/FactionType.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Type + */ declare enum FactionType { FringeGroup = "Fringe Group", Dominion = "Dominion", diff --git a/dist/game_objects/enum/FactionType.d.ts.map b/dist/game_objects/enum/FactionType.d.ts.map index a3279733b..693cfe887 100644 --- a/dist/game_objects/enum/FactionType.d.ts.map +++ b/dist/game_objects/enum/FactionType.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FactionType.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/FactionType.ts"],"names":[],"mappings":"AAGA,aAAK,WAAW;IACd,WAAW,iBAAiB;IAC5B,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"FactionType.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/FactionType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,WAAW;IACd,WAAW,iBAAiB;IAC5B,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/FactionType.js b/dist/game_objects/enum/FactionType.js index f3ca10c08..0e272c0a7 100644 --- a/dist/game_objects/enum/FactionType.js +++ b/dist/game_objects/enum/FactionType.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Type + */ var FactionType; (function (FactionType) { FactionType["FringeGroup"] = "Fringe Group"; diff --git a/dist/game_objects/enum/FactionType.js.map b/dist/game_objects/enum/FactionType.js.map index 37cc59e83..ad86cb6f6 100644 --- a/dist/game_objects/enum/FactionType.js.map +++ b/dist/game_objects/enum/FactionType.js.map @@ -1 +1 @@ -{"version":3,"file":"FactionType.js","sourceRoot":"","sources":["../../../src/game_objects/enum/FactionType.ts"],"names":[],"mappings":"AAGA,IAAK,WAIJ;AAJD,WAAK,WAAW;IACd,2CAA4B,CAAA;IAC5B,oCAAqB,CAAA;IACrB,8BAAe,CAAA;AACjB,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAAA,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"FactionType.js","sourceRoot":"","sources":["../../../src/game_objects/enum/FactionType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,WAIJ;AAJD,WAAK,WAAW;IACd,2CAA4B,CAAA;IAC5B,oCAAqB,CAAA;IACrB,8BAAe,CAAA;AACjB,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAAA,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/FringeGroup.d.ts b/dist/game_objects/enum/FringeGroup.d.ts index 5b9a40c29..07dd7320c 100644 --- a/dist/game_objects/enum/FringeGroup.d.ts +++ b/dist/game_objects/enum/FringeGroup.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Fringe Group + */ declare enum FringeGroup { Cultists = "Cultists", Exiles = "Exiles", diff --git a/dist/game_objects/enum/FringeGroup.d.ts.map b/dist/game_objects/enum/FringeGroup.d.ts.map index 02bb6b552..99b0c549a 100644 --- a/dist/game_objects/enum/FringeGroup.d.ts.map +++ b/dist/game_objects/enum/FringeGroup.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FringeGroup.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/FringeGroup.ts"],"names":[],"mappings":"AAGA,aAAK,WAAW;IACd,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,cAAc,oBAAoB;IAClC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,UAAU,eAAe;IACzB,SAAS,cAAc;CACxB;AACD,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"FringeGroup.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/FringeGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,WAAW;IACd,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,cAAc,oBAAoB;IAClC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,UAAU,eAAe;IACzB,SAAS,cAAc;CACxB;AACD,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/FringeGroup.js b/dist/game_objects/enum/FringeGroup.js index 8a183d20c..9875135c5 100644 --- a/dist/game_objects/enum/FringeGroup.js +++ b/dist/game_objects/enum/FringeGroup.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Fringe Group + */ var FringeGroup; (function (FringeGroup) { FringeGroup["Cultists"] = "Cultists"; diff --git a/dist/game_objects/enum/FringeGroup.js.map b/dist/game_objects/enum/FringeGroup.js.map index b56273457..ad0a3017e 100644 --- a/dist/game_objects/enum/FringeGroup.js.map +++ b/dist/game_objects/enum/FringeGroup.js.map @@ -1 +1 @@ -{"version":3,"file":"FringeGroup.js","sourceRoot":"","sources":["../../../src/game_objects/enum/FringeGroup.ts"],"names":[],"mappings":"AAGA,IAAK,WAYJ;AAZD,WAAK,WAAW;IACd,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,sCAAuB,CAAA;IACvB,kCAAmB,CAAA;IACnB,iDAAkC,CAAA;IAClC,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,mCAAoB,CAAA;IACpB,wCAAyB,CAAA;IACzB,sCAAuB,CAAA;AACzB,CAAC,EAZI,WAAW,KAAX,WAAW,QAYf;AACD,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"FringeGroup.js","sourceRoot":"","sources":["../../../src/game_objects/enum/FringeGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,WAYJ;AAZD,WAAK,WAAW;IACd,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,sCAAuB,CAAA;IACvB,kCAAmB,CAAA;IACnB,iDAAkC,CAAA;IAClC,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,mCAAoB,CAAA;IACpB,wCAAyB,CAAA;IACzB,sCAAuB,CAAA;AACzB,CAAC,EAZI,WAAW,KAAX,WAAW,QAYf;AACD,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Guild.d.ts b/dist/game_objects/enum/Guild.d.ts index 95cc63007..4a8f82c0a 100644 --- a/dist/game_objects/enum/Guild.d.ts +++ b/dist/game_objects/enum/Guild.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Guild + */ declare enum Guild { Assassins = "Assassins", BountyHunters = "Bounty Hunters", diff --git a/dist/game_objects/enum/Guild.d.ts.map b/dist/game_objects/enum/Guild.d.ts.map index 144cc3815..8ee93f09d 100644 --- a/dist/game_objects/enum/Guild.d.ts.map +++ b/dist/game_objects/enum/Guild.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Guild.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Guild.ts"],"names":[],"mappings":"AAGA,aAAK,KAAK;IACR,SAAS,cAAc;IACvB,aAAa,mBAAmB;IAChC,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AACD,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Guild.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Guild.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,KAAK;IACR,SAAS,cAAc;IACvB,aAAa,mBAAmB;IAChC,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AACD,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Guild.js b/dist/game_objects/enum/Guild.js index 68258c394..10c935e8f 100644 --- a/dist/game_objects/enum/Guild.js +++ b/dist/game_objects/enum/Guild.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Guild + */ var Guild; (function (Guild) { Guild["Assassins"] = "Assassins"; diff --git a/dist/game_objects/enum/Guild.js.map b/dist/game_objects/enum/Guild.js.map index 7fa66cffa..61ba14e32 100644 --- a/dist/game_objects/enum/Guild.js.map +++ b/dist/game_objects/enum/Guild.js.map @@ -1 +1 @@ -{"version":3,"file":"Guild.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Guild.ts"],"names":[],"mappings":"AAGA,IAAK,KAeJ;AAfD,WAAK,KAAK;IACR,gCAAuB,CAAA;IACvB,yCAAgC,CAAA;IAChC,8BAAqB,CAAA;IACrB,kCAAyB,CAAA;IACzB,gCAAuB,CAAA;IACvB,4BAAmB,CAAA;IACnB,0CAAiC,CAAA;IACjC,oCAA2B,CAAA;IAC3B,gCAAuB,CAAA;IACvB,4BAAmB,CAAA;IACnB,kCAAyB,CAAA;IACzB,sCAA6B,CAAA;IAC7B,oCAA2B,CAAA;IAC3B,wBAAe,CAAA;AACjB,CAAC,EAfI,KAAK,KAAL,KAAK,QAeT;AACD,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Guild.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Guild.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,KAeJ;AAfD,WAAK,KAAK;IACR,gCAAuB,CAAA;IACvB,yCAAgC,CAAA;IAChC,8BAAqB,CAAA;IACrB,kCAAyB,CAAA;IACzB,gCAAuB,CAAA;IACvB,4BAAmB,CAAA;IACnB,0CAAiC,CAAA;IACjC,oCAA2B,CAAA;IAC3B,gCAAuB,CAAA;IACvB,4BAAmB,CAAA;IACnB,kCAAyB,CAAA;IACzB,sCAA6B,CAAA;IAC7B,oCAA2B,CAAA;IAC3B,wBAAe,CAAA;AACjB,CAAC,EAfI,KAAK,KAAL,KAAK,QAeT;AACD,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Influence.d.ts b/dist/game_objects/enum/Influence.d.ts index 5d5a30e46..e30cca1f4 100644 --- a/dist/game_objects/enum/Influence.d.ts +++ b/dist/game_objects/enum/Influence.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Influence + */ declare enum Influence { Forsaken = "Forsaken", Isolated = "Isolated", diff --git a/dist/game_objects/enum/Influence.d.ts.map b/dist/game_objects/enum/Influence.d.ts.map index 0300ba2f5..35da3c35e 100644 --- a/dist/game_objects/enum/Influence.d.ts.map +++ b/dist/game_objects/enum/Influence.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Influence.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Influence.ts"],"names":[],"mappings":"AAGA,aAAK,SAAS;IACZ,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;CAC5B;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Influence.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Influence.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,SAAS;IACZ,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;CAC5B;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Influence.js b/dist/game_objects/enum/Influence.js index 6fdab7311..1fca4337a 100644 --- a/dist/game_objects/enum/Influence.js +++ b/dist/game_objects/enum/Influence.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Influence + */ var Influence; (function (Influence) { Influence["Forsaken"] = "Forsaken"; diff --git a/dist/game_objects/enum/Influence.js.map b/dist/game_objects/enum/Influence.js.map index 0149e590e..b72faea4d 100644 --- a/dist/game_objects/enum/Influence.js.map +++ b/dist/game_objects/enum/Influence.js.map @@ -1 +1 @@ -{"version":3,"file":"Influence.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Influence.ts"],"names":[],"mappings":"AAGA,IAAK,SAQJ;AARD,WAAK,SAAS;IACZ,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;IACvB,wCAA2B,CAAA;IAC3B,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,wCAA2B,CAAA;AAC7B,CAAC,EARI,SAAS,KAAT,SAAS,QAQb;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Influence.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Influence.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,SAQJ;AARD,WAAK,SAAS;IACZ,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;IACvB,wCAA2B,CAAA;IAC3B,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,wCAA2B,CAAA;AAC7B,CAAC,EARI,SAAS,KAAT,SAAS,QAQb;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Leadership.d.ts b/dist/game_objects/enum/Leadership.d.ts index a8ad8ce90..643ecdc9d 100644 --- a/dist/game_objects/enum/Leadership.d.ts +++ b/dist/game_objects/enum/Leadership.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Leadership + */ declare enum Leadership { Anarchist = "Anarchist", DisputedLeadership = "Disputed leadership", diff --git a/dist/game_objects/enum/Leadership.d.ts.map b/dist/game_objects/enum/Leadership.d.ts.map index b73ea6d0b..6f51933cc 100644 --- a/dist/game_objects/enum/Leadership.d.ts.map +++ b/dist/game_objects/enum/Leadership.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Leadership.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Leadership.ts"],"names":[],"mappings":"AAGA,aAAK,UAAU;IACb,SAAS,cAAc;IACvB,kBAAkB,wBAAwB;IAC1C,yBAAyB,+BAA+B;IACxD,iBAAiB,uBAAuB;IACxC,eAAe,qBAAqB;IACpC,uBAAuB,+BAA+B;IACtD,kBAAkB,0BAA0B;IAC5C,sBAAsB,4BAA4B;IAClD,mBAAmB,yBAAyB;IAC5C,mBAAmB,2BAA2B;CAC/C;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Leadership.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Leadership.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,UAAU;IACb,SAAS,cAAc;IACvB,kBAAkB,wBAAwB;IAC1C,yBAAyB,+BAA+B;IACxD,iBAAiB,uBAAuB;IACxC,eAAe,qBAAqB;IACpC,uBAAuB,+BAA+B;IACtD,kBAAkB,0BAA0B;IAC5C,sBAAsB,4BAA4B;IAClD,mBAAmB,yBAAyB;IAC5C,mBAAmB,2BAA2B;CAC/C;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Leadership.js b/dist/game_objects/enum/Leadership.js index 4b8c85cc4..11c91760f 100644 --- a/dist/game_objects/enum/Leadership.js +++ b/dist/game_objects/enum/Leadership.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Factions / Leadership + */ var Leadership; (function (Leadership) { Leadership["Anarchist"] = "Anarchist"; diff --git a/dist/game_objects/enum/Leadership.js.map b/dist/game_objects/enum/Leadership.js.map index b9e38dac1..abd1b70b6 100644 --- a/dist/game_objects/enum/Leadership.js.map +++ b/dist/game_objects/enum/Leadership.js.map @@ -1 +1 @@ -{"version":3,"file":"Leadership.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Leadership.ts"],"names":[],"mappings":"AAGA,IAAK,UAWJ;AAXD,WAAK,UAAU;IACb,qCAAuB,CAAA;IACvB,wDAA0C,CAAA;IAC1C,sEAAwD,CAAA;IACxD,sDAAwC,CAAA;IACxC,kDAAoC,CAAA;IACpC,oEAAsD,CAAA;IACtD,0DAA4C,CAAA;IAC5C,gEAAkD,CAAA;IAClD,0DAA4C,CAAA;IAC5C,4DAA8C,CAAA;AAChD,CAAC,EAXI,UAAU,KAAV,UAAU,QAWd;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Leadership.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Leadership.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,UAWJ;AAXD,WAAK,UAAU;IACb,qCAAuB,CAAA;IACvB,wDAA0C,CAAA;IAC1C,sEAAwD,CAAA;IACxD,sDAAwC,CAAA;IACxC,kDAAoC,CAAA;IACpC,oEAAsD,CAAA;IACtD,0DAA4C,CAAA;IAC5C,gEAAkD,CAAA;IAClD,0DAA4C,CAAA;IAC5C,4DAA8C,CAAA;AAChD,CAAC,EAXI,UAAU,KAAV,UAAU,QAWd;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Life.d.ts b/dist/game_objects/enum/Life.d.ts index 977efef91..1323c1378 100644 --- a/dist/game_objects/enum/Life.d.ts +++ b/dist/game_objects/enum/Life.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Planets / * / Life + */ declare enum Life { None = "None", Extinct = "Extinct", diff --git a/dist/game_objects/enum/Life.d.ts.map b/dist/game_objects/enum/Life.d.ts.map index 016122dae..c69800a14 100644 --- a/dist/game_objects/enum/Life.d.ts.map +++ b/dist/game_objects/enum/Life.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Life.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Life.ts"],"names":[],"mappings":"AAGA,aAAK,IAAI;IACP,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AACD,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Life.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Life.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,IAAI;IACP,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AACD,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Life.js b/dist/game_objects/enum/Life.js index e1341a0fa..9975a225b 100644 --- a/dist/game_objects/enum/Life.js +++ b/dist/game_objects/enum/Life.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Planets / * / Life + */ var Life; (function (Life) { Life["None"] = "None"; diff --git a/dist/game_objects/enum/Life.js.map b/dist/game_objects/enum/Life.js.map index 7dc07381f..4cd360192 100644 --- a/dist/game_objects/enum/Life.js.map +++ b/dist/game_objects/enum/Life.js.map @@ -1 +1 @@ -{"version":3,"file":"Life.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Life.ts"],"names":[],"mappings":"AAGA,IAAK,IAOJ;AAPD,WAAK,IAAI;IACP,qBAAa,CAAA;IACb,2BAAmB,CAAA;IACnB,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;AACrB,CAAC,EAPI,IAAI,KAAJ,IAAI,QAOR;AACD,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Life.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Life.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,IAOJ;AAPD,WAAK,IAAI;IACP,qBAAa,CAAA;IACb,2BAAmB,CAAA;IACnB,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;AACrB,CAAC,EAPI,IAAI,KAAJ,IAAI,QAOR;AACD,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Location.d.ts b/dist/game_objects/enum/Location.d.ts index 3a34b35f3..be968adae 100644 --- a/dist/game_objects/enum/Location.d.ts +++ b/dist/game_objects/enum/Location.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / ** / Location + */ declare enum Location { Planetside = "Planetside", Orbital = "Orbital", diff --git a/dist/game_objects/enum/Location.d.ts.map b/dist/game_objects/enum/Location.d.ts.map index 9d8b4d527..50311142c 100644 --- a/dist/game_objects/enum/Location.d.ts.map +++ b/dist/game_objects/enum/Location.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Location.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Location.ts"],"names":[],"mappings":"AAGA,aAAK,QAAQ;IACX,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,SAAS,eAAe;CACzB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Location.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Location.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,QAAQ;IACX,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,SAAS,eAAe;CACzB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Location.js b/dist/game_objects/enum/Location.js index 7e780daba..4bc4e4529 100644 --- a/dist/game_objects/enum/Location.js +++ b/dist/game_objects/enum/Location.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / ** / Location + */ var Location; (function (Location) { Location["Planetside"] = "Planetside"; diff --git a/dist/game_objects/enum/Location.js.map b/dist/game_objects/enum/Location.js.map index 546623ccb..e5896d5bd 100644 --- a/dist/game_objects/enum/Location.js.map +++ b/dist/game_objects/enum/Location.js.map @@ -1 +1 @@ -{"version":3,"file":"Location.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Location.ts"],"names":[],"mappings":"AAGA,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACX,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;IACnB,oCAAwB,CAAA;AAC1B,CAAC,EAJI,QAAQ,KAAR,QAAQ,QAIZ;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Location.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Location.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACX,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;IACnB,oCAAwB,CAAA;AAC1B,CAAC,EAJI,QAAQ,KAAR,QAAQ,QAIZ;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/LocationTheme.d.ts b/dist/game_objects/enum/LocationTheme.d.ts index a581480af..f970e56b9 100644 --- a/dist/game_objects/enum/LocationTheme.d.ts +++ b/dist/game_objects/enum/LocationTheme.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Location Themes / Theme Type + */ declare enum LocationTheme { Chaotic = "Chaotic", Fortified = "Fortified", diff --git a/dist/game_objects/enum/LocationTheme.d.ts.map b/dist/game_objects/enum/LocationTheme.d.ts.map index 547de9111..fd0988860 100644 --- a/dist/game_objects/enum/LocationTheme.d.ts.map +++ b/dist/game_objects/enum/LocationTheme.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"LocationTheme.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/LocationTheme.ts"],"names":[],"mappings":"AAGA,aAAK,aAAa;IAChB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"LocationTheme.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/LocationTheme.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,aAAa;IAChB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/LocationTheme.js b/dist/game_objects/enum/LocationTheme.js index 7838044ee..74aa817b1 100644 --- a/dist/game_objects/enum/LocationTheme.js +++ b/dist/game_objects/enum/LocationTheme.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Location Themes / Theme Type + */ var LocationTheme; (function (LocationTheme) { LocationTheme["Chaotic"] = "Chaotic"; diff --git a/dist/game_objects/enum/LocationTheme.js.map b/dist/game_objects/enum/LocationTheme.js.map index 4bebf9fe8..382ded5e2 100644 --- a/dist/game_objects/enum/LocationTheme.js.map +++ b/dist/game_objects/enum/LocationTheme.js.map @@ -1 +1 @@ -{"version":3,"file":"LocationTheme.js","sourceRoot":"","sources":["../../../src/game_objects/enum/LocationTheme.ts"],"names":[],"mappings":"AAGA,IAAK,aASJ;AATD,WAAK,aAAa;IAChB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EATI,aAAa,KAAb,aAAa,QASjB;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"LocationTheme.js","sourceRoot":"","sources":["../../../src/game_objects/enum/LocationTheme.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,aASJ;AATD,WAAK,aAAa;IAChB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EATI,aAAa,KAAb,aAAa,QASjB;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/PlanetaryClass.d.ts b/dist/game_objects/enum/PlanetaryClass.d.ts index fddb121d5..44234e07f 100644 --- a/dist/game_objects/enum/PlanetaryClass.d.ts +++ b/dist/game_objects/enum/PlanetaryClass.d.ts @@ -1,3 +1,6 @@ +/** + * Set by "Oracles / Planets / Class" + */ declare enum PlanetaryClass { Desert = "Desert", Furnace = "Furnace", diff --git a/dist/game_objects/enum/PlanetaryClass.d.ts.map b/dist/game_objects/enum/PlanetaryClass.d.ts.map index e6be60b4f..46023f860 100644 --- a/dist/game_objects/enum/PlanetaryClass.d.ts.map +++ b/dist/game_objects/enum/PlanetaryClass.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"PlanetaryClass.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/PlanetaryClass.ts"],"names":[],"mappings":"AAIA,aAAK,cAAc;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AACD,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"PlanetaryClass.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/PlanetaryClass.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,aAAK,cAAc;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AACD,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/PlanetaryClass.js b/dist/game_objects/enum/PlanetaryClass.js index eb190313b..df20511e9 100644 --- a/dist/game_objects/enum/PlanetaryClass.js +++ b/dist/game_objects/enum/PlanetaryClass.js @@ -1,3 +1,6 @@ +/** + * Set by "Oracles / Planets / Class" + */ var PlanetaryClass; (function (PlanetaryClass) { PlanetaryClass["Desert"] = "Desert"; diff --git a/dist/game_objects/enum/PlanetaryClass.js.map b/dist/game_objects/enum/PlanetaryClass.js.map index 01f80788d..1869dbb3e 100644 --- a/dist/game_objects/enum/PlanetaryClass.js.map +++ b/dist/game_objects/enum/PlanetaryClass.js.map @@ -1 +1 @@ -{"version":3,"file":"PlanetaryClass.js","sourceRoot":"","sources":["../../../src/game_objects/enum/PlanetaryClass.ts"],"names":[],"mappings":"AAIA,IAAK,cAYJ;AAZD,WAAK,cAAc;IACjB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,6BAAW,CAAA;IACX,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACjB,CAAC,EAZI,cAAc,KAAd,cAAc,QAYlB;AACD,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"PlanetaryClass.js","sourceRoot":"","sources":["../../../src/game_objects/enum/PlanetaryClass.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,IAAK,cAYJ;AAZD,WAAK,cAAc;IACjB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,6BAAW,CAAA;IACX,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACjB,CAAC,EAZI,cAAc,KAAd,cAAc,QAYlB;AACD,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Population.d.ts b/dist/game_objects/enum/Population.d.ts index e48c384c8..d22354bac 100644 --- a/dist/game_objects/enum/Population.d.ts +++ b/dist/game_objects/enum/Population.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Settlements / Population + */ export declare enum Population { Few = "Few", Dozens = "Dozens", diff --git a/dist/game_objects/enum/Population.d.ts.map b/dist/game_objects/enum/Population.d.ts.map index af722f329..1402d3c9f 100644 --- a/dist/game_objects/enum/Population.d.ts.map +++ b/dist/game_objects/enum/Population.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Population.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Population.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,GAAG,QAAM;IACT,MAAM,WAAS;IACf,QAAQ,aAAW;IACnB,SAAS,cAAY;IACrB,eAAe,sBAAoB;CACpC"} \ No newline at end of file +{"version":3,"file":"Population.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Population.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IACpB,GAAG,QAAM;IACT,MAAM,WAAS;IACf,QAAQ,aAAW;IACnB,SAAS,cAAY;IACrB,eAAe,sBAAoB;CACpC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Population.js b/dist/game_objects/enum/Population.js index 360c1acf5..b635680f0 100644 --- a/dist/game_objects/enum/Population.js +++ b/dist/game_objects/enum/Population.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Settlements / Population + */ export var Population; (function (Population) { Population["Few"] = "Few"; diff --git a/dist/game_objects/enum/Population.js.map b/dist/game_objects/enum/Population.js.map index b7bf116d3..ee400d780 100644 --- a/dist/game_objects/enum/Population.js.map +++ b/dist/game_objects/enum/Population.js.map @@ -1 +1 @@ -{"version":3,"file":"Population.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Population.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,yBAAS,CAAA;IACT,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,mDAAmC,CAAA;AACrC,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB"} \ No newline at end of file +{"version":3,"file":"Population.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Population.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,yBAAS,CAAA;IACT,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,mDAAmC,CAAA;AACrC,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB"} \ No newline at end of file diff --git a/dist/game_objects/enum/Role.d.ts b/dist/game_objects/enum/Role.d.ts index 2fe99e478..f7670c4e2 100644 --- a/dist/game_objects/enum/Role.d.ts +++ b/dist/game_objects/enum/Role.d.ts @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Character / Role + */ declare enum Role { Agent = "Agent", AI = "AI", diff --git a/dist/game_objects/enum/Role.d.ts.map b/dist/game_objects/enum/Role.d.ts.map index 54630e4f6..0bf9c17ba 100644 --- a/dist/game_objects/enum/Role.d.ts.map +++ b/dist/game_objects/enum/Role.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Role.ts"],"names":[],"mappings":"AAGA,aAAK,IAAI;IACP,KAAK,UAAU;IACf,EAAE,OAAO;IACT,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,YAAY,WAAW;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/game_objects/enum/Role.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,IAAI;IACP,KAAK,UAAU;IACf,EAAE,OAAO;IACT,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,YAAY,WAAW;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/game_objects/enum/Role.js b/dist/game_objects/enum/Role.js index 6ce680021..4167160cc 100644 --- a/dist/game_objects/enum/Role.js +++ b/dist/game_objects/enum/Role.js @@ -1,3 +1,6 @@ +/** + * Set by Oracles / Character / Role + */ var Role; (function (Role) { Role["Agent"] = "Agent"; diff --git a/dist/game_objects/enum/Role.js.map b/dist/game_objects/enum/Role.js.map index 686f70086..38e6356a9 100644 --- a/dist/game_objects/enum/Role.js.map +++ b/dist/game_objects/enum/Role.js.map @@ -1 +1 @@ -{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Role.ts"],"names":[],"mappings":"AAGA,IAAK,IA+CJ;AA/CD,WAAK,IAAI;IACP,uBAAe,CAAA;IACf,iBAAS,CAAA;IACT,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,qBAAa,CAAA;IACb,6BAAqB,CAAA;IACrB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,6BAAqB,CAAA;IACrB,mCAA2B,CAAA;IAC3B,6BAAqB,CAAA;IACrB,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,uBAAe,CAAA;IACf,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,+BAAuB,CAAA;IACvB,yBAAiB,CAAA;IACjB,qCAA6B,CAAA;IAC7B,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,yBAAiB,CAAA;IACjB,+BAAuB,CAAA;IACvB,6BAAqB,CAAA;IACrB,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,2BAAmB,CAAA;IACnB,yBAAiB,CAAA;IACjB,iCAAyB,CAAA;IACzB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,iCAAyB,CAAA;IACzB,6BAAqB,CAAA;IACrB,2BAAmB,CAAA;IACnB,yBAAiB,CAAA;IACjB,iCAAyB,CAAA;IACzB,uBAAe,CAAA;AACjB,CAAC,EA/CI,IAAI,KAAJ,IAAI,QA+CR;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/game_objects/enum/Role.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,IA+CJ;AA/CD,WAAK,IAAI;IACP,uBAAe,CAAA;IACf,iBAAS,CAAA;IACT,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,qBAAa,CAAA;IACb,6BAAqB,CAAA;IACrB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,6BAAqB,CAAA;IACrB,mCAA2B,CAAA;IAC3B,6BAAqB,CAAA;IACrB,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,uBAAe,CAAA;IACf,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,+BAAuB,CAAA;IACvB,yBAAiB,CAAA;IACjB,qCAA6B,CAAA;IAC7B,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,yBAAiB,CAAA;IACjB,+BAAuB,CAAA;IACvB,6BAAqB,CAAA;IACrB,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,2BAAmB,CAAA;IACnB,yBAAiB,CAAA;IACjB,iCAAyB,CAAA;IACzB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,iCAAyB,CAAA;IACzB,6BAAqB,CAAA;IACrB,2BAAmB,CAAA;IACnB,yBAAiB,CAAA;IACjB,iCAAyB,CAAA;IACzB,uBAAe,CAAA;AACjB,CAAC,EA/CI,IAAI,KAAJ,IAAI,QA+CR;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index ef159473c..081e67d16 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,4 @@ +/* eslint-disable no-restricted-imports */ export * from "./json_out/index.js"; import assets_json from "./starforged-assets.json" assert { type: "json" }; import encounters_json from "./starforged-encounters.json" assert { type: "json" }; diff --git a/dist/index.js.map b/dist/index.js.map index c38bd033e..63a1f2f1c 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,oCAAmC;AAGnC,OAAO,WAAW,MAAM,0BAA0B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3E,OAAO,eAAe,MAAM,8BAA8B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACnF,OAAO,UAAU,MAAM,yBAAyB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACzE,OAAO,YAAY,MAAM,2BAA2B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAC7E,OAAO,mBAAmB,MAAM,kCAAkC,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAE3F,MAAM,IAAI,GAAG;IACX,MAAM,EAAE,WAA2B;IACnC,UAAU,EAAE,eAA+B;IAC3C,KAAK,EAAE,UAA6B;IACpC,OAAO,EAAE,YAAiC;IAC1C,MAAM,EAAE,mBAAsC;CAC/C,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,oCAAmC;AAGnC,OAAO,WAAW,MAAM,0BAA0B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3E,OAAO,eAAe,MAAM,8BAA8B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACnF,OAAO,UAAU,MAAM,yBAAyB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACzE,OAAO,YAAY,MAAM,2BAA2B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAC7E,OAAO,mBAAmB,MAAM,kCAAkC,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAE3F,MAAM,IAAI,GAAG;IACX,MAAM,EAAE,WAA2B;IACnC,UAAU,EAAE,eAA+B;IAC3C,KAAK,EAAE,UAA6B;IACpC,OAAO,EAAE,YAAiC;IAC1C,MAAM,EAAE,mBAAsC;CAC/C,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/json_out/assets/IAsset.d.ts b/dist/json_out/assets/IAsset.d.ts index 973d6c710..63bc407ae 100644 --- a/dist/json_out/assets/IAsset.d.ts +++ b/dist/json_out/assets/IAsset.d.ts @@ -1,14 +1,43 @@ import type { Tuple } from "../../utils/types/Tuple.js"; import type { AssetId, AssetTypeId, FragmentString, IAssetAbility, IAssetAttachment, IAssetInput, IConditionMeter, IHasAliases, IHasDisplay, IHasId, IHasName, IHasSource } from "../index.js"; export * from "../../utils/types/Tuple.js"; +/** + * An interface representing a Starforged asset. + */ export interface IAsset extends IHasId, IHasName, IHasDisplay, IHasSource, Partial { + /** + * @example "Assets/Path/Armored" + */ $id: AssetId; + /** + * The asset's name (generally the title printed on the card). + * @example "Armored" + */ Name: string; + /** + * The ID of the asset's parent AssetType + */ "Asset Type": AssetTypeId; + /** + * Information on which assets can be attached to this asset. + */ Attachments?: IAssetAttachment | undefined; + /** + * Data describing the Input controls that should be embedded in the card. Inputs embedded in specific asset abilities appear as keys of the corresponding ability object, instead. + */ Inputs?: IAssetInput[] | undefined; + /** + * An optional markdown string representing the requirement text that appears at the top of some asset cards. + * @example "If you wear your finely crafted set of personal armor..." + */ Requirement?: FragmentString | undefined; + /** + * The asset's abilities. + */ Abilities: Tuple; + /** + * Information on this asset's condition meter, if any. + */ "Condition Meter"?: IConditionMeter | undefined; } //# sourceMappingURL=IAsset.d.ts.map \ No newline at end of file diff --git a/dist/json_out/assets/IAsset.d.ts.map b/dist/json_out/assets/IAsset.d.ts.map index b74c12b54..65bcfa1bf 100644 --- a/dist/json_out/assets/IAsset.d.ts.map +++ b/dist/json_out/assets/IAsset.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IAsset.d.ts","sourceRoot":"","sources":["../../../src/json_out/assets/IAsset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,mCAA8B;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAC,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,oBAA2B;AAErM,2CAAsC;AAKtC,MAAM,WAAW,MAAO,SAAQ,MAAM,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC;IAItG,GAAG,EAAE,OAAO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,EAAE,eAAe,GAAG,SAAS,CAAC;CAEjD"} \ No newline at end of file diff --git a/dist/json_out/assets/IAssetInput.d.ts b/dist/json_out/assets/IAssetInput.d.ts index 0c6865943..1f6ab01da 100644 --- a/dist/json_out/assets/IAssetInput.d.ts +++ b/dist/json_out/assets/IAssetInput.d.ts @@ -1,5 +1,8 @@ import type { ClockSegments } from "../common/ClockSegments.js"; import type { AssetConditionMeterId, ClockType, ConditionMeterName, IHasId, IHasName, InputType, Stat } from "../index.js"; +/** + * @internal + */ export interface IInputBase extends IHasId, IHasName { "Input Type": InputType; Adjustable?: boolean; @@ -30,6 +33,9 @@ export interface ISelectInput extends IInputBase { "Option Type": SelectInputOptionType; Options: ISelectInputOption[]; } +/** + * @internal + */ export interface ISelectInputOption extends IHasId, IHasName { "Option Type": T; } diff --git a/dist/json_out/assets/IAssetInput.d.ts.map b/dist/json_out/assets/IAssetInput.d.ts.map index f50df71d3..f06c616b8 100644 --- a/dist/json_out/assets/IAssetInput.d.ts.map +++ b/dist/json_out/assets/IAssetInput.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IAssetInput.d.ts","sourceRoot":"","sources":["../../../src/json_out/assets/IAssetInput.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,mCAA0C;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,EAAG,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,oBAA2B;AAKnI,MAAM,WAAW,UAAW,SAAQ,MAAM,EAAE,QAAQ;IAClD,YAAY,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,oBAAY,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC;AAIjF,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,SAAS,CAAC,MAAM,CAAC;IAC/B,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AqB,CAAC;IACrC,OAAO,EAAE,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,qBAAqB,CAAE,SAAQ,MAAM,EAAE,QAAQ;IAC3F,aAAa,EAAE,CAAC,CAAC;CAClB;AAED,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,cAAc,oBAAoB;IAClC,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC,IAAI,CAAC;IAC5F,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC,cAAc,CAAC;IACvG,iBAAiB,EAAE,kBAAkB,GAAG,qBAAqB,CAAC;CAC/D;AAED,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC,MAAM,CAAC;IAChG,KAAK,EAAE,MAAM,CAAC;CACf"} \ No newline at end of file diff --git a/dist/json_out/assets/index.d.ts b/dist/json_out/assets/index.d.ts index 0e3314462..25900bc25 100644 --- a/dist/json_out/assets/index.d.ts +++ b/dist/json_out/assets/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json.Assets + */ export * from "./AlterMoveId.js"; export * from "./AssetAbilityId.js"; export * from "./AssetConditionMeterId.js"; diff --git a/dist/json_out/assets/index.d.ts.map b/dist/json_out/assets/index.d.ts.map index 06ccb7942..8b2adef25 100644 --- a/dist/json_out/assets/index.d.ts.map +++ b/dist/json_out/assets/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/assets/index.ts"],"names":[],"mappings":"AAIA,iCAAgD;AAChD,oCAAmD;AACnD,2CAA0D;AAC1D,6BAA4C;AAC5C,iCAAgD;AAChD,mCAAkD;AAClD,gCAA+C;AAC/C,4BAA2C;AAC3C,mCAAkD;AAClD,sCAAqD;AACrD,iCAAgD;AAChD,gCAA+C"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/assets/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,iCAAgD;AAChD,oCAAmD;AACnD,2CAA0D;AAC1D,6BAA4C;AAC5C,iCAAgD;AAChD,mCAAkD;AAClD,gCAA+C;AAC/C,4BAA2C;AAC3C,mCAAkD;AAClD,sCAAqD;AACrD,iCAAgD;AAChD,gCAA+C"} \ No newline at end of file diff --git a/dist/json_out/assets/index.js b/dist/json_out/assets/index.js index fe02925e4..6adc36c8f 100644 --- a/dist/json_out/assets/index.js +++ b/dist/json_out/assets/index.js @@ -1,3 +1,6 @@ +/** + * @module Json.Assets + */ export * from "./AlterMoveId.js"; export * from "./AssetAbilityId.js"; export * from "./AssetConditionMeterId.js"; diff --git a/dist/json_out/assets/index.js.map b/dist/json_out/assets/index.js.map index 000739d5c..c5c15a9af 100644 --- a/dist/json_out/assets/index.js.map +++ b/dist/json_out/assets/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/assets/index.ts"],"names":[],"mappings":"AAIA,iCAAgD;AAChD,oCAAmD;AACnD,2CAA0D;AAC1D,6BAA4C;AAC5C,iCAAgD;AAChD,mCAAkD;AAClD,gCAA+C;AAC/C,4BAA2C;AAC3C,mCAAkD;AAClD,sCAAqD;AACrD,iCAAgD;AAChD,gCAA+C"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/assets/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,iCAAgD;AAChD,oCAAmD;AACnD,2CAA0D;AAC1D,6BAA4C;AAC5C,iCAAgD;AAChD,mCAAkD;AAClD,gCAA+C;AAC/C,4BAA2C;AAC3C,mCAAkD;AAClD,sCAAqD;AACrD,iCAAgD;AAChD,gCAA+C"} \ No newline at end of file diff --git a/dist/json_out/common/ChallengeRank.d.ts b/dist/json_out/common/ChallengeRank.d.ts index e8400844a..581e0ba15 100644 --- a/dist/json_out/common/ChallengeRank.d.ts +++ b/dist/json_out/common/ChallengeRank.d.ts @@ -1,3 +1,6 @@ +/** + * Enumerates challenge ranks. + */ declare enum ChallengeRank { Troublesome = 1, Dangerous = 2, diff --git a/dist/json_out/common/ChallengeRank.d.ts.map b/dist/json_out/common/ChallengeRank.d.ts.map index 5d0c429d2..1edb6571d 100644 --- a/dist/json_out/common/ChallengeRank.d.ts.map +++ b/dist/json_out/common/ChallengeRank.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ChallengeRank.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/ChallengeRank.ts"],"names":[],"mappings":"AAGA,aAAK,aAAa;IAChB,WAAW,IAAI;IACf,SAAS,IAAI;IACb,UAAU,IAAI;IACd,OAAO,IAAI;IACX,IAAI,IAAI;CACT;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"ChallengeRank.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/ChallengeRank.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,aAAa;IAChB,WAAW,IAAI;IACf,SAAS,IAAI;IACb,UAAU,IAAI;IACd,OAAO,IAAI;IACX,IAAI,IAAI;CACT;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/json_out/common/ChallengeRank.js b/dist/json_out/common/ChallengeRank.js index dc635f3c5..266037229 100644 --- a/dist/json_out/common/ChallengeRank.js +++ b/dist/json_out/common/ChallengeRank.js @@ -1,3 +1,6 @@ +/** + * Enumerates challenge ranks. + */ var ChallengeRank; (function (ChallengeRank) { ChallengeRank[ChallengeRank["Troublesome"] = 1] = "Troublesome"; diff --git a/dist/json_out/common/ChallengeRank.js.map b/dist/json_out/common/ChallengeRank.js.map index 3983ee817..8acd1c03a 100644 --- a/dist/json_out/common/ChallengeRank.js.map +++ b/dist/json_out/common/ChallengeRank.js.map @@ -1 +1 @@ -{"version":3,"file":"ChallengeRank.js","sourceRoot":"","sources":["../../../src/json_out/common/ChallengeRank.ts"],"names":[],"mappings":"AAGA,IAAK,aAMJ;AAND,WAAK,aAAa;IAChB,+DAAe,CAAA;IACf,2DAAa,CAAA;IACb,6DAAc,CAAA;IACd,uDAAW,CAAA;IACX,iDAAQ,CAAA;AACV,CAAC,EANI,aAAa,KAAb,aAAa,QAMjB;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"ChallengeRank.js","sourceRoot":"","sources":["../../../src/json_out/common/ChallengeRank.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,aAMJ;AAND,WAAK,aAAa;IAChB,+DAAe,CAAA;IACf,2DAAa,CAAA;IACb,6DAAc,CAAA;IACd,uDAAW,CAAA;IACX,iDAAQ,CAAA;AACV,CAAC,EANI,aAAa,KAAb,aAAa,QAMjB;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/json_out/common/IConditionMeter.d.ts b/dist/json_out/common/IConditionMeter.d.ts index 03b5ebc70..0c24b223a 100644 --- a/dist/json_out/common/IConditionMeter.d.ts +++ b/dist/json_out/common/IConditionMeter.d.ts @@ -1,7 +1,16 @@ import type { ICounter, MeterCondition } from "../index.js"; +/** + * Interface representing a condition meter. + * + */ export interface IConditionMeter extends ICounter { "Starting Value": number; + /** + */ Max: number; + /** + * The conditions that can apply to this meter. + */ Conditions: MeterCondition[]; } //# sourceMappingURL=IConditionMeter.d.ts.map \ No newline at end of file diff --git a/dist/json_out/common/IConditionMeter.d.ts.map b/dist/json_out/common/IConditionMeter.d.ts.map index 5794a4624..0bc89df13 100644 --- a/dist/json_out/common/IConditionMeter.d.ts.map +++ b/dist/json_out/common/IConditionMeter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IConditionMeter.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/IConditionMeter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,oBAA2B;AAMnE,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,gBAAgB,EAAE,MAAM,CAAC;IAGzB,GAAG,EAAE,MAAM,CAAC;IAIZ,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B"} \ No newline at end of file +{"version":3,"file":"IConditionMeter.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/IConditionMeter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,oBAA2B;AAEnE;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,gBAAgB,EAAE,MAAM,CAAC;IACzB;OACG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/json_out/common/ICounter.d.ts b/dist/json_out/common/ICounter.d.ts index 6606cca38..5ae716232 100644 --- a/dist/json_out/common/ICounter.d.ts +++ b/dist/json_out/common/ICounter.d.ts @@ -1,7 +1,19 @@ import type { IHasId, IHasName } from "../index.js"; +/** + * Interface for a counter embedded in a Starforged Asset. + */ export interface ICounter extends IHasId, IHasName { + /** + * The minimum value of the counter. + */ Min: number; + /** + * The maximum value of the counter. If `null`, the counter has no maximum value. + */ Max: number | null; + /** + * The initial value of the counter. + */ "Starting Value": number; } //# sourceMappingURL=ICounter.d.ts.map \ No newline at end of file diff --git a/dist/json_out/common/ICounter.d.ts.map b/dist/json_out/common/ICounter.d.ts.map index 8e1427c26..f62ee8fd1 100644 --- a/dist/json_out/common/ICounter.d.ts.map +++ b/dist/json_out/common/ICounter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ICounter.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/ICounter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAA2B;AAK3D,MAAM,WAAW,QAAS,SAAQ,MAAM,EAAE,QAAQ;IAIhD,GAAG,EAAE,MAAM,CAAC;IAIZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAInB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"} \ No newline at end of file +{"version":3,"file":"ICounter.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/ICounter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAA2B;AAE3D;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,MAAM,EAAE,QAAQ;IAChD;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/json_out/common/MdString.d.ts b/dist/json_out/common/MdString.d.ts index a0e33c799..94d30000e 100644 --- a/dist/json_out/common/MdString.d.ts +++ b/dist/json_out/common/MdString.d.ts @@ -1,7 +1,27 @@ +/** + * A generic string that should be parsed as Markdown. + * + */ declare type MdString = string; export { MdString }; +/** + * A Markdown string for a single term - most often a single word, but a handful might be multiple words, e.g. noun phrases. + * + */ export declare type TermString = MdString; +/** + * A Markdown string of multiple words that isn't a full sentence + * + */ export declare type FragmentString = MdString; +/** + * A Markdown string of one sentence (occasionally two sentences), with no line breaks. + * + */ export declare type SentenceString = `${MdString}${"!" | "."}`; +/** + * A Markdown string of one or more paragraphs. Unlike the other string types, it may contain line breaks, lists, headings, tables, etc. + * + */ export declare type ParagraphsString = SentenceString; //# sourceMappingURL=MdString.d.ts.map \ No newline at end of file diff --git a/dist/json_out/common/MdString.d.ts.map b/dist/json_out/common/MdString.d.ts.map index f39545ed3..62f6cd796 100644 --- a/dist/json_out/common/MdString.d.ts.map +++ b/dist/json_out/common/MdString.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"MdString.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/MdString.ts"],"names":[],"mappings":"AAIA,aAAK,QAAQ,GAAG,MAAM,CAAC;AAAC,OAAO,EAAE,QAAQ,EAAE,CAAC;AAK5C,oBAAY,UAAU,GAAG,QAAQ,CAAC;AAKlC,oBAAY,cAAc,GAAG,QAAQ,CAAC;AAKtC,oBAAY,cAAc,GAAG,GAAG,QAAQ,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAKvD,oBAAY,gBAAgB,GAAG,cAAc,CAAC"} \ No newline at end of file +{"version":3,"file":"MdString.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/MdString.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,aAAK,QAAQ,GAAG,MAAM,CAAC;AAAC,OAAO,EAAE,QAAQ,EAAE,CAAC;AAC5C;;;GAGG;AACH,oBAAY,UAAU,GAAG,QAAQ,CAAC;AAClC;;;GAGG;AACH,oBAAY,cAAc,GAAG,QAAQ,CAAC;AACtC;;;GAGG;AACH,oBAAY,cAAc,GAAG,GAAG,QAAQ,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AACvD;;;GAGG;AACH,oBAAY,gBAAgB,GAAG,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/json_out/common/index.d.ts b/dist/json_out/common/index.d.ts index 56609a316..523721039 100644 --- a/dist/json_out/common/index.d.ts +++ b/dist/json_out/common/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json.Common + */ export * from "./ChallengeRank.js"; export * from "./ClockSegments.js"; export * from "./ClockType.js"; diff --git a/dist/json_out/common/index.d.ts.map b/dist/json_out/common/index.d.ts.map index d4b77d86f..8757c0d24 100644 --- a/dist/json_out/common/index.d.ts.map +++ b/dist/json_out/common/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/index.ts"],"names":[],"mappings":"AAIA,mCAAkD;AAClD,mCAAkD;AAClD,+BAA8C;AAC9C,wCAAuD;AACvD,wCAAuD;AACvD,qCAAoD;AACpD,8BAA6C;AAC7C,uCAAsD;AACtD,+BAA8C;AAC9C,8BAA6C;AAC7C,gCAA+C;AAC/C,oCAAmD;AACnD,+BAA8C;AAC9C,kCAAiD;AACjD,kCAAiD;AACjD,0BAAyC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/common/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,mCAAkD;AAClD,mCAAkD;AAClD,+BAA8C;AAC9C,wCAAuD;AACvD,wCAAuD;AACvD,qCAAoD;AACpD,8BAA6C;AAC7C,uCAAsD;AACtD,+BAA8C;AAC9C,8BAA6C;AAC7C,gCAA+C;AAC/C,oCAAmD;AACnD,+BAA8C;AAC9C,kCAAiD;AACjD,kCAAiD;AACjD,0BAAyC"} \ No newline at end of file diff --git a/dist/json_out/common/index.js b/dist/json_out/common/index.js index e95005ce5..02f90e3d9 100644 --- a/dist/json_out/common/index.js +++ b/dist/json_out/common/index.js @@ -1,3 +1,6 @@ +/** + * @module Json.Common + */ export * from "./ChallengeRank.js"; export * from "./ClockSegments.js"; export * from "./ClockType.js"; diff --git a/dist/json_out/common/index.js.map b/dist/json_out/common/index.js.map index b81126f20..8d78bfc1d 100644 --- a/dist/json_out/common/index.js.map +++ b/dist/json_out/common/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/common/index.ts"],"names":[],"mappings":"AAIA,mCAAkD;AAClD,mCAAkD;AAClD,+BAA8C;AAC9C,wCAAuD;AACvD,wCAAuD;AACvD,qCAAoD;AACpD,8BAA6C;AAC7C,uCAAsD;AACtD,+BAA8C;AAC9C,8BAA6C;AAC7C,gCAA+C;AAC/C,oCAAmD;AACnD,+BAA8C;AAC9C,kCAAiD;AACjD,kCAAiD;AACjD,0BAAyC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/common/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,mCAAkD;AAClD,mCAAkD;AAClD,+BAA8C;AAC9C,wCAAuD;AACvD,wCAAuD;AACvD,qCAAoD;AACpD,8BAA6C;AAC7C,uCAAsD;AACtD,+BAA8C;AAC9C,8BAA6C;AAC7C,gCAA+C;AAC/C,oCAAmD;AACnD,+BAA8C;AAC9C,kCAAiD;AACjD,kCAAiD;AACjD,0BAAyC"} \ No newline at end of file diff --git a/dist/json_out/encounters/IEncounter.d.ts b/dist/json_out/encounters/IEncounter.d.ts index 0de9cb8ef..3d5dabf70 100644 --- a/dist/json_out/encounters/IEncounter.d.ts +++ b/dist/json_out/encounters/IEncounter.d.ts @@ -1,4 +1,7 @@ import type { ChallengeRank, EncounterId, EncounterNature, EncounterTags, FragmentString, IDisplay, IEncounterVariant, IHasDescription, IHasDisplay, IHasId, IHasName, IHasQuestStarter, IHasSource, IHasSummary, ISource, ParagraphsString, SentenceString } from "../index.js"; +/** + * Interface representing an Encounter/Foe entry. + */ export interface IEncounter extends IHasQuestStarter, IHasDisplay, IHasDescription, IHasSource, IHasName, IHasId, IHasSummary { $id: EncounterId; Name: string; diff --git a/dist/json_out/encounters/IEncounter.d.ts.map b/dist/json_out/encounters/IEncounter.d.ts.map index 69b0382e5..04650e16a 100644 --- a/dist/json_out/encounters/IEncounter.d.ts.map +++ b/dist/json_out/encounters/IEncounter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IEncounter.d.ts","sourceRoot":"","sources":["../../../src/json_out/encounters/IEncounter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAG,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAG,QAAQ,EAAG,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAG,gBAAgB,EAAG,cAAc,EAAE,oBAA2B;AAK7R,MAAM,WAAW,UAAW,SAAQ,gBAAgB,EAAE,WAAW,CAAC,QAAQ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Ac,CAAC;IACzC,IAAI,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACnC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,gBAAgB,CAAC;IAC9B,eAAe,EAAE,gBAAgB,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/json_out/encounters/index.d.ts b/dist/json_out/encounters/index.d.ts index 7fd2bc6e5..1f17eebc3 100644 --- a/dist/json_out/encounters/index.d.ts +++ b/dist/json_out/encounters/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json.Encounters + */ export * from "./EncounterId.js"; export * from "./EncounterNature.js"; export * from "./EncounterTags.js"; diff --git a/dist/json_out/encounters/index.d.ts.map b/dist/json_out/encounters/index.d.ts.map index c4cce1dd4..8e4ff23ef 100644 --- a/dist/json_out/encounters/index.d.ts.map +++ b/dist/json_out/encounters/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/encounters/index.ts"],"names":[],"mappings":"AAIA,iCAAoD;AACpD,qCAAwD;AACxD,mCAAsD;AACtD,gCAAmD;AACnD,uCAA0D"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/encounters/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,iCAAoD;AACpD,qCAAwD;AACxD,mCAAsD;AACtD,gCAAmD;AACnD,uCAA0D"} \ No newline at end of file diff --git a/dist/json_out/encounters/index.js b/dist/json_out/encounters/index.js index 92736b83a..f0d53a3ef 100644 --- a/dist/json_out/encounters/index.js +++ b/dist/json_out/encounters/index.js @@ -1,3 +1,6 @@ +/** + * @module Json.Encounters + */ export * from "./EncounterId.js"; export * from "./EncounterNature.js"; export * from "./EncounterTags.js"; diff --git a/dist/json_out/encounters/index.js.map b/dist/json_out/encounters/index.js.map index 4af3a27e7..86bf0c346 100644 --- a/dist/json_out/encounters/index.js.map +++ b/dist/json_out/encounters/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/encounters/index.ts"],"names":[],"mappings":"AAIA,iCAAoD;AACpD,qCAAwD;AACxD,mCAAsD;AACtD,gCAAmD;AACnD,uCAA0D"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/encounters/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,iCAAoD;AACpD,qCAAwD;AACxD,mCAAsD;AACtD,gCAAmD;AACnD,uCAA0D"} \ No newline at end of file diff --git a/dist/json_out/game_objects/AttributeKey.d.ts b/dist/json_out/game_objects/AttributeKey.d.ts index 1dfbc14f9..5d75f8e62 100644 --- a/dist/json_out/game_objects/AttributeKey.d.ts +++ b/dist/json_out/game_objects/AttributeKey.d.ts @@ -1,25 +1,91 @@ export declare enum AttributeKey { + /** + * @see Json.GameObjects.Atmosphere + */ Atmosphere = "Atmosphere", + /** + * @see Json.GameObjects.Authority + */ Authority = "Authority", + /** + * @see Json.GameObjects.Behavior + */ Behavior = "Encountered Behavior", + /** + * @see Json.GameObjects.DerelictType + */ DerelictType = "Derelict Type", + /** + * @see Json.GameObjects.Disposition + */ Disposition = "Disposition", + /** + * @see Json.GameObjects.Dominion + */ Dominion = "Dominion", + /** + * @see Json.GameObjects.Environment + */ Environment = "Environment", + /** + * @see Json.GameObjects.FactionType + */ FactionType = "Faction Type", + /** + * @see Json.GameObjects.FringeGroup + */ FringeGroup = "Fringe Group", + /** + * @see Json.GameObjects.Guild + */ Guild = "Guild", + /** + * @see Json.GameObjects.Influence + */ Influence = "Influence", + /** + * @see Json.GameObjects.InitialContact + */ InitialContact = "Initial Contact", + /** + * @see Json.GameObjects.Leadership + */ Leadership = "Leadership", + /** + * @see Json.GameObjects.Life + */ Life = "Life", + /** + * @see Json.GameObjects.Location + */ Location = "Location", + /** + * @see Json.GameObjects.LocationTheme + */ LocationTheme = "Location Theme", + /** + * @see Json.GameObjects.PlanetaryClass + */ PlanetaryClass = "Planetary Class", + /** + * @see Json.GameObjects.Population + */ Population = "Population", + /** + * @see Json.GameObjects.Region + */ Region = "Region", + /** + * @see Json.GameObjects.Role + */ Role = "Role", + /** + * @see Json.GameObjects.CreatureScale + */ CreatureScale = "Creature Scale", + /** + * @see Json.GameObjects.Zone + */ Zone = "Zone" } //# sourceMappingURL=AttributeKey.d.ts.map \ No newline at end of file diff --git a/dist/json_out/game_objects/AttributeKey.d.ts.map b/dist/json_out/game_objects/AttributeKey.d.ts.map index e23b226c4..629056eb4 100644 --- a/dist/json_out/game_objects/AttributeKey.d.ts.map +++ b/dist/json_out/game_objects/AttributeKey.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"AttributeKey.d.ts","sourceRoot":"","sources":["../../../src/json_out/game_objects/AttributeKey.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IAItB,UAAU,eAAa;IAIvB,SAAS,cAAY;IAIrB,QAAQ,yBAAuB;IAI/B,YAAY,kBAAgB;IAI5B,WAAW,gBAAc;IAIzB,QAAQ,aAAW;IAInB,WAAW,gBAAc;IAIzB,WAAW,iBAAe;IAI1B,WAAW,iBAAe;IAI1B,KAAK,UAAQ;IAIb,SAAS,cAAY;IAIrB,cAAc,oBAAkB;IAIhC,UAAU,eAAa;IAIvB,IAAI,SAAO;IAIX,QAAQ,aAAW;IAInB,aAAa,mBAAiB;IAI9B,cAAc,oBAAkB;IAIhC,UAAU,eAAa;IAIvB,MAAM,WAAS;IAIf,IAAI,SAAO;IAIX,aAAa,mBAAiB;IAI9B,IAAI,SAAO;CACZ"} \ No newline at end of file +{"version":3,"file":"AttributeKey.d.ts","sourceRoot":"","sources":["../../../src/json_out/game_objects/AttributeKey.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB;;OAEG;IACH,UAAU,eAAa;IACvB;;OAEG;IACH,SAAS,cAAY;IACrB;;OAEG;IACH,QAAQ,yBAAuB;IAC/B;;OAEG;IACH,YAAY,kBAAgB;IAC5B;;OAEG;IACH,WAAW,gBAAc;IACzB;;OAEG;IACH,QAAQ,aAAW;IACnB;;OAEG;IACH,WAAW,gBAAc;IACzB;;OAEG;IACH,WAAW,iBAAe;IAC1B;;OAEG;IACH,WAAW,iBAAe;IAC1B;;OAEG;IACH,KAAK,UAAQ;IACb;;OAEG;IACH,SAAS,cAAY;IACrB;;OAEG;IACH,cAAc,oBAAkB;IAChC;;OAEG;IACH,UAAU,eAAa;IACvB;;OAEG;IACH,IAAI,SAAO;IACX;;OAEG;IACH,QAAQ,aAAW;IACnB;;OAEG;IACH,aAAa,mBAAiB;IAC9B;;OAEG;IACH,cAAc,oBAAkB;IAChC;;OAEG;IACH,UAAU,eAAa;IACvB;;OAEG;IACH,MAAM,WAAS;IACf;;OAEG;IACH,IAAI,SAAO;IACX;;OAEG;IACH,aAAa,mBAAiB;IAC9B;;OAEG;IACH,IAAI,SAAO;CACZ"} \ No newline at end of file diff --git a/dist/json_out/game_objects/AttributeKey.js b/dist/json_out/game_objects/AttributeKey.js index 8a718e8e7..bd3ea6c50 100644 --- a/dist/json_out/game_objects/AttributeKey.js +++ b/dist/json_out/game_objects/AttributeKey.js @@ -1,26 +1,92 @@ export var AttributeKey; (function (AttributeKey) { + /** + * @see Json.GameObjects.Atmosphere + */ AttributeKey["Atmosphere"] = "Atmosphere"; + /** + * @see Json.GameObjects.Authority + */ AttributeKey["Authority"] = "Authority"; + /** + * @see Json.GameObjects.Behavior + */ AttributeKey["Behavior"] = "Encountered Behavior"; + /** + * @see Json.GameObjects.DerelictType + */ AttributeKey["DerelictType"] = "Derelict Type"; + /** + * @see Json.GameObjects.Disposition + */ AttributeKey["Disposition"] = "Disposition"; + /** + * @see Json.GameObjects.Dominion + */ AttributeKey["Dominion"] = "Dominion"; + /** + * @see Json.GameObjects.Environment + */ AttributeKey["Environment"] = "Environment"; + /** + * @see Json.GameObjects.FactionType + */ AttributeKey["FactionType"] = "Faction Type"; + /** + * @see Json.GameObjects.FringeGroup + */ AttributeKey["FringeGroup"] = "Fringe Group"; + /** + * @see Json.GameObjects.Guild + */ AttributeKey["Guild"] = "Guild"; + /** + * @see Json.GameObjects.Influence + */ AttributeKey["Influence"] = "Influence"; + /** + * @see Json.GameObjects.InitialContact + */ AttributeKey["InitialContact"] = "Initial Contact"; + /** + * @see Json.GameObjects.Leadership + */ AttributeKey["Leadership"] = "Leadership"; + /** + * @see Json.GameObjects.Life + */ AttributeKey["Life"] = "Life"; + /** + * @see Json.GameObjects.Location + */ AttributeKey["Location"] = "Location"; + /** + * @see Json.GameObjects.LocationTheme + */ AttributeKey["LocationTheme"] = "Location Theme"; + /** + * @see Json.GameObjects.PlanetaryClass + */ AttributeKey["PlanetaryClass"] = "Planetary Class"; + /** + * @see Json.GameObjects.Population + */ AttributeKey["Population"] = "Population"; + /** + * @see Json.GameObjects.Region + */ AttributeKey["Region"] = "Region"; + /** + * @see Json.GameObjects.Role + */ AttributeKey["Role"] = "Role"; + /** + * @see Json.GameObjects.CreatureScale + */ AttributeKey["CreatureScale"] = "Creature Scale"; + /** + * @see Json.GameObjects.Zone + */ AttributeKey["Zone"] = "Zone"; })(AttributeKey || (AttributeKey = {})); //# sourceMappingURL=AttributeKey.js.map \ No newline at end of file diff --git a/dist/json_out/game_objects/AttributeKey.js.map b/dist/json_out/game_objects/AttributeKey.js.map index ebbaac20d..8ef4f20bd 100644 --- a/dist/json_out/game_objects/AttributeKey.js.map +++ b/dist/json_out/game_objects/AttributeKey.js.map @@ -1 +1 @@ -{"version":3,"file":"AttributeKey.js","sourceRoot":"","sources":["../../../src/json_out/game_objects/AttributeKey.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAyFX;AAzFD,WAAY,YAAY;IAItB,yCAAuB,CAAA;IAIvB,uCAAqB,CAAA;IAIrB,iDAA+B,CAAA;IAI/B,8CAA4B,CAAA;IAI5B,2CAAyB,CAAA;IAIzB,qCAAmB,CAAA;IAInB,2CAAyB,CAAA;IAIzB,4CAA0B,CAAA;IAI1B,4CAA0B,CAAA;IAI1B,+BAAa,CAAA;IAIb,uCAAqB,CAAA;IAIrB,kDAAgC,CAAA;IAIhC,yCAAuB,CAAA;IAIvB,6BAAW,CAAA;IAIX,qCAAmB,CAAA;IAInB,gDAA8B,CAAA;IAI9B,kDAAgC,CAAA;IAIhC,yCAAuB,CAAA;IAIvB,iCAAe,CAAA;IAIf,6BAAW,CAAA;IAIX,gDAA8B,CAAA;IAI9B,6BAAW,CAAA;AACb,CAAC,EAzFW,YAAY,KAAZ,YAAY,QAyFvB"} \ No newline at end of file +{"version":3,"file":"AttributeKey.js","sourceRoot":"","sources":["../../../src/json_out/game_objects/AttributeKey.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAyFX;AAzFD,WAAY,YAAY;IACtB;;OAEG;IACH,yCAAuB,CAAA;IACvB;;OAEG;IACH,uCAAqB,CAAA;IACrB;;OAEG;IACH,iDAA+B,CAAA;IAC/B;;OAEG;IACH,8CAA4B,CAAA;IAC5B;;OAEG;IACH,2CAAyB,CAAA;IACzB;;OAEG;IACH,qCAAmB,CAAA;IACnB;;OAEG;IACH,2CAAyB,CAAA;IACzB;;OAEG;IACH,4CAA0B,CAAA;IAC1B;;OAEG;IACH,4CAA0B,CAAA;IAC1B;;OAEG;IACH,+BAAa,CAAA;IACb;;OAEG;IACH,uCAAqB,CAAA;IACrB;;OAEG;IACH,kDAAgC,CAAA;IAChC;;OAEG;IACH,yCAAuB,CAAA;IACvB;;OAEG;IACH,6BAAW,CAAA;IACX;;OAEG;IACH,qCAAmB,CAAA;IACnB;;OAEG;IACH,gDAA8B,CAAA;IAC9B;;OAEG;IACH,kDAAgC,CAAA;IAChC;;OAEG;IACH,yCAAuB,CAAA;IACvB;;OAEG;IACH,iCAAe,CAAA;IACf;;OAEG;IACH,6BAAW,CAAA;IACX;;OAEG;IACH,gDAA8B,CAAA;IAC9B;;OAEG;IACH,6BAAW,CAAA;AACb,CAAC,EAzFW,YAAY,KAAZ,YAAY,QAyFvB"} \ No newline at end of file diff --git a/dist/json_out/game_objects/index.d.ts b/dist/json_out/game_objects/index.d.ts index 9b3a06026..33f4b62fc 100644 --- a/dist/json_out/game_objects/index.d.ts +++ b/dist/json_out/game_objects/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json.GameObjects + */ export * from "./AttributeKey.js"; export * from "./AttributeValue.js"; export * from "./IAttribute.js"; diff --git a/dist/json_out/game_objects/index.d.ts.map b/dist/json_out/game_objects/index.d.ts.map index 38fa45c53..3e24053b3 100644 --- a/dist/json_out/game_objects/index.d.ts.map +++ b/dist/json_out/game_objects/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/game_objects/index.ts"],"names":[],"mappings":"AAIA,kCAAuD;AACvD,oCAAyD;AACzD,gCAAqD;AACrD,uCAA4D;AAC5D,sCAA2D;AAC3D,iCAAsD;AAEtD,iDAA4C"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/game_objects/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,kCAAuD;AACvD,oCAAyD;AACzD,gCAAqD;AACrD,uCAA4D;AAC5D,sCAA2D;AAC3D,iCAAsD;AAEtD,iDAA4C"} \ No newline at end of file diff --git a/dist/json_out/game_objects/index.js b/dist/json_out/game_objects/index.js index ac5128640..ec0d34615 100644 --- a/dist/json_out/game_objects/index.js +++ b/dist/json_out/game_objects/index.js @@ -1,3 +1,6 @@ +/** + * @module Json.GameObjects + */ export * from "./AttributeKey.js"; export * from "./AttributeValue.js"; export * from "./IAttribute.js"; diff --git a/dist/json_out/game_objects/index.js.map b/dist/json_out/game_objects/index.js.map index 85ba14c7c..63fd6a45b 100644 --- a/dist/json_out/game_objects/index.js.map +++ b/dist/json_out/game_objects/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/game_objects/index.ts"],"names":[],"mappings":"AAIA,kCAAuD;AACvD,oCAAyD;AACzD,gCAAqD;AACrD,uCAA4D;AAC5D,sCAA2D;AAC3D,iCAAsD;AAEtD,iDAA4C"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/game_objects/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,kCAAuD;AACvD,oCAAyD;AACzD,gCAAqD;AACrD,uCAA4D;AAC5D,sCAA2D;AAC3D,iCAAsD;AAEtD,iDAA4C"} \ No newline at end of file diff --git a/dist/json_out/index.d.ts b/dist/json_out/index.d.ts index 05613de90..e5db7b8eb 100644 --- a/dist/json_out/index.d.ts +++ b/dist/json_out/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json + */ export * from "./assets/index.js"; export * from "./common/index.js"; export * from "./encounters/index.js"; diff --git a/dist/json_out/index.d.ts.map b/dist/json_out/index.d.ts.map index a74408167..6af1a5ca9 100644 --- a/dist/json_out/index.d.ts.map +++ b/dist/json_out/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/json_out/index.ts"],"names":[],"mappings":"AAIA,kCAA0C;AAC1C,kCAA0C;AAC1C,sCAA8C;AAC9C,wCAAgD;AAChD,gCAAwC;AACxC,iCAAyC;AACzC,mCAA2C;AAC3C,0CAAkD"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/json_out/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,kCAA0C;AAC1C,kCAA0C;AAC1C,sCAA8C;AAC9C,wCAAgD;AAChD,gCAAwC;AACxC,iCAAyC;AACzC,mCAA2C;AAC3C,0CAAkD"} \ No newline at end of file diff --git a/dist/json_out/index.js b/dist/json_out/index.js index 97b459f14..5fa121a1b 100644 --- a/dist/json_out/index.js +++ b/dist/json_out/index.js @@ -1,3 +1,6 @@ +/** + * @module Json + */ export * from "./assets/index.js"; export * from "./common/index.js"; export * from "./encounters/index.js"; diff --git a/dist/json_out/index.js.map b/dist/json_out/index.js.map index 33bc5f5f0..45bc409a3 100644 --- a/dist/json_out/index.js.map +++ b/dist/json_out/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/json_out/index.ts"],"names":[],"mappings":"AAIA,kCAA0C;AAC1C,kCAA0C;AAC1C,sCAA8C;AAC9C,wCAAgD;AAChD,gCAAwC;AACxC,iCAAyC;AACzC,mCAA2C;AAC3C,0CAAkD"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/json_out/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,kCAA0C;AAC1C,kCAA0C;AAC1C,sCAA8C;AAC9C,wCAAgD;AAChD,gCAAwC;AACxC,iCAAyC;AACzC,mCAA2C;AAC3C,0CAAkD"} \ No newline at end of file diff --git a/dist/json_out/meta/IDisplay.d.ts b/dist/json_out/meta/IDisplay.d.ts index 3623361f6..828f9c185 100644 --- a/dist/json_out/meta/IDisplay.d.ts +++ b/dist/json_out/meta/IDisplay.d.ts @@ -1,8 +1,24 @@ import type { ImageUrl, Raster, Vector } from "../index.js"; +/** + * Interface for data relevant to an item's display/rendering. + * + */ export interface IDisplay { + /** + * The title of this item as it appears printed in the rulebook. Intended for use as the item's header, label, etc. + */ Title: string; + /** + * A URL pointing to a single SVG icon. + */ Icon?: ImageUrl | undefined; + /** + * An array of URLs pointing to one or more WEBP images. + */ Images?: ImageUrl[] | undefined; + /** + * A hex color associated with this item, for use as e.g. an accent color in its display. + */ Color?: string | undefined; } //# sourceMappingURL=IDisplay.d.ts.map \ No newline at end of file diff --git a/dist/json_out/meta/IDisplay.d.ts.map b/dist/json_out/meta/IDisplay.d.ts.map index 015e21050..b1bced104 100644 --- a/dist/json_out/meta/IDisplay.d.ts.map +++ b/dist/json_out/meta/IDisplay.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IDisplay.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/IDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,oBAA2B;AAMnE,MAAM,WAAW,QAAQ;IAIvB,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAIpC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC;IAIxC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B"} \ No newline at end of file +{"version":3,"file":"IDisplay.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/IDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,oBAA2B;AAEnE;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACZ;;KAEC;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/json_out/meta/IHas.d.ts b/dist/json_out/meta/IHas.d.ts index d53f82458..666608168 100644 --- a/dist/json_out/meta/IHas.d.ts +++ b/dist/json_out/meta/IHas.d.ts @@ -1,51 +1,158 @@ import type { Suggestions } from "../../classes/index.js"; import type { FragmentString, IDisplay, IGameObject, IOracleContent, IOracleUsage, IRequirements, IRow, ISource, ISuggestions, ParagraphsString, RollTemplate, SentenceString } from "../index.js"; +/** + * Interface for items with a user-facing markdown summary. + * @internal + */ export interface IHasSummary { + /** + * A user-facing markdown summary of the item. + */ Summary: SentenceString | FragmentString; } +/** + * Interface for items with a user-facing markdown description, consisting of one or more paragraphs. + * @internal + */ export interface IHasDescription { + /** + * A user-facing markdown description of the item, consisting of one or more paragraphs. + */ Description: ParagraphsString; } +/** + * Interface for items with aliases. + * @internal + */ export interface IHasAliases { + /** + * Alternate names for this item, including: names it had earlier in development that have since changed, alternate spellings/punctuation, common misspellings, and so on. + */ Aliases: T[]; } +/** + * Interface for items with sourcing information. + * @internal + */ export interface IHasSource { + /** + * Information on this item's source. + */ Source: T; } +/** + * For elements with unique string IDs. + * @internal + */ export interface IHasId { + /** + * The item's unique string ID. + */ $id: T; } +/** + * Interface for items with a Name key. + * @internal + */ export interface IHasName { + /** + * The item's internal name. Should be unique among its sibling elements, as this key is often used (along with the object's ancestors) to generate its $id. + * If the item has Display.Title, that should be preferred for most user-facing labels. + */ Name: T; } +/** + * Interface for items with rendering information. + * @internal + */ export interface IHasDisplay = Partial> { + /** + * Data relevant to this item's display/rendering. + */ Display: T; } +/** + * Interface for items that reproduce Starforged rules text in markdown. + * @internal + */ export interface IHasText { + /** + * The item's rules text as a markdown string. + */ Text: T; } +/** + * Interface for items that include "non-canonical" suggestions of related items. + * @internal + */ export interface IHasSuggestions { + /** + * "Non-canonical" suggestions of related items. They might be convenient to present to the user, but in most implementations rolling them automatically is not recommended. + */ Suggestions: T; } +/** + * Interface for items that include roll string templates. + * @internal + */ export interface IHasRollTemplate { + /** + * Describes the MdString keys of this item that should be replaced with template strings and filled with the results of one or more oracle rolls. + */ "Roll template": RollTemplate; } +/** + * + * + * @internal + */ export interface IHasOracleUsage = IOracleUsage> { + /** + */ Usage: T; } +/** + * Interface for items with metadata that describes an oracle's semantic or lexical content. + * @internal + */ export interface IHasOracleContent = IOracleContent> { + /** + * Metadata that describes an oracle's semantic or lexical content. + */ Content: T; } +/** + * Interface for items that have prerequisites. + * @internal + */ export interface IHasRequirements = IRequirements> { + /** + * Prerequisites for this item. + */ Requires: T; } +/** + * Interface for items that have a table-like object. + * @internal + */ export interface IHasTable { Table: T[]; } +/** + * Interface for items that have a subtable-like object. + * @internal + */ export interface IHasSubtable { Subtable: T[]; } +/** + * Interface for items that have associated game objects. + * @internal + */ export interface IHasGameObjects { + /** + * Any game objects that are explicitly pointed to by the original text. For most implementations, it is *not* recommended to generate them automatically - see "Peeling the Onion", p. 293. + */ "Game objects": T[]; } export interface IHasQuestStarter { diff --git a/dist/json_out/meta/IHas.d.ts.map b/dist/json_out/meta/IHas.d.ts.map index fdc6c3d94..623ad87c7 100644 --- a/dist/json_out/meta/IHas.d.ts.map +++ b/dist/json_out/meta/IHas.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IHas.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/IHas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,+BAA0B;AACrD,OAAO,KAAK,EAAE,cAAc,EAAG,QAAQ,EAAG,WAAW,EAAG,cAAc,EAAG,YAAY,EAAE,aAAa,EAAE,IAAI,EAAG,OAAO,EAAG,YAAY,EAAG,gBAAgB,EAAG,YAAY,EAAG,cAAc,EAAE,oBAA2B;AAMnN,MAAM,WAAW,WAAW;IAIxB,OAAO,EAAE,cAAc,GAAG,cAAc,CAAC;CAC5C;AAMD,MAAM,WAAW,eAAe;IAK9B,WAAW,EAAE,gBAAgB,CAAC;CAC/B;AAMD,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAIpD,OAAO,EAAE,CAAC,EAAE,CAAC;CACd;AAMD,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO;IAKrD,MAAM,EAAE,CAAC,CAAC;CACX;AAMD,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAK/C,GAAG,EAAE,CAAC,CAAC;CACR;AAMD,MA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M,WAAW,gBAAgB;IAC/B,eAAe,EAAE,gBAAgB,CAAC;CACnC"} \ No newline at end of file +{"version":3,"file":"IHas.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/IHas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,+BAA0B;AACrD,OAAO,KAAK,EAAE,cAAc,EAAG,QAAQ,EAAG,WAAW,EAAG,cAAc,EAAG,YAAY,EAAE,aAAa,EAAE,IAAI,EAAG,OAAO,EAAG,YAAY,EAAG,gBAAgB,EAAG,YAAY,EAAG,cAAc,EAAE,oBAA2B;AAEnN;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACD,OAAO,EAAE,cAAc,GAAG,cAAc,CAAC;CAC5C;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAE9B;;OAEG;IACH,WAAW,EAAE,gBAAgB,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACpD;;OAEG;IACH,OAAO,EAAE,CAAC,EAAE,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO;IAErD;;OAEG;IACH,MAAM,EAAE,CAAC,CAAC;CACX;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAE/C;;OAEG;IACH,GAAG,EAAE,CAAC,CAAC;CACR;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACjD;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAC;CACT;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAC1E;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,W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line at end of file diff --git a/dist/json_out/meta/IRequirements.d.ts b/dist/json_out/meta/IRequirements.d.ts index 966b41fb9..709ba627a 100644 --- a/dist/json_out/meta/IRequirements.d.ts +++ b/dist/json_out/meta/IRequirements.d.ts @@ -1,5 +1,12 @@ import type { IAttributeChoices } from "../index.js"; +/** + * Data describing an item's requirements. + * + */ export interface IRequirements { + /** + * A list of attribute keys, and values of those keys that satisfy the requirements. + */ Attributes: IAttributeChoices[]; } //# sourceMappingURL=IRequirements.d.ts.map \ No newline at end of file diff --git a/dist/json_out/meta/IRequirements.d.ts.map b/dist/json_out/meta/IRequirements.d.ts.map index 9072be7eb..0716763f7 100644 --- a/dist/json_out/meta/IRequirements.d.ts.map +++ b/dist/json_out/meta/IRequirements.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IRequirements.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/IRequirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAA2B;AAM5D,MAAM,WAAW,aAAa;IAI5B,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACjC"} \ No newline at end of file +{"version":3,"file":"IRequirements.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/IRequirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAA2B;AAE5D;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACjC"} \ No newline at end of file diff --git a/dist/json_out/meta/ISource.d.ts b/dist/json_out/meta/ISource.d.ts index 4eb9910b9..9712fd1a5 100644 --- a/dist/json_out/meta/ISource.d.ts +++ b/dist/json_out/meta/ISource.d.ts @@ -1,3 +1,6 @@ +/** + * Enumerates valid sourcebook titles. + */ export declare enum SourceTitle { Starforged = "Ironsworn: Starforged Rulebook", StarforgedBackerPreview = "Starforged Backer Preview", @@ -7,13 +10,28 @@ export declare enum SourceTitle { IronswornAssets = "Ironsworn Assets", IronswornBonusAssets = "Ironsworn Bonus Assets (July 2020)" } +/** + * Enumerates valid source URLs. + */ export declare enum SourceUrl { IronswornBonusAssets = "https://drive.google.com/file/d/1bWyWxJzV_SVtyE_SeEGS4TMJ1ZBHfrdv/view", IronswornRulebook = "https://www.ironswornrpg.com/downloads" } +/** + * Interface representing data on the game's source. + */ export interface ISource { + /** + * The title of the source. + */ Title: SourceTitle; + /** + * The 6-number date string formatted as `MMDDYY`. Relevant only during Starforged development; it will be deprecated once the game is released. + */ Date?: string | undefined; + /** + * The page on which the item appears most prominently. + */ Page?: number | undefined; } //# sourceMappingURL=ISource.d.ts.map \ No newline at end of file diff --git a/dist/json_out/meta/ISource.d.ts.map b/dist/json_out/meta/ISource.d.ts.map index d02b052a6..52f45a805 100644 --- a/dist/json_out/meta/ISource.d.ts.map +++ b/dist/json_out/meta/ISource.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ISource.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/ISource.ts"],"names":[],"mappings":"AAGA,oBAAY,WAAW;IACrB,UAAU,mCAAmC;IAC7C,uBAAuB,8BAA8B;IACrD,gBAAgB,iCAAiC;IACjD,SAAS,uBAAuB;IAChC,cAAc,qBAAqB;IACnC,eAAe,qBAAqB;IACpC,oBAAoB,uCAAuC;CAC5D;AAKD,oBAAY,SAAS;IACnB,oBAAoB,2EAA2E;IAC/F,iBAAiB,2CAA2C;CAC7D;AAKD,MAAM,WAAW,OAAO;IAItB,KAAK,EAAE,WAAW,CAAC;IAInB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAI1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B"} \ No newline at end of file +{"version":3,"file":"ISource.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/ISource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,UAAU,mCAAmC;IAC7C,uBAAuB,8BAA8B;IACrD,gBAAgB,iCAAiC;IACjD,SAAS,uBAAuB;IAChC,cAAc,qBAAqB;IACnC,eAAe,qBAAqB;IACpC,oBAAoB,uCAAuC;CAC5D;AAED;;GAEG;AACH,oBAAY,SAAS;IACnB,oBAAoB,2EAA2E;IAC/F,iBAAiB,2CAA2C;CAC7D;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B"} \ No newline at end of file diff --git a/dist/json_out/meta/ISource.js b/dist/json_out/meta/ISource.js index 3fa868f1b..6a7d83807 100644 --- a/dist/json_out/meta/ISource.js +++ b/dist/json_out/meta/ISource.js @@ -1,3 +1,6 @@ +/** + * Enumerates valid sourcebook titles. + */ export var SourceTitle; (function (SourceTitle) { SourceTitle["Starforged"] = "Ironsworn: Starforged Rulebook"; @@ -8,6 +11,9 @@ export var SourceTitle; SourceTitle["IronswornAssets"] = "Ironsworn Assets"; SourceTitle["IronswornBonusAssets"] = "Ironsworn Bonus Assets (July 2020)"; })(SourceTitle || (SourceTitle = {})); +/** + * Enumerates valid source URLs. + */ export var SourceUrl; (function (SourceUrl) { SourceUrl["IronswornBonusAssets"] = "https://drive.google.com/file/d/1bWyWxJzV_SVtyE_SeEGS4TMJ1ZBHfrdv/view"; diff --git a/dist/json_out/meta/ISource.js.map b/dist/json_out/meta/ISource.js.map index 8cc1f4562..745cccec7 100644 --- a/dist/json_out/meta/ISource.js.map +++ b/dist/json_out/meta/ISource.js.map @@ -1 +1 @@ -{"version":3,"file":"ISource.js","sourceRoot":"","sources":["../../../src/json_out/meta/ISource.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,oEAAqD,CAAA;IACrD,gEAAiD,CAAA;IACjD,+CAAgC,CAAA;IAChC,kDAAmC,CAAA;IACnC,mDAAoC,CAAA;IACpC,0EAA2D,CAAA;AAC7D,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAKD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,4GAA+F,CAAA;IAC/F,yEAA4D,CAAA;AAC9D,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"} \ No newline at end of file +{"version":3,"file":"ISource.js","sourceRoot":"","sources":["../../../src/json_out/meta/ISource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,oEAAqD,CAAA;IACrD,gEAAiD,CAAA;IACjD,+CAAgC,CAAA;IAChC,kDAAmC,CAAA;IACnC,mDAAoC,CAAA;IACpC,0EAA2D,CAAA;AAC7D,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,4GAA+F,CAAA;IAC/F,yEAA4D,CAAA;AAC9D,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"} \ No newline at end of file diff --git a/dist/json_out/meta/ISuggestions.d.ts b/dist/json_out/meta/ISuggestions.d.ts index 1a91c4eb3..3915a59ea 100644 --- a/dist/json_out/meta/ISuggestions.d.ts +++ b/dist/json_out/meta/ISuggestions.d.ts @@ -1,9 +1,28 @@ import type { AssetId, EncounterId, IGameObject, MoveId, OracleTableId } from "../index.js"; +/** + * Interface representing "non-canon" suggestions for related game content. + * + */ export interface ISuggestions { + /** + * Suggested game objects and their parameters. + */ "Game objects"?: IGameObject[] | undefined; + /** + * Suggested oracle rolls, by table ID. Multiples of the same ID can be used to indicate that multiple rolls should be made. + */ "Oracle rolls"?: OracleTableId[] | undefined; + /** + * Suggested move IDs. + */ "Moves"?: MoveId[] | undefined; + /** + * Suggested asset IDs. + */ "Assets"?: AssetId[] | undefined; + /** + * Suggested encounter IDs. + */ "Encounters"?: EncounterId[] | undefined; } //# sourceMappingURL=ISuggestions.d.ts.map \ No newline at end of file diff --git a/dist/json_out/meta/ISuggestions.d.ts.map b/dist/json_out/meta/ISuggestions.d.ts.map index 02441805a..56d18073c 100644 --- a/dist/json_out/meta/ISuggestions.d.ts.map +++ b/dist/json_out/meta/ISuggestions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ISuggestions.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/ISuggestions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAG,WAAW,EAAE,WAAW,EAAE,MAAM,EAAG,aAAa,EAAE,oBAA2B;AAMrG,MAAM,WAAW,YAAY;IAI3B,cAAc,CAAC,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;IAI3C,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAI7C,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAI/B,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IAIjC,YAAY,CAAC,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;CAC1C"} \ No newline at end of file +{"version":3,"file":"ISuggestions.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/ISuggestions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAG,WAAW,EAAE,WAAW,EAAE,MAAM,EAAG,aAAa,EAAE,oBAA2B;AAErG;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;CAC1C"} \ No newline at end of file diff --git a/dist/json_out/meta/index.d.ts b/dist/json_out/meta/index.d.ts index 2eded4d90..9d5d38289 100644 --- a/dist/json_out/meta/index.d.ts +++ b/dist/json_out/meta/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json.Meta + */ export * from "./IDisplay.js"; export * from "./IHas.js"; export * from "./IRequirements.js"; diff --git a/dist/json_out/meta/index.d.ts.map b/dist/json_out/meta/index.d.ts.map index 81876a208..ab50751fb 100644 --- a/dist/json_out/meta/index.d.ts.map +++ b/dist/json_out/meta/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/index.ts"],"names":[],"mappings":"AAIA,8BAA2C;AAC3C,0BAAuC;AACvC,mCAAgD;AAChD,6BAA0C;AAC1C,kCAA+C;AAC/C,qCAAkD;AAClD,yBAAsC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/meta/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,8BAA2C;AAC3C,0BAAuC;AACvC,mCAAgD;AAChD,6BAA0C;AAC1C,kCAA+C;AAC/C,qCAAkD;AAClD,yBAAsC"} \ No newline at end of file diff --git a/dist/json_out/meta/index.js b/dist/json_out/meta/index.js index 315aba192..68a033e79 100644 --- a/dist/json_out/meta/index.js +++ b/dist/json_out/meta/index.js @@ -1,3 +1,6 @@ +/** + * @module Json.Meta + */ export * from "./IDisplay.js"; export * from "./IHas.js"; export * from "./IRequirements.js"; diff --git a/dist/json_out/meta/index.js.map b/dist/json_out/meta/index.js.map index 640c45fd2..1337c2f48 100644 --- a/dist/json_out/meta/index.js.map +++ b/dist/json_out/meta/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/meta/index.ts"],"names":[],"mappings":"AAIA,8BAA2C;AAC3C,0BAAuC;AACvC,mCAAgD;AAChD,6BAA0C;AAC1C,kCAA+C;AAC/C,qCAAkD;AAClD,yBAAsC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/meta/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,8BAA2C;AAC3C,0BAAuC;AACvC,mCAAgD;AAChD,6BAA0C;AAC1C,kCAA+C;AAC/C,qCAAkD;AAClD,yBAAsC"} \ No newline at end of file diff --git a/dist/json_out/moves/IMove.d.ts b/dist/json_out/moves/IMove.d.ts index 9e69d45b4..c9b5355b1 100644 --- a/dist/json_out/moves/IMove.d.ts +++ b/dist/json_out/moves/IMove.d.ts @@ -1,12 +1,37 @@ import type { AssetId, IHasDisplay, IHasId, IHasName, IHasSource, IHasSuggestions, IHasText, IMoveOutcomes, MoveCategoryId, MoveId, OracleTableId } from "../index.js"; import type { IMoveTrigger } from "./IMoveTrigger.js"; +/** + * Interface representing a Starforged move. + * + */ export interface IMove extends IHasId, IHasName, IHasText, IHasDisplay, IHasSource, Partial { + /** + * The ID of the parent Asset of the move, if any. + */ Asset?: AssetId | undefined; + /** + * The ID of the move's category. + */ Category: MoveCategoryId; + /** + * Whether or not the move is a Progress Move. Progress moves roll two challenge dice against a progress score. + */ "Progress Move"?: boolean | undefined; + /** + * The ID of the move that this move is a variant of, if any. + */ "Variant of"?: MoveId | undefined; + /** + * The move's trigger data. + */ Trigger: IMoveTrigger; + /** + * The IDs of any oracles *directly* referenced by the move. + */ Oracles?: OracleTableId[] | undefined; + /** + * Outcome information for the move. + */ Outcomes?: IMoveOutcomes | undefined; } //# sourceMappingURL=IMove.d.ts.map \ No newline at end of file diff --git a/dist/json_out/moves/IMove.d.ts.map b/dist/json_out/moves/IMove.d.ts.map index 92d66be33..bbb9912e8 100644 --- a/dist/json_out/moves/IMove.d.ts.map +++ b/dist/json_out/moves/IMove.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IMove.d.ts","sourceRoot":"","sources":["../../../src/json_out/moves/IMove.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAG,QAAQ,EAAE,aAAa,EAAG,cAAc,EAAG,MAAM,EAAG,aAAa,EAAE,oBAA2B;AAClL,OAAO,KAAK,EAAE,YAAY,EAAE,0BAAwC;AAOpE,MAAM,WAAW,KAAM,SAAQ,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,eAAe,CAAC;IAIlH,KAAK,CAAC,EAAG,OAAO,GAAG,SAAS,CAAC;IAI7B,QAAQ,EAAE,cAAc,CAAC;IAIzB,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAItC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAIlC,OAAO,EAAE,YAAY,CAAC;IAItB,OAAO,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAItC,QAAQ,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACtC"} \ No newline at end of file +{"version":3,"file":"IMove.d.ts","sourceRoot":"","sources":["../../../src/json_out/moves/IMove.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAG,QAAQ,EAAE,aAAa,EAAG,cAAc,EAAG,MAAM,EAAG,aAAa,EAAE,oBAA2B;AAClL,OAAO,KAAK,EAAE,YAAY,EAAE,0BAAwC;AAGpE;;;GAGG;AACH,MAAM,WAAW,KAAM,SAAQ,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,eAAe,CAAC;IAClH;;OAEG;IACH,KAAK,CAAC,EAAG,OAAO,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/json_out/moves/index.d.ts b/dist/json_out/moves/index.d.ts index adcd27b40..c3e96fe99 100644 --- a/dist/json_out/moves/index.d.ts +++ b/dist/json_out/moves/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json.Moves + */ export * from "./IActionRoll.js"; export * from "./ICustomStat.js"; export * from "./IMove.js"; diff --git a/dist/json_out/moves/index.d.ts.map b/dist/json_out/moves/index.d.ts.map index be77d8630..42937f1c2 100644 --- a/dist/json_out/moves/index.d.ts.map +++ b/dist/json_out/moves/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/moves/index.ts"],"names":[],"mappings":"AAIA,iCAA+C;AAC/C,iCAA+C;AAC/C,2BAAyC;AACzC,kCAAgD;AAChD,mCAAiD;AACjD,kCAAgD;AAChD,wCAAsD;AACtD,mCAAiD;AACjD,oCAAkD;AAClD,sCAAoD;AACpD,uCAAqD;AACrD,4BAA0C;AAC1C,mCAAiD"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/moves/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,iCAA+C;AAC/C,iCAA+C;AAC/C,2BAAyC;AACzC,kCAAgD;AAChD,mCAAiD;AACjD,kCAAgD;AAChD,wCAAsD;AACtD,mCAAiD;AACjD,oCAAkD;AAClD,sCAAoD;AACpD,uCAAqD;AACrD,4BAA0C;AAC1C,mCAAiD"} \ No newline at end of file diff --git a/dist/json_out/moves/index.js b/dist/json_out/moves/index.js index 2b3422028..d3b5a951f 100644 --- a/dist/json_out/moves/index.js +++ b/dist/json_out/moves/index.js @@ -1,3 +1,6 @@ +/** + * @module Json.Moves + */ export * from "./IActionRoll.js"; export * from "./ICustomStat.js"; export * from "./IMove.js"; diff --git a/dist/json_out/moves/index.js.map b/dist/json_out/moves/index.js.map index 389da8d3e..32e2d146a 100644 --- a/dist/json_out/moves/index.js.map +++ b/dist/json_out/moves/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/moves/index.ts"],"names":[],"mappings":"AAIA,iCAA+C;AAC/C,iCAA+C;AAC/C,2BAAyC;AACzC,kCAAgD;AAChD,mCAAiD;AACjD,kCAAgD;AAChD,wCAAsD;AACtD,mCAAiD;AACjD,oCAAkD;AAClD,sCAAoD;AACpD,uCAAqD;AACrD,4BAA0C;AAC1C,mCAAiD"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/moves/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,iCAA+C;AAC/C,iCAA+C;AAC/C,2BAAyC;AACzC,kCAAgD;AAChD,mCAAiD;AACjD,kCAAgD;AAChD,wCAAsD;AACtD,mCAAiD;AACjD,oCAAkD;AAClD,sCAAoD;AACpD,uCAAqD;AACrD,4BAA0C;AAC1C,mCAAiD"} \ No newline at end of file diff --git a/dist/json_out/oracles/IOracleBase.d.ts b/dist/json_out/oracles/IOracleBase.d.ts index 9f6e7fe9d..65d2a2773 100644 --- a/dist/json_out/oracles/IOracleBase.d.ts +++ b/dist/json_out/oracles/IOracleBase.d.ts @@ -1,7 +1,19 @@ import type { IDisplay, IHasAliases, IHasDescription, IHasDisplay, IHasId, IHasOracleContent, IHasOracleUsage, IHasSource, IOracle, IOracleContent, IOracleUsage, OracleCategoryId, OracleTableId } from "../index.js"; +/** + * @internal + */ export interface IOracleBase extends Partial & IHasOracleUsage>, IHasId, IHasDisplay, IHasSource { + /** + * The ID of the most recent OracleCategory ancestor of this item, if any. + */ Category?: OracleCategoryId | undefined; + /** + * Oracle objects contained by this object. + */ Oracles?: IOracle[] | undefined; + /** + * The ID of the most recent Oracle ancestor of this item, if any. + */ "Member of"?: OracleTableId | undefined; } //# sourceMappingURL=IOracleBase.d.ts.map \ No newline at end of file diff --git a/dist/json_out/oracles/IOracleBase.d.ts.map b/dist/json_out/oracles/IOracleBase.d.ts.map index 03745486b..668274b7a 100644 --- a/dist/json_out/oracles/IOracleBase.d.ts.map +++ b/dist/json_out/oracles/IOracleBase.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IOracleBase.d.ts","sourceRoot":"","sources":["../../../src/json_out/oracles/IOracleBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAG,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAG,OAAO,EAAG,cAAc,EAAG,YAAY,EAAG,gBAAgB,EAAG,aAAa,EAAE,oBAA2B;AAIpO,MAAM,WAAW,WAAY,SAAQ,OAAO,CACxC,WAAW,GACX,eAAe,GACf,iBAAiB,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,YAAY,CAAC,CAClE,EAAE,MAAM,CAAC,aAAa,GAAG,gBAAgB,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,EAClE,UAAU;IAIV,QAAQ,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAIxC,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IAIhC,WAAW,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACzC"} \ No newline at end of file +{"version":3,"file":"IOracleBase.d.ts","sourceRoot":"","sources":["../../../src/json_out/oracles/IOracleBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAG,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAG,OAAO,EAAG,cAAc,EAAG,YAAY,EAAG,gBAAgB,EAAG,aAAa,EAAE,oBAA2B;AACpO;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO,CACxC,WAAW,GACX,eAAe,GACf,iBAAiB,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,YAAY,CAAC,CAClE,EAAE,MAAM,CAAC,aAAa,GAAG,gBAAgB,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,EAClE,UAAU;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACzC"} \ No newline at end of file diff --git a/dist/json_out/oracles/IOracleCategory.d.ts b/dist/json_out/oracles/IOracleCategory.d.ts index 784593607..68a8c44c4 100644 --- a/dist/json_out/oracles/IOracleCategory.d.ts +++ b/dist/json_out/oracles/IOracleCategory.d.ts @@ -3,6 +3,9 @@ export interface IOracleCategory extends IOracleBase, IHasName = { [P in T | never]?: RollTemplateString | undefined; }; diff --git a/dist/json_out/oracles/IRollTemplate.d.ts.map b/dist/json_out/oracles/IRollTemplate.d.ts.map index fd8d93cd2..9f848316f 100644 --- a/dist/json_out/oracles/IRollTemplate.d.ts.map +++ b/dist/json_out/oracles/IRollTemplate.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IRollTemplate.d.ts","sourceRoot":"","sources":["../../../src/json_out/oracles/IRollTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,aAAa,EAAG,gBAAgB,EAAG,cAAc,EAAE,oBAA2B;AACtH,OAAO,KAAK,EAAE,cAAc,EAAE,2CAAkD;AAMhF,oBAAY,kBAAkB,GAAG,QA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AE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/json_out/oracles/IRow.d.ts b/dist/json_out/oracles/IRow.d.ts index d86d2f512..2f64b1c4f 100644 --- a/dist/json_out/oracles/IRow.d.ts +++ b/dist/json_out/oracles/IRow.d.ts @@ -1,15 +1,48 @@ import type { AttributeKey } from "../game_objects/AttributeKey.js"; import type { FragmentString, IAttributeChoices, IDisplay, IHasDisplay, IHasGameObjects, IHasOracleContent, IHasRollTemplate, IHasSubtable, IHasSuggestions, IHasSummary, IMultipleRolls, OracleTableId, OracleTableRowId, SentenceString, SettingTruthOptionId, TermString } from "../index.js"; +/** + * Display properties for a single row in an oracle table. + */ export declare type IRowDisplay = Omit; +/** + * Interface representing a single row in an oracle table. + */ export interface IRow extends Partial & IHasSuggestions & IHasDisplay & IHasOracleContent & IHasSubtable & IHasGameObjects> { $id?: SettingTruthOptionId | OracleTableRowId | null; + /** + * The low end of the dice range for this row. + */ Floor: number | null; + /** + * The high end of the dice range for this row. + */ Ceiling: number | null; + /** + * The primary result text for the row, annotated in Markdown. + * In the book, this is frequently the only column aside from the roll column. Otherwise, it is the first column. + * Some tables label this column as something other than Result; see the parent (or grandparent) Oracle.Display for more information. + */ Result: TermString | FragmentString | SentenceString; + /** + * A secondary markdown string that must be presented to the user for the implementation to be complete, but may benefit from progressive disclosure (such as a collapsible element, popover/tooltip, etc). + * Some tables label this column as something other than Result; see the parent (or grandparent) Oracle.Display for more information. + */ Summary?: SentenceString | FragmentString | undefined; + /** + * Additional oracle tables that should be rolled when this row is selected. + */ "Oracle rolls"?: OracleTableId[] | undefined; + /** + * A table to be rolled when this row is selected. If this row references an external oracle, the `Oracles` property is used instead. + */ Subtable?: IRow[] | undefined; + /** + * Data for rows that call for multiple rolls, e.g. on `Roll twice` results. + */ "Multiple rolls"?: IMultipleRolls | undefined; + /** + * The attributes set by this row. + */ Attributes?: IAttributeChoices[] | undefined; } //# sourceMappingURL=IRow.d.ts.map \ No newline at end of file diff --git a/dist/json_out/oracles/IRow.d.ts.map b/dist/json_out/oracles/IRow.d.ts.map index f4564a537..3dcef3056 100644 --- a/dist/json_out/oracles/IRow.d.ts.map +++ b/dist/json_out/oracles/IRow.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IRow.d.ts","sourceRoot":"","sources":["../../../src/json_out/oracles/IRow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,wCAA+C;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,oBAAoB,EAAE,UAAU,EAAE,oBAA2B;AAKxS,oBAAY,WAAW,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAKlD,MAAM,WAAW,IAAK,SAAQ,OAAO,CACnC,WAAW,GACX,gBAAgB,CAAC,QAAQ,GAAG,SAAS,GAAE,aAAa,CAAC,GACrD,eAAe,GACf,WAAW,CAAC,WAAW,CAAC,GACxB,iBAAiB,GACjB,YAAY,GACZ,eAAe,CAChB;IAGC,GAAG,CAAC,EAAE,oBAAoB,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAIrD,KAAK,EAAE,MAAM,GAAC,IAAI,CAAC;IAInB,OAAO,EAAE,MAAM,GAAC,IAAI,CAAC;IAMrB,MAAM,EAAE,UAAU,GAAG,cAAc,GAAG,cAAc,CAAC;IAKrD,OAAO,CAAC,EAAE,cAAc,GAAG,cAAc,GAAG,SAAS,CAAC;IAKtD,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAI7C,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAI9B,gBAAgB,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAI9C,UAAU,CAAC,EAAE,iBAAiB,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AEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,EAAE,GAAG,SAAS,CAAC;CAC5D"} \ No newline at end of file diff --git a/dist/json_out/oracles/index.d.ts b/dist/json_out/oracles/index.d.ts index 62dbe167b..a3d6b35a5 100644 --- a/dist/json_out/oracles/index.d.ts +++ b/dist/json_out/oracles/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json.Oracles + */ export * from "./IDisplayTable.js"; export * from "./IMultipleRolls.js"; export * from "./IOracle.js"; diff --git a/dist/json_out/oracles/index.d.ts.map b/dist/json_out/oracles/index.d.ts.map index 33979f540..92fd876e8 100644 --- a/dist/json_out/oracles/index.d.ts.map +++ b/dist/json_out/oracles/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/oracles/index.ts"],"names":[],"mappings":"AAIA,mCAAmD;AACnD,oCAAoD;AACpD,6BAA6C;AAC7C,iCAAiD;AACjD,qCAAqD;AACrD,oCAAoD;AACpD,oCAAoD;AACpD,kCAAkD;AAClD,mCAAmD;AACnD,mCAAmD;AACnD,0BAA0C;AAC1C,sCAAsD;AACtD,sCAAsD;AACtD,wCAAwD;AACxD,yCAAyD;AACzD,mCAAmD;AACnD,sCAAsD"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/oracles/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,mCAAmD;AACnD,oCAAoD;AACpD,6BAA6C;AAC7C,iCAAiD;AACjD,qCAAqD;AACrD,oCAAoD;AACpD,oCAAoD;AACpD,kCAAkD;AAClD,mCAAmD;AACnD,mCAAmD;AACnD,0BAA0C;AAC1C,sCAAsD;AACtD,sCAAsD;AACtD,wCAAwD;AACxD,yCAAyD;AACzD,mCAAmD;AACnD,sCAAsD"} \ No newline at end of file diff --git a/dist/json_out/oracles/index.js b/dist/json_out/oracles/index.js index 4299a4e2e..8cea1f945 100644 --- a/dist/json_out/oracles/index.js +++ b/dist/json_out/oracles/index.js @@ -1,3 +1,6 @@ +/** + * @module Json.Oracles + */ export * from "./IDisplayTable.js"; export * from "./IMultipleRolls.js"; export * from "./IOracle.js"; diff --git a/dist/json_out/oracles/index.js.map b/dist/json_out/oracles/index.js.map index fd618bccf..bf854ce86 100644 --- a/dist/json_out/oracles/index.js.map +++ b/dist/json_out/oracles/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/oracles/index.ts"],"names":[],"mappings":"AAIA,mCAAmD;AACnD,oCAAoD;AACpD,6BAA6C;AAC7C,iCAAiD;AACjD,qCAAqD;AACrD,oCAAoD;AACpD,oCAAoD;AACpD,kCAAkD;AAClD,mCAAmD;AACnD,mCAAmD;AACnD,0BAA0C;AAC1C,sCAAsD;AACtD,sCAAsD;AACtD,wCAAwD;AACxD,yCAAyD;AACzD,mCAAmD;AACnD,sCAAsD"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/oracles/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,mCAAmD;AACnD,oCAAoD;AACpD,6BAA6C;AAC7C,iCAAiD;AACjD,qCAAqD;AACrD,oCAAoD;AACpD,oCAAoD;AACpD,kCAAkD;AAClD,mCAAmD;AACnD,mCAAmD;AACnD,0BAA0C;AAC1C,sCAAsD;AACtD,sCAAsD;AACtD,wCAAwD;AACxD,yCAAyD;AACzD,mCAAmD;AACnD,sCAAsD"} \ No newline at end of file diff --git a/dist/json_out/setting_truths/ISettingTruth.d.ts b/dist/json_out/setting_truths/ISettingTruth.d.ts index 2cc52e332..b24ae55a2 100644 --- a/dist/json_out/setting_truths/ISettingTruth.d.ts +++ b/dist/json_out/setting_truths/ISettingTruth.d.ts @@ -1,7 +1,17 @@ import type { IHasId, IHasName, IHasSource, IHasSuggestions, IHasTable, ISettingTruthOption, ISuggestions, ParagraphsString } from "../index.js"; import type { SettingTruthId, SettingTruthName } from "./SettingTruthName"; +/** + * Interface for Setting Truth categories such as "Exodus" and "Cataclysm". See page XX of Starforged for further information. + * @see ISettingTruthOption + */ export interface ISettingTruth extends IHasId, IHasName, IHasSource, Partial>, IHasTable { + /** + * The 'canonical' options for this setting truth category. + */ Table: ISettingTruthOption[]; + /** + * A Markdown version of the text that appears at the end of each Truth entry; it offers suggestions on the character's assets and background. + */ Character: ParagraphsString; } //# sourceMappingURL=ISettingTruth.d.ts.map \ No newline at end of file diff --git a/dist/json_out/setting_truths/ISettingTruth.d.ts.map b/dist/json_out/setting_truths/ISettingTruth.d.ts.map index d518afc45..e91473608 100644 --- a/dist/json_out/setting_truths/ISettingTruth.d.ts.map +++ b/dist/json_out/setting_truths/ISettingTruth.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ISettingTruth.d.ts","sourceRoot":"","sources":["../../../src/json_out/setting_truths/ISettingTruth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAG,mBAAmB,EAAG,YAAY,EAAG,gBAAgB,EAAE,oBAA2B;AAC3J,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,2BAAkD;AAKlG,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,mBAAmB,CAAC;IAI3K,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAI7B,SAAS,EAAE,gBAAgB,CAAC;CAC7B"} \ No newline at end of file +{"version":3,"file":"ISettingTruth.d.ts","sourceRoot":"","sources":["../../../src/json_out/setting_truths/ISettingTruth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAG,mBAAmB,EAAG,YAAY,EAAG,gBAAgB,EAAE,oBAA2B;AAC3J,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,2BAAkD;AAClG;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,mBAAmB,CAAC;IAC3K;;OAEG;IACH,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B;;OAEG;IACH,SAAS,EAAE,gBAAgB,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/json_out/setting_truths/ISettingTruthOption.d.ts b/dist/json_out/setting_truths/ISettingTruthOption.d.ts index 91ab0deb4..ebefe2fb8 100644 --- a/dist/json_out/setting_truths/ISettingTruthOption.d.ts +++ b/dist/json_out/setting_truths/ISettingTruthOption.d.ts @@ -1,6 +1,13 @@ import type { IHasDescription, IHasQuestStarter, IRow, RollTemplate } from "../index.js"; import type { SettingTruthId } from "./SettingTruthName"; +/** + * A valid setting truth option ID. + */ export declare type SettingTruthOptionId = `${SettingTruthId}/${number}` | `${SettingTruthId}/${number}-${number}`; +/** + * Interface for 'canonical' options within a SettingTruth category. + * @see ISettingTruth + */ export interface ISettingTruthOption extends Omit, IHasQuestStarter, IHasDescription { $id: SettingTruthOptionId; "Roll template"?: RollTemplate<"Summary" | "Description"> | undefined; diff --git a/dist/json_out/setting_truths/ISettingTruthOption.d.ts.map b/dist/json_out/setting_truths/ISettingTruthOption.d.ts.map index b8bbd5f31..1486af564 100644 --- a/dist/json_out/setting_truths/ISettingTruthOption.d.ts.map +++ b/dist/json_out/setting_truths/ISettingTruthOption.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ISettingTruthOption.d.ts","sourceRoot":"","sources":["../../../src/json_out/setting_truths/ISettingTruthOption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAG,IAAI,EAAG,YAAY,EAAE,oBAA2B;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,2BAAkD;AAKhF,oBAAY,oBAAoB,GAAG,GAAG,cAAc,IAAI,MAAM,EAAE,GAAG,GAAG,cAAc,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAM3G,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,gBAAgB,EAAE,eAAe;IAC/F,GAAG,EAAE,oBAAoB,CAAC;IAC1B,eAAe,CAAC,EAAE,YAAY,CAAC,SAAS,GAAC,aAAa,CAAC,GAAG,SAAS,CAAC;CACrE"} \ No newline at end of file +{"version":3,"file":"ISettingTruthOption.d.ts","sourceRoot":"","sources":["../../../src/json_out/setting_truths/ISettingTruthOption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAG,IAAI,EAAG,YAAY,EAAE,oBAA2B;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,2BAAkD;AAEhF;;GAEG;AACH,oBAAY,oBAAoB,GAAG,GAAG,cAAc,IAAI,MAAM,EAAE,GAAG,GAAG,cAAc,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAE3G;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,gBAAgB,EAAE,eAAe;IAC/F,GAAG,EAAE,oBAAoB,CAAC;IAC1B,eAAe,CAAC,EAAE,YAAY,CAAC,SAAS,GAAC,aAAa,CAAC,GAAG,SAAS,CAAC;CACrE"} \ No newline at end of file diff --git a/dist/json_out/setting_truths/index.d.ts b/dist/json_out/setting_truths/index.d.ts index c70de43b7..cf66b4174 100644 --- a/dist/json_out/setting_truths/index.d.ts +++ b/dist/json_out/setting_truths/index.d.ts @@ -1,3 +1,6 @@ +/** + * @module Json.SettingTruths + */ export * from "./ISettingTruth.js"; export * from "./ISettingTruthOption.js"; export * from "./SettingTruthName.js"; diff --git a/dist/json_out/setting_truths/index.d.ts.map b/dist/json_out/setting_truths/index.d.ts.map index a78ceecba..c491ca070 100644 --- a/dist/json_out/setting_truths/index.d.ts.map +++ b/dist/json_out/setting_truths/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/setting_truths/index.ts"],"names":[],"mappings":"AAGA,mCAA0D;AAC1D,yCAAgE;AAChE,sCAA6D"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json_out/setting_truths/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,mCAA0D;AAC1D,yCAAgE;AAChE,sCAA6D"} \ No newline at end of file diff --git a/dist/json_out/setting_truths/index.js b/dist/json_out/setting_truths/index.js index 235483427..69ba9504b 100644 --- a/dist/json_out/setting_truths/index.js +++ b/dist/json_out/setting_truths/index.js @@ -1,3 +1,6 @@ +/** + * @module Json.SettingTruths + */ export * from "./ISettingTruth.js"; export * from "./ISettingTruthOption.js"; export * from "./SettingTruthName.js"; diff --git a/dist/json_out/setting_truths/index.js.map b/dist/json_out/setting_truths/index.js.map index 44dc8d788..556ee40a1 100644 --- a/dist/json_out/setting_truths/index.js.map +++ b/dist/json_out/setting_truths/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/setting_truths/index.ts"],"names":[],"mappings":"AAGA,mCAA0D;AAC1D,yCAAgE;AAChE,sCAA6D"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/json_out/setting_truths/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,mCAA0D;AAC1D,yCAAgE;AAChE,sCAA6D"} \ No newline at end of file diff --git a/dist/utils/buildAssets.d.ts b/dist/utils/buildAssets.d.ts index 13a6f9d19..b49d94765 100644 --- a/dist/utils/buildAssets.d.ts +++ b/dist/utils/buildAssets.d.ts @@ -1,3 +1,7 @@ import { AssetType } from "../classes/index.js"; +/** + * Build and validate all asset objects from YAML. + * @returns An array of Asset objects. + */ export declare function buildAssets(): AssetType[]; //# sourceMappingURL=buildAssets.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildAssets.d.ts.map b/dist/utils/buildAssets.d.ts.map index 57bcb5cc1..f1c6b059a 100644 --- a/dist/utils/buildAssets.d.ts.map +++ b/dist/utils/buildAssets.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildAssets.d.ts","sourceRoot":"","sources":["../../src/utils/buildAssets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA0B;AAoB9C,wBAAgB,WAAW,gBAkB1B"} \ No newline at end of file +{"version":3,"file":"buildAssets.d.ts","sourceRoot":"","sources":["../../src/utils/buildAssets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA0B;AAgB9C;;;GAGG;AACH,wBAAgB,WAAW,gBAkB1B"} \ No newline at end of file diff --git a/dist/utils/buildAssets.js b/dist/utils/buildAssets.js index e0b6dae02..f372cdbf5 100644 --- a/dist/utils/buildAssets.js +++ b/dist/utils/buildAssets.js @@ -6,6 +6,10 @@ import yaml from "js-yaml"; import jp from "jsonpath"; import fs from "fs"; const assetPath = getYamlFiles().find(item => item.toString().match(/assets\.yaml$/)); +/** + * Build and validate all asset objects from YAML. + * @returns An array of Asset objects. + */ export function buildAssets() { const data = fs.readFileSync(assetPath, { encoding: "utf-8" }); const json = yaml.load(data); diff --git a/dist/utils/buildAssets.js.map b/dist/utils/buildAssets.js.map index a17a0bef1..1df29bc24 100644 --- a/dist/utils/buildAssets.js.map +++ b/dist/utils/buildAssets.js.map @@ -1 +1 @@ -{"version":3,"file":"buildAssets.js","sourceRoot":"","sources":["../../src/utils/buildAssets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA0B;AAE9C,OAAO,EAAE,YAAY,EAAE,6BAAkC;AACzD,OAAO,EAAE,YAAY,EAAE,kCAAuC;AAC9D,OA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AAE;oBAC7B,MAAM,YAAY,CAAC,WAAW,EAAE,IAAI,EAAE,kEAAkE,CAAC,CAAC;iBAC3G;gBACD,QAAQ,CAAC,WAAW,EAAE,wBAAwB,KAAK,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;gBAC/E,IAAI,GAAG,KAAK,CAAC,iBAAiB,CAAC,EAAE,GAAG,CAAC;aACtC;YACD,OAAO,IAA6B,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildDataforged.d.ts b/dist/utils/buildDataforged.d.ts index c13c0362b..043770c38 100644 --- a/dist/utils/buildDataforged.d.ts +++ b/dist/utils/buildDataforged.d.ts @@ -10,5 +10,9 @@ export interface IronswornData { oracles: OracleCategory[]; setting_truths: SettingTruth[]; } +/** + * Builds all data for Dataforged. + * @returns An object keyed with the game data. +*/ export declare function buildDataforged(): IronswornData; //# sourceMappingURL=buildDataforged.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildDataforged.d.ts.map b/dist/utils/buildDataforged.d.ts.map index f7ccc8c86..81262b99c 100644 --- a/dist/utils/buildDataforged.d.ts.map +++ b/dist/utils/buildDataforged.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildDataforged.d.ts","sourceRoot":"","sources":["../../src/utils/buildDataforged.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA0B;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA0B;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,4BAA0B;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,4BAA0B;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,4BAA0B;AAQtD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,cAAc,EAAE,YAAY,EAAE,CAAC;CAChC;AAMD,wBAAgB,eAAe,IAAI,aAAa,CAkB/C"} \ No newline at end of file +{"version":3,"file":"buildDataforged.d.ts","sourceRoot":"","sources":["../../src/utils/buildDataforged.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA0B;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA0B;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,4BAA0B;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,4BAA0B;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,4BAA0B;AAQtD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,cAAc,EAAE,YAAY,EAAE,CAAC;CAChC;AAED;;;EAGE;AACF,wBAAgB,eAAe,IAAI,aAAa,CAkB/C"} \ No newline at end of file diff --git a/dist/utils/buildDataforged.js b/dist/utils/buildDataforged.js index 7ae066684..3e1787eb3 100644 --- a/dist/utils/buildDataforged.js +++ b/dist/utils/buildDataforged.js @@ -4,12 +4,17 @@ import { buildMoves } from "./buildMoves.js"; import { buildOracles } from "./buildOracles.js"; import { buildTruths } from "./buildTruths.js"; import { buildLog } from "./logging/buildLog.js"; +/** + * Builds all data for Dataforged. + * @returns An object keyed with the game data. +*/ export function buildDataforged() { buildLog(buildDataforged, "Building Dataforged..."); const assets = buildAssets(); const encounters = buildEncounters(); const moves = buildMoves(); const oracles = buildOracles(); + // eslint-disable-next-line @typescript-eslint/naming-convention const setting_truths = buildTruths(); buildLog(buildDataforged, `Finished building ${assets.length} assets, ${encounters.length} encounters, ${moves.length} moves, ${oracles.length} oracle categories, and ${setting_truths.length} setting truth categories.`); const data = { diff --git a/dist/utils/buildDataforged.js.map b/dist/utils/buildDataforged.js.map index 794de2160..283160f0f 100644 --- a/dist/utils/buildDataforged.js.map +++ b/dist/utils/buildDataforged.js.map @@ -1 +1 @@ -{"version":3,"file":"buildDataforged.js","sourceRoot":"","sources":["../../src/utils/buildDataforged.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,yBAA8B;AACpD,OAAO,EAAE,eAAe,EAAE,6BAAkC;AAC5D,OAAO,EAAE,UAAU,EAAE,wBAA6B;AAClD,OAAO,EAAE,YAAY,EAAE,0BAA+B;AACtD,OAAO,EAAE,WAAW,EAAE,yBAA8B;AACpD,OAAO,EAAE,QAAQ,EAAE,8BAAmC;AActD,MAAM,UAAU,eAAe;IAC7B,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,WAAW,EAAE,CAAC;IAC7B,MAAM,UAAU,GAAG,eAAe,EAAE,CAAC;IACrC,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAC3B,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;IAE/B,MAAM,cAAc,GAAG,WAAW,EAAE,CAAC;IAErC,QAAQ,CAAC,eAAe,EAAE,qBAAqB,MAAM,CAAC,MAAM,YAAY,UAAU,CAAC,MAAM,gBAAgB,KAAK,CAAC,MAAM,WAAW,OAAO,CAAC,MAAM,2BAA2B,cAAc,CAAC,MAAM,4BAA4B,CAAC,CAAC;IAC5N,MAAM,IAAI,GAAG;QACX,MAAM;QACN,UAAU;QACV,KAAK;QACL,OAAO;QACP,cAAc;KACf,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file +{"version":3,"file":"buildDataforged.js","sourceRoot":"","sources":["../../src/utils/buildDataforged.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,yBAA8B;AACpD,OAAO,EAAE,eAAe,EAAE,6BAAkC;AAC5D,OAAO,EAAE,UAAU,EAAE,wBAA6B;AAClD,OAAO,EAAE,YAAY,EAAE,0BAA+B;AACtD,OAAO,EAAE,WAAW,EAAE,yBAA8B;AACpD,OAAO,EAAE,QAAQ,EAAE,8BAAmC;AAUtD;;;EAGE;AACF,MAAM,UAAU,eAAe;IAC7B,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,WAAW,EAAE,CAAC;IAC7B,MAAM,UAAU,GAAG,eAAe,EAAE,CAAC;IACrC,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAC3B,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;IAC/B,gEAAgE;IAChE,MAAM,cAAc,GAAG,WAAW,EAAE,CAAC;IAErC,QAAQ,CAAC,eAAe,EAAE,qBAAqB,MAAM,CAAC,MAAM,YAAY,UAAU,CAAC,MAAM,gBAAgB,KAAK,CAAC,MAAM,WAAW,OAAO,CAAC,MAAM,2BAA2B,cAAc,CAAC,MAAM,4BAA4B,CAAC,CAAC;IAC5N,MAAM,IAAI,GAAG;QACX,MAAM;QACN,UAAU;QACV,KAAK;QACL,OAAO;QACP,cAAc;KACf,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildDataforgedLegacy.js b/dist/utils/buildDataforgedLegacy.js index 705c713e3..c73b937f4 100644 --- a/dist/utils/buildDataforgedLegacy.js +++ b/dist/utils/buildDataforgedLegacy.js @@ -1,2 +1,12 @@ "use strict"; +// import LegacyOracleCategory from "../classes/legacy/LegacyOracleCategory"; +// import { IOracleCategory } from "../classes/oracles/OracleCategory"; +// import writeJson from "@dataforged/./writeJSON.js"; +// import { PathLike } from "fs"; +// import { IronswornYaml } from "@dataforged/./buildDataforged.js"; +// export default function buildDataforgedLegacy(pathOut: PathLike = "./", ironswornData: IronswornData): LegacyOracleCategory[] { +// let legacyData = ironswornData.oracles.map(oracleCat => new LegacyOracleCategory(oracleCat)); +// writeJson("./legacy/oracles.json", legacyData); +// return legacyData; +// } //# sourceMappingURL=buildDataforgedLegacy.js.map \ No newline at end of file diff --git a/dist/utils/buildDataforgedLegacy.js.map b/dist/utils/buildDataforgedLegacy.js.map index 609d60a08..a92876243 100644 --- a/dist/utils/buildDataforgedLegacy.js.map +++ b/dist/utils/buildDataforgedLegacy.js.map @@ -1 +1 @@ -{"version":3,"file":"buildDataforgedLegacy.js","sourceRoot":"","sources":["../../src/utils/buildDataforgedLegacy.ts"],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"buildDataforgedLegacy.js","sourceRoot":"","sources":["../../src/utils/buildDataforgedLegacy.ts"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,uEAAuE;AACvE,sDAAsD;AACtD,iCAAiC;AACjC,oEAAoE;AAEpE,kIAAkI;AAClI,kGAAkG;AAClG,oDAAoD;AACpD,uBAAuB;AACvB,IAAI"} \ No newline at end of file diff --git a/dist/utils/buildEncounters.d.ts b/dist/utils/buildEncounters.d.ts index f051425dd..4c9c4fb89 100644 --- a/dist/utils/buildEncounters.d.ts +++ b/dist/utils/buildEncounters.d.ts @@ -1,3 +1,7 @@ import { Encounter } from "../classes/index.js"; +/** + * Assembles encounter data from YAML shorthand into JSON. + * @returns + */ export declare function buildEncounters(): Encounter[]; //# sourceMappingURL=buildEncounters.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildEncounters.d.ts.map b/dist/utils/buildEncounters.d.ts.map index 325e7b6c1..f697c051b 100644 --- a/dist/utils/buildEncounters.d.ts.map +++ b/dist/utils/buildEncounters.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildEncounters.d.ts","sourceRoot":"","sources":["../../src/utils/buildEncounters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA0B;AAoB9C,wBAAgB,eAAe,IAAI,SAAS,EAAE,CAO7C"} \ No newline at end of file +{"version":3,"file":"buildEncounters.d.ts","sourceRoot":"","sources":["../../src/utils/buildEncounters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA0B;AAgB9C;;;GAGG;AACH,wBAAgB,eAAe,IAAI,SAAS,EAAE,CAO7C"} \ No newline at end of file diff --git a/dist/utils/buildEncounters.js b/dist/utils/buildEncounters.js index 583a455af..f85bfad08 100644 --- a/dist/utils/buildEncounters.js +++ b/dist/utils/buildEncounters.js @@ -4,6 +4,10 @@ import { buildLog } from "./logging/buildLog.js"; import { concatWithYamlRefs } from "./process_yaml/concatWithYamlRefs.js"; import _ from "lodash-es"; const filesEncounters = getYamlFiles().filter(file => file.toString().match("encounter")); +/** + * Assembles encounter data from YAML shorthand into JSON. + * @returns + */ export function buildEncounters() { buildLog(buildEncounters, "Building encounters..."); const encounterRoot = concatWithYamlRefs(undefined, ...filesEncounters); diff --git a/dist/utils/buildEncounters.js.map b/dist/utils/buildEncounters.js.map index 2fa31acce..2f2112221 100644 --- a/dist/utils/buildEncounters.js.map +++ b/dist/utils/buildEncounters.js.map @@ -1 +1 @@ -{"version":3,"file":"buildEncounters.js","sourceRoot":"","sources":["../../src/utils/buildEncounters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA0B;AAE9C,OAAO,EAAE,YAAY,EAAE,6BAAkC;AACzD,OAAO,EAAE,QAAQ,EAAE,8BAAmC;AACtD,OAAO,EAAE,kBAAkB,EAAE,6CAAkD;AAE/E,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B,MAAM,eAAe,GAAG,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AAY1F,MAAM,UAAU,eAAe;IAC7B,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAC;IACpD,MAAM,aAAa,GAAG,kBAAkB,CAAC,SAAS,EAAE,GAAG,eAAe,CAAmB,CAAC;IAC1F,MAAM,IA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,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAClE,QAAQ,CAAC,eAAe,EAAE,qBAAqB,IAAI,CAAC,MAAM,qBAAqB,YAAY,uBAAuB,CAAC,CAAC;IACpH,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildImages.d.ts b/dist/utils/buildImages.d.ts index a24a9d43e..f5c52a621 100644 --- a/dist/utils/buildImages.d.ts +++ b/dist/utils/buildImages.d.ts @@ -1,2 +1,10 @@ +/** + * Clones raster images and converts them to webp. + * + * @param srcRoot - the root directory of source files + * @param outPng - The destination filepath for png images. + * @param srcPng - the directory of png files + * @param outWebP - The destination filepath for webp images. + */ export declare function buildImages(srcRoot: string, outPng: string, srcPng: string, outWebP: string): void; //# sourceMappingURL=buildImages.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildImages.d.ts.map b/dist/utils/buildImages.d.ts.map index 3ef1e0518..334c764e8 100644 --- a/dist/utils/buildImages.d.ts.map +++ b/dist/utils/buildImages.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildImages.d.ts","sourceRoot":"","sources":["../../src/utils/buildImages.ts"],"names":[],"mappings":"AAWA,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAG3F"} \ No newline at end of file +{"version":3,"file":"buildImages.d.ts","sourceRoot":"","sources":["../../src/utils/buildImages.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAG3F"} \ No newline at end of file diff --git a/dist/utils/buildImages.js b/dist/utils/buildImages.js index e152d6157..b52722ec0 100644 --- a/dist/utils/buildImages.js +++ b/dist/utils/buildImages.js @@ -1,5 +1,13 @@ import { cloneImages } from "./process_img/cloneImages.js"; import { convertRasterImages } from "./process_img/convertRasterImages.js"; +/** + * Clones raster images and converts them to webp. + * + * @param srcRoot - the root directory of source files + * @param outPng - The destination filepath for png images. + * @param srcPng - the directory of png files + * @param outWebP - The destination filepath for webp images. + */ export function buildImages(srcRoot, outPng, srcPng, outWebP) { cloneImages(srcRoot, outPng); convertRasterImages(srcPng, outWebP); diff --git a/dist/utils/buildImages.js.map b/dist/utils/buildImages.js.map index ca2b817c3..974f50fc9 100644 --- a/dist/utils/buildImages.js.map +++ b/dist/utils/buildImages.js.map @@ -1 +1 @@ -{"version":3,"file":"buildImages.js","sourceRoot":"","sources":["../../src/utils/buildImages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,qCAA0C;AAChE,OAAO,EAAE,mBAAmB,EAAE,6CAAkD;AAUhF,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,MAAc,EAAE,MAAc,EAAE,OAAe;IAC1F,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7B,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file +{"version":3,"file":"buildImages.js","sourceRoot":"","sources":["../../src/utils/buildImages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,qCAA0C;AAChE,OAAO,EAAE,mBAAmB,EAAE,6CAAkD;AAEhF;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,MAAc,EAAE,MAAc,EAAE,OAAe;IAC1F,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7B,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildMoveMarkdown.d.ts b/dist/utils/buildMoveMarkdown.d.ts index fb01d409f..4217f21c2 100644 --- a/dist/utils/buildMoveMarkdown.d.ts +++ b/dist/utils/buildMoveMarkdown.d.ts @@ -1,3 +1,8 @@ import type { MoveCategory } from "../classes/index.js"; +/** + * It takes in a list of move categories, and writes a markdown file with all of the move categories and their moves. + * @param data - MoveCategory[] + * @param mdPath - The path to the directory where the markdown files are stored. + */ export declare function buildMoveMarkdown(data: MoveCategory[], mdPath: string): void; //# sourceMappingURL=buildMoveMarkdown.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildMoveMarkdown.d.ts.map b/dist/utils/buildMoveMarkdown.d.ts.map index 63f87265f..03135906a 100644 --- a/dist/utils/buildMoveMarkdown.d.ts.map +++ b/dist/utils/buildMoveMarkdown.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildMoveMarkdown.d.ts","sourceRoot":"","sources":["../../src/utils/buildMoveMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,4BAA0B;AAUtD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,QAOrE"} \ No newline at end of file +{"version":3,"file":"buildMoveMarkdown.d.ts","sourceRoot":"","sources":["../../src/utils/buildMoveMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,4BAA0B;AAKtD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,QAOrE"} \ No newline at end of file diff --git a/dist/utils/buildMoveMarkdown.js b/dist/utils/buildMoveMarkdown.js index 0adf3199f..fca020cbc 100644 --- a/dist/utils/buildMoveMarkdown.js +++ b/dist/utils/buildMoveMarkdown.js @@ -1,6 +1,11 @@ import { renderMoveCategory } from "./md/renderMoveCategory.js"; import { transformMoveLinks } from "./md/transformHyperlink.js"; import { writeFileSync } from "fs"; +/** + * It takes in a list of move categories, and writes a markdown file with all of the move categories and their moves. + * @param data - MoveCategory[] + * @param mdPath - The path to the directory where the markdown files are stored. + */ export function buildMoveMarkdown(data, mdPath) { const allMoveText = [ "# Starforged Moves", diff --git a/dist/utils/buildMoveMarkdown.js.map b/dist/utils/buildMoveMarkdown.js.map index e3c987a15..73f06f494 100644 --- a/dist/utils/buildMoveMarkdown.js.map +++ b/dist/utils/buildMoveMarkdown.js.map @@ -1 +1 @@ -{"version":3,"file":"buildMoveMarkdown.js","sourceRoot":"","sources":["../../src/utils/buildMoveMarkdown.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,mCAAwC;AACrE,OAAO,EAAE,kBAAkB,EAAE,mCAAwC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAOnC,MAAM,UAAU,iBAAiB,CAAC,IAAoB,EAAE,MAAc;IACpE,MAAM,WAAW,GAAG;QAClB,oBAAoB;QACpB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;KACpD,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEvB,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,kBAAkB,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;AAC1G,CAAC"} \ No newline at end of file +{"version":3,"file":"buildMoveMarkdown.js","sourceRoot":"","sources":["../../src/utils/buildMoveMarkdown.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,mCAAwC;AACrE,OAAO,EAAE,kBAAkB,EAAE,mCAAwC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAoB,EAAE,MAAc;IACpE,MAAM,WAAW,GAAG;QAClB,oBAAoB;QACpB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;KACpD,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEvB,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,kBAAkB,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;AAC1G,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildMoves.d.ts b/dist/utils/buildMoves.d.ts index a0efb9d50..3279a90b6 100644 --- a/dist/utils/buildMoves.d.ts +++ b/dist/utils/buildMoves.d.ts @@ -1,3 +1,9 @@ import { MoveCategory } from "../classes/index.js"; +/** + * It takes the data from the YAML files, and then it iterates over the categories, and then it + * iterates over the moves in each category, and then it creates a MoveCategory object for each + * category, and then it returns an array of all of those MoveCategory objects + * @returns An array of MoveCategory objects. + */ export declare function buildMoves(): MoveCategory[]; //# sourceMappingURL=buildMoves.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildMoves.d.ts.map b/dist/utils/buildMoves.d.ts.map index 9bf997d62..6cf0c956d 100644 --- a/dist/utils/buildMoves.d.ts.map +++ b/dist/utils/buildMoves.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildMoves.d.ts","sourceRoot":"","sources":["../../src/utils/buildMoves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,4BAA0B;AAsBjD,wBAAgB,UAAU,mBAsBzB"} \ No newline at end of file +{"version":3,"file":"buildMoves.d.ts","sourceRoot":"","sources":["../../src/utils/buildMoves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,4BAA0B;AAgBjD;;;;;GAKG;AACH,wBAAgB,UAAU,mBAsBzB"} \ No newline at end of file diff --git a/dist/utils/buildMoves.js b/dist/utils/buildMoves.js index 57f8af94d..3b5c3ace3 100644 --- a/dist/utils/buildMoves.js +++ b/dist/utils/buildMoves.js @@ -4,12 +4,25 @@ import { buildLog } from "./logging/buildLog.js"; import { concatWithYamlRefs } from "./process_yaml/concatWithYamlRefs.js"; import _ from "lodash-es"; const filesMoves = getYamlFiles().filter(file => file.toString().match("moves.yaml$")); +/** + * It takes the data from the YAML files, and then it iterates over the categories, and then it + * iterates over the moves in each category, and then it creates a MoveCategory object for each + * category, and then it returns an array of all of those MoveCategory objects + * @returns An array of MoveCategory objects. + */ export function buildMoves() { buildLog(buildMoves, "Building moves..."); const movesRoot = concatWithYamlRefs(undefined, ...filesMoves); const json = movesRoot.Categories.map((moveCatData, index, moveCatDataArray) => { moveCatData.Moves.map((moveData, index, movesInCat) => { moveData.Source = movesRoot.Source; + // if (moveData["Variant of"]) { + // const templateMove = movesInCat.flatMap().find(move => move.$id === moveData["Variant of"] || move.Name === moveData["Variant of"]?.replaceAll("Moves/", "")); + // if (!templateMove) { + // throw badJsonError(buildMoves, moveData, "Unable to find move referenced by template"); + // } + // moveData = Object.assign(templateMove, moveData); + // } return moveData; }); return new MoveCategory(moveCatData, movesRoot.Source); diff --git a/dist/utils/buildMoves.js.map b/dist/utils/buildMoves.js.map index 9f55b003f..a5e761b77 100644 --- a/dist/utils/buildMoves.js.map +++ b/dist/utils/buildMoves.js.map @@ -1 +1 @@ -{"version":3,"file":"buildMoves.js","sourceRoot":"","sources":["../../src/utils/buildMoves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,4BAA0B;AAEjD,OAAO,EAAE,YAAY,EAAE,6BAAkC;AACzD,OAAO,EAAE,QAAQ,EAAE,8BAAmC;AACtD,OAAO,EAAE,kBAAkB,EAAE,6CAAkD;AAE/E,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B,MAAM,UAAU,GAAG,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAcvF,MAAM,UAAU,UAAU;IACxB,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IAC1C,MAAM,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M,SAAS,GAAG,kBAAkB,CAAC,SAAS,EAAE,GAAG,UAAU,CAAe,CAAC;IAE7E,MAAM,IAAI,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE;QAC7E,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;YACpD,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;YACnC,gCAAgC;YAChC,mKAAmK;YACnK,yBAAyB;YACzB,8FAA8F;YAC9F,MAAM;YACN,sDAAsD;YACtD,IAAI;YACJ,OAAO,QAAQ,CAAC;QAClB,CAAC,CACA,CAAC;QACF,OAAO,IAAI,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,UAAU,EAAE,qBAAqB,IAAI,CAAC,MAAM,+BAA+B,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IAC/I,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildOracleId.d.ts b/dist/utils/buildOracleId.d.ts index 2e30d7a7a..5323491cf 100644 --- a/dist/utils/buildOracleId.d.ts +++ b/dist/utils/buildOracleId.d.ts @@ -1,3 +1,9 @@ import type { IHasName } from "../json_out/index.js"; +/** + * Assembles a path-like oracle ID from a stack of the oracle and its ancestor objects. + * + * @param lineage - The ancestor objects of this oracle. + * @returns + */ export declare function buildOracleId(...lineage: IHasName[]): string; //# sourceMappingURL=buildOracleId.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildOracleId.d.ts.map b/dist/utils/buildOracleId.d.ts.map index a964dc408..f4103df4e 100644 --- a/dist/utils/buildOracleId.d.ts.map +++ b/dist/utils/buildOracleId.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildOracleId.d.ts","sourceRoot":"","sources":["../../src/utils/buildOracleId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAA2B;AAQnD,wBAAgB,aAAa,CAAC,GAAG,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,CAI5D"} \ No newline at end of file +{"version":3,"file":"buildOracleId.d.ts","sourceRoot":"","sources":["../../src/utils/buildOracleId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAA2B;AAEnD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,CAI5D"} \ No newline at end of file diff --git a/dist/utils/buildOracleId.js b/dist/utils/buildOracleId.js index bb16a0017..f3c60530c 100644 --- a/dist/utils/buildOracleId.js +++ b/dist/utils/buildOracleId.js @@ -1,3 +1,9 @@ +/** + * Assembles a path-like oracle ID from a stack of the oracle and its ancestor objects. + * + * @param lineage - The ancestor objects of this oracle. + * @returns + */ export function buildOracleId(...lineage) { const idParts = lineage.reverse().map((item) => item.Name); const id = ["Oracles", ...idParts].join("/"); diff --git a/dist/utils/buildOracleId.js.map b/dist/utils/buildOracleId.js.map index e8ae54e16..797adda46 100644 --- a/dist/utils/buildOracleId.js.map +++ b/dist/utils/buildOracleId.js.map @@ -1 +1 @@ -{"version":3,"file":"buildOracleId.js","sourceRoot":"","sources":["../../src/utils/buildOracleId.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,aAAa,CAAC,GAAG,OAAmB;IAClD,MAAM,OAAO,GAAa,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrE,MAAM,EAAE,GAAG,CAAE,SAAS,EAAE,GAAG,OAAO,CAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file +{"version":3,"file":"buildOracleId.js","sourceRoot":"","sources":["../../src/utils/buildOracleId.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,GAAG,OAAmB;IAClD,MAAM,OAAO,GAAa,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrE,MAAM,EAAE,GAAG,CAAE,SAAS,EAAE,GAAG,OAAO,CAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildOracleMarkdown.d.ts b/dist/utils/buildOracleMarkdown.d.ts index 7460b42cf..0b578bdb8 100644 --- a/dist/utils/buildOracleMarkdown.d.ts +++ b/dist/utils/buildOracleMarkdown.d.ts @@ -1,3 +1,8 @@ import type { OracleCategory } from "../classes/index.js"; +/** + * It takes a list of oracle categories and writes them to markdown files. + * @param oracles - The list of oracle categories. + * @param mdPath - The path to the directory where the markdown files will be written. + */ export declare function buildOracleMarkdown(oracles: OracleCategory[], mdPath: string): void; //# sourceMappingURL=buildOracleMarkdown.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildOracleMarkdown.d.ts.map b/dist/utils/buildOracleMarkdown.d.ts.map index 1131447a4..fda5a0997 100644 --- a/dist/utils/buildOracleMarkdown.d.ts.map +++ b/dist/utils/buildOracleMarkdown.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildOracleMarkdown.d.ts","sourceRoot":"","sources":["../../src/utils/buildOracleMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,4BAA0B;AAYxD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,MAAM,EAAE,MAAM,QAqB5E"} \ No newline at end of file +{"version":3,"file":"buildOracleMarkdown.d.ts","sourceRoot":"","sources":["../../src/utils/buildOracleMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,4BAA0B;AAOxD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,MAAM,EAAE,MAAM,QAqB5E"} \ No newline at end of file diff --git a/dist/utils/buildOracleMarkdown.js b/dist/utils/buildOracleMarkdown.js index 89b92f04d..abeb997ab 100644 --- a/dist/utils/buildOracleMarkdown.js +++ b/dist/utils/buildOracleMarkdown.js @@ -2,6 +2,11 @@ import { renderOracleCategory } from "./md/renderOracleCategory.js"; import { transformMoveLinks, transformOracleLinks } from "./md/transformHyperlink.js"; import _ from "lodash-es"; import { writeFileSync } from "fs"; +/** + * It takes a list of oracle categories and writes them to markdown files. + * @param oracles - The list of oracle categories. + * @param mdPath - The path to the directory where the markdown files will be written. + */ export function buildOracleMarkdown(oracles, mdPath) { const mdOraclePath = mdPath + "oracles/"; oracles.filter(oracle => oracle.$id !== "Oracles/Moves").forEach((oracleCat) => { diff --git a/dist/utils/buildOracleMarkdown.js.map b/dist/utils/buildOracleMarkdown.js.map index d85c23d69..bc8d5d434 100644 --- a/dist/utils/buildOracleMarkdown.js.map +++ b/dist/utils/buildOracleMarkdown.js.map @@ -1 +1 @@ -{"version":3,"file":"buildOracleMarkdown.js","sourceRoot":"","sources":["../../src/utils/buildOracleMarkdown.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,qCAA0C;AACzE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,mCAAwC;AAC3F,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAOnC,MAAM,UAAU,mBAAmB,CAAC,OAAyB,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,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,WAAW,GAAG,YAAY,CAAC;IACjC,aAAa,GAAG,kBAAkB,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;IACzD,aAAa,GAAG,oBAAoB,CAAC,OAAO,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;IAE1E,aAAa,CAAC,MAAM,GAAG,WAAW,EAAE,aAAa,GAAG,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;AACnF,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildOracles.d.ts b/dist/utils/buildOracles.d.ts index d917cd87f..4ff30feba 100644 --- a/dist/utils/buildOracles.d.ts +++ b/dist/utils/buildOracles.d.ts @@ -5,5 +5,9 @@ export interface IOracleParentCategoryData extends IOracleCategoryYaml { Name: OracleCategoryName; _parentOf: OracleSubcategoryName[]; } +/** + * It takes the data from the oracles directory and builds a list of OracleCategory objects. + * @returns An array of OracleCategory objects. + */ export declare function buildOracles(): OracleCategory[]; //# sourceMappingURL=buildOracles.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildOracles.d.ts.map b/dist/utils/buildOracles.d.ts.map index 2fadc6735..d9522d41b 100644 --- a/dist/utils/buildOracles.d.ts.map +++ b/dist/utils/buildOracles.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildOracles.d.ts","sourceRoot":"","sources":["../../src/utils/buildOracles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,4BAA0B;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAG,qBAAqB,EAAE,6BAA2B;AAQrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAA0B;AAQ7D,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IACpE,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,qBAAqB,EAAE,CAAC;CACpC;AAUD,wBAAgB,YAAY,IAAI,cAAc,EAAE,CAkD/C"} \ No newline at end of file +{"version":3,"file":"buildOracles.d.ts","sourceRoot":"","sources":["../../src/utils/buildOracles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,4BAA0B;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAG,qBAAqB,EAAE,6BAA2B;AAQrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAA0B;AAQ7D,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IACpE,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,qBAAqB,EAAE,CAAC;CACpC;AAMD;;;GAGG;AACH,wBAAgB,YAAY,IAAI,cAAc,EAAE,CAkD/C"} \ No newline at end of file diff --git a/dist/utils/buildOracles.js b/dist/utils/buildOracles.js index 436993102..ada14c8c8 100644 --- a/dist/utils/buildOracles.js +++ b/dist/utils/buildOracles.js @@ -6,9 +6,14 @@ import { badJsonError } from "./logging/badJsonError.js"; import { buildLog } from "./logging/buildLog.js"; import { templateOracle } from "./object_transform/templateOracle.js"; import { loadOracleData } from "./process_yaml/loadOracleData.js"; +/** + * It takes the data from the oracles directory and builds a list of OracleCategory objects. + * @returns An array of OracleCategory objects. + */ export function buildOracles() { buildLog(buildOracles, "Building oracles..."); const filesOracleCategories = getYamlFiles("oracles"); + // console.info(filesOracleCategories); const dirsOracleSubcategories = getSubdirs("oracles"); const categoryRoot = loadOracleData(REFS_PATH, ...filesOracleCategories); const categories = categoryRoot.Categories; @@ -16,9 +21,11 @@ export function buildOracles() { const subcatRoot = loadOracleData(REFS_PATH, ...filesOracleSubcategories); const subcategories = subcatRoot.Categories.map((subcatData) => { if (subcatData._templateCategory) { + // console.log("Building with template vars", subcatData); subcatData = templateOracle(subcatData, subcatData._templateCategory); delete subcatData._templateVars; delete subcatData._templateCategory; + // console.log("resulting object:", subcatData); } return subcatData; }); @@ -42,6 +49,7 @@ export function buildOracles() { const json = categories.map(categoryData => new OracleCategory(categoryData)); const catCount = categories.length; const subcatCount = subcategories.length; + // buildLog(buildOracles, `Finished building ${catCount} oracle categories (plus ${subcatCount} subcategories) containing ${tableCount} tables.`); return json; } //# sourceMappingURL=buildOracles.js.map \ No newline at end of file diff --git a/dist/utils/buildOracles.js.map b/dist/utils/buildOracles.js.map index 8011fb2b1..6ec06982d 100644 --- a/dist/utils/buildOracles.js.map +++ b/dist/utils/buildOracles.js.map @@ -1 +1 @@ -{"version":3,"file":"buildOracles.js","sourceRoot":"","sources":["../../src/utils/buildOracles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,4BAA0B;AACnD,OAAO,EAAE,SAAS,EAAE,8BAA4B;AAEhD,OAAO,EAAE,UAAU,EAAE,2BAAgC;AACrD,OAAO,EAAE,YAAY,EAAE,6BAAkC;AACzD,OAAO,EAAE,YAAY,EAAE,kCAAuC;AAC9D,OAAO,EAAE,QAAQ,EAAE,8BAAmC;AACtD,OAAO,EAAE,cAAc,EAAE,6CAAkD;AAE3E,OAAO,EAAE,cAAc,EAAE,yCAA8C;AAsBvE,MAAM,UAAU,YAAY;IAC1B,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAC;IAC9C,MAAM,qBAAqB,GAAkB,YAAY,CAAC,SAAS,CAAC,CAAC;IAGrE,MAAM,uBAAuB,GAAkB,UAAU,CAAC,SAAS,CAAC,CAAC;IACrE,MAAM,YAAY,GAAyB,cAAc,CAAC,SAAS,EAAE,GAAG,qBAAqB,CAAyB,CAAC;IAEvH,MAAM,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;IAE3C,MAAM,wBAAwB,GAAkB,uBAAuB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAElH,MAAM,UAAU,GAAsB,cAAc,CAAC,SAAS,EAAE,GAAG,wBAAwB,CAAsB,CAAC;IAElH,MAAM,aAAa,GAAG,UAAU,CAAC,U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AM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC;IACnC,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC;IAEzC,kJAAkJ;IAClJ,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/utils/buildTruths.d.ts b/dist/utils/buildTruths.d.ts index bac4ec822..5195e5ec1 100644 --- a/dist/utils/buildTruths.d.ts +++ b/dist/utils/buildTruths.d.ts @@ -1,3 +1,7 @@ import { SettingTruth } from "../classes/index.js"; +/** + * It takes the YAML files that contain the setting truths, and builds a list of SettingTruth objects + * @returns An array of SettingTruth objects. + */ export declare function buildTruths(): SettingTruth[]; //# sourceMappingURL=buildTruths.d.ts.map \ No newline at end of file diff --git a/dist/utils/buildTruths.d.ts.map b/dist/utils/buildTruths.d.ts.map index 4309a04a9..c04331d02 100644 --- a/dist/utils/buildTruths.d.ts.map +++ b/dist/utils/buildTruths.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildTruths.d.ts","sourceRoot":"","sources":["../../src/utils/buildTruths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,4BAA0B;AAkBjD,wBAAgB,WAAW,mBAM1B"} \ No newline at end of file +{"version":3,"file":"buildTruths.d.ts","sourceRoot":"","sources":["../../src/utils/buildTruths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,4BAA0B;AAcjD;;;GAGG;AACH,wBAAgB,WAAW,mBAM1B"} \ No newline at end of file diff --git a/dist/utils/buildTruths.js b/dist/utils/buildTruths.js index 81473809a..58b241ce8 100644 --- a/dist/utils/buildTruths.js +++ b/dist/utils/buildTruths.js @@ -3,6 +3,10 @@ import { getYamlFiles } from "./io/getYamlFiles.js"; import { buildLog } from "./logging/buildLog.js"; import { concatWithYamlRefs } from "./process_yaml/concatWithYamlRefs.js"; const filesTruths = getYamlFiles().filter(file => file.toString().match("setting_truths.yaml$")); +/** + * It takes the YAML files that contain the setting truths, and builds a list of SettingTruth objects + * @returns An array of SettingTruth objects. + */ export function buildTruths() { buildLog(buildTruths, "Building setting truths..."); const truthsRoot = concatWithYamlRefs(undefined, ...filesTruths); diff --git a/dist/utils/buildTruths.js.map b/dist/utils/buildTruths.js.map index 4a4bfd2fc..25ae009f4 100644 --- a/dist/utils/buildTruths.js.map +++ b/dist/utils/buildTruths.js.map @@ -1 +1 @@ -{"version":3,"file":"buildTruths.js","sourceRoot":"","sources":["../../src/utils/buildTruths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,4BAA0B;AAEjD,OAAO,EAAE,YAAY,EAAE,6BAAkC;AACzD,OAAO,EAAE,QAAQ,EAAE,8BAAmC;AACtD,OAAO,EAAE,kBAAkB,EAAE,6CAAkD;AAG/E,MAAM,WAAW,GAAG,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAWjG,MAAM,UAAU,WAAW;IACzB,QAAQ,CAAC,WAAW,EAAE,4BAA4B,CAAC,CAAC;IACpD,MAAM,UAAU,GAAG,kBAAkB,CAAC,SAAS,EAAE,GAAG,WAAW,CAAuB,CAAC;IACvF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IACxF,QAAQ,CAAC,WAAW,EAAE,qBAAqB,MAAM,CAAC,MAAM,4BAA4B,CAAC,CAAC;IACtF,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"buildTruths.js","sourceRoot":"","sources":["../../src/utils/buildTruths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,4BAA0B;AAEjD,OAAO,EAAE,YAAY,EAAE,6BAAkC;AACzD,OAAO,EAAE,QAAQ,EAAE,8BAAmC;AACtD,OAAO,EAAE,kBAAkB,EAAE,6CAAkD;AAG/E,MAAM,WAAW,GAAG,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAOjG;;;GAGG;AACH,MAAM,UAAU,WAAW;IACzB,QAAQ,CAAC,WAAW,EAAE,4BAA4B,CAAC,CAAC;IACpD,MAAM,UAAU,GAAG,kBAAkB,CAAC,SAAS,EAAE,GAAG,WAAW,CAAuB,CAAC;IACvF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IACxF,QAAQ,CAAC,WAAW,EAAE,qBAAqB,MAAM,CAAC,MAAM,4BAA4B,CAAC,CAAC;IACtF,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/dist/utils/extractMoveOutcomes.js b/dist/utils/extractMoveOutcomes.js index c6cb46d7e..9af302647 100644 --- a/dist/utils/extractMoveOutcomes.js +++ b/dist/utils/extractMoveOutcomes.js @@ -1,2 +1,51 @@ "use strict"; +// import _ from "lodash-es"; +// import buildMoves from "./buildMoves"; +// import writeJson from "@dataforged/./io/writeJSON.js"; +// import type Move from "@dataforged/../types/moves/Move.js"; +// const hitPattern = new RegExp(/On a \*\*hit\*\*, (?(.|\n)*?)\./, "m"); +// const strongHitPattern = new RegExp(/On a \*\*strong hit\*\*, (?(.|\n)*?)On a \*\*weak hit\*\*, /, "m"); +// const weakHitPattern = new RegExp(/On a \*\*weak hit\*\*, (?(.|\n)*?)On a \*\*miss\*\*/, "m"); +// const missPattern = new RegExp(/On a \*\*miss\*\*, (?(.|\n)*)/, "m"); +// const chooseOptionsPattern = new RegExp(/ {2}\* (.*)/, "gmi"); +// const sortOrder = [ "You are", "Take", "Add" ]; +// type outcomeMatch = { content: string; }; +// export default function extractMoveOutcome(move: Move) { +// const newObj = { +// $id: move.$id, +// Hit: move.Text.match(hitPattern) ? (move.Text.match(hitPattern)?.groups as outcomeMatch).content.trim() : undefined, +// "Strong Hit": move.Text.match(strongHitPattern) ? (move.Text.match(strongHitPattern)?.groups as outcomeMatch).content.trim() : undefined, +// "Weak Hit": move.Text.match(weakHitPattern) ? (move.Text.match(weakHitPattern)?.groups as outcomeMatch).content.trim() : undefined, +// Miss: move.Text.match(missPattern) ? (move.Text.match(missPattern)?.groups as outcomeMatch).content.trim() : undefined, +// }; +// if (newObj["Weak Hit"]?.startsWith("choose")) { +// // console.info(newObj["Weak Hit"]); +// const match = [...newObj["Weak Hit"].matchAll(chooseOptionsPattern)].map(item => item[1]); +// console.info("has options", match); +// const unorderedList = match.map(item => ` * ${item}`).join("\n"); +// if (newObj["Strong Hit"]) { +// if (newObj["Strong Hit"].includes("take both")) { +// const sorted = match.sort((a, b) => sortOrder.findIndex(item => item.startsWith(a)) - sortOrder.findIndex(item => item.startsWith(b))); +// newObj["Strong Hit"] = sorted.join(". "); +// } else if (newObj["Strong Hit"].includes("choose two")) { +// newObj["Strong Hit"] += "\n\n" + unorderedList; +// } +// } +// } +// if (newObj["Weak Hit"]) { +// if (newObj["Weak Hit"].startsWith("as above")) { +// const weakHitEffect = newObj["Weak Hit"].replaceAll("as above, but", ""); +// } +// } +// // alternatively: split at strong hit markers? +// // since we also have the trigger, we can probably remove all lines that include the trigger info. +// // we can also ignore things that don't have a progress roll or an action roll +// // "On a **weak hit**, as above, but" pattern is pretty consistent. +// // "On a **hit**" +// // could just keep looking until the next 'hit' example +// return newObj; +// } +// const moves = buildMoves(); +// const newObj = _.keyBy(moves.map(move => extractMoveOutcome(move)), "$id"); +// writeJson("./moveOutcomes.json", newObj); //# sourceMappingURL=extractMoveOutcomes.js.map \ No newline at end of file diff --git a/dist/utils/extractMoveOutcomes.js.map b/dist/utils/extractMoveOutcomes.js.map index c370609ce..626c524ef 100644 --- a/dist/utils/extractMoveOutcomes.js.map +++ b/dist/utils/extractMoveOutcomes.js.map @@ -1 +1 @@ -{"version":3,"file":"extractMoveOutcomes.js","sourceRoot":"","sources":["../../src/utils/extractMoveOutcomes.ts"],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"extractMoveOutcomes.js","sourceRoot":"","sources":["../../src/utils/extractMoveOutcomes.ts"],"names":[],"mappings":";AAEA,6BAA6B;AAC7B,yCAAyC;AACzC,yDAAyD;AACzD,8DAA8D;AAE9D,kFAAkF;AAClF,oHAAoH;AACpH,0GAA0G;AAC1G,iFAAiF;AAEjF,iEAAiE;AAEjE,kDAAkD;AAElD,4CAA4C;AAE5C,2DAA2D;AAC3D,qBAAqB;AACrB,qBAAqB;AACrB,2HAA2H;AAC3H,gJAAgJ;AAChJ,0IAA0I;AAC1I,8HAA8H;AAC9H,OAAO;AAEP,oDAAoD;AACpD,2CAA2C;AAC3C,iGAAiG;AACjG,0CAA0C;AAC1C,yEAAyE;AACzE,kCAAkC;AAClC,0DAA0D;AAC1D,kJAAkJ;AAClJ,oDAAoD;AACpD,kEAAkE;AAClE,0DAA0D;AAC1D,UAAU;AACV,QAAQ;AACR,MAAM;AACN,8BAA8B;AAC9B,uDAAuD;AACvD,kFAAkF;AAClF,QAAQ;AACR,MAAM;AAEN,mDAAmD;AACnD,uGAAuG;AACvG,mFAAmF;AAEnF,wEAAwE;AACxE,sBAAsB;AAEtB,4DAA4D;AAC5D,mBAAmB;AACnB,IAAI;AAEJ,8BAA8B;AAE9B,8EAA8E;AAE9E,4CAA4C"} \ No newline at end of file diff --git a/dist/utils/getNameFromId.d.ts b/dist/utils/getNameFromId.d.ts index 184e6c25f..6298ce033 100644 --- a/dist/utils/getNameFromId.d.ts +++ b/dist/utils/getNameFromId.d.ts @@ -1,3 +1,6 @@ import type { OracleTableId } from "../json_out/index.js"; +/** + * Gets the last item of a path-like oracle ID. + */ export declare function getNameFromId(oracleId: OracleTableId): string; //# sourceMappingURL=getNameFromId.d.ts.map \ No newline at end of file diff --git a/dist/utils/getNameFromId.d.ts.map b/dist/utils/getNameFromId.d.ts.map index 0b9ff5796..2a2fc46b7 100644 --- a/dist/utils/getNameFromId.d.ts.map +++ b/dist/utils/getNameFromId.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getNameFromId.d.ts","sourceRoot":"","sources":["../../src/utils/getNameFromId.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,6BAA2B;AAMxD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,CAG7D"} \ No newline at end of file +{"version":3,"file":"getNameFromId.d.ts","sourceRoot":"","sources":["../../src/utils/getNameFromId.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,6BAA2B;AAGxD;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,CAG7D"} \ No newline at end of file diff --git a/dist/utils/getNameFromId.js b/dist/utils/getNameFromId.js index 5f5ee8664..ea8e6afb7 100644 --- a/dist/utils/getNameFromId.js +++ b/dist/utils/getNameFromId.js @@ -1,3 +1,7 @@ +// TODO: generate fallback names for when it's unspecified +/** + * Gets the last item of a path-like oracle ID. + */ export function getNameFromId(oracleId) { const fragments = oracleId.split("/"); return fragments[fragments.length - 1]; diff --git a/dist/utils/getNameFromId.js.map b/dist/utils/getNameFromId.js.map index 88a7d9b1e..1bdd165c7 100644 --- a/dist/utils/getNameFromId.js.map +++ b/dist/utils/getNameFromId.js.map @@ -1 +1 @@ -{"version":3,"file":"getNameFromId.js","sourceRoot":"","sources":["../../src/utils/getNameFromId.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,aAAa,CAAC,QAAuB;IACnD,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file +{"version":3,"file":"getNameFromId.js","sourceRoot":"","sources":["../../src/utils/getNameFromId.ts"],"names":[],"mappings":"AACA,0DAA0D;AAK1D;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,QAAuB;IACnD,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/dist/utils/io/getAllFiles.d.ts b/dist/utils/io/getAllFiles.d.ts index e30674ad1..d9cf3953d 100644 --- a/dist/utils/io/getAllFiles.d.ts +++ b/dist/utils/io/getAllFiles.d.ts @@ -1,2 +1,9 @@ +/** + * Recursively gets the path of all YAML files in a directory. + * + * @param dirPath - the path to the directory. + * @param arrayOfFiles - an array of file paths for the function to add paths too (used mainly for recursing) + * @returns An array of file paths. + */ export declare function getAllFiles(dirPath: string, arrayOfFiles?: Array): string[]; //# sourceMappingURL=getAllFiles.d.ts.map \ No newline at end of file diff --git a/dist/utils/io/getAllFiles.d.ts.map b/dist/utils/io/getAllFiles.d.ts.map index 50149251d..4f1c02929 100644 --- a/dist/utils/io/getAllFiles.d.ts.map +++ b/dist/utils/io/getAllFiles.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getAllFiles.d.ts","sourceRoot":"","sources":["../../../src/utils/io/getAllFiles.ts"],"names":[],"mappings":"AAUA,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,GAAE,KAAK,CAAC,MAAM,CAAM,YAe5E"} \ No newline at end of file +{"version":3,"file":"getAllFiles.d.ts","sourceRoot":"","sources":["../../../src/utils/io/getAllFiles.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,GAAE,KAAK,CAAC,MAAM,CAAM,YAe5E"} \ No newline at end of file diff --git a/dist/utils/io/getAllFiles.js b/dist/utils/io/getAllFiles.js index 539868d0f..ae698cd27 100644 --- a/dist/utils/io/getAllFiles.js +++ b/dist/utils/io/getAllFiles.js @@ -1,5 +1,12 @@ import fs from "fs"; import path from "path"; +/** + * Recursively gets the path of all YAML files in a directory. + * + * @param dirPath - the path to the directory. + * @param arrayOfFiles - an array of file paths for the function to add paths too (used mainly for recursing) + * @returns An array of file paths. + */ export function getAllFiles(dirPath, arrayOfFiles = []) { const files = fs.readdirSync(dirPath); files.forEach(function (file) { @@ -7,7 +14,9 @@ export function getAllFiles(dirPath, arrayOfFiles = []) { arrayOfFiles = getAllFiles(dirPath.toString() + "/" + file, arrayOfFiles); } else { - arrayOfFiles.push(path.join("./", dirPath.toString(), "/", file)); + arrayOfFiles.push(path.join( + // use __dirname instead of "./" for absolute paths + "./", dirPath.toString(), "/", file)); } }); return arrayOfFiles; diff --git a/dist/utils/io/getAllFiles.js.map b/dist/utils/io/getAllFiles.js.map index 9e3bdd5fa..4eb16b3b7 100644 --- a/dist/utils/io/getAllFiles.js.map +++ b/dist/utils/io/getAllFiles.js.map @@ -1 +1 @@ -{"version":3,"file":"getAllFiles.js","sourceRoot":"","sources":["../../../src/utils/io/getAllFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AASxB,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,eAA8B,EAAE;IAC3E,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,KAAK,CAAC,OAAO,CAAC,UAAU,IAAI;QAC1B,IAAI,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;YAC9D,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,IAAI,EAAE,YAAY,CAAC,CAAC;SAC3E;aAAM;YACL,YAAY,CAAC,IAAI,CACf,IAAI,CAAC,IAAI,CAEP,IAAI,EACJ,OAAO,CAAC,QAAQ,EAAE,EAClB,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;SACjB;IACH,CAAC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file +{"version":3,"file":"getAllFiles.js","sourceRoot":"","sources":["../../../src/utils/io/getAllFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,eAA8B,EAAE;IAC3E,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,KAAK,CAAC,OAAO,CAAC,UAAU,IAAI;QAC1B,IAAI,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;YAC9D,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,IAAI,EAAE,YAAY,CAAC,CAAC;SAC3E;aAAM;YACL,YAAY,CAAC,IAAI,CACf,IAAI,CAAC,IAAI;YACP,mDAAmD;YACnD,IAAI,EACJ,OAAO,CAAC,QAAQ,EAAE,EAClB,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;SACjB;IACH,CAAC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/dist/utils/io/getSubdirs.d.ts b/dist/utils/io/getSubdirs.d.ts index 84a0794d1..ed9e4a54f 100644 --- a/dist/utils/io/getSubdirs.d.ts +++ b/dist/utils/io/getSubdirs.d.ts @@ -1,4 +1,10 @@ /// import fs from "fs"; +/** + * It returns an array of all the subdirectories of the given directory. + * @param dir - The directory to search in. + * @param root - The root directory of the project. + * @returns An array of paths. + */ export declare function getSubdirs(dir?: string, root?: string): fs.PathLike[]; //# sourceMappingURL=getSubdirs.d.ts.map \ No newline at end of file diff --git a/dist/utils/io/getSubdirs.d.ts.map b/dist/utils/io/getSubdirs.d.ts.map index 2c2b8eb17..6fe87d1fc 100644 --- a/dist/utils/io/getSubdirs.d.ts.map +++ b/dist/utils/io/getSubdirs.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getSubdirs.d.ts","sourceRoot":"","sources":["../../../src/utils/io/getSubdirs.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AAUpB,wBAAgB,UAAU,CAAC,GAAG,SAAK,EAAE,IAAI,SAAW,GAAG,EAAE,CAAC,QAAQ,EAAE,CAOnE"} \ No newline at end of file +{"version":3,"file":"getSubdirs.d.ts","sourceRoot":"","sources":["../../../src/utils/io/getSubdirs.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AAIpB;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,SAAK,EAAE,IAAI,SAAW,GAAG,EAAE,CAAC,QAAQ,EAAE,CAOnE"} \ No newline at end of file diff --git a/dist/utils/io/getSubdirs.js b/dist/utils/io/getSubdirs.js index 1e1938c56..dbbf1c500 100644 --- a/dist/utils/io/getSubdirs.js +++ b/dist/utils/io/getSubdirs.js @@ -1,5 +1,11 @@ import fs from "fs"; const basePath = "./src/data"; +/** + * It returns an array of all the subdirectories of the given directory. + * @param dir - The directory to search in. + * @param root - The root directory of the project. + * @returns An array of paths. + */ export function getSubdirs(dir = "", root = basePath) { const path = dir.length ? root + "/" + dir : root; const result = fs diff --git a/dist/utils/io/getSubdirs.js.map b/dist/utils/io/getSubdirs.js.map index c3e6fb50f..f0ea63e12 100644 --- a/dist/utils/io/getSubdirs.js.map +++ b/dist/utils/io/getSubdirs.js.map @@ -1 +1 @@ -{"version":3,"file":"getSubdirs.js","sourceRoot":"","sources":["../../../src/utils/io/getSubdirs.ts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C,CAAC,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;IAClC,OAAO,MAAuB,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/dist/utils/io/getYamlFiles.d.ts b/dist/utils/io/getYamlFiles.d.ts index bb29993ef..84657ea93 100644 --- a/dist/utils/io/getYamlFiles.d.ts +++ b/dist/utils/io/getYamlFiles.d.ts @@ -1,4 +1,10 @@ /// import fs from "fs"; +/** + * It returns an array of all the yaml filepaths in the directory. + * @param dir - The directory to search in. + * @param root - The root directory of the project. + * @returns An array of file paths. + */ export declare function getYamlFiles(dir?: string, root?: fs.PathLike): fs.PathLike[]; //# sourceMappingURL=getYamlFiles.d.ts.map \ No newline at end of file diff --git a/dist/utils/io/getYamlFiles.d.ts.map b/dist/utils/io/getYamlFiles.d.ts.map index 11743b890..a7b97601b 100644 --- a/dist/utils/io/getYamlFiles.d.ts.map +++ b/dist/utils/io/getYamlFiles.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getYamlFiles.d.ts","sourceRoot":"","sources":["../../../src/utils/io/getYamlFiles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,IAAI,CAAC;AASpB,wBAAgB,YAAY,CAAC,GAAG,SAAK,EAAE,IAAI,cAAW,GAAG,EAAE,CAAC,QAAQ,EAAE,CAMrE"} \ No newline at end of file +{"version":3,"file":"getYamlFiles.d.ts","sourceRoot":"","sources":["../../../src/utils/io/getYamlFiles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,IAAI,CAAC;AAGpB;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,SAAK,EAAE,IAAI,cAAW,GAAG,EAAE,CAAC,QAAQ,EAAE,CAMrE"} \ No newline at end of file diff --git a/dist/utils/io/getYamlFiles.js b/dist/utils/io/getYamlFiles.js index 4faf20186..4a476f042 100644 --- a/dist/utils/io/getYamlFiles.js +++ b/dist/utils/io/getYamlFiles.js @@ -1,5 +1,11 @@ import fs from "fs"; const basePath = "./src/data"; +/** + * It returns an array of all the yaml filepaths in the directory. + * @param dir - The directory to search in. + * @param root - The root directory of the project. + * @returns An array of file paths. + */ export function getYamlFiles(dir = "", root = basePath) { const path = dir.length ? `${root.toString()}/${dir}` : root; return fs diff --git a/dist/utils/io/getYamlFiles.js.map b/dist/utils/io/getYamlFiles.js.map index 13c1b9425..521cb77cc 100644 --- a/dist/utils/io/getYamlFiles.js.map +++ b/dist/utils/io/getYamlFiles.js.map @@ -1 +1 @@ -{"version":3,"file":"getYamlFiles.js","sourceRoot":"","sources":["../../../src/utils/io/getYamlFiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,MAAM,QAAQ,GAAgB,YAAY,CAAC;AAQ3C,MAAM,UAAU,YAAY,CAAC,GAAG,GAAG,EAAE,EAAE,IAAI,GAAG,QAAQ;IACpD,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,EAAiB,CAAC,CAAC,CAAC,IAAI,CAAC;IAC5E,OAAO,EAAE;SACN,WAAW,CAAC,IAAI,CAAC;SACjB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;SACxF,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file +{"version":3,"file":"getYamlFiles.js","sourceRoot":"","sources":["../../../src/utils/io/getYamlFiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,MAAM,QAAQ,GAAgB,YAAY,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,GAAG,GAAG,EAAE,EAAE,IAAI,GAAG,QAAQ;IACpD,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,EAAiB,CAAC,CAAC,CAAC,IAAI,CAAC;IAC5E,OAAO,EAAE;SACN,WAAW,CAAC,IAAI,CAAC;SACjB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;SACxF,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file diff --git a/dist/utils/io/writeJSON.d.ts b/dist/utils/io/writeJSON.d.ts index ad03097e5..80ca655f8 100644 --- a/dist/utils/io/writeJSON.d.ts +++ b/dist/utils/io/writeJSON.d.ts @@ -1,4 +1,8 @@ /// import fs from "fs"; +/** + * Writes a JSON object to a nicely formatted file. + * + */ export declare function writeJson(filePathOut: fs.PathLike, jsonObj: object, minified?: boolean): void; //# sourceMappingURL=writeJSON.d.ts.map \ No newline at end of file diff --git a/dist/utils/io/writeJSON.d.ts.map b/dist/utils/io/writeJSON.d.ts.map index c312c1bc6..173c42f10 100644 --- a/dist/utils/io/writeJSON.d.ts.map +++ b/dist/utils/io/writeJSON.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"writeJSON.d.ts","sourceRoot":"","sources":["../../../src/utils/io/writeJSON.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,MAAM,IAAI,CAAC;AAMpB,wBAAgB,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,IAAI,CAQ3F"} \ No newline at end of file +{"version":3,"file":"writeJSON.d.ts","sourceRoot":"","sources":["../../../src/utils/io/writeJSON.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,IAAI,CAQ3F"} \ No newline at end of file diff --git a/dist/utils/io/writeJSON.js b/dist/utils/io/writeJSON.js index 276a3ec1a..be3d1d664 100644 --- a/dist/utils/io/writeJSON.js +++ b/dist/utils/io/writeJSON.js @@ -1,5 +1,9 @@ import prettier from "prettier"; import fs from "fs"; +/** + * Writes a JSON object to a nicely formatted file. + * + */ export function writeJson(filePathOut, jsonObj, minified = false) { let parser = "json"; let jsonData = JSON.stringify(jsonObj); diff --git a/dist/utils/io/writeJSON.js.map b/dist/utils/io/writeJSON.js.map index 185583779..2610e687b 100644 --- a/dist/utils/io/writeJSON.js.map +++ b/dist/utils/io/writeJSON.js.map @@ -1 +1 @@ -{"version":3,"file":"writeJSON.js","sourceRoot":"","sources":["../../../src/utils/io/writeJSON.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,MAAM,IAAI,CAAC;AAMpB,MAAM,UAAU,SAAS,CAAC,WAAwB,EAAE,OAAe,EAAE,QAAQ,GAAG,KAAK;IACnF,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACvC,IAAI,QAAQ,KAAK,IAAI,EAAE;QACrB,MAAM,GAAG,gBAAgB,CAAC;KAC3B;IACD,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC"} \ No newline at end of file +{"version":3,"file":"writeJSON.js","sourceRoot":"","sources":["../../../src/utils/io/writeJSON.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,WAAwB,EAAE,OAAe,EAAE,QAAQ,GAAG,KAAK;IACnF,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACvC,IAAI,QAAQ,KAAK,IAAI,EAAE;QACrB,MAAM,GAAG,gBAAgB,CAAC;KAC3B;IACD,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC"} \ No newline at end of file diff --git a/dist/utils/io/writeYaml.d.ts b/dist/utils/io/writeYaml.d.ts index 47be855a8..90a4be5af 100644 --- a/dist/utils/io/writeYaml.d.ts +++ b/dist/utils/io/writeYaml.d.ts @@ -1,4 +1,9 @@ /// import fs from "fs"; +/** + * Write a nicely formatted YAML file from a JSON object + * @param filePathOut - The path to the file to write. + * @param jsonObj - The JSON object to be converted to YAML. + */ export declare function writeYaml(filePathOut: fs.PathLike, jsonObj: object): void; //# sourceMappingURL=writeYaml.d.ts.map \ No newline at end of file diff --git a/dist/utils/io/writeYaml.d.ts.map b/dist/utils/io/writeYaml.d.ts.map index 75eab7845..944420bc0 100644 --- a/dist/utils/io/writeYaml.d.ts.map +++ b/dist/utils/io/writeYaml.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"writeYaml.d.ts","sourceRoot":"","sources":["../../../src/utils/io/writeYaml.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AAOpB,wBAAgB,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,QAOlE"} \ No newline at end of file +{"version":3,"file":"writeYaml.d.ts","sourceRoot":"","sources":["../../../src/utils/io/writeYaml.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,QAOlE"} \ No newline at end of file diff --git a/dist/utils/io/writeYaml.js b/dist/utils/io/writeYaml.js index 35103eddb..49e0da79c 100644 --- a/dist/utils/io/writeYaml.js +++ b/dist/utils/io/writeYaml.js @@ -1,9 +1,15 @@ import yaml from "js-yaml"; import fs from "fs"; +/** + * Write a nicely formatted YAML file from a JSON object + * @param filePathOut - The path to the file to write. + * @param jsonObj - The JSON object to be converted to YAML. + */ export function writeYaml(filePathOut, jsonObj) { const yamlData = yaml.dump(jsonObj, { lineWidth: -1, quotingType: "\"", + // noRefs: true, }); fs.writeFileSync(filePathOut, yamlData); } diff --git a/dist/utils/io/writeYaml.js.map b/dist/utils/io/writeYaml.js.map index 3a3f2073f..fd71969d6 100644 --- a/dist/utils/io/writeYaml.js.map +++ b/dist/utils/io/writeYaml.js.map @@ -1 +1 @@ -{"version":3,"file":"writeYaml.js","sourceRoot":"","sources":["../../../src/utils/io/writeYaml.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;AAOpB,MAAM,UAAU,SAAS,CAAC,WAAwB,EAAE,OAAe;IACjE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QAClC,SAAS,EAAE,CAAC,CAAC;QACb,WAAW,EAAE,IAAI;KAElB,CAAC,CAAC;IACH,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC1C,CAAC"} \ No newline at end of file +{"version":3,"file":"writeYaml.js","sourceRoot":"","sources":["../../../src/utils/io/writeYaml.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,WAAwB,EAAE,OAAe;IACjE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QAClC,SAAS,EAAE,CAAC,CAAC;QACb,WAAW,EAAE,IAAI;QACjB,gBAAgB;KACjB,CAAC,CAAC;IACH,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/dist/utils/logging/badEnumError.d.ts b/dist/utils/logging/badEnumError.d.ts index 0e1e18a31..e8965a8c3 100644 --- a/dist/utils/logging/badEnumError.d.ts +++ b/dist/utils/logging/badEnumError.d.ts @@ -1,5 +1,12 @@ import type { HasName } from "./HasName.js"; import type { HasString } from "./HasString.js"; import type { EnumLike } from "../types/EnumLike.js"; +/** + * It creates an error message for when a value is not present in an enum. + * @param source - The source of the error. This can be anything with a "toString" method, or an object with a `name` property. + * @param badItem - the bad item that was passed in + * @param e - EnumLike + * @returns An Error. + */ export declare function badEnumError(source: (HasName | HasString), badItem: string | number, e: EnumLike): Error; //# sourceMappingURL=badEnumError.d.ts.map \ No newline at end of file diff --git a/dist/utils/logging/badEnumError.d.ts.map b/dist/utils/logging/badEnumError.d.ts.map index afef2493f..cb27d8ee3 100644 --- a/dist/utils/logging/badEnumError.d.ts.map +++ b/dist/utils/logging/badEnumError.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"badEnumError.d.ts","sourceRoot":"","sources":["../../../src/utils/logging/badEnumError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAkC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAoC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAiC;AASzD,wBAAgB,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,GAAG,SAAS,CAAC,EAAE,OAAO,EAAE,MAAM,GAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,GAAG,KAAK,CAatG"} \ No newline at end of file +{"version":3,"file":"badEnumError.d.ts","sourceRoot":"","sources":["../../../src/utils/logging/badEnumError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAkC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAoC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAiC;AAEzD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,GAAG,SAAS,CAAC,EAAE,OAAO,EAAE,MAAM,GAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,GAAG,KAAK,CAatG"} \ No newline at end of file diff --git a/dist/utils/logging/badEnumError.js b/dist/utils/logging/badEnumError.js index 3d4c10a55..08b31c329 100644 --- a/dist/utils/logging/badEnumError.js +++ b/dist/utils/logging/badEnumError.js @@ -1,6 +1,17 @@ +/** + * It creates an error message for when a value is not present in an enum. + * @param source - The source of the error. This can be anything with a "toString" method, or an object with a `name` property. + * @param badItem - the bad item that was passed in + * @param e - EnumLike + * @returns An Error. + */ export function badEnumError(source, badItem, e) { let srcId; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore if (typeof source.name !== "undefined") { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore srcId = source.name; } else { diff --git a/dist/utils/logging/badEnumError.js.map b/dist/utils/logging/badEnumError.js.map index d8560e3b3..ec3be5ecf 100644 --- a/dist/utils/logging/badEnumError.js.map +++ b/dist/utils/logging/badEnumError.js.map @@ -1 +1 @@ -{"version":3,"file":"badEnumError.js","sourceRoot":"","sources":["../../../src/utils/logging/badEnumError.ts"],"names":[],"mappings":"AAWA,MAAM,UAAU,YAAY,CAAC,MAA6B,EAAE,OAAsB,EAAE,CAAW;IAC7F,IAAI,KAAa,CAAC;IAGlB,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,WAAW,EAAE;QAGtC,KAAK,GAAG,MAAM,CAAC,IAAc,CAAC;KAC/B;SAAM;QACL,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3B;IACD,MAAM,GAAG,GAAG,IAAI,KAAK,MAAM,OAAO,oBAAoB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC"} \ No newline at end of file +{"version":3,"file":"badEnumError.js","sourceRoot":"","sources":["../../../src/utils/logging/badEnumError.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,MAA6B,EAAE,OAAsB,EAAE,CAAW;IAC7F,IAAI,KAAa,CAAC;IAClB,6DAA6D;IAC7D,aAAa;IACb,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,WAAW,EAAE;QACtC,6DAA6D;QAC/D,aAAa;QACX,KAAK,GAAG,MAAM,CAAC,IAAc,CAAC;KAC/B;SAAM;QACL,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3B;IACD,MAAM,GAAG,GAAG,IAAI,KAAK,MAAM,OAAO,oBAAoB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/dist/utils/logging/badJsonError.d.ts b/dist/utils/logging/badJsonError.d.ts index 6b38edcde..3840acd28 100644 --- a/dist/utils/logging/badJsonError.d.ts +++ b/dist/utils/logging/badJsonError.d.ts @@ -1,4 +1,13 @@ import type { HasName } from "./HasName.js"; import type { HasString } from "./HasString.js"; +/** + * "Create an Error object with a message that includes the source and the object that failed to + * conform to the interface." + * + * @param source - The source of the error. + * @param obj - The object that caused the error. + * @param message - The message to display. + * @returns An Error object. + */ export declare function badJsonError(source: (HasName | HasString), obj?: unknown, message?: string): Error; //# sourceMappingURL=badJsonError.d.ts.map \ No newline at end of file diff --git a/dist/utils/logging/badJsonError.d.ts.map b/dist/utils/logging/badJsonError.d.ts.map index 3e3bb11ff..375c69898 100644 --- a/dist/utils/logging/badJsonError.d.ts.map +++ b/dist/utils/logging/badJsonError.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"badJsonError.d.ts","sourceRoot":"","sources":["../../../src/utils/logging/badJsonError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAkC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAoC;AAW7D,wBAAgB,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,GAAG,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,GAAE,MAA6C,GAAG,KAAK,CAgBxI"} \ No newline at end of file +{"version":3,"file":"badJsonError.d.ts","sourceRoot":"","sources":["../../../src/utils/logging/badJsonError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAkC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAoC;AAE7D;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,GAAG,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,GAAE,MAA6C,GAAG,KAAK,CAgBxI"} \ No newline at end of file diff --git a/dist/utils/logging/badJsonError.js b/dist/utils/logging/badJsonError.js index f3d921a65..acf4c50e4 100644 --- a/dist/utils/logging/badJsonError.js +++ b/dist/utils/logging/badJsonError.js @@ -1,6 +1,19 @@ +/** + * "Create an Error object with a message that includes the source and the object that failed to + * conform to the interface." + * + * @param source - The source of the error. + * @param obj - The object that caused the error. + * @param message - The message to display. + * @returns An Error object. + */ export function badJsonError(source, obj, message = "JSON does not conform to interface") { let srcId; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore if (source.name) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore srcId = source.name; } else { diff --git a/dist/utils/logging/badJsonError.js.map b/dist/utils/logging/badJsonError.js.map index 17f9b08a7..51025eb83 100644 --- a/dist/utils/logging/badJsonError.js.map +++ b/dist/utils/logging/badJsonError.js.map @@ -1 +1 @@ -{"version":3,"file":"badJsonError.js","sourceRoot":"","sources":["../../../src/utils/logging/badJsonError.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,YAAY,CAAC,MAA6B,EAAE,GAAa,EAAE,UAAkB,oCAAoC;IAC/H,IAAI,KAAa,CAAC;IAGlB,IAAI,MAAM,CAAC,IAAI,EAAE;QAGf,KAAK,GAAG,MAAM,CAAC,IAAc,CAAC;KAC/B;SAAM;QACL,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3B;IACD,IAAI,GAAG,GAAG,IAAI,KAAK,KAAK,OAAO,EAAE,CAAC;IAClC,IAAI,GAAG,EAAE;QACP,GAAG,IAAI,KAAK,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;KAC5C;IACD,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC"} \ No newline at end of file +{"version":3,"file":"badJsonError.js","sourceRoot":"","sources":["../../../src/utils/logging/badJsonError.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAC,MAA6B,EAAE,GAAa,EAAE,UAAkB,oCAAoC;IAC/H,IAAI,KAAa,CAAC;IAClB,6DAA6D;IAC7D,aAAa;IACb,IAAI,MAAM,CAAC,IAAI,EAAE;QACf,6DAA6D;QAC/D,aAAa;QACX,KAAK,GAAG,MAAM,CAAC,IAAc,CAAC;KAC/B;SAAM;QACL,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3B;IACD,IAAI,GAAG,GAAG,IAAI,KAAK,KAAK,OAAO,EAAE,CAAC;IAClC,IAAI,GAAG,EAAE;QACP,GAAG,IAAI,KAAK,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;KAC5C;IACD,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/dist/utils/logging/buildLog.d.ts b/dist/utils/logging/buildLog.d.ts index b4a0e79cd..d073a4166 100644 --- a/dist/utils/logging/buildLog.d.ts +++ b/dist/utils/logging/buildLog.d.ts @@ -1,2 +1,6 @@ +/** + * Logs a standardized build message to console. + * @param fn - the function to tag the message with + */ export declare function buildLog(fn: Function, message: string): void; //# sourceMappingURL=buildLog.d.ts.map \ No newline at end of file diff --git a/dist/utils/logging/buildLog.d.ts.map b/dist/utils/logging/buildLog.d.ts.map index e5ed68887..861ecce3d 100644 --- a/dist/utils/logging/buildLog.d.ts.map +++ b/dist/utils/logging/buildLog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"buildLog.d.ts","sourceRoot":"","sources":["../../../src/utils/logging/buildLog.ts"],"names":[],"mappings":"AAMA,wBAAgB,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAK5D"} \ No newline at end of file +{"version":3,"file":"buildLog.d.ts","sourceRoot":"","sources":["../../../src/utils/logging/buildLog.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAK5D"} \ No newline at end of file diff --git a/dist/utils/logging/buildLog.js b/dist/utils/logging/buildLog.js index d93adff6b..81ae97b29 100644 --- a/dist/utils/logging/buildLog.js +++ b/dist/utils/logging/buildLog.js @@ -1,6 +1,12 @@ +/* eslint-disable @typescript-eslint/ban-types */ +/** + * Logs a standardized build message to console. + * @param fn - the function to tag the message with + */ export function buildLog(fn, message) { const parentIdentifier = fn.name; const msg = `[${parentIdentifier}] ${message}`; + // eslint-disable-next-line no-console console.info(msg); } //# sourceMappingURL=buildLog.js.map \ No newline at end of file diff --git a/dist/utils/logging/buildLog.js.map b/dist/utils/logging/buildLog.js.map index 5e3d45b28..61fc1e20f 100644 --- a/dist/utils/logging/buildLog.js.map +++ b/dist/utils/logging/buildLog.js.map @@ -1 +1 @@ -{"version":3,"file":"buildLog.js","sourceRoot":"","sources":["../../../src/utils/logging/buildLog.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,QAAQ,CAAC,EAAY,EAAE,OAAe;IACpD,MAAM,gBAAgB,GAAG,EAAE,CAAC,IAAI,CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,gBAAgB,KAAK,OAAO,EAAE,CAAC;IAE/C,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpB,CAAC"} \ No newline at end of file +{"version":3,"file":"buildLog.js","sourceRoot":"","sources":["../../../src/utils/logging/buildLog.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAY,EAAE,OAAe;IACpD,MAAM,gBAAgB,GAAG,EAAE,CAAC,IAAI,CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,gBAAgB,KAAK,OAAO,EAAE,CAAC;IAC/C,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/extractColumnData.js b/dist/utils/md/extractColumnData.js index 86772693e..96b69d2dd 100644 --- a/dist/utils/md/extractColumnData.js +++ b/dist/utils/md/extractColumnData.js @@ -4,6 +4,7 @@ export function extractColumnData(oracle) { const newTableRows = []; const rollCols = oracle.Display.Table["Roll columns"]; rollCols.forEach((col, colIndex) => { + // console.log("[extractColumnData] id:",col); const table = getTableByOracleId(oracle, col["Use content from"]); table.forEach((rowData, rowIndex) => { if (!table) { @@ -23,6 +24,7 @@ export function extractColumnData(oracle) { if (!table) { throw badJsonError(extractColumnData); } + // console.log("found table:", table); table.forEach((rowData, rowIndex) => { const currentTableRow = newTableRows[rowIndex]; const newRowText = rowData[col.Key]; diff --git a/dist/utils/md/extractColumnData.js.map b/dist/utils/md/extractColumnData.js.map index 0b98ad8b0..73f97bc1e 100644 --- a/dist/utils/md/extractColumnData.js.map +++ b/dist/utils/md/extractColumnData.js.map @@ -1 +1 @@ -{"version":3,"file":"extractColumnData.js","sourceRoot":"","sources":["../../../src/utils/md/extractColumnData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mCAAuC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,gCAAwC;AAErE,MAAM,UAAU,iBAAiB,CAAC,MAAc;IAC9C,MAAM,YAAY,GAA6B,EAAE,CAAC;IAElD,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACtD,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;QAEjC,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAClE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;YAClC,IAAI,CAAC,KAAK,EAAE;gBACV,MAAM,YAAY,CAAC,iBAAiB,CAAC,CAAC;aACvC;YACD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;gBAC3B,YAAY,CAAC,IAAI,CAAC,EAA4B,CAAC,CAAC;aACjD;YACD,MAAM,eAAe,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC;YACvE,MAAM,UAAU,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAClL,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC1D,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;QACnC,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,YAAY,CAAC,iBAAiB,CAAC,CAAC;SACvC;QAED,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;YAClC,MAAM,eAAe,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC;YACvE,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAW,CAAC;YAC9C,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;gBACxC,MAAM,YAAY,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;aACnD;YACD,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file +{"version":3,"file":"extractColumnData.js","sourceRoot":"","sources":["../../../src/utils/md/extractColumnData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mCAAuC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,gCA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GAAG,kBAAkB,CAAC,MAAM,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,YAAY,CAAC,iBAAiB,CAAC,CAAC;SACvC;QACD,sCAAsC;QACtC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;YAClC,MAAM,eAAe,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC;YACvE,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAW,CAAC;YAC9C,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;gBACxC,MAAM,YAAY,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;aACnD;YACD,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/findById.d.ts b/dist/utils/md/findById.d.ts index 7fec03939..946ebb00c 100644 --- a/dist/utils/md/findById.d.ts +++ b/dist/utils/md/findById.d.ts @@ -1,2 +1,8 @@ +/** + * Crawls a JSON tree for an object with a specific ID. Slow! + * @param data - The data to search. + * @param id - The id of the object to find. + * @returns The object that matches the id. + */ export declare function findById(data: unknown, id: string): T; //# sourceMappingURL=findById.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/findById.d.ts.map b/dist/utils/md/findById.d.ts.map index f15bf47a1..5db88a7b6 100644 --- a/dist/utils/md/findById.d.ts.map +++ b/dist/utils/md/findById.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"findById.d.ts","sourceRoot":"","sources":["../../../src/utils/md/findById.ts"],"names":[],"mappings":"AAQA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,CAExD"} \ No newline at end of file +{"version":3,"file":"findById.d.ts","sourceRoot":"","sources":["../../../src/utils/md/findById.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,CAExD"} \ No newline at end of file diff --git a/dist/utils/md/findById.js b/dist/utils/md/findById.js index a3235580a..42e2dc007 100644 --- a/dist/utils/md/findById.js +++ b/dist/utils/md/findById.js @@ -1,4 +1,10 @@ import jsonpath from "jsonpath"; +/** + * Crawls a JSON tree for an object with a specific ID. Slow! + * @param data - The data to search. + * @param id - The id of the object to find. + * @returns The object that matches the id. + */ export function findById(data, id) { return jsonpath.value(data, `$..[?(@.$id=="${id}")]`); } diff --git a/dist/utils/md/findById.js.map b/dist/utils/md/findById.js.map index 120e2d832..311a9b892 100644 --- a/dist/utils/md/findById.js.map +++ b/dist/utils/md/findById.js.map @@ -1 +1 @@ -{"version":3,"file":"findById.js","sourceRoot":"","sources":["../../../src/utils/md/findById.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAQhC,MAAM,UAAU,QAAQ,CAAI,IAAa,EAAE,EAAU;IACnD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,CAAM,CAAC;AAC7D,CAAC"} \ No newline at end of file +{"version":3,"file":"findById.js","sourceRoot":"","sources":["../../../src/utils/md/findById.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAI,IAAa,EAAE,EAAU;IACnD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,CAAM,CAAC;AAC7D,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/getOracleById.d.ts b/dist/utils/md/getOracleById.d.ts index 9832dd7d4..c69b64076 100644 --- a/dist/utils/md/getOracleById.d.ts +++ b/dist/utils/md/getOracleById.d.ts @@ -1,4 +1,10 @@ import type { Oracle } from "../../classes/index.js"; import type { IOracleBase, OracleTableId } from "../../json_out/index.js"; +/** + * Given an array of oracle data and an id, return the oracle data that matches the id. Slow! + * @param oracleData - The data to search in. + * @param id - The id of the oracle you want to get. + * @returns An Oracle object. + */ export declare function getOracleById(oracleData: IOracleBase | IOracleBase[], id: OracleTableId): Oracle; //# sourceMappingURL=getOracleById.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/getOracleById.d.ts.map b/dist/utils/md/getOracleById.d.ts.map index a2e3c6a73..77a928c79 100644 --- a/dist/utils/md/getOracleById.d.ts.map +++ b/dist/utils/md/getOracleById.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getOracleById.d.ts","sourceRoot":"","sources":["../../../src/utils/md/getOracleById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,+BAA0B;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,gCAA2B;AASrE,wBAAgB,aAAa,CAAC,UAAU,EAAE,WAAW,GAAG,WAAW,EAAE,EAAE,EAAE,EAAE,aAAa,UAGvF"} \ No newline at end of file +{"version":3,"file":"getOracleById.d.ts","sourceRoot":"","sources":["../../../src/utils/md/getOracleById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,+BAA0B;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,gCAA2B;AAGrE;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,WAAW,GAAG,WAAW,EAAE,EAAE,EAAE,EAAE,aAAa,UAGvF"} \ No newline at end of file diff --git a/dist/utils/md/getOracleById.js b/dist/utils/md/getOracleById.js index 87acdfd20..ba646d11d 100644 --- a/dist/utils/md/getOracleById.js +++ b/dist/utils/md/getOracleById.js @@ -1,4 +1,10 @@ import jsonpath from "jsonpath"; +/** + * Given an array of oracle data and an id, return the oracle data that matches the id. Slow! + * @param oracleData - The data to search in. + * @param id - The id of the oracle you want to get. + * @returns An Oracle object. + */ export function getOracleById(oracleData, id) { const table = jsonpath.value(oracleData, `$..[?(@.$id=='${id}')]`); return table; diff --git a/dist/utils/md/getOracleById.js.map b/dist/utils/md/getOracleById.js.map index e8aa11486..aceb3721f 100644 --- a/dist/utils/md/getOracleById.js.map +++ b/dist/utils/md/getOracleById.js.map @@ -1 +1 @@ -{"version":3,"file":"getOracleById.js","sourceRoot":"","sources":["../../../src/utils/md/getOracleById.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAQhC,MAAM,UAAU,aAAa,CAAC,UAAuC,EAAE,EAAiB;IACtF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,iBAAiB,EAAE,KAAK,CAAW,CAAC;IAC7E,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"getOracleById.js","sourceRoot":"","sources":["../../../src/utils/md/getOracleById.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,UAAuC,EAAE,EAAiB;IACtF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,iBAAiB,EAAE,KAAK,CAAW,CAAC;IAC7E,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/getTableByOracleId.d.ts b/dist/utils/md/getTableByOracleId.d.ts index e21de851d..950c40396 100644 --- a/dist/utils/md/getTableByOracleId.d.ts +++ b/dist/utils/md/getTableByOracleId.d.ts @@ -1,4 +1,10 @@ import type { Row } from "../../classes/index.js"; import type { IOracleBase, IRow, OracleTableId } from "../../json_out/index.js"; +/** + * Given an oracleData object, and an id, return the table object of the Oracle that matches the id + * @param oracleData - The data to search. + * @param id - The id of the table you want to get. + * @returns An array of rows. + */ export declare function getTableByOracleId(oracleData: IOracleBase | IOracleBase[], id: OracleTableId): T; //# sourceMappingURL=getTableByOracleId.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/getTableByOracleId.d.ts.map b/dist/utils/md/getTableByOracleId.d.ts.map index 0a489c946..4188e2124 100644 --- a/dist/utils/md/getTableByOracleId.d.ts.map +++ b/dist/utils/md/getTableByOracleId.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getTableByOracleId.d.ts","sourceRoot":"","sources":["../../../src/utils/md/getTableByOracleId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,+BAA0B;AAC7C,OAAO,KAAK,EAAW,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,gCAA2B;AASpF,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,IAAI,EAAE,GAAG,GAAG,EAAE,EAAE,UAAU,EAAE,WAAW,GAAG,WAAW,EAAE,EAAE,EAAE,EAAE,aAAa,KAUtH"} \ No newline at end of file +{"version":3,"file":"getTableByOracleId.d.ts","sourceRoot":"","sources":["../../../src/utils/md/getTableByOracleId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,+BAA0B;AAC7C,OAAO,KAAK,EAAW,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,gCAA2B;AAGpF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,IAAI,EAAE,GAAG,GAAG,EAAE,EAAE,UAAU,EAAE,WAAW,GAAG,WAAW,EAAE,EAAE,EAAE,EAAE,aAAa,KAUtH"} \ No newline at end of file diff --git a/dist/utils/md/getTableByOracleId.js b/dist/utils/md/getTableByOracleId.js index 3d9d0e3bd..f1b844707 100644 --- a/dist/utils/md/getTableByOracleId.js +++ b/dist/utils/md/getTableByOracleId.js @@ -1,4 +1,10 @@ import jsonpath from "jsonpath"; +/** + * Given an oracleData object, and an id, return the table object of the Oracle that matches the id + * @param oracleData - The data to search. + * @param id - The id of the table you want to get. + * @returns An array of rows. + */ export function getTableByOracleId(oracleData, id) { if (!Array.isArray(oracleData) && oracleData.$id === id) { const data = oracleData; diff --git a/dist/utils/md/getTableByOracleId.js.map b/dist/utils/md/getTableByOracleId.js.map index 24f98a6f7..5adbc1a33 100644 --- a/dist/utils/md/getTableByOracleId.js.map +++ b/dist/utils/md/getTableByOracleId.js.map @@ -1 +1 @@ -{"version":3,"file":"getTableByOracleId.js","sourceRoot":"","sources":["../../../src/utils/md/getTableByOracleId.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAQhC,MAAM,UAAU,kBAAkB,CAA2B,UAAuC,EAAE,EAAiB;IACrH,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,GAAG,KAAK,EAAE,EAAE;QACvD,MAAM,IAAI,GAAG,UAAqB,CAAC;QACnC,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,OAAO,IAAI,CAAC,KAAU,CAAC;SACxB;KACF;IAAA,CAAC;IAEF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,iBAAiB,EAAE,WAAW,CAAM,CAAC;IAC9E,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"getTableByOracleId.js","sourceRoot":"","sources":["../../../src/utils/md/getTableByOracleId.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAA2B,UAAuC,EAAE,EAAiB;IACrH,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,GAAG,KAAK,EAAE,EAAE;QACvD,MAAM,IAAI,GAAG,UAAqB,CAAC;QACnC,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,OAAO,IAAI,CAAC,KAAU,CAAC;SACxB;KACF;IAAA,CAAC;IAEF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,iBAAiB,EAAE,WAAW,CAAM,CAAC;IAC9E,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/idToHref.d.ts b/dist/utils/md/idToHref.d.ts index 0e3db2a3f..0caecebb0 100644 --- a/dist/utils/md/idToHref.d.ts +++ b/dist/utils/md/idToHref.d.ts @@ -1,2 +1,8 @@ +/** + * Converts an game item's ID string into a hyperlink-friendly relative URL. + * @param id - The id of the item you want to link to. + * @param data - The data to search through. + * @returns A string that can be used as a URL. + */ export declare function idToHref(id: string, data: unknown): string; //# sourceMappingURL=idToHref.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/idToHref.d.ts.map b/dist/utils/md/idToHref.d.ts.map index da323d584..fb386b33d 100644 --- a/dist/utils/md/idToHref.d.ts.map +++ b/dist/utils/md/idToHref.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"idToHref.d.ts","sourceRoot":"","sources":["../../../src/utils/md/idToHref.ts"],"names":[],"mappings":"AASA,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,UAYjD"} \ No newline at end of file +{"version":3,"file":"idToHref.d.ts","sourceRoot":"","sources":["../../../src/utils/md/idToHref.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,UAYjD"} \ No newline at end of file diff --git a/dist/utils/md/idToHref.js b/dist/utils/md/idToHref.js index 40a00250c..3bad73245 100644 --- a/dist/utils/md/idToHref.js +++ b/dist/utils/md/idToHref.js @@ -1,4 +1,10 @@ import { findById } from "./findById.js"; +/** + * Converts an game item's ID string into a hyperlink-friendly relative URL. + * @param id - The id of the item you want to link to. + * @param data - The data to search through. + * @returns A string that can be used as a URL. + */ export function idToHref(id, data) { const item = findById(data, id); if (!item) { diff --git a/dist/utils/md/idToHref.js.map b/dist/utils/md/idToHref.js.map index 5c2f3337e..a0d944f2e 100644 --- a/dist/utils/md/idToHref.js.map +++ b/dist/utils/md/idToHref.js.map @@ -1 +1 @@ -{"version":3,"file":"idToHref.js","sourceRoot":"","sources":["../../../src/utils/md/idToHref.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,sBAA8B;AAQjD,MAAM,UAAU,QAAQ,CAAC,EAAU,EAAE,IAAa;IAChD,MAAM,IAAI,GAAG,QAAQ,CAA0B,IAAI,EAAE,EAAE,CAAC,CAAC;IACzD,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;KAC7C;IACD,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,IAAI,CAAC,OAAO,EAAE;QAChB,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KACnE;IACD,OAAO,KAAK;SACT,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC1B,CAAC"} \ No newline at end of file +{"version":3,"file":"idToHref.js","sourceRoot":"","sources":["../../../src/utils/md/idToHref.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,sBAA8B;AAEjD;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAU,EAAE,IAAa;IAChD,MAAM,IAAI,GAAG,QAAQ,CAA0B,IAAI,EAAE,EAAE,CAAC,CAAC;IACzD,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;KAC7C;IACD,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,IAAI,CAAC,OAAO,EAAE;QAChB,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KACnE;IACD,OAAO,KAAK;SACT,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/longestLength.d.ts b/dist/utils/md/longestLength.d.ts index 0d1fa828c..74202c6e5 100644 --- a/dist/utils/md/longestLength.d.ts +++ b/dist/utils/md/longestLength.d.ts @@ -1,3 +1,8 @@ +/** + * Given an array of objects, return the length of the longest object. + * @param array - Array + * @returns The length of the longest string in the array. + */ export declare function lengthOfLongest(array: Array): number; diff --git a/dist/utils/md/longestLength.d.ts.map b/dist/utils/md/longestLength.d.ts.map index bdf07196c..d75d3372a 100644 --- a/dist/utils/md/longestLength.d.ts.map +++ b/dist/utils/md/longestLength.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"longestLength.d.ts","sourceRoot":"","sources":["../../../src/utils/md/longestLength.ts"],"names":[],"mappings":"AAMA,wBAAgB,eAAe,CAAC,CAAC,SAAS;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAEnF"} \ No newline at end of file +{"version":3,"file":"longestLength.d.ts","sourceRoot":"","sources":["../../../src/utils/md/longestLength.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAEnF"} \ No newline at end of file diff --git a/dist/utils/md/longestLength.js b/dist/utils/md/longestLength.js index cf8a3a199..96d8cf45f 100644 --- a/dist/utils/md/longestLength.js +++ b/dist/utils/md/longestLength.js @@ -1,3 +1,8 @@ +/** + * Given an array of objects, return the length of the longest object. + * @param array - Array + * @returns The length of the longest string in the array. + */ export function lengthOfLongest(array) { return array.map(item => item.length).reduce((a, b) => a > b ? a : b); } diff --git a/dist/utils/md/longestLength.js.map b/dist/utils/md/longestLength.js.map index b4683f5c4..350f16f5c 100644 --- a/dist/utils/md/longestLength.js.map +++ b/dist/utils/md/longestLength.js.map @@ -1 +1 @@ -{"version":3,"file":"longestLength.js","sourceRoot":"","sources":["../../../src/utils/md/longestLength.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,eAAe,CAA6B,KAAe;IACzE,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAE,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC"} \ No newline at end of file +{"version":3,"file":"longestLength.js","sourceRoot":"","sources":["../../../src/utils/md/longestLength.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAA6B,KAAe;IACzE,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAE,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/renderMove.d.ts b/dist/utils/md/renderMove.d.ts index f290e7e00..954f2c651 100644 --- a/dist/utils/md/renderMove.d.ts +++ b/dist/utils/md/renderMove.d.ts @@ -1,3 +1,9 @@ import type { Move } from "../../classes/index.js"; +/** + * It renders a move. + * @param move - The move object to render. + * @param headerLevel - The header level to use for the move. + * @returns A string. + */ export declare function renderMove(move: Move, headerLevel?: number): string; //# sourceMappingURL=renderMove.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/renderMove.d.ts.map b/dist/utils/md/renderMove.d.ts.map index b1da50a17..eb56ad5c0 100644 --- a/dist/utils/md/renderMove.d.ts.map +++ b/dist/utils/md/renderMove.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"renderMove.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderMove.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,+BAA0B;AAS9C,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,GAAE,MAAU,GAAG,MAAM,CAQtE"} \ No newline at end of file +{"version":3,"file":"renderMove.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderMove.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,+BAA0B;AAG9C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,GAAE,MAAU,GAAG,MAAM,CAQtE"} \ No newline at end of file diff --git a/dist/utils/md/renderMove.js b/dist/utils/md/renderMove.js index 83da6c4b7..35faec857 100644 --- a/dist/utils/md/renderMove.js +++ b/dist/utils/md/renderMove.js @@ -1,4 +1,10 @@ import _ from "lodash-es"; +/** + * It renders a move. + * @param move - The move object to render. + * @param headerLevel - The header level to use for the move. + * @returns A string. + */ export function renderMove(move, headerLevel = 3) { const header = _.repeat("#", headerLevel) + " " + move.Display.Title; const items = [header]; diff --git a/dist/utils/md/renderMove.js.map b/dist/utils/md/renderMove.js.map index 9af9446f4..5b0c5a01e 100644 --- a/dist/utils/md/renderMove.js.map +++ b/dist/utils/md/renderMove.js.map @@ -1 +1 @@ -{"version":3,"file":"renderMove.js","sourceRoot":"","sources":["../../../src/utils/md/renderMove.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,WAAW,CAAC;AAQ1B,MAAM,UAAU,UAAU,CAAC,IAAU,EAAE,cAAsB,CAAC;IAC5D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IACrE,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,IAAI,CAAC,eAAe,CAAC,EAAE;QACzB,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;KAC/B;IACD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC"} \ No newline at end of file +{"version":3,"file":"renderMove.js","sourceRoot":"","sources":["../../../src/utils/md/renderMove.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,IAAU,EAAE,cAAsB,CAAC;IAC5D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IACrE,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,IAAI,CAAC,eAAe,CAAC,EAAE;QACzB,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;KAC/B;IACD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/renderMoveCategory.d.ts b/dist/utils/md/renderMoveCategory.d.ts index 3eecbbf7e..c965bd222 100644 --- a/dist/utils/md/renderMoveCategory.d.ts +++ b/dist/utils/md/renderMoveCategory.d.ts @@ -1,3 +1,11 @@ import type { MoveCategory } from "../../classes/index.js"; +/** + * It takes a MoveCategory and returns a string that is a markdown list of all the moves in that + * category + * @param moveCat - The MoveCategory to render. + * @param headerLevel - The level of the top-level header. + * @param localLinksOnly - FIXME: NYI. If true, only links to moves in the same category will be generated. + * @returns A string. + */ export declare function renderMoveCategory(moveCat: MoveCategory, headerLevel?: number, localLinksOnly?: boolean): string; //# sourceMappingURL=renderMoveCategory.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/renderMoveCategory.d.ts.map b/dist/utils/md/renderMoveCategory.d.ts.map index 2cacdb1f0..d51ad3638 100644 --- a/dist/utils/md/renderMoveCategory.d.ts.map +++ b/dist/utils/md/renderMoveCategory.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"renderMoveCategory.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderMoveCategory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,+BAA0B;AAYtD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,GAAE,MAAU,EAAE,cAAc,UAAO,GAAG,MAAM,CAuBhH"} \ No newline at end of file +{"version":3,"file":"renderMoveCategory.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderMoveCategory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,+BAA0B;AAItD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,GAAE,MAAU,EAAE,cAAc,UAAO,GAAG,MAAM,CAuBhH"} \ No newline at end of file diff --git a/dist/utils/md/renderMoveCategory.js b/dist/utils/md/renderMoveCategory.js index 1cef35f24..8cca48912 100644 --- a/dist/utils/md/renderMoveCategory.js +++ b/dist/utils/md/renderMoveCategory.js @@ -1,5 +1,13 @@ import { renderMove } from "./renderMove.js"; import _ from "lodash-es"; +/** + * It takes a MoveCategory and returns a string that is a markdown list of all the moves in that + * category + * @param moveCat - The MoveCategory to render. + * @param headerLevel - The level of the top-level header. + * @param localLinksOnly - FIXME: NYI. If true, only links to moves in the same category will be generated. + * @returns A string. + */ export function renderMoveCategory(moveCat, headerLevel = 2, localLinksOnly = true) { const header = `${_.repeat("#", headerLevel)} ${moveCat.Display.Title}`; const items = [header, moveCat.Description]; diff --git a/dist/utils/md/renderMoveCategory.js.map b/dist/utils/md/renderMoveCategory.js.map index bbfa66bbb..a68b211e4 100644 --- a/dist/utils/md/renderMoveCategory.js.map +++ b/dist/utils/md/renderMoveCategory.js.map @@ -1 +1 @@ -{"version":3,"file":"renderMoveCategory.js","sourceRoot":"","sources":["../../../src/utils/md/renderMoveCategory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,wBAAgC;AACrD,OAAO,CAAC,MAAM,WAAW,CAAC;AAU1B,MAAM,UAAU,kBAAkB,CAAC,OAAqB,EAAE,cAAsB,CAAC,EAAE,cAAc,GAAG,IAAI;IACtG,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACxE,MAAM,KAAK,GAAG,CAAE,MAAM,EAAE,OAAO,CAAC,WAAW,CAAE,CAAC;IAE9C,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEpE,MAAM,gBAAgB,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QACjD,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;QACzH,OAAO,QAAQ,CAAC;IAClB,CAAC,CA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AAC,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;QACzH,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAEX,KAAK,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC;IAEhC,IAAI,MAAM,GAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE;QAC7B,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAC;KACvE;IACD,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE;QAC9B,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC;KACzE;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/renderOracle.d.ts b/dist/utils/md/renderOracle.d.ts index 71b4a4910..901a7838a 100644 --- a/dist/utils/md/renderOracle.d.ts +++ b/dist/utils/md/renderOracle.d.ts @@ -1,3 +1,9 @@ import type { Oracle } from "../../classes/index.js"; +/** + * It takes an oracle and returns a markdown string. + * @param oracle - Oracle, headerLevel = 3 + * @param headerLevel - The header level to use for the title. + * @returns A string containing the markdown for the oracle. + */ export declare function renderOracle(oracle: Oracle, headerLevel?: number): string; //# sourceMappingURL=renderOracle.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/renderOracle.d.ts.map b/dist/utils/md/renderOracle.d.ts.map index 79a16443d..7d26b8dfb 100644 --- a/dist/utils/md/renderOracle.d.ts.map +++ b/dist/utils/md/renderOracle.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"renderOracle.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderOracle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,+BAA0B;AAYhD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,SAAI,UAc3D"} \ No newline at end of file +{"version":3,"file":"renderOracle.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderOracle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,+BAA0B;AAMhD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,SAAI,UAc3D"} \ No newline at end of file diff --git a/dist/utils/md/renderOracle.js b/dist/utils/md/renderOracle.js index 5effaa916..97e14432f 100644 --- a/dist/utils/md/renderOracle.js +++ b/dist/utils/md/renderOracle.js @@ -2,6 +2,12 @@ import { buildLog } from "../logging/buildLog.js"; import { extractColumnData } from "./extractColumnData.js"; import { renderTable } from "./renderTable.js"; import _ from "lodash-es"; +/** + * It takes an oracle and returns a markdown string. + * @param oracle - Oracle, headerLevel = 3 + * @param headerLevel - The header level to use for the title. + * @returns A string containing the markdown for the oracle. + */ export function renderOracle(oracle, headerLevel = 3) { if (oracle.Display["Column of"]) { return ""; diff --git a/dist/utils/md/renderOracle.js.map b/dist/utils/md/renderOracle.js.map index 250285ea1..fe3940782 100644 --- a/dist/utils/md/renderOracle.js.map +++ b/dist/utils/md/renderOracle.js.map @@ -1 +1 @@ -{"version":3,"file":"renderOracle.js","sourceRoot":"","sources":["../../../src/utils/md/renderOracle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,+BAAmC;AACtD,OAAO,EAAE,iBAAiB,EAAE,+BAAuC;AACnE,OAAO,EAAE,WAAW,EAAE,yBAAiC;AACvD,OAAO,CAAC,MAAM,WAAW,CAAC;AAQ1B,MAAM,UAAU,YAAY,CAAC,MAAc,EAAE,WAAW,GAAG,CAAC;IAC1D,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QAC/B,OAAO,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KAAK,CAAC,CAAC;IACzE,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,MAAM,CAAC,WAAW,EAAE;QACtB,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;KAChC;IACD,MAAM,SAAS,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/renderOracleCategory.d.ts b/dist/utils/md/renderOracleCategory.d.ts index 3c193f6a5..23c153d6e 100644 --- a/dist/utils/md/renderOracleCategory.d.ts +++ b/dist/utils/md/renderOracleCategory.d.ts @@ -1,3 +1,9 @@ import type { OracleCategory } from "../../classes/index.js"; +/** + * It takes an OracleCategory and returns a markdown string + * @param oracleCat - OracleCategory + * @param headerLevel - The header level to use for the category title. + * @returns A string of markdown. + */ export declare function renderOracleCategory(oracleCat: OracleCategory, headerLevel?: number): string; //# sourceMappingURL=renderOracleCategory.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/renderOracleCategory.d.ts.map b/dist/utils/md/renderOracleCategory.d.ts.map index 43e09436d..30ee77422 100644 --- a/dist/utils/md/renderOracleCategory.d.ts.map +++ b/dist/utils/md/renderOracleCategory.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"renderOracleCategory.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderOracleCategory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,+BAA0B;AAWxD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,cAAc,EAAE,WAAW,SAAI,UAe9E"} \ No newline at end of file +{"version":3,"file":"renderOracleCategory.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderOracleCategory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,+BAA0B;AAKxD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,cAAc,EAAE,WAAW,SAAI,UAe9E"} \ No newline at end of file diff --git a/dist/utils/md/renderOracleCategory.js b/dist/utils/md/renderOracleCategory.js index f47f109e4..f8a50c8c2 100644 --- a/dist/utils/md/renderOracleCategory.js +++ b/dist/utils/md/renderOracleCategory.js @@ -1,6 +1,12 @@ import { buildLog } from "../logging/buildLog.js"; import { renderOracle } from "./renderOracle.js"; import _ from "lodash-es"; +/** + * It takes an OracleCategory and returns a markdown string + * @param oracleCat - OracleCategory + * @param headerLevel - The header level to use for the category title. + * @returns A string of markdown. + */ export function renderOracleCategory(oracleCat, headerLevel = 2) { buildLog(renderOracleCategory, `Generating markdown for ${oracleCat.Display.Title}...`); const header = _.repeat("#", headerLevel) + " " + oracleCat.Display.Title; diff --git a/dist/utils/md/renderOracleCategory.js.map b/dist/utils/md/renderOracleCategory.js.map index 034c5fcbf..4bbcbfdf3 100644 --- a/dist/utils/md/renderOracleCategory.js.map +++ b/dist/utils/md/renderOracleCategory.js.map @@ -1 +1 @@ -{"version":3,"file":"renderOracleCategory.js","sourceRoot":"","sources":["../../../src/utils/md/renderOracleCategory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,+BAAmC;AACtD,OAAO,EAAE,YAAY,EAAE,0BAAkC;AACzD,OAAO,CAAC,MAAM,WAAW,CAAC;AAQ1B,MAAM,UAAU,oBAAoB,CAAC,SAAyB,EAAE,WAAW,GAAG,CAAC;IAC7E,QAAQ,CAAC,oBAAoB,EAAE,2BAA2B,SAAS,CAAC,OAAO,CAAC,KAC5E,KAAK,CAAC,CAAC;IACP,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;IAC1E,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,SAAS,CAAC,WAAW,EAAE;QACzB,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;KACnC;IACD,IAAI,SAAS,CAAC,OAAO,EAAE;QACrB,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/F;IACD,IAAI,SAAS,CAAC,UAAU,EAAE;QACxB,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,oBAAoB,CAAC,YAAY,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KACtH;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC"} \ No newline at end of file +{"version":3,"file":"renderOracleCategory.js","sourceRoot":"","sources":["../../../src/utils/md/renderOracleCategory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,+BAAmC;AACtD,OAAO,EAAE,YAAY,EAAE,0BAAkC;AACzD,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,SAAyB,EAAE,WAAW,GAAG,CAAC;IAC7E,QAAQ,CAAC,oBAAoB,EAAE,2BAA2B,SAAS,CAAC,OAAO,CAAC,KAC5E,KAAK,CAAC,CAAC;IACP,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;IAC1E,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,SAAS,CAAC,WAAW,EAAE;QACzB,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;KACnC;IACD,IAAI,SAAS,CAAC,OAAO,EAAE;QACrB,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/F;IACD,IAAI,SAAS,CAAC,UAAU,EAAE;QACxB,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,oBAAoB,CAAC,YAAY,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KACtH;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/renderTable.d.ts b/dist/utils/md/renderTable.d.ts index 72d92200f..586e8bb48 100644 --- a/dist/utils/md/renderTable.d.ts +++ b/dist/utils/md/renderTable.d.ts @@ -1,2 +1,5 @@ +/** + * Renders an object array as a markdown table. + */ export declare function renderTable(rowDataArray: Record[]): string; //# sourceMappingURL=renderTable.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/renderTable.d.ts.map b/dist/utils/md/renderTable.d.ts.map index 6dc1944c0..2390505b1 100644 --- a/dist/utils/md/renderTable.d.ts.map +++ b/dist/utils/md/renderTable.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"renderTable.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderTable.ts"],"names":[],"mappings":"AAOA,wBAAgB,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,UAwBjE"} \ No newline at end of file +{"version":3,"file":"renderTable.d.ts","sourceRoot":"","sources":["../../../src/utils/md/renderTable.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,UAwBjE"} \ No newline at end of file diff --git a/dist/utils/md/renderTable.js b/dist/utils/md/renderTable.js index 620b9c0db..ac6504f51 100644 --- a/dist/utils/md/renderTable.js +++ b/dist/utils/md/renderTable.js @@ -1,6 +1,9 @@ import { lengthOfLongest } from "./longestLength.js"; import { transpose2dArray } from "./transpose2dArray.js"; import _ from "lodash-es"; +/** + * Renders an object array as a markdown table. + */ export function renderTable(rowDataArray) { const tableBody = rowDataArray.map(row => Object.values(row)); const tableHeaderText = Object.keys(rowDataArray[0]); @@ -21,4 +24,9 @@ export function renderTable(rowDataArray) { rowStrings = rowStrings.map(row => row.trimEnd()); return rowStrings.join("\n"); } +// let oracleData = buildOracles(); +// let testOracle = getOracleById(oracleData, "Oracles/Creatures/Basic Form"); +// // console.log("found oracle:", testOracle); +// let extract = extractColumnData(testOracle); +// console.log(renderTable(extract)); //# sourceMappingURL=renderTable.js.map \ No newline at end of file diff --git a/dist/utils/md/renderTable.js.map b/dist/utils/md/renderTable.js.map index 767847e5c..fba5c481b 100644 --- a/dist/utils/md/renderTable.js.map +++ b/dist/utils/md/renderTable.js.map @@ -1 +1 @@ -{"version":3,"file":"renderTable.js","sourceRoot":"","sources":["../../../src/utils/md/renderTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,2BAAmC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,8BAAsC;AACjE,OAAO,CAAC,MAAM,WAAW,CAAC;AAK1B,MAAM,UAAU,WAAW,CAAC,YAAsC;IAChE,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,GAA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,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAElG,IAAI,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,EAAE;QACvE,IAAI,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,aAAa,CAAC,QAAQ,CAAC,EAAE;YAC3B,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;SACjD;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;SACC,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;IACpC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAClD,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC;AAED,mCAAmC;AACnC,8EAA8E;AAC9E,+CAA+C;AAC/C,+CAA+C;AAC/C,qCAAqC"} \ No newline at end of file diff --git a/dist/utils/md/toMarkdownTable.js b/dist/utils/md/toMarkdownTable.js index 90734b5db..11f5d42ab 100644 --- a/dist/utils/md/toMarkdownTable.js +++ b/dist/utils/md/toMarkdownTable.js @@ -57,9 +57,11 @@ function mdTableFrom2dArray(array2d) { row = row.map((column, index) => column.padEnd(columnMax[index])); return row; }); + // inner borders const headerBorder = columnMax.map(columnWidth => _.repeat("-", columnWidth)); md2dArray.splice(1, 0, headerBorder); let mdRowStrings = md2dArray.map((row) => row.map((col, i) => col.padEnd(columnMax[i])).join(" | ")); + // trim trailing whitepace mdRowStrings = mdRowStrings.map(row => row.trim()); const tableString = mdRowStrings.join("\n"); return tableString; diff --git a/dist/utils/md/toMarkdownTable.js.map b/dist/utils/md/toMarkdownTable.js.map index 2687061ed..65349cf4d 100644 --- a/dist/utils/md/toMarkdownTable.js.map +++ b/dist/utils/md/toMarkdownTable.js.map @@ -1 +1 @@ -{"version":3,"file":"toMarkdownTable.js","sourceRoot":"","sources":["../../../src/utils/md/toMarkdownTable.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,kCAA0C;AACzE,OAAO,CAAC,MAAM,WAAW,CAAC;AAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,SAAS,kBAAkB,CAAC,cAAuB,EAAE,gBAA0B,EAAE,gBAAyB,EAAE,kBAA4B;IACtI,IAAI,gBAAgB,CAAC,MAAM,KAAK,cAAc,CAAC,MAAM,EAAE;QACrD,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;KACnE;IAAC,IAAI,kBAAkB,CAAC,MAAM,KAAK,gBAAgB,CAAC,MAAM,EAAE;QAC3D,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;KACvE;IACD,MAAM,WAAW,GAAG,CAAE,GAAG,cAAc,EAAE,GAAG,gBAAgB,CAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAExI,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,K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cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAC9D,CAAC;AAED,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;KAC9E,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;AAC5B,MAAM,IAAI,GAAG,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC;AACtC,EAAE,CAAC,aAAa,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/transformHyperlink.d.ts b/dist/utils/md/transformHyperlink.d.ts index 5a88695a8..90540f20b 100644 --- a/dist/utils/md/transformHyperlink.d.ts +++ b/dist/utils/md/transformHyperlink.d.ts @@ -1,5 +1,16 @@ import type { OracleCategory } from "../../classes/index.js"; import type { MdString } from "../../json_out/index.js"; +/** + * It replaces all the links to the moves.md file with the correct link. + * @param md - The markdown string to be transformed. + * @param localLinks - If true, the links will be relative to the current file. + * @returns The original string with the links replaced. + */ export declare function transformMoveLinks(md: MdString, localLinks?: boolean, pathPrefix?: string): string; +/** + * It replaces all the links in the markdown with the replacement string. + * @param md - The markdown string to be transformed. + * @returns The original string with the links transformed. + */ export declare function transformOracleLinks(data: OracleCategory[], md: MdString, currentFile: `${string}.md`): string; //# sourceMappingURL=transformHyperlink.d.ts.map \ No newline at end of file diff --git a/dist/utils/md/transformHyperlink.d.ts.map b/dist/utils/md/transformHyperlink.d.ts.map index 2a2439443..45e27bf17 100644 --- a/dist/utils/md/transformHyperlink.d.ts.map +++ b/dist/utils/md/transformHyperlink.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"transformHyperlink.d.ts","sourceRoot":"","sources":["../../../src/utils/md/transformHyperlink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,+BAA0B;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,gCAA2B;AAUnD,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,UAAU,GAAE,OAAe,EAAE,UAAU,GAAE,MAAW,UAWpG;AAOD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,MAAM,KAAK,UAsCrG"} \ No newline at end of file +{"version":3,"file":"transformHyperlink.d.ts","sourceRoot":"","sources":["../../../src/utils/md/transformHyperlink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,+BAA0B;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,gCAA2B;AAInD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,UAAU,GAAE,OAAe,EAAE,UAAU,GAAE,MAAW,UAWpG;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,MAAM,KAAK,UAsCrG"} \ No newline at end of file diff --git a/dist/utils/md/transformHyperlink.js b/dist/utils/md/transformHyperlink.js index 270e0ca74..6bd84a82b 100644 --- a/dist/utils/md/transformHyperlink.js +++ b/dist/utils/md/transformHyperlink.js @@ -1,5 +1,11 @@ import { findById } from "./findById.js"; import _ from "lodash-es"; +/** + * It replaces all the links to the moves.md file with the correct link. + * @param md - The markdown string to be transformed. + * @param localLinks - If true, the links will be relative to the current file. + * @returns The original string with the links replaced. + */ export function transformMoveLinks(md, localLinks = false, pathPrefix = "") { md = md.replaceAll(/\(Moves\/([^ ]+?)\/([^ ]+?)\)/g, (match, p1, p2) => { let result = match; @@ -13,8 +19,14 @@ export function transformMoveLinks(md, localLinks = false, pathPrefix = "") { }); return md; } +/** + * It replaces all the links in the markdown with the replacement string. + * @param md - The markdown string to be transformed. + * @returns The original string with the links transformed. + */ export function transformOracleLinks(data, md, currentFile) { md = md.replaceAll(/\(Oracles\/([^ ]+?)\/([^ ]+?)\)/g, (match, p1, p2) => { + // console.log("matched:", match); const oracleId = match .replaceAll("(", "") .replaceAll(")", ""); @@ -30,6 +42,7 @@ export function transformOracleLinks(data, md, currentFile) { return result.replaceAll("_", "-"); }); md = md.replaceAll(/\(Oracles\/([^ ]+?)\)/g, (match, p1) => { + // console.log("matched:", match); const oracleId = match.replaceAll("/", "/").replaceAll("(", "") .replaceAll(")", "") .replaceAll("_", " "); diff --git a/dist/utils/md/transformHyperlink.js.map b/dist/utils/md/transformHyperlink.js.map index 304f57907..bb9211bce 100644 --- a/dist/utils/md/transformHyperlink.js.map +++ b/dist/utils/md/transformHyperlink.js.map @@ -1 +1 @@ -{"version":3,"file":"transformHyperlink.js","sourceRoot":"","sources":["../../../src/utils/md/transformHyperlink.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,sBAA8B;AACjD,OAAO,CAAC,MAAM,WAAW,CAAC;AAQ1B,MAAM,UAAU,kBAAkB,CAAC,EAAY,EAAE,aAAsB,KAAK,EAAE,aAAqB,EAAE;IACnG,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,gCAAgC,EAAE,CAAC,KAAa,EAAE,EAAU,EAAE,EAAU,EAAE,EAAE;QAC7F,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAI,UAAU,EAAE;YACd,MAAM,GAAG,KAAK,EAAE,GAAG,CAAC;SACrB;aAAM;YACL,MAAM,GAAG,IAAI,UAAU,YAAY,EAAE,GAAG,CAAC;SAC1C;QACD,OAAO,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,CAAC;AACZ,CAAC;AAOD,MAAM,UAAU,oBAAoB,CAAC,IAAsB,EAAE,EAAY,EAAE,WAA2B;IACpG,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,k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,GAAW,EAAE,CAAC;QAC5B,IAAI,WAAW,KAAK,YAAY,EAAE;YAChC,UAAU,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;SACpE;aAAM;YACL,UAAU,GAAG,GAAG,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC;SACtC;QACD,MAAM,MAAM,GAAG,IAAI,UAAU,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACtD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,CAAC;AACZ,CAAC"} \ No newline at end of file +{"version":3,"file":"transformHyperlink.js","sourceRoot":"","sources":["../../../src/utils/md/transformHyperlink.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,sBAA8B;AACjD,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,EAAY,EAAE,aAAsB,KAAK,EAAE,aAAqB,EAAE;IACnG,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,gCAAgC,EAAE,CAAC,KAAa,EAAE,EAAU,EAAE,EAAU,EAAE,EAAE;QAC7F,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAI,UAAU,EAAE;YACd,MAAM,GAAG,KAAK,EAAE,GAAG,CAAC;SACrB;aAAM;YACL,MAAM,GAAG,IAAI,UAAU,YAAY,EAAE,GAAG,CAAC;SAC1C;QACD,OAAO,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAsB,EAAE,EAAY,EAAE,WAA2B;IACpG,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,kCAAkC,EAAE,CAAC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AAI,UAAU,GAAW,EAAE,CAAC;QAC5B,IAAI,WAAW,KAAK,YAAY,EAAE;YAChC,UAAU,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;SACpE;aAAM;YACL,UAAU,GAAG,GAAG,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC;SACtC;QACD,MAAM,MAAM,GAAG,IAAI,UAAU,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACtD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/dist/utils/md/transpose2dArray.js b/dist/utils/md/transpose2dArray.js index 7bf664453..3cd5057b6 100644 --- a/dist/utils/md/transpose2dArray.js +++ b/dist/utils/md/transpose2dArray.js @@ -1,3 +1,4 @@ +//FIXME: could probably be done with lodash's zip instead export function transpose2dArray(array) { const output = array[0].map((_, colIndex) => array.map(row => row[colIndex])); return output; diff --git a/dist/utils/md/transpose2dArray.js.map b/dist/utils/md/transpose2dArray.js.map index 44499e47c..df20b49a7 100644 --- a/dist/utils/md/transpose2dArray.js.map +++ b/dist/utils/md/transpose2dArray.js.map @@ -1 +1 @@ -{"version":3,"file":"transpose2dArray.js","sourceRoot":"","sources":["../../../src/utils/md/transpose2dArray.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB,CAAI,KAAY;IAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"transpose2dArray.js","sourceRoot":"","sources":["../../../src/utils/md/transpose2dArray.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,MAAM,UAAU,gBAAgB,CAAI,KAAY;IAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/dist/utils/object_transform/extractRowContent.d.ts b/dist/utils/object_transform/extractRowContent.d.ts index ad7de762b..252297df9 100644 --- a/dist/utils/object_transform/extractRowContent.d.ts +++ b/dist/utils/object_transform/extractRowContent.d.ts @@ -1,3 +1,8 @@ import type { IRowContentYaml, IRowYaml } from "../../yaml_in/index.js"; +/** + * Extracts the content of a Row array. In other words, it excludes the Floor and Ceiling numbers. + * @param row - IRowYaml | IRowContentYaml + * @returns A list of IRowContentYaml + */ export declare function extractRowContent(row: IRowYaml | IRowContentYaml): IRowContentYaml; //# sourceMappingURL=extractRowContent.d.ts.map \ No newline at end of file diff --git a/dist/utils/object_transform/extractRowContent.d.ts.map b/dist/utils/object_transform/extractRowContent.d.ts.map index 5d51afecc..a54e279e9 100644 --- a/dist/utils/object_transform/extractRowContent.d.ts.map +++ b/dist/utils/object_transform/extractRowContent.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"extractRowContent.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/extractRowContent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,+BAA0B;AAQnE,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,QAAQ,GAAG,eAAe,GAAG,eAAe,CAWlF"} \ No newline at end of file +{"version":3,"file":"extractRowContent.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/extractRowContent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,+BAA0B;AAGnE;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,QAAQ,GAAG,eAAe,GAAG,eAAe,CAWlF"} \ No newline at end of file diff --git a/dist/utils/object_transform/extractRowContent.js b/dist/utils/object_transform/extractRowContent.js index 661f991e5..e3cbd4fa4 100644 --- a/dist/utils/object_transform/extractRowContent.js +++ b/dist/utils/object_transform/extractRowContent.js @@ -1,5 +1,13 @@ import { is } from "typescript-is"; +/** + * Extracts the content of a Row array. In other words, it excludes the Floor and Ceiling numbers. + * @param row - IRowYaml | IRowContentYaml + * @returns A list of IRowContentYaml + */ export function extractRowContent(row) { + // if (!is(row)) { + // throw badJsonError(extractRowContent, row, "Expected IRowYaml or IRowContentYaml"); + // } let output; if (is(row[0], object => { function _null(object) { ; if (object !== null) return {}; diff --git a/dist/utils/object_transform/extractRowContent.js.map b/dist/utils/object_transform/extractRowContent.js.map index e130f0185..4c97c006d 100644 --- a/dist/utils/object_transform/extractRowContent.js.map +++ b/dist/utils/object_transform/extractRowContent.js.map @@ -1 +1 @@ -{"version":3,"file":"extractRowContent.js","sourceRoot":"","sources":["../../../src/utils/object_transform/extractRowContent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAOnC,MAAM,UAAU,iBAAiB,CAAC,GAA+B;IAI/D,IAAI,MAAM,CAAC;IACX,IAAI,EAAE,CAAc,GAAG,CAAC,CAAC,CAAC;;;;;;;;;wEAAC,IAAI,EAAE,CAAc,GAAG,CAAC,CAAC,CAAC;;;;;;;;;wEAAC,EAAE;QACtD,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACvB;SAAM;QACL,MAAM,GAAG,GAAG,CAAC;KACd;IACD,OAAO,MAAyB,CAAC;AACnC,CAAC"} \ No newline at end of file +{"version":3,"file":"extractRowContent.js","sourceRoot":"","sources":["../../../src/utils/object_transform/extractRowContent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAA+B;IAC/D,8CAA8C;IAC9C,wFAAwF;IACxF,IAAI;IACJ,IAAI,MAAM,CAAC;IACX,IAAI,EAAE,CAAc,GAAG,CAAC,CAAC,CAAC;;;;;;;;;wEAAC,IAAI,EAAE,CAAc,GAAG,CAAC,CAAC,CAAC;;;;;;;;;wEAAC,EAAE;QACtD,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACvB;SAAM;QACL,MAAM,GAAG,GAAG,CAAC;KACd;IACD,OAAO,MAAyB,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/dist/utils/object_transform/extractRowRolls.d.ts b/dist/utils/object_transform/extractRowRolls.d.ts index 9e944b205..5083b382a 100644 --- a/dist/utils/object_transform/extractRowRolls.d.ts +++ b/dist/utils/object_transform/extractRowRolls.d.ts @@ -1,3 +1,8 @@ import type { IRowRollYaml, IRowYaml } from "../../yaml_in/index.js"; +/** + * Extracts the first two elements (floor and ceiling) of a raw row array. + * @param row - IRowYaml | IRowRollYaml + * @returns The first two elements of the array. + */ export declare function extractRowRolls(row: IRowYaml | IRowRollYaml): IRowRollYaml; //# sourceMappingURL=extractRowRolls.d.ts.map \ No newline at end of file diff --git a/dist/utils/object_transform/extractRowRolls.d.ts.map b/dist/utils/object_transform/extractRowRolls.d.ts.map index a10d31f5f..787ccd262 100644 --- a/dist/utils/object_transform/extractRowRolls.d.ts.map +++ b/dist/utils/object_transform/extractRowRolls.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"extractRowRolls.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/extractRowRolls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,+BAA0B;AAQhE,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,GAAG,YAAY,CAM1E"} \ No newline at end of file +{"version":3,"file":"extractRowRolls.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/extractRowRolls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,+BAA0B;AAGhE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,GAAG,YAAY,CAM1E"} \ No newline at end of file diff --git a/dist/utils/object_transform/extractRowRolls.js b/dist/utils/object_transform/extractRowRolls.js index 3ddc686e9..10c75d36f 100644 --- a/dist/utils/object_transform/extractRowRolls.js +++ b/dist/utils/object_transform/extractRowRolls.js @@ -1,4 +1,9 @@ import { is } from "typescript-is"; +/** + * Extracts the first two elements (floor and ceiling) of a raw row array. + * @param row - IRowYaml | IRowRollYaml + * @returns The first two elements of the array. + */ export function extractRowRolls(row) { if (!Array.isArray(row)) { throw new Error(`Received an invalid row array ${JSON.stringify(row)}`); diff --git a/dist/utils/object_transform/extractRowRolls.js.map b/dist/utils/object_transform/extractRowRolls.js.map index 01027b181..dc7d7ebb0 100644 --- a/dist/utils/object_transform/extractRowRolls.js.map +++ b/dist/utils/object_transform/extractRowRolls.js.map @@ -1 +1 @@ -{"version":3,"file":"extractRowRolls.js","sourceRoot":"","sources":["../../../src/utils/object_transform/extractRowRolls.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAOnC,MAAM,UAAU,eAAe,CAAC,GAA4B;IAC1D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;KACzE;IACD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAc,IAAI;;;;;;;;;wEAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACvE,OAAO,MAAsB,CAAC;AAChC,CAAC"} \ No newline at end of file +{"version":3,"file":"extractRowRolls.js","sourceRoot":"","sources":["../../../src/utils/object_transform/extractRowRolls.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,GAA4B;IAC1D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;KACzE;IACD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAc,IAAI;;;;;;;;;wEAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACvE,OAAO,MAAsB,CAAC;AAChC,CAAC"} \ No newline at end of file diff --git a/dist/utils/object_transform/inferSetsAttributes.d.ts b/dist/utils/object_transform/inferSetsAttributes.d.ts index 45c7e0877..85c84a0eb 100644 --- a/dist/utils/object_transform/inferSetsAttributes.d.ts +++ b/dist/utils/object_transform/inferSetsAttributes.d.ts @@ -1,3 +1,8 @@ import type { IAttribute, IRow } from "../../json_out/index.js"; +/** + * Infers a SetsAttributes object for an Oracle from its table rows. + * @param table - The table of data to infer attributes from. + * @returns An array of objects with a single property called Key. + */ export declare function inferSetsAttributes(table: IRow[]): IAttribute[]; //# sourceMappingURL=inferSetsAttributes.d.ts.map \ No newline at end of file diff --git a/dist/utils/object_transform/inferSetsAttributes.d.ts.map b/dist/utils/object_transform/inferSetsAttributes.d.ts.map index 291c3133c..3d929f652 100644 --- a/dist/utils/object_transform/inferSetsAttributes.d.ts.map +++ b/dist/utils/object_transform/inferSetsAttributes.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"inferSetsAttributes.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/inferSetsAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,UAAU,EAAE,IAAI,EAAE,gCAA2B;AAOzE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,CAW/D"} \ No newline at end of file +{"version":3,"file":"inferSetsAttributes.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/inferSetsAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,UAAU,EAAE,IAAI,EAAE,gCAA2B;AAEzE;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,CAW/D"} \ No newline at end of file diff --git a/dist/utils/object_transform/inferSetsAttributes.js b/dist/utils/object_transform/inferSetsAttributes.js index 792afa399..17343658b 100644 --- a/dist/utils/object_transform/inferSetsAttributes.js +++ b/dist/utils/object_transform/inferSetsAttributes.js @@ -1,3 +1,8 @@ +/** + * Infers a SetsAttributes object for an Oracle from its table rows. + * @param table - The table of data to infer attributes from. + * @returns An array of objects with a single property called Key. + */ export function inferSetsAttributes(table) { const uniqueAttributes = new Set(); table.forEach(row => { diff --git a/dist/utils/object_transform/inferSetsAttributes.js.map b/dist/utils/object_transform/inferSetsAttributes.js.map index d9e3c4af9..3ce9cdc19 100644 --- a/dist/utils/object_transform/inferSetsAttributes.js.map +++ b/dist/utils/object_transform/inferSetsAttributes.js.map @@ -1 +1 @@ -{"version":3,"file":"inferSetsAttributes.js","sourceRoot":"","sources":["../../../src/utils/object_transform/inferSetsAttributes.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAgB,CAAC;IACjD,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAClB,IAAI,GAAG,CAAC,UAAU,EAAE;YAClB,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBAC5B,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjC,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAE,CAAC;IAC1E,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"inferSetsAttributes.js","sourceRoot":"","sources":["../../../src/utils/object_transform/inferSetsAttributes.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAgB,CAAC;IACjD,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAClB,IAAI,GAAG,CAAC,UAAU,EAAE;YAClB,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBAC5B,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjC,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAE,CAAC;IAC1E,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/dist/utils/object_transform/propagateToChildren.d.ts b/dist/utils/object_transform/propagateToChildren.d.ts index 3034b9f8e..9396b1011 100644 --- a/dist/utils/object_transform/propagateToChildren.d.ts +++ b/dist/utils/object_transform/propagateToChildren.d.ts @@ -1,2 +1,8 @@ +/** + * Propagates an object to child objects; each child receives the propagated object, but if it has any specified properties for that object, they take precedence. + * @param objToPropagate - The object that will be merged into the children. + * @param key - The key of the object to propagate. + * @param children - The array of children to propagate the object to. + */ export declare function propagateToChildren(objToPropagate: T, key: keyof C, ...children: C[]): void; //# sourceMappingURL=propagateToChildren.d.ts.map \ No newline at end of file diff --git a/dist/utils/object_transform/propagateToChildren.d.ts.map b/dist/utils/object_transform/propagateToChildren.d.ts.map index ae85b7be0..08491ca78 100644 --- a/dist/utils/object_transform/propagateToChildren.d.ts.map +++ b/dist/utils/object_transform/propagateToChildren.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"propagateToChildren.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/propagateToChildren.ts"],"names":[],"mappings":"AAQA,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,EAAE,GAAG,IAAI,CAO7H"} \ No newline at end of file +{"version":3,"file":"propagateToChildren.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/propagateToChildren.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,EAAE,GAAG,IAAI,CAO7H"} \ No newline at end of file diff --git a/dist/utils/object_transform/propagateToChildren.js b/dist/utils/object_transform/propagateToChildren.js index 5588a9c2d..28dda59ed 100644 --- a/dist/utils/object_transform/propagateToChildren.js +++ b/dist/utils/object_transform/propagateToChildren.js @@ -1,4 +1,10 @@ import _ from "lodash-es"; +/** + * Propagates an object to child objects; each child receives the propagated object, but if it has any specified properties for that object, they take precedence. + * @param objToPropagate - The object that will be merged into the children. + * @param key - The key of the object to propagate. + * @param children - The array of children to propagate the object to. + */ export function propagateToChildren(objToPropagate, key, ...children) { children.forEach(child => { if (!child[key]) { diff --git a/dist/utils/object_transform/propagateToChildren.js.map b/dist/utils/object_transform/propagateToChildren.js.map index a856c0bec..39a974c9e 100644 --- a/dist/utils/object_transform/propagateToChildren.js.map +++ b/dist/utils/object_transform/propagateToChildren.js.map @@ -1 +1 @@ -{"version":3,"file":"propagateToChildren.js","sourceRoot":"","sources":["../../../src/utils/object_transform/propagateToChildren.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,WAAW,CAAC;AAQ1B,MAAM,UAAU,mBAAmB,CAAmC,cAAiB,EAAE,GAAY,EAAE,GAAG,QAAa;IACrH,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACvB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACf,KAAK,CAAC,GAAG,CAAC,GAAG,EAAO,CAAC;SACtB;QACD,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file +{"version":3,"file":"propagateToChildren.js","sourceRoot":"","sources":["../../../src/utils/object_transform/propagateToChildren.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAmC,cAAiB,EAAE,GAAY,EAAE,GAAG,QAAa;IACrH,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACvB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACf,KAAK,CAAC,GAAG,CAAC,GAAG,EAAO,CAAC;SACtB;QACD,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/dist/utils/object_transform/replaceInAllStrings.d.ts b/dist/utils/object_transform/replaceInAllStrings.d.ts index bde18922e..807f5fab6 100644 --- a/dist/utils/object_transform/replaceInAllStrings.d.ts +++ b/dist/utils/object_transform/replaceInAllStrings.d.ts @@ -1,2 +1,9 @@ +/** + * Replace all instances of `searchValue` in all strings in the given JSON object with `replaceValue` + * @param json - The JSON object to be searched and replaced. + * @param searchValue - The string to search for. + * @param replaceValue - The value to replace. + * @returns The original JSON object with all strings replaced. + */ export declare function replaceInAllStrings(json: T, searchValue: string, replaceValue: string): T; //# sourceMappingURL=replaceInAllStrings.d.ts.map \ No newline at end of file diff --git a/dist/utils/object_transform/replaceInAllStrings.d.ts.map b/dist/utils/object_transform/replaceInAllStrings.d.ts.map index 7fddbc7db..1eb9f3b52 100644 --- a/dist/utils/object_transform/replaceInAllStrings.d.ts.map +++ b/dist/utils/object_transform/replaceInAllStrings.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"replaceInAllStrings.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/replaceInAllStrings.ts"],"names":[],"mappings":"AAUA,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC,CAU5F"} \ No newline at end of file +{"version":3,"file":"replaceInAllStrings.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/replaceInAllStrings.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC,CAU5F"} \ No newline at end of file diff --git a/dist/utils/object_transform/replaceInAllStrings.js b/dist/utils/object_transform/replaceInAllStrings.js index cd6811bb5..89b38187b 100644 --- a/dist/utils/object_transform/replaceInAllStrings.js +++ b/dist/utils/object_transform/replaceInAllStrings.js @@ -1,5 +1,12 @@ import jsonpath from "jsonpath"; import _ from "lodash-es"; +/** + * Replace all instances of `searchValue` in all strings in the given JSON object with `replaceValue` + * @param json - The JSON object to be searched and replaced. + * @param searchValue - The string to search for. + * @param replaceValue - The value to replace. + * @returns The original JSON object with all strings replaced. + */ export function replaceInAllStrings(json, searchValue, replaceValue) { const jsonClone = _.cloneDeep(json); jsonpath.apply(jsonClone, "$..*", (result) => { diff --git a/dist/utils/object_transform/replaceInAllStrings.js.map b/dist/utils/object_transform/replaceInAllStrings.js.map index 0ea92e8e7..127f56471 100644 --- a/dist/utils/object_transform/replaceInAllStrings.js.map +++ b/dist/utils/object_transform/replaceInAllStrings.js.map @@ -1 +1 @@ -{"version":3,"file":"replaceInAllStrings.js","sourceRoot":"","sources":["../../../src/utils/object_transform/replaceInAllStrings.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,CAAC,MAAM,WAAW,CAAC;AAS1B,MAAM,UAAU,mBAAmB,CAAI,IAAO,EAAE,WAAmB,EAAE,YAAoB;IACvF,MAAM,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACpC,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3C,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,MAAM,CAAC;YACpB,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;SACnD;QACD,OAAO,MAAW,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file +{"version":3,"file":"replaceInAllStrings.js","sourceRoot":"","sources":["../../../src/utils/object_transform/replaceInAllStrings.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAI,IAAO,EAAE,WAAmB,EAAE,YAAoB;IACvF,MAAM,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACpC,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3C,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,MAAM,CAAC;YACpB,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;SACnD;QACD,OAAO,MAAW,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracle.d.ts b/dist/utils/object_transform/templateOracle.d.ts index f4a1b5d25..8bbca7746 100644 --- a/dist/utils/object_transform/templateOracle.d.ts +++ b/dist/utils/object_transform/templateOracle.d.ts @@ -1,3 +1,9 @@ import type { ITemplateYamlBase } from "../../yaml_in/index.js"; +/** + * It takes an oracle metadata template and builds it out with variables from a json object. + * @param json - The JSON object that you want to replace the template variables in. + * @param template - The template to use. + * @returns The template oracle. + */ export declare function templateOracle(json: T, template: ITemplateYamlBase): T; //# sourceMappingURL=templateOracle.d.ts.map \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracle.d.ts.map b/dist/utils/object_transform/templateOracle.d.ts.map index 5b5af2ead..747583fbe 100644 --- a/dist/utils/object_transform/templateOracle.d.ts.map +++ b/dist/utils/object_transform/templateOracle.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"templateOracle.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,+BAA0B;AAS3D,wBAAgB,cAAc,CAAC,CAAC,SAAS,iBAAiB,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,GAAG,CAAC,CAanG"} \ No newline at end of file +{"version":3,"file":"templateOracle.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,+BAA0B;AAG3D;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,iBAAiB,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,GAAG,CAAC,CAanG"} \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracle.js b/dist/utils/object_transform/templateOracle.js index 8efd9bdc2..d96008793 100644 --- a/dist/utils/object_transform/templateOracle.js +++ b/dist/utils/object_transform/templateOracle.js @@ -1,6 +1,12 @@ import { buildLog } from "../logging/buildLog.js"; import { replaceInAllStrings } from "./replaceInAllStrings.js"; import _ from "lodash-es"; +/** + * It takes an oracle metadata template and builds it out with variables from a json object. + * @param json - The JSON object that you want to replace the template variables in. + * @param template - The template to use. + * @returns The template oracle. + */ export function templateOracle(json, template) { buildLog(templateOracle, "Building oracle from template..."); let jsonClone = _.cloneDeep(json); diff --git a/dist/utils/object_transform/templateOracle.js.map b/dist/utils/object_transform/templateOracle.js.map index aa64227c4..ccba5f79c 100644 --- a/dist/utils/object_transform/templateOracle.js.map +++ b/dist/utils/object_transform/templateOracle.js.map @@ -1 +1 @@ -{"version":3,"file":"templateOracle.js","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,+BAAmC;AACtD,OAAO,EAAE,mBAAmB,EAAE,iCAAuD;AAErF,OAAO,CAAC,MAAM,WAAW,CAAC;AAQ1B,MAAM,UAAU,cAAc,CAA8B,IAAO,EAAE,QAA2B;IAC9F,QAAQ,CAAC,cAAc,EAAE,kCAAkC,CAAC,CAAC;IAC7D,IAAI,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,aAAa,GAAG,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5C,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAC9C,IAAI,SAAS,CAAC,aAAa,EAAE;QAC3B,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,EAAE;YACvD,MAAM,WAAW,GAAG,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC;YACvC,QAAQ,CAAC,cAAc,EAAE,cAAc,WAAW,WAAW,YAAY,GAAG,CAAC,CAAC;YAC9E,SAAS,GAAG,mBAAmB,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file +{"version":3,"file":"templateOracle.js","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,+BAAmC;AACtD,OAAO,EAAE,mBAAmB,EAAE,iCAAuD;AAErF,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAA8B,IAAO,EAAE,QAA2B;IAC9F,QAAQ,CAAC,cAAc,EAAE,kCAAkC,CAAC,CAAC;IAC7D,IAAI,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,aAAa,GAAG,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5C,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAC9C,IAAI,SAAS,CAAC,aAAa,EAAE;QAC3B,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,EAAE;YACvD,MAAM,WAAW,GAAG,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC;YACvC,QAAQ,CAAC,cAAc,EAAE,cAAc,WAAW,WAAW,YAAY,GAAG,CAAC,CAAC;YAC9E,SAAS,GAAG,mBAAmB,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracleInfo.d.ts b/dist/utils/object_transform/templateOracleInfo.d.ts index c9cb9206d..17c6b7010 100644 --- a/dist/utils/object_transform/templateOracleInfo.d.ts +++ b/dist/utils/object_transform/templateOracleInfo.d.ts @@ -1,3 +1,8 @@ import type { IOracleYaml } from "../../yaml_in/index.js"; +/** + * Builds Oracle metadata from a template, replacing template string values where appropriate. + * @param json - The object to be mutated. + * @returns The original object with the template info removed. + */ export declare function templateOracleInfo(json: IOracleYaml): IOracleYaml; //# sourceMappingURL=templateOracleInfo.d.ts.map \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracleInfo.d.ts.map b/dist/utils/object_transform/templateOracleInfo.d.ts.map index ffe0e2e2a..4d027c1dc 100644 --- a/dist/utils/object_transform/templateOracleInfo.d.ts.map +++ b/dist/utils/object_transform/templateOracleInfo.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"templateOracleInfo.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracleInfo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,+BAA0B;AAQrD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAejE"} \ No newline at end of file +{"version":3,"file":"templateOracleInfo.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracleInfo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,+BAA0B;AAGrD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAejE"} \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracleInfo.js b/dist/utils/object_transform/templateOracleInfo.js index 15c9b4276..ab5b1d1eb 100644 --- a/dist/utils/object_transform/templateOracleInfo.js +++ b/dist/utils/object_transform/templateOracleInfo.js @@ -1,6 +1,12 @@ import { replaceInAllStrings } from "./replaceInAllStrings.js"; import _ from "lodash-es"; +/** + * Builds Oracle metadata from a template, replacing template string values where appropriate. + * @param json - The object to be mutated. + * @returns The original object with the template info removed. + */ export function templateOracleInfo(json) { + // cloning so that the original object isn't mutated let jsonClone = _.cloneDeep(json); if (jsonClone._templateInfo) { jsonClone = _.merge(jsonClone._templateInfo, jsonClone); diff --git a/dist/utils/object_transform/templateOracleInfo.js.map b/dist/utils/object_transform/templateOracleInfo.js.map index 8d6bb8ba3..6cf95d511 100644 --- a/dist/utils/object_transform/templateOracleInfo.js.map +++ b/dist/utils/object_transform/templateOracleInfo.js.map @@ -1 +1 @@ -{"version":3,"file":"templateOracleInfo.js","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracleInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iCAAuD;AAErF,OAAO,CAAC,MAAM,WAAW,CAAC;AAO1B,MAAM,UAAU,kBAAkB,CAAC,IAAiB;IAElD,IAAI,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,SAAS,CAAC,aAAa,EAAE;QAC3B,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;QACxD,IAAI,SAAS,CAAC,aAAa,EAAE;YAC3B,MAAM,YAAY,GAAG,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAC1D,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,EAAE;gBAC5C,MAAM,WAAW,GAAG,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC;gBACvC,SAAS,GAAG,mBAAmB,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;YACxE,CAAC,CAAC,CAAC;YACH,OAAO,SAAS,CAAC,aAAa,CAAC;SAChC;KACF;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file +{"version":3,"file":"templateOracleInfo.js","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracleInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iCAAuD;AAErF,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAiB;IAClD,oDAAoD;IACpD,IAAI,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,SAAS,CAAC,aAAa,EAAE;QAC3B,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;QACxD,IAAI,SAAS,CAAC,aAAa,EAAE;YAC3B,MAAM,YAAY,GAAG,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAC1D,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,EAAE;gBAC5C,MAAM,WAAW,GAAG,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC;gBACvC,SAAS,GAAG,mBAAmB,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;YACxE,CAAC,CAAC,CAAC;YACH,OAAO,SAAS,CAAC,aAAa,CAAC;SAChC;KACF;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracleTable.d.ts b/dist/utils/object_transform/templateOracleTable.d.ts index 38997226d..4c6a11d37 100644 --- a/dist/utils/object_transform/templateOracleTable.d.ts +++ b/dist/utils/object_transform/templateOracleTable.d.ts @@ -1,3 +1,8 @@ import type { IRowYaml, ITemplateTable } from "../../yaml_in/index.js"; +/** + * Given a table template object, extract the rolls and content into separate arrays and combine them into a single table. + * @param template - The template object. + * @returns A table of rows, where each row is a list of rolls and content. + */ export declare function templateOracleTable(template: ITemplateTable): IRowYaml[]; //# sourceMappingURL=templateOracleTable.d.ts.map \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracleTable.d.ts.map b/dist/utils/object_transform/templateOracleTable.d.ts.map index b1083bfe7..79cbc77e6 100644 --- a/dist/utils/object_transform/templateOracleTable.d.ts.map +++ b/dist/utils/object_transform/templateOracleTable.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"templateOracleTable.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracleTable.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,+BAA0B;AAQlE,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,cAAc,GAAG,QAAQ,EAAE,CAiBxE"} \ No newline at end of file +{"version":3,"file":"templateOracleTable.d.ts","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracleTable.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,+BAA0B;AAGlE;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,cAAc,GAAG,QAAQ,EAAE,CAiBxE"} \ No newline at end of file diff --git a/dist/utils/object_transform/templateOracleTable.js b/dist/utils/object_transform/templateOracleTable.js index 7e765f286..d8c210f37 100644 --- a/dist/utils/object_transform/templateOracleTable.js +++ b/dist/utils/object_transform/templateOracleTable.js @@ -1,6 +1,11 @@ import { extractRowContent } from "./extractRowContent.js"; import { extractRowRolls } from "./extractRowRolls.js"; import _ from "lodash-es"; +/** + * Given a table template object, extract the rolls and content into separate arrays and combine them into a single table. + * @param template - The template object. + * @returns A table of rows, where each row is a list of rolls and content. + */ export function templateOracleTable(template) { if (template.rolls.length !== template.content.length) { throw new Error("[buildTemplateTable] Arrays for template content and rolls have different lengths. Use [null, null] to represent a null roll range."); diff --git a/dist/utils/object_transform/templateOracleTable.js.map b/dist/utils/object_transform/templateOracleTable.js.map index f309dfbc4..f6b305b46 100644 --- a/dist/utils/object_transform/templateOracleTable.js.map +++ b/dist/utils/object_transform/templateOracleTable.js.map @@ -1 +1 @@ -{"version":3,"file":"templateOracleTable.js","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracleTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,+BAAqD;AACjF,OAAO,EAAE,eAAe,EAAE,6BAAmD;AAE7E,OAAO,CAAC,MAAM,WAAW,CAAC;AAO1B,MAAM,UAAU,mBAAmB,CAAC,QAAwB;IAC1D,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE;QACrD,MAAM,IAAI,KAAK,CAAC,qIAAqI,CAAC,CAAC;KACxJ;IACD,MAAM,aAAa,GAAG,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAC9C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACtB,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC;SAC/B;QACD,OAAO,CAAC,GAAG,CAAC,CAAC;IACf,CAAC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE;QAChD,MAAM,MAAM,GAAa,CAAE,GAAG,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAc,CAAC;QAC3E,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"templateOracleTable.js","sourceRoot":"","sources":["../../../src/utils/object_transform/templateOracleTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,+BAAqD;AACjF,OAAO,EAAE,eAAe,EAAE,6BAAmD;AAE7E,OAAO,CAAC,MAAM,WAAW,CAAC;AAE1B;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAwB;IAC1D,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE;QACrD,MAAM,IAAI,KAAK,CAAC,qIAAqI,CAAC,CAAC;KACxJ;IACD,MAAM,aAAa,GAAG,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAC9C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACtB,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC;SAC/B;QACD,OAAO,CAAC,GAAG,CAAC,CAAC;IACf,CAAC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE;QAChD,MAAM,MAAM,GAAa,CAAE,GAAG,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAc,CAAC;QAC3E,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/utils/process_img/cloneImages.d.ts b/dist/utils/process_img/cloneImages.d.ts index 6ff0f9778..2460cb6ec 100644 --- a/dist/utils/process_img/cloneImages.d.ts +++ b/dist/utils/process_img/cloneImages.d.ts @@ -1,2 +1,7 @@ +/** + * Copy all files from the srcRoot to the outRoot + * @param srcRoot - The path to the source directory where the images are located. + * @param outRoot - The directory where the images will be copied to. + */ export declare function cloneImages(srcRoot: string, outRoot: string): void; //# sourceMappingURL=cloneImages.d.ts.map \ No newline at end of file diff --git a/dist/utils/process_img/cloneImages.d.ts.map b/dist/utils/process_img/cloneImages.d.ts.map index 0f8a3ac30..7391f6d5c 100644 --- a/dist/utils/process_img/cloneImages.d.ts.map +++ b/dist/utils/process_img/cloneImages.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"cloneImages.d.ts","sourceRoot":"","sources":["../../../src/utils/process_img/cloneImages.ts"],"names":[],"mappings":"AAQA,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAIlE"} \ No newline at end of file +{"version":3,"file":"cloneImages.d.ts","sourceRoot":"","sources":["../../../src/utils/process_img/cloneImages.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAIlE"} \ No newline at end of file diff --git a/dist/utils/process_img/cloneImages.js b/dist/utils/process_img/cloneImages.js index cf9a90fdb..8b6888d18 100644 --- a/dist/utils/process_img/cloneImages.js +++ b/dist/utils/process_img/cloneImages.js @@ -1,6 +1,12 @@ import pkg from "fs-extra"; const { copySync } = pkg; +/** + * Copy all files from the srcRoot to the outRoot + * @param srcRoot - The path to the source directory where the images are located. + * @param outRoot - The directory where the images will be copied to. + */ export function cloneImages(srcRoot, outRoot) { + // eslint-disable-next-line no-console console.info(`[buildImages] Copying files from ${srcRoot} to ${outRoot}...`); copySync(srcRoot, outRoot, { recursive: true }); } diff --git a/dist/utils/process_img/cloneImages.js.map b/dist/utils/process_img/cloneImages.js.map index 08006cdc6..dbc30c9d8 100644 --- a/dist/utils/process_img/cloneImages.js.map +++ b/dist/utils/process_img/cloneImages.js.map @@ -1 +1 @@ -{"version":3,"file":"cloneImages.js","sourceRoot":"","sources":["../../../src/utils/process_img/cloneImages.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC;AAOzB,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,OAAe;IAE1D,OAAO,CAAC,IAAI,CAAC,oCAAoC,OAAO,OAAO,OAAO,KAAK,CAAC,CAAC;IAC7E,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file +{"version":3,"file":"cloneImages.js","sourceRoot":"","sources":["../../../src/utils/process_img/cloneImages.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC;AAEzB;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,OAAe;IAC1D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,oCAAoC,OAAO,OAAO,OAAO,KAAK,CAAC,CAAC;IAC7E,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/dist/utils/process_img/convertRasterImages.d.ts b/dist/utils/process_img/convertRasterImages.d.ts index 1ded735b6..2afdd7568 100644 --- a/dist/utils/process_img/convertRasterImages.d.ts +++ b/dist/utils/process_img/convertRasterImages.d.ts @@ -1,2 +1,7 @@ +/** + * For each file in the srcRoot directory, convert it to a webp file in the outRootWebP directory + * @param srcRoot - The root directory of the source images. + * @param outRootWebP - The output directory for the webp images. + */ export declare function convertRasterImages(srcRoot: string, outRootWebP: string): void; //# sourceMappingURL=convertRasterImages.d.ts.map \ No newline at end of file diff --git a/dist/utils/process_img/convertRasterImages.d.ts.map b/dist/utils/process_img/convertRasterImages.d.ts.map index 58ba8eff8..d55d39911 100644 --- a/dist/utils/process_img/convertRasterImages.d.ts.map +++ b/dist/utils/process_img/convertRasterImages.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"convertRasterImages.d.ts","sourceRoot":"","sources":["../../../src/utils/process_img/convertRasterImages.ts"],"names":[],"mappings":"AAcA,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAqBvE"} \ No newline at end of file +{"version":3,"file":"convertRasterImages.d.ts","sourceRoot":"","sources":["../../../src/utils/process_img/convertRasterImages.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAqBvE"} \ No newline at end of file diff --git a/dist/utils/process_img/convertRasterImages.js b/dist/utils/process_img/convertRasterImages.js index 64e24b372..50e88911e 100644 --- a/dist/utils/process_img/convertRasterImages.js +++ b/dist/utils/process_img/convertRasterImages.js @@ -3,10 +3,17 @@ import pkg from "fs-extra"; const { ensureDirSync, readFileSync } = pkg; import sharp from "sharp"; import { TypedRegEx } from "typed-regex"; +// eslint-disable-next-line no-useless-escape const filePattern = TypedRegEx("^(?.+)/(?[A-z\-0-9]+)\.(?.+?)$"); +/** + * For each file in the srcRoot directory, convert it to a webp file in the outRootWebP directory + * @param srcRoot - The root directory of the source images. + * @param outRootWebP - The output directory for the webp images. + */ export function convertRasterImages(srcRoot, outRootWebP) { const srcFiles = getAllFiles(srcRoot); srcFiles.forEach(file => { + // console.log("in:", file); const pattern = filePattern.captures(file); if (!pattern) { throw new Error(`Unable to match against pattern ${filePattern.toString()} ${file}`); @@ -14,11 +21,15 @@ export function convertRasterImages(srcRoot, outRootWebP) { const input = readFileSync(file); const oldFileName = pattern.name; const oldPath = pattern.path; + // console.log(`[convertRasterImages] Converting ${oldFileName }`); const newPath = oldPath.replaceAll(srcRoot, outRootWebP); const filePathOut = `${newPath}/${oldFileName}.webp`; + // console.log("out:", filePathOut); ensureDirSync(newPath); void sharp(input).webp() .toFile(filePathOut); + // console.log("finished:", filePathOut); }); + // console.log("finished converting raster images"); } //# sourceMappingURL=convertRasterImages.js.map \ No newline at end of file diff --git a/dist/utils/process_img/convertRasterImages.js.map b/dist/utils/process_img/convertRasterImages.js.map index f5a30fe7f..1e1219cbf 100644 --- a/dist/utils/process_img/convertRasterImages.js.map +++ b/dist/utils/process_img/convertRasterImages.js.map @@ -1 +1 @@ -{"version":3,"file":"convertRasterImages.js","sourceRoot":"","sources":["../../../src/utils/process_img/convertRasterImages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,6BAAiC;AACvD,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,MAAM,WAAW,GAAG,UAAU,CAAC,uDAAuD,CAAC,CAAC;AAOxF,MAAM,UAAU,mBAAmB,CAAC,OAAe,EAAE,WAAmB;IACtE,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAEtB,MAAM,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,mCAAmC,WAAW,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;SACtF;QACD,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QACjC,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;QACjC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;QAE7B,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACzD,MAAM,WAAW,GAAG,GAAG,OAAO,IAAI,WAAW,OAAO,CAAC;QAErD,aAAa,CAAC,OAAO,CAAC,CAAC;QACvB,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE;aACrB,MAAM,CAAC,WAAW,CAAC,CAAC;IAEzB,CAAC,CAAC,CAAC;AAEL,CAAC"} \ No newline at end of file +{"version":3,"file":"convertRasterImages.js","sourceRoot":"","sources":["../../../src/utils/process_img/convertRasterImages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,6BAAiC;AACvD,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,6CAA6C;AAC7C,MAAM,WAAW,GAAG,UAAU,CAAC,uDAAuD,CAAC,CAAC;AAExF;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAe,EAAE,WAAmB;IACtE,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACtB,4BAA4B;QAC5B,MAAM,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,mCAAmC,WAAW,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;SACtF;QACD,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QACjC,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;QACjC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;QAC7B,mEAAmE;QACnE,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACzD,MAAM,WAAW,GAAG,GAAG,OAAO,IAAI,WAAW,OAAO,CAAC;QACrD,oCAAoC;QACpC,aAAa,CAAC,OAAO,CAAC,CAAC;QACvB,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE;aACrB,MAAM,CAAC,WAAW,CAAC,CAAC;QACvB,yCAAyC;IAC3C,CAAC,CAAC,CAAC;IACH,oDAAoD;AACtD,CAAC"} \ No newline at end of file diff --git a/dist/utils/process_yaml/concatWithYamlRefs.d.ts b/dist/utils/process_yaml/concatWithYamlRefs.d.ts index 487ec8d30..e523b8f0c 100644 --- a/dist/utils/process_yaml/concatWithYamlRefs.d.ts +++ b/dist/utils/process_yaml/concatWithYamlRefs.d.ts @@ -1,5 +1,11 @@ /// import type { IYamlWithRef } from "../../yaml_in/index.js"; import fs from "fs"; +/** + * Concatenates YAML with reference objects. + * @param referencePath - The path to the directory containing the reference files. + * @param filePaths - The files to load. + * @returns A JavaScript object with the following properties: + */ export declare function concatWithYamlRefs(referencePath?: fs.PathLike, ...filePaths: fs.PathLike[]): T & IYamlWithRef; //# sourceMappingURL=concatWithYamlRefs.d.ts.map \ No newline at end of file diff --git a/dist/utils/process_yaml/concatWithYamlRefs.d.ts.map b/dist/utils/process_yaml/concatWithYamlRefs.d.ts.map index 8e34b5ff9..4f909e5e1 100644 --- a/dist/utils/process_yaml/concatWithYamlRefs.d.ts.map +++ b/dist/utils/process_yaml/concatWithYamlRefs.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"concatWithYamlRefs.d.ts","sourceRoot":"","sources":["../../../src/utils/process_yaml/concatWithYamlRefs.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,+BAA0B;AAEtD,OAAO,EAAE,MAAM,IAAI,CAAC;AAQpB,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,aAAa,GAAE,EAAE,CAAC,QAAoB,EAAE,GAAG,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,oBAQxG"} \ No newline at end of file +{"version":3,"file":"concatWithYamlRefs.d.ts","sourceRoot":"","sources":["../../../src/utils/process_yaml/concatWithYamlRefs.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,+BAA0B;AAEtD,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,aAAa,GAAE,EAAE,CAAC,QAAoB,EAAE,GAAG,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,oBAQxG"} \ No newline at end of file diff --git a/dist/utils/process_yaml/concatWithYamlRefs.js b/dist/utils/process_yaml/concatWithYamlRefs.js index 08b88cfd8..0bb9d4dab 100644 --- a/dist/utils/process_yaml/concatWithYamlRefs.js +++ b/dist/utils/process_yaml/concatWithYamlRefs.js @@ -3,6 +3,12 @@ import { loadYamlRefs } from "./loadYamlRefs.js"; import { loadYamlTemplates } from "./loadYamlTemplates.js"; import yaml from "js-yaml"; import fs from "fs"; +/** + * Concatenates YAML with reference objects. + * @param referencePath - The path to the directory containing the reference files. + * @param filePaths - The files to load. + * @returns A JavaScript object with the following properties: + */ export function concatWithYamlRefs(referencePath = REFS_PATH, ...filePaths) { const refFiles = fs.readdirSync(REFS_PATH); const refString = loadYamlRefs(referencePath); diff --git a/dist/utils/process_yaml/concatWithYamlRefs.js.map b/dist/utils/process_yaml/concatWithYamlRefs.js.map index a4895bac1..b2c6c1e24 100644 --- a/dist/utils/process_yaml/concatWithYamlRefs.js.map +++ b/dist/utils/process_yaml/concatWithYamlRefs.js.map @@ -1 +1 @@ -{"version":3,"file":"concatWithYamlRefs.js","sourceRoot":"","sources":["../../../src/utils/process_yaml/concatWithYamlRefs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iCAA4B;AAChD,OAAO,EAAE,YAAY,EAAE,0BAA4C;AACnE,OAAO,EAAE,iBAAiB,EAAE,+BAAiD;AAE7E,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;AAQpB,MAAM,UAAU,kBAAkB,CAAI,gBAA6B,SAAS,EAAE,GAAG,SAAwB;IACvG,MAAM,QAAQ,GAAkB,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAC1D,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IAC9C,MAAM,cAAc,GAAG,iBAAiB,CAAC,aAAa,CAAC,QAAQ,EAAE,GAAG,aAAa,CAAC,CAAC;IACnF,MAAM,WAAW,GAAa,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAClG,MAAM,WAAW,GAAa,CAAE,SAAS,EAAE,cAAc,EAAE,GAAG,WAAW,CAAE,CAAC;IAC5E,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAqB,CAAC;IAC3E,OAAO,UAAU,CAAC;AACpB,CAAC"} \ No newline at end of file +{"version":3,"file":"concatWithYamlRefs.js","sourceRoot":"","sources":["../../../src/utils/process_yaml/concatWithYamlRefs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iCAA4B;AAChD,OAAO,EAAE,YAAY,EAAE,0BAA4C;AACnE,OAAO,EAAE,iBAAiB,EAAE,+BAAiD;AAE7E,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAI,gBAA6B,SAAS,EAAE,GAAG,SAAwB;IACvG,MAAM,QAAQ,GAAkB,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAC1D,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IAC9C,MAAM,cAAc,GAAG,iBAAiB,CAAC,aAAa,CAAC,QAAQ,EAAE,GAAG,aAAa,CAAC,CAAC;IACnF,MAAM,WAAW,GAAa,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAClG,MAAM,WAAW,GAAa,CAAE,SAAS,EAAE,cAAc,EAAE,GAAG,WAAW,CAAE,CAAC;IAC5E,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAqB,CAAC;IAC3E,OAAO,UAAU,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/dist/utils/process_yaml/loadOracleData.d.ts b/dist/utils/process_yaml/loadOracleData.d.ts index 2d81b13ea..c9e98e836 100644 --- a/dist/utils/process_yaml/loadOracleData.d.ts +++ b/dist/utils/process_yaml/loadOracleData.d.ts @@ -4,5 +4,11 @@ import type fs from "fs"; export interface IOracleCatRoot extends IYamlWithRef { Categories: IOracleCategoryYaml[]; } +/** + * Loads the oracle YAML data from the files and merges them into a single object. + * @param referencePath - The path to the YAML file containing the references.. + * @param filePaths - The files to load. + * @returns A JSON object with the following structure: + */ export declare function loadOracleData(referencePath?: fs.PathLike, ...filePaths: fs.PathLike[]): IOracleCatRoot; //# sourceMappingURL=loadOracleData.d.ts.map \ No newline at end of file diff --git a/dist/utils/process_yaml/loadOracleData.d.ts.map b/dist/utils/process_yaml/loadOracleData.d.ts.map index 02de710d6..038cdc7ec 100644 --- a/dist/utils/process_yaml/loadOracleData.d.ts.map +++ b/dist/utils/process_yaml/loadOracleData.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"loadOracleData.d.ts","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadOracleData.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,+BAA0B;AAG3E,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACnC;AAQD,wBAAgB,cAAc,CAAC,aAAa,GAAE,EAAE,CAAC,QAAoB,EAAE,GAAG,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,kBAQjG"} \ No newline at end of file +{"version":3,"file":"loadOracleData.d.ts","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadOracleData.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,+BAA0B;AAG3E,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,aAAa,GAAE,EAAE,CAAC,QAAoB,EAAE,GAAG,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,kBAQjG"} \ No newline at end of file diff --git a/dist/utils/process_yaml/loadOracleData.js b/dist/utils/process_yaml/loadOracleData.js index c5e2ceee8..79adf8803 100644 --- a/dist/utils/process_yaml/loadOracleData.js +++ b/dist/utils/process_yaml/loadOracleData.js @@ -2,6 +2,12 @@ import { REFS_PATH } from "../../constants/index.js"; import { concatWithYamlRefs } from "./concatWithYamlRefs.js"; import deepFreezeStrict from "deep-freeze-strict"; import _ from "lodash-es"; +/** + * Loads the oracle YAML data from the files and merges them into a single object. + * @param referencePath - The path to the YAML file containing the references.. + * @param filePaths - The files to load. + * @returns A JSON object with the following structure: + */ export function loadOracleData(referencePath = REFS_PATH, ...filePaths) { const builtData = concatWithYamlRefs(referencePath, ...filePaths); const result = { diff --git a/dist/utils/process_yaml/loadOracleData.js.map b/dist/utils/process_yaml/loadOracleData.js.map index ddb90f166..f8d3a931c 100644 --- a/dist/utils/process_yaml/loadOracleData.js.map +++ b/dist/utils/process_yaml/loadOracleData.js.map @@ -1 +1 @@ -{"version":3,"file":"loadOracleData.js","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadOracleData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,iCAA4B;AAChD,OAAO,EAAE,kBAAkB,EAAE,gCAAkD;AAE/E,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,CAAC,MAAM,WAAW,CAAC;AAa1B,MAAM,UAAU,cAAc,CAAC,gBAA6B,SAAS,EAAE,GAAG,SAAwB;IAChG,MAAM,SAAS,GAAG,kBAAkB,CAAsC,aAAa,EAAE,GAAG,SAAS,CAAC,CAAC;IACvG,MAAM,MAAM,GAAmB;QAC7B,KAAK,EAAE,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC;QACxC,UAAU,EAAE,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC;QAClD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;KAChF,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"loadOracleData.js","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadOracleData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,iCAA4B;AAChD,OAAO,EAAE,kBAAkB,EAAE,gCAAkD;AAE/E,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,CAAC,MAAM,WAAW,CAAC;AAO1B;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,gBAA6B,SAAS,EAAE,GAAG,SAAwB;IAChG,MAAM,SAAS,GAAG,kBAAkB,CAAsC,aAAa,EAAE,GAAG,SAAS,CAAC,CAAC;IACvG,MAAM,MAAM,GAAmB;QAC7B,KAAK,EAAE,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC;QACxC,UAAU,EAAE,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC;QAClD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;KAChF,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/dist/utils/process_yaml/loadYamlRefs.d.ts b/dist/utils/process_yaml/loadYamlRefs.d.ts index 68a095d4d..31a3e00be 100644 --- a/dist/utils/process_yaml/loadYamlRefs.d.ts +++ b/dist/utils/process_yaml/loadYamlRefs.d.ts @@ -1,4 +1,10 @@ /// import fs from "fs"; +/** + * It loads all the yaml files in the refs folder and joins them into a single string. + * @param path - The path to the directory containing the YAML files. + * @returns A string of YAML that is the concatenation of the contents of the files in the `index` + * directory. + */ export declare function loadYamlRefs(path?: fs.PathLike): string; //# sourceMappingURL=loadYamlRefs.d.ts.map \ No newline at end of file diff --git a/dist/utils/process_yaml/loadYamlRefs.d.ts.map b/dist/utils/process_yaml/loadYamlRefs.d.ts.map index 8214df4ea..2ac8576e5 100644 --- a/dist/utils/process_yaml/loadYamlRefs.d.ts.map +++ b/dist/utils/process_yaml/loadYamlRefs.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"loadYamlRefs.d.ts","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadYamlRefs.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AAQpB,wBAAgB,YAAY,CAAC,IAAI,GAAE,EAAE,CAAC,QAAoB,UAQzD"} \ No newline at end of file +{"version":3,"file":"loadYamlRefs.d.ts","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadYamlRefs.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,GAAE,EAAE,CAAC,QAAoB,UAQzD"} \ No newline at end of file diff --git a/dist/utils/process_yaml/loadYamlRefs.js b/dist/utils/process_yaml/loadYamlRefs.js index d0ac7b377..e4b774596 100644 --- a/dist/utils/process_yaml/loadYamlRefs.js +++ b/dist/utils/process_yaml/loadYamlRefs.js @@ -1,8 +1,15 @@ import { REFS_PATH } from "../../constants/index.js"; import fs from "fs"; +/** + * It loads all the yaml files in the refs folder and joins them into a single string. + * @param path - The path to the directory containing the YAML files. + * @returns A string of YAML that is the concatenation of the contents of the files in the `index` + * directory. + */ export function loadYamlRefs(path = REFS_PATH) { const files = fs.readdirSync(path).filter(item => item.match(".yaml")) .map(item => path.toString() + item); + // console.log(refFiles); let refString = files.map(file => fs.readFileSync(file, { encoding: "utf-8" })).join("\n"); refString = refString.replaceAll(/^/gim, " "); refString = "_refs:\n" + refString; diff --git a/dist/utils/process_yaml/loadYamlRefs.js.map b/dist/utils/process_yaml/loadYamlRefs.js.map index 6a5463870..637e2e7ed 100644 --- a/dist/utils/process_yaml/loadYamlRefs.js.map +++ b/dist/utils/process_yaml/loadYamlRefs.js.map @@ -1 +1 @@ -{"version":3,"file":"loadYamlRefs.js","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadYamlRefs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iCAA4B;AAChD,OAAO,EAAE,MAAM,IAAI,CAAC;AAQpB,MAAM,UAAU,YAAY,CAAC,OAAoB,SAAS;IACxD,MAAM,KAAK,GAAkB,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAA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C;IAC/C,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACnC,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/dist/utils/process_yaml/loadYamlTemplates.d.ts b/dist/utils/process_yaml/loadYamlTemplates.d.ts index aeb5cac93..306dc1de4 100644 --- a/dist/utils/process_yaml/loadYamlTemplates.d.ts +++ b/dist/utils/process_yaml/loadYamlTemplates.d.ts @@ -1,4 +1,9 @@ /// import fs from "fs"; +/** + * It loads all the yaml files in the templates directory and joins them into a single string. + * @param path - The path to the directory containing the YAML files. + * @returns A string of YAML that can be parsed by the `yaml` module. + */ export declare function loadYamlTemplates(path?: fs.PathLike): string; //# sourceMappingURL=loadYamlTemplates.d.ts.map \ No newline at end of file diff --git a/dist/utils/process_yaml/loadYamlTemplates.d.ts.map b/dist/utils/process_yaml/loadYamlTemplates.d.ts.map index 074b60536..e671e8014 100644 --- a/dist/utils/process_yaml/loadYamlTemplates.d.ts.map +++ b/dist/utils/process_yaml/loadYamlTemplates.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"loadYamlTemplates.d.ts","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadYamlTemplates.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AAOpB,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,EAAE,CAAC,QAA+C,UAOzF"} \ No newline at end of file +{"version":3,"file":"loadYamlTemplates.d.ts","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadYamlTemplates.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,EAAE,CAAC,QAA+C,UAOzF"} \ No newline at end of file diff --git a/dist/utils/process_yaml/loadYamlTemplates.js b/dist/utils/process_yaml/loadYamlTemplates.js index 6edc32bf1..d42b8e885 100644 --- a/dist/utils/process_yaml/loadYamlTemplates.js +++ b/dist/utils/process_yaml/loadYamlTemplates.js @@ -1,5 +1,10 @@ import { REFS_PATH } from "../../constants/index.js"; import fs from "fs"; +/** + * It loads all the yaml files in the templates directory and joins them into a single string. + * @param path - The path to the directory containing the YAML files. + * @returns A string of YAML that can be parsed by the `yaml` module. + */ export function loadYamlTemplates(path = REFS_PATH.toString() + "/templates/") { const files = fs.readdirSync(path).filter(item => item.match(".yaml")) .map(item => path.toString() + item); diff --git a/dist/utils/process_yaml/loadYamlTemplates.js.map b/dist/utils/process_yaml/loadYamlTemplates.js.map index fbd3b5ba8..cd094370d 100644 --- a/dist/utils/process_yaml/loadYamlTemplates.js.map +++ b/dist/utils/process_yaml/loadYamlTemplates.js.map @@ -1 +1 @@ -{"version":3,"file":"loadYamlTemplates.js","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadYamlTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iCAA4B;AAChD,OAAO,EAAE,MAAM,IAAI,CAAC;AAOpB,MAAM,UAAU,iBAAiB,CAAC,OAAoB,SAAS,CAAC,QAAQ,EAAE,GAAG,aAAa;IACxF,MAAM,KAAK,GAAkB,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;SAClF,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC;IACvC,IAAI,cAAc,GAAW,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxG,cAAc,GAAG,cAAc,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACzD,cAAc,GAAG,eAAe,GAAG,cAAc,CAAC;IAClD,OAAO,cAAc,CAAC;AACxB,CAAC"} \ No newline at end of file +{"version":3,"file":"loadYamlTemplates.js","sourceRoot":"","sources":["../../../src/utils/process_yaml/loadYamlTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iCAA4B;AAChD,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAoB,SAAS,CAAC,QAAQ,EAAE,GAAG,aAAa;IACxF,MAAM,KAAK,GAAkB,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;SAClF,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC;IACvC,IAAI,cAAc,GAAW,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxG,cAAc,GAAG,cAAc,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACzD,cAAc,GAAG,eAAe,GAAG,cAAc,CAAC;IAClD,OAAO,cAAc,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/dist/utils/types/PartialBy.d.ts b/dist/utils/types/PartialBy.d.ts index 7fc3acc74..90b5a5dd4 100644 --- a/dist/utils/types/PartialBy.d.ts +++ b/dist/utils/types/PartialBy.d.ts @@ -1,3 +1,7 @@ +/** + * Makes a type where K is nullable. + * + */ declare type PartialBy = Omit & Partial>; export { PartialBy }; //# sourceMappingURL=PartialBy.d.ts.map \ No newline at end of file diff --git a/dist/utils/types/PartialBy.d.ts.map b/dist/utils/types/PartialBy.d.ts.map index 71c36075a..5d39266c4 100644 --- a/dist/utils/types/PartialBy.d.ts.map +++ b/dist/utils/types/PartialBy.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"PartialBy.d.ts","sourceRoot":"","sources":["../../../src/utils/types/PartialBy.ts"],"names":[],"mappings":"AAIA,aAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"PartialBy.d.ts","sourceRoot":"","sources":["../../../src/utils/types/PartialBy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,aAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/utils/types/PartialExcept.d.ts b/dist/utils/types/PartialExcept.d.ts index 72992290b..499c8296a 100644 --- a/dist/utils/types/PartialExcept.d.ts +++ b/dist/utils/types/PartialExcept.d.ts @@ -1,4 +1,8 @@ import type { RequireKey } from "./RequireKey.js"; +/** + * Make all properties of T nullable except for K, which is required. + * + */ declare type PartialExcept = RequireKey<{ [P in keyof T]?: T[P]; }, K>; diff --git a/dist/utils/types/PartialExcept.d.ts.map b/dist/utils/types/PartialExcept.d.ts.map index 203a550b5..89873b382 100644 --- a/dist/utils/types/PartialExcept.d.ts.map +++ b/dist/utils/types/PartialExcept.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"PartialExcept.d.ts","sourceRoot":"","sources":["../../../src/utils/types/PartialExcept.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,wBAAmC;AAM7D,aAAK,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,UAAU,CAAC;KACnD,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACtB,EAAE,CAAC,CAAC,CAAC;AAEN,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"PartialExcept.d.ts","sourceRoot":"","sources":["../../../src/utils/types/PartialExcept.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,wBAAmC;AAE7D;;;GAGG;AACH,aAAK,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,UAAU,CAAC;KACnD,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACtB,EAAE,CAAC,CAAC,CAAC;AAEN,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/utils/types/RequireKey.d.ts b/dist/utils/types/RequireKey.d.ts index 6efd1bdcc..1cdf05779 100644 --- a/dist/utils/types/RequireKey.d.ts +++ b/dist/utils/types/RequireKey.d.ts @@ -1,3 +1,6 @@ +/** + * Generic type: require specific keys to be NonNullable. + */ export declare type RequireKey = T & { [P in K]-?: NonNullable; }; diff --git a/dist/utils/types/RequireKey.d.ts.map b/dist/utils/types/RequireKey.d.ts.map index 09f755e8c..454d9139e 100644 --- a/dist/utils/types/RequireKey.d.ts.map +++ b/dist/utils/types/RequireKey.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"RequireKey.d.ts","sourceRoot":"","sources":["../../../src/utils/types/RequireKey.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG;KAChD,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9B,CAAC"} \ No newline at end of file +{"version":3,"file":"RequireKey.d.ts","sourceRoot":"","sources":["../../../src/utils/types/RequireKey.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG;KAChD,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9B,CAAC"} \ No newline at end of file diff --git a/dist/utils/types/Stub.d.ts b/dist/utils/types/Stub.d.ts index fb3b337ad..2ee18ecd1 100644 --- a/dist/utils/types/Stub.d.ts +++ b/dist/utils/types/Stub.d.ts @@ -1,5 +1,13 @@ import type { PartialBy } from "./PartialBy.js"; import type { PartialExcept } from "./PartialExcept.js"; +/** + * Make a stub of T where ReqK is required, OmitK is omitted, and all other keys are optional. + * + */ export declare type StubExcept = Omit, OmitKey>; +/** + * Make a stub of T where PartialKey is nullable, OmitK is omitted, and all other keys are required. + * + */ export declare type StubBy = Omit, OmitKey>; //# sourceMappingURL=Stub.d.ts.map \ No newline at end of file diff --git a/dist/utils/types/Stub.d.ts.map b/dist/utils/types/Stub.d.ts.map index 485377b38..9a11a4324 100644 --- a/dist/utils/types/Stub.d.ts.map +++ b/dist/utils/types/Stub.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Stub.d.ts","sourceRoot":"","sources":["../../../src/utils/types/Stub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAkC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,2BAAsC;AAMnE,oBAAY,UAAU,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,CAAC,EAAE,OAAO,SAAS,MAAM,GAAG,GAAC,EAAE,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC;AAM1H,oBAAY,MAAM,CAAC,CAAC,EAAE,UAAU,SAAS,MAAM,CAAC,EAAE,OAAO,SAAS,MAAM,GAAG,GAAC,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"Stub.d.ts","sourceRoot":"","sources":["../../../src/utils/types/Stub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAkC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,2BAAsC;AAEnE;;;GAGG;AACH,oBAAY,UAAU,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,CAAC,EAAE,OAAO,SAAS,MAAM,GAAG,GAAC,EAAE,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC;AAE1H;;;GAGG;AACH,oBAAY,MAAM,CAAC,CAAC,EAAE,UAAU,SAAS,MAAM,CAAC,EAAE,OAAO,SAAS,MAAM,GAAG,GAAC,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/utils/uniqueStatArrays.d.ts b/dist/utils/uniqueStatArrays.d.ts index 69d5f0130..5af13f88f 100644 --- a/dist/utils/uniqueStatArrays.d.ts +++ b/dist/utils/uniqueStatArrays.d.ts @@ -1,3 +1,12 @@ +/** + * Given an array of items, return an array of all unique pairs of items + * @param items - An array of items to pair. + * @returns An array of arrays. + */ export declare function uniquePairs(...items: Array): [T, T][]; +/** + * Given a list of stats, return a list of unique pairs of stats, and a list of unique triads of stats + * @returns An array of objects, each of which has a statRecord property. + */ export declare function uniqueStatArrays(): void[]; //# sourceMappingURL=uniqueStatArrays.d.ts.map \ No newline at end of file diff --git a/dist/utils/uniqueStatArrays.d.ts.map b/dist/utils/uniqueStatArrays.d.ts.map index b24fd9712..ad2923809 100644 --- a/dist/utils/uniqueStatArrays.d.ts.map +++ b/dist/utils/uniqueStatArrays.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"uniqueStatArrays.d.ts","sourceRoot":"","sources":["../../src/utils/uniqueStatArrays.ts"],"names":[],"mappings":"AAQA,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,YAehD;AAMD,wBAAgB,gBAAgB,WAgB/B"} \ No newline at end of file +{"version":3,"file":"uniqueStatArrays.d.ts","sourceRoot":"","sources":["../../src/utils/uniqueStatArrays.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,YAehD;AACD;;;GAGG;AAEH,wBAAgB,gBAAgB,WAgB/B"} \ No newline at end of file diff --git a/dist/utils/uniqueStatArrays.js b/dist/utils/uniqueStatArrays.js index dd547fbee..dde99550a 100644 --- a/dist/utils/uniqueStatArrays.js +++ b/dist/utils/uniqueStatArrays.js @@ -1,4 +1,9 @@ const stats = ["Edge", "Iron", "Heart", "Shadow", "Wits"]; +/** + * Given an array of items, return an array of all unique pairs of items + * @param items - An array of items to pair. + * @returns An array of arrays. + */ export function uniquePairs(...items) { const allPairs = []; items.forEach(item1 => items.forEach(item2 => { @@ -6,12 +11,17 @@ export function uniquePairs(...items) { const newPair = [item1, item2].sort(); const matchingPairs = allPairs.some((oldPair) => oldPair.every((item, index) => item === newPair[index])); if (matchingPairs === false) { + // if (matchingPairs.length === 0) { allPairs.push(newPair); } } })); return allPairs; } +/** + * Given a list of stats, return a list of unique pairs of stats, and a list of unique triads of stats + * @returns An array of objects, each of which has a statRecord property. + */ export function uniqueStatArrays() { const statPairs = uniquePairs(...stats); const statTriads = []; diff --git a/dist/utils/uniqueStatArrays.js.map b/dist/utils/uniqueStatArrays.js.map index 8395d9f26..11e6c445c 100644 --- a/dist/utils/uniqueStatArrays.js.map +++ b/dist/utils/uniqueStatArrays.js.map @@ -1 +1 @@ -{"version":3,"file":"uniqueStatArrays.js","sourceRoot":"","sources":["../../src/utils/uniqueStatArrays.ts"],"names":[],"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Q,CAAC;AAClB,CAAC;AACD;;;GAGG;AAEH,MAAM,UAAU,gBAAgB;IAC9B,MAAM,SAAS,GAAG,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC;IACxC,MAAM,UAAU,GAAsC,EAAE,CAAC;IACzD,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACvB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACnB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBACxB,UAAU,CAAC,IAAI,CAAC,CAAE,IAAI,EAAE,IAAI,CAAE,CAAC,CAAC;aACjC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QACnC,MAAM,UAAU,GAA2B,EAAE,CAAC;QAC9C,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACzB,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC5B,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC;AAED,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/utils/validateColor.d.ts b/dist/utils/validateColor.d.ts index ab0664f31..5e8923d8f 100644 --- a/dist/utils/validateColor.d.ts +++ b/dist/utils/validateColor.d.ts @@ -1,2 +1,7 @@ +/** + * It checks if the string is a valid hex color. + * @param str - The string to be validated. + * @returns A boolean value. + */ export declare function validateColor(str: string): boolean; //# sourceMappingURL=validateColor.d.ts.map \ No newline at end of file diff --git a/dist/utils/validateColor.d.ts.map b/dist/utils/validateColor.d.ts.map index c06e975ca..db6f28400 100644 --- a/dist/utils/validateColor.d.ts.map +++ b/dist/utils/validateColor.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"validateColor.d.ts","sourceRoot":"","sources":["../../src/utils/validateColor.ts"],"names":[],"mappings":"AAMA,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,WAExC"} \ No newline at end of file +{"version":3,"file":"validateColor.d.ts","sourceRoot":"","sources":["../../src/utils/validateColor.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,WAExC"} \ No newline at end of file diff --git a/dist/utils/validateColor.js b/dist/utils/validateColor.js index 67be2944d..0a7ced569 100644 --- a/dist/utils/validateColor.js +++ b/dist/utils/validateColor.js @@ -1,3 +1,8 @@ +/** + * It checks if the string is a valid hex color. + * @param str - The string to be validated. + * @returns A boolean value. + */ export function validateColor(str) { return RegExp(/#?[0-9A-Fa-f]{6}/g).test(str); } diff --git a/dist/utils/validateColor.js.map b/dist/utils/validateColor.js.map index 20fa6ea35..06db694f0 100644 --- a/dist/utils/validateColor.js.map +++ b/dist/utils/validateColor.js.map @@ -1 +1 @@ -{"version":3,"file":"validateColor.js","sourceRoot":"","sources":["../../src/utils/validateColor.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,OAAO,MAAM,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file +{"version":3,"file":"validateColor.js","sourceRoot":"","sources":["../../src/utils/validateColor.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,OAAO,MAAM,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file diff --git a/dist/utils/validation/enumHas.d.ts b/dist/utils/validation/enumHas.d.ts index 8f9814008..b90c87e19 100644 --- a/dist/utils/validation/enumHas.d.ts +++ b/dist/utils/validation/enumHas.d.ts @@ -1,3 +1,9 @@ import type { EnumLike } from "../types/EnumLike.js"; +/** + * Check if an enum has a specific value. Useful mainly in situations where typescript-is shouldn't be invoked, for example while debugging via ts-node or ttypescript. + * @param enumeration - The enum object + * @param str - The string to search for. + * @returns True if the value is included. False if not. + */ export declare function enumHas(enumeration: T, str: string): boolean; //# sourceMappingURL=enumHas.d.ts.map \ No newline at end of file diff --git a/dist/utils/validation/enumHas.d.ts.map b/dist/utils/validation/enumHas.d.ts.map index 48203b84b..fde0b21ba 100644 --- a/dist/utils/validation/enumHas.d.ts.map +++ b/dist/utils/validation/enumHas.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"enumHas.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/enumHas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAiC;AAQzD,wBAAgB,OAAO,CAAC,CAAC,SAAS,QAAQ,EAAE,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,WAEtE"} \ No newline at end of file +{"version":3,"file":"enumHas.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/enumHas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAiC;AAEzD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,QAAQ,EAAE,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,WAEtE"} \ No newline at end of file diff --git a/dist/utils/validation/enumHas.js b/dist/utils/validation/enumHas.js index 34661b4da..d54fc3b72 100644 --- a/dist/utils/validation/enumHas.js +++ b/dist/utils/validation/enumHas.js @@ -1,3 +1,9 @@ +/** + * Check if an enum has a specific value. Useful mainly in situations where typescript-is shouldn't be invoked, for example while debugging via ts-node or ttypescript. + * @param enumeration - The enum object + * @param str - The string to search for. + * @returns True if the value is included. False if not. + */ export function enumHas(enumeration, str) { return Object.values(enumeration).includes(str); } diff --git a/dist/utils/validation/enumHas.js.map b/dist/utils/validation/enumHas.js.map index 6aadb9f8a..6336d9a4a 100644 --- a/dist/utils/validation/enumHas.js.map +++ b/dist/utils/validation/enumHas.js.map @@ -1 +1 @@ -{"version":3,"file":"enumHas.js","sourceRoot":"","sources":["../../../src/utils/validation/enumHas.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,OAAO,CAAqB,WAAc,EAAE,GAAW;IACrE,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file +{"version":3,"file":"enumHas.js","sourceRoot":"","sources":["../../../src/utils/validation/enumHas.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAqB,WAAc,EAAE,GAAW;IACrE,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/dist/utils/validation/validateRollTemplate.d.ts b/dist/utils/validation/validateRollTemplate.d.ts index 2500132ae..67d2f5ebf 100644 --- a/dist/utils/validation/validateRollTemplate.d.ts +++ b/dist/utils/validation/validateRollTemplate.d.ts @@ -1,4 +1,15 @@ import type { IHasRollTemplate, MdString, RollTemplate, RollTemplateString } from "../../json_out/index.js"; +/** + * It validates that the RollTemplate object has the same keys as the parent object, and validates each individual roll template string. + * @param parent - The parent object that the template is being validated against. + * @param templateObj - RollTemplate + * @returns The original object as the validated type. + */ export declare function validateRollTemplate>(parent: T, templateObj: RollTemplate): RollTemplate; +/** + * It takes a string and returns true if it's a valid roll template string + * @param str - The string to validate. + * @returns A boolean indicating whether the string is valid. + */ export declare function validateRollTemplateString(str: MdString): RollTemplateString; //# sourceMappingURL=validateRollTemplate.d.ts.map \ No newline at end of file diff --git a/dist/utils/validation/validateRollTemplate.d.ts.map b/dist/utils/validation/validateRollTemplate.d.ts.map index bc21f1d7f..453f17ffb 100644 --- a/dist/utils/validation/validateRollTemplate.d.ts.map +++ b/dist/utils/validation/validateRollTemplate.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"validateRollTemplate.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/validateRollTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAiB,YAAY,EAAE,kBAAkB,EAAE,gCAA2B;AAetH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,kCAgB9H;AAOD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,QAAQ,sBAWvD"} \ No newline at end of file +{"version":3,"file":"validateRollTemplate.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/validateRollTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAiB,YAAY,EAAE,kBAAkB,EAAE,gCAA2B;AAStH;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,kCAgB9H;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,QAAQ,sBAWvD"} \ No newline at end of file diff --git a/dist/utils/validation/validateRollTemplate.js b/dist/utils/validation/validateRollTemplate.js index f349030fd..6a6d1164b 100644 --- a/dist/utils/validation/validateRollTemplate.js +++ b/dist/utils/validation/validateRollTemplate.js @@ -2,20 +2,36 @@ import { badJsonError } from "../logging/badJsonError.js"; import _ from "lodash-es"; import { TypedRegEx } from "typed-regex"; import { is } from "typescript-is"; +// eslint-disable-next-line no-useless-escape const rollTplPattern = TypedRegEx("\$\{\{(?.*?)\}\}", "g"); +/** + * It validates that the RollTemplate object has the same keys as the parent object, and validates each individual roll template string. + * @param parent - The parent object that the template is being validated against. + * @param templateObj - RollTemplate + * @returns The original object as the validated type. + */ export function validateRollTemplate(parent, templateObj) { + // FIXME: smarted subtable template handling. _.forEach(templateObj, (rollTplData, key) => { if (!parent[key]) { + // console.info(parent); throw badJsonError(validateRollTemplate, templateObj, `RollTemplate key '${key}' doesn't exist on its parent object. This is necessary so that a placeholder string is provided.`); } if (rollTplData) { + // console.log("validating template data", rollTplData); _.forEach(rollTplData, (v, k) => { + // console.log("validating string", v); validateRollTemplateString(v); }); } }); return templateObj; } +/** + * It takes a string and returns true if it's a valid roll template string + * @param str - The string to validate. + * @returns A boolean indicating whether the string is valid. + */ export function validateRollTemplateString(str) { if (typeof str !== "string") { throw badJsonError(validateRollTemplateString, str, "Expected a string"); diff --git a/dist/utils/validation/validateRollTemplate.js.map b/dist/utils/validation/validateRollTemplate.js.map index 5bcb9bb81..308038361 100644 --- a/dist/utils/validation/validateRollTemplate.js.map +++ b/dist/utils/validation/validateRollTemplate.js.map @@ -1 +1 @@ -{"version":3,"file":"validateRollTemplate.js","sourceRoot":"","sources":["../../../src/utils/validation/validateRollTemplate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mCAAuC;AAC9D,OAAO,CAAC,MAAM,WAAW,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAGnC,MAAM,cAAc,GAAG,UAAU,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC;AAQ/D,MAAM,UAAU,oBAAoB,CAAqC,MAAS,EAAE,WAA2C;IAE7H,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,EAAE;QAC1C,IAAI,CAAC,MAAM,CAAC,GAAc,CAAC,EAAE;YAE3B,MAAM,YAAY,CAAC,oBAAoB,EAAE,WAAW,EAAE,qBAAqB,GAAG,mGAAmG,CAAC,CAAC;SACp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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8MAAC,EAAE;YAC/B,MAAM,YAAY,CAAC,0BAA0B,EAAE,OAAO,EAAE,4CAA4C,CAAC,CAAC;SACvG;IACH,CAAC,CAAC,CAAC;IACH,OAAO,GAAyB,CAAC;AACnC,CAAC"} \ No newline at end of file +{"version":3,"file":"validateRollTemplate.js","sourceRoot":"","sources":["../../../src/utils/validation/validateRollTemplate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mCAAuC;AAC9D,OAAO,CAAC,MAAM,WAAW,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAEnC,6CAA6C;AAC7C,MAAM,cAAc,GAAG,UAAU,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAqC,MAAS,EAAE,WAA2C;IAC7H,6CAA6C;IAC7C,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,EAAE;QAC1C,IAAI,CAAC,MAAM,CAAC,GAAc,CAAC,EAAE;YAC3B,wBAAwB;YACxB,MAAM,YAAY,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8MAAC,EAAE;YAC/B,MAAM,YAAY,CAAC,0BAA0B,EAAE,OAAO,EAAE,4CAA4C,CAAC,CAAC;SACvG;IACH,CAAC,CAAC,CAAC;IACH,OAAO,GAAyB,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/dist/utils/validation/validateTable.d.ts b/dist/utils/validation/validateTable.d.ts index 41604196c..6f72aebdd 100644 --- a/dist/utils/validation/validateTable.d.ts +++ b/dist/utils/validation/validateTable.d.ts @@ -1,3 +1,9 @@ import type { IRow } from "../../json_out/index.js"; +/** + * It validates a table of dice rolls. + * @param requireUniqueResults - If true, the table must have unique results. + * @param requireAllD100 - If true, the sum of all the dice ranges must be 100. + * @returns A boolean indicating whether the table is valid. + */ export declare function validateTable(table: IRow[], requireUniqueResults?: boolean, requireAllD100?: boolean): boolean; //# sourceMappingURL=validateTable.d.ts.map \ No newline at end of file diff --git a/dist/utils/validation/validateTable.d.ts.map b/dist/utils/validation/validateTable.d.ts.map index b75bfe21f..40f16d53d 100644 --- a/dist/utils/validation/validateTable.d.ts.map +++ b/dist/utils/validation/validateTable.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"validateTable.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/validateTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA2B;AAS/C,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,oBAAoB,UAAO,EAAE,cAAc,UAAO,GAAI,OAAO,CAmDzG"} \ No newline at end of file +{"version":3,"file":"validateTable.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/validateTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA2B;AAG/C;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,oBAAoB,UAAO,EAAE,cAAc,UAAO,GAAI,OAAO,CAmDzG"} \ No newline at end of file diff --git a/dist/utils/validation/validateTable.js b/dist/utils/validation/validateTable.js index 5cde98622..3bd87932a 100644 --- a/dist/utils/validation/validateTable.js +++ b/dist/utils/validation/validateTable.js @@ -1,4 +1,10 @@ import { badJsonError } from "../logging/badJsonError.js"; +/** + * It validates a table of dice rolls. + * @param requireUniqueResults - If true, the table must have unique results. + * @param requireAllD100 - If true, the sum of all the dice ranges must be 100. + * @returns A boolean indicating whether the table is valid. + */ export function validateTable(table, requireUniqueResults = true, requireAllD100 = true) { if (!Array.isArray(table)) { throw badJsonError(validateTable, table, "Table is not an array."); @@ -14,6 +20,7 @@ export function validateTable(table, requireUniqueResults = true, requireAllD100 if (typeof floor === "number" && typeof ceiling === "number") { const lastCeiling = i > 0 ? table[i - 1].Ceiling : 1; const errPrefix = `[validateTable] Invalid row at index ${i}:`; + // if (requireUniqueResults) { resultStrings.add(currentRow.Result); } if (i === 0 && floor !== 1) { throw new Error(`${errPrefix} first row must have a floor of 1\n${JSON.stringify(table, undefined, 2)}`); } diff --git a/dist/utils/validation/validateTable.js.map b/dist/utils/validation/validateTable.js.map index d23fe6953..2513e6d57 100644 --- a/dist/utils/validation/validateTable.js.map +++ b/dist/utils/validation/validateTable.js.map @@ -1 +1 @@ -{"version":3,"file":"validateTable.js","sourceRoot":"","sources":["../../../src/utils/validation/validateTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mCAAuC;AAQ9D,MAAM,UAAU,aAAa,CAAC,KAAa,EAAE,oBAAoB,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI;IAC7F,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACzB,MAAM,YAAY,CAAC,aAAa,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC;KACpE;IACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACpB,MAAM,YAAY,CAAC,aAAa,EAAE,KAAK,EAAE,sCAAsC,CAAC,CAAC;KAClF;IACD,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,MAAM,aAAa,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC7B,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QACjC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC5D,MAAM,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;YAErD,MAAM,SAAS,GAAG,wCAAwC,CAAC,GAAG,CAAC;YAE/D,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE;gBAC1B,MAAM,IAAI,KAAK,CAAC,GAAG,SAAS,sCA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C,EAAE;gBACtB,OAAO,iBAAiB,CAAC,aAAa,CAAC,CAAC;aACzC;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,IAAI,KAAK,CAAC,8CAA8C,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,CAAE,CAAC;KACjG;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file +{"version":3,"file":"validateTable.js","sourceRoot":"","sources":["../../../src/utils/validation/validateTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mCAAuC;AAE9D;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,KAAa,EAAE,oBAAoB,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI;IAC7F,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACzB,MAAM,YAAY,CAAC,aAAa,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC;KACpE;IACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACpB,MAAM,YAAY,CAAC,aAAa,EAAE,KAAK,EAAE,sCAAsC,CAAC,CAAC;KAClF;IACD,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,MAAM,aAAa,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC7B,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QACjC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC5D,MAAM,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;YA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,CAAC,GAAG,CAAC,EAAE;YAC1B,MAAM,aAAa,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC;YAC5E,IAAI,aAAa,GAAG,CAAC,CAAC,EAAE;gBACtB,OAAO,iBAAiB,CAAC,aAAa,CAAC,CAAC;aACzC;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,IAAI,KAAK,CAAC,8CAA8C,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,CAAE,CAAC;KACjG;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/markdown/oracles.md b/markdown/oracles.md index c1fde8128..0ca7d0ab6 100644 --- a/markdown/oracles.md +++ b/markdown/oracles.md @@ -421,7 +421,7 @@ Roll | Result Given and family names are presented as a pair, so you may roll once for both or twice to mix-and-match. You can also try reversing given and family names, or use either independently as a standalone name. If you’d like to give a character a callsign, which are the monikers used by spacers, you may roll separately or take the one provided for your rolled name. -Roll | Given Name | Family Name | Callsign +Roll | Given_Name | Family_Name | Callsign :---:|------------|-------------|------------ 1 | Akim | Kuzmin | Albatross 2 | Alex | Durant | Angler @@ -1171,7 +1171,7 @@ Roll | Result ### Type (by Location) -Planetside | Orbital | Deep Space | Result +Planetside | Orbital | Deep_Space | Result :---------:|:-------:|:----------:|----------- 1–25 | 1–40 | 1–75 | Starship 26–100 | 41–100 | 76–100 | Settlement diff --git a/markdown/oracles/characters.md b/markdown/oracles/characters.md index 6afa5d7eb..11e5e0335 100644 --- a/markdown/oracles/characters.md +++ b/markdown/oracles/characters.md @@ -272,7 +272,7 @@ Roll | Result Given and family names are presented as a pair, so you may roll once for both or twice to mix-and-match. You can also try reversing given and family names, or use either independently as a standalone name. If you’d like to give a character a callsign, which are the monikers used by spacers, you may roll separately or take the one provided for your rolled name. -Roll | Given Name | Family Name | Callsign +Roll | Given_Name | Family_Name | Callsign :---:|------------|-------------|------------ 1 | Akim | Kuzmin | Albatross 2 | Alex | Durant | Angler diff --git a/markdown/oracles/derelicts.md b/markdown/oracles/derelicts.md index 317a41313..6a9a63e68 100644 --- a/markdown/oracles/derelicts.md +++ b/markdown/oracles/derelicts.md @@ -12,7 +12,7 @@ Roll | Result ## Type (by Location) -Planetside | Orbital | Deep Space | Result +Planetside | Orbital | Deep_Space | Result :---------:|:-------:|:----------:|----------- 1–25 | 1–40 | 1–75 | Starship 26–100 | 41–100 | 76–100 | Settlement diff --git a/tsconfig.json b/tsconfig.json index 4477e04f7..d5944b74c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -76,7 +76,7 @@ "outDir": "dist", "rootDir": "src", "allowJs": true, - "removeComments": true, + "removeComments": false, "resolveJsonModule": true, "allowUnreachableCode": false, "declaration": true,