Grabbed dndbeyond's source code
``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export const ACTIONS_SET = 'character.ACTIONS_SET';
|
||||
export const ACTIONS_SET_COMMIT = 'character.ACTIONS_SET_COMMIT';
|
||||
export const ACTION_USE_SET = 'character.ACTION_USE_SET';
|
||||
export const ACTION_USE_SET_COMMIT = 'character.ACTION_USE_SET_COMMIT';
|
||||
export const ACTION_CUSTOMIZATIONS_DELETE = 'character.ACTION_CUSTOMIZATIONS_DELETE';
|
||||
export const CUSTOM_ACTION_CREATE = 'character.CUSTOM_ACTION_CREATE';
|
||||
export const CUSTOM_ACTION_ADD = 'character.CUSTOM_ACTION_ADD';
|
||||
export const CUSTOM_ACTION_ADD_COMMIT = 'character.CUSTOM_ACTION_ADD_COMMIT';
|
||||
export const CUSTOM_ACTION_SET = 'character.CUSTOM_ACTION_SET';
|
||||
export const CUSTOM_ACTION_SET_COMMIT = 'character.CUSTOM_ACTION_SET_COMMIT';
|
||||
export const CUSTOM_ACTION_REMOVE = 'character.CUSTOM_ACTION_REMOVE';
|
||||
export const CUSTOM_ACTION_REMOVE_COMMIT = 'character.CUSTOM_ACTION_REMOVE_COMMIT';
|
||||
@@ -0,0 +1,8 @@
|
||||
export const BACKGROUND_CHOICE_SET_REQUEST = 'character.BACKGROUND_CHOICE_SET_REQUEST';
|
||||
export const BACKGROUND_CHOOSE = 'character.BACKGROUND_CHOOSE';
|
||||
export const BACKGROUND_CUSTOM_SET_REQUEST = 'character.BACKGROUND_CUSTOM_SET_REQUEST';
|
||||
export const BACKGROUND_HAS_CUSTOM_SET_REQUEST = 'character.BACKGROUND_HAS_CUSTOM_SET_REQUEST';
|
||||
export const BACKGROUND_HAS_CUSTOM_SET = 'character.BACKGROUND_HAS_CUSTOM_SET';
|
||||
export const BACKGROUND_HAS_CUSTOM_SET_COMMIT = 'character.BACKGROUND_HAS_CUSTOM_SET_COMMIT';
|
||||
export const BACKGROUND_SET = 'character.BACKGROUND_SET';
|
||||
export const BACKGROUND_SET_COMMIT = 'character.BACKGROUND_SET_COMMIT';
|
||||
@@ -0,0 +1,3 @@
|
||||
export const CAMPAIGN_SETTING_SET_REQUEST = 'character.CAMPAIGN_SETTING_SET_REQUEST';
|
||||
export const CAMPAIGN_SETTING_SET = 'character.CAMPAIGN_SETTING_SET';
|
||||
export const CAMPAIGN_SETTING_SET_COMMIT = 'character.CAMPAIGN_SETTING_SET_COMMIT';
|
||||
@@ -0,0 +1,101 @@
|
||||
export const CHARACTER_LOAD = 'character.CHARACTER_LOAD';
|
||||
export const CHARACTER_LOAD_POST_ACTION = 'character.CHARACTER_LOAD_POST_ACTION';
|
||||
export const LOAD_LAZY_CHARACTER_DATA = 'character.LOAD_LAZY_CHARACTER_DATA';
|
||||
export const NAME_SET = 'character.NAME_SET';
|
||||
export const NAME_SET_COMMIT = 'character.NAME_SET_COMMIT';
|
||||
export const RANDOM_NAME_REQUEST = 'character.RANDOM_NAME_REQUEST';
|
||||
export const ALIGNMENT_SET = 'character.ALIGNMENT_SET';
|
||||
export const ALIGNMENT_SET_COMMIT = 'character.ALIGNMENT_SET_COMMIT';
|
||||
export const LIFESTYLE_SET = 'character.LIFESTYLE_SET';
|
||||
export const LIFESTYLE_SET_COMMIT = 'character.LIFESTYLE_SET_COMMIT';
|
||||
export const FAITH_SET = 'character.FAITH_SET';
|
||||
export const FAITH_SET_COMMIT = 'character.FAITH_SET_COMMIT';
|
||||
export const HAIR_SET = 'character.HAIR_SET';
|
||||
export const HAIR_SET_COMMIT = 'character.HAIR_SET_COMMIT';
|
||||
export const SKIN_SET = 'character.SKIN_SET';
|
||||
export const SKIN_SET_COMMIT = 'character.SKIN_SET_COMMIT';
|
||||
export const EYES_SET = 'character.EYES_SET';
|
||||
export const EYES_SET_COMMIT = 'character.EYES_SET_COMMIT';
|
||||
export const HEIGHT_SET = 'character.HEIGHT_SET';
|
||||
export const HEIGHT_SET_COMMIT = 'character.HEIGHT_SET_COMMIT';
|
||||
export const WEIGHT_SET = 'character.WEIGHT_SET';
|
||||
export const WEIGHT_SET_COMMIT = 'character.WEIGHT_SET_COMMIT';
|
||||
export const AGE_SET = 'character.AGE_SET';
|
||||
export const AGE_SET_COMMIT = 'character.AGE_SET_COMMIT';
|
||||
export const GENDER_SET = 'character.GENDER_SET';
|
||||
export const GENDER_SET_COMMIT = 'character.GENDER_SET_COMMIT';
|
||||
export const NOTE_SET = 'character.NOTE_SET';
|
||||
export const NOTE_SET_COMMIT = 'character.NOTE_SET_COMMIT';
|
||||
export const TRAIT_SET = 'character.TRAIT_SET';
|
||||
export const TRAIT_SET_COMMIT = 'character.TRAIT_SET_COMMIT';
|
||||
export const STARTING_EQUIPMENT_ADD_REQUEST = 'character.STARTING_EQUIPMENT_ADD_REQUEST';
|
||||
export const STARTING_GOLD_ADD_REQUEST = 'character.STARTING_GOLD_ADD_REQUEST';
|
||||
export const ABILITY_SCORE_SET = 'character.ABILITY_SCORE_SET';
|
||||
export const ABILITY_SCORE_BONUS_SET = 'character.ABILITY_SCORE_BONUS_SET';
|
||||
export const ABILITY_SCORE_BONUS_SET_COMMIT = 'character.ABILITY_SCORE_BONUS_SET_COMMIT';
|
||||
export const ABILITY_SCORE_OVERRIDE_SET = 'character.ABILITY_SCORE_OVERRIDE_SET';
|
||||
export const ABILITY_SCORE_OVERRIDE_SET_COMMIT = 'character.ABILITY_SCORE_OVERRIDE_SET_COMMIT';
|
||||
export const ABILITY_SCORE_BASE_SET = 'character.ABILITY_SCORE_BASE_SET';
|
||||
export const ABILITY_SCORE_BASE_SET_COMMIT = 'character.ABILITY_SCORE_BASE_SET_COMMIT';
|
||||
export const MOVEMENT_ADD = 'character.MOVEMENT_ADD';
|
||||
export const MOVEMENT_ADD_COMMIT = 'character.MOVEMENT_ADD_COMMIT';
|
||||
export const MOVEMENT_SET = 'character.MOVEMENT_SET';
|
||||
export const MOVEMENT_SET_COMMIT = 'character.MOVEMENT_SET_COMMIT';
|
||||
export const MOVEMENT_REMOVE = 'character.MOVEMENT_REMOVE';
|
||||
export const MOVEMENT_REMOVE_COMMIT = 'character.MOVEMENT_REMOVE_COMMIT';
|
||||
export const SENSE_ADD = 'character.SENSE_ADD';
|
||||
export const SENSE_ADD_COMMIT = 'character.SENSE_ADD_COMMIT';
|
||||
export const SENSE_SET = 'character.SENSE_SET';
|
||||
export const SENSE_SET_COMMIT = 'character.SENSE_SET_COMMIT';
|
||||
export const SENSE_REMOVE = 'character.SENSE_REMOVE';
|
||||
export const SENSE_REMOVE_COMMIT = 'character.SENSE_REMOVE_COMMIT';
|
||||
export const CUSTOM_PROFICIENCY_CREATE = 'character.CUSTOM_PROFICIENCY_CREATE';
|
||||
export const CUSTOM_PROFICIENCY_ADD = 'character.CUSTOM_PROFICIENCY_ADD';
|
||||
export const CUSTOM_PROFICIENCY_ADD_COMMIT = 'character.CUSTOM_PROFICIENCY_ADD_COMMIT';
|
||||
export const CUSTOM_PROFICIENCY_SET = 'character.CUSTOM_PROFICIENCY_SET';
|
||||
export const CUSTOM_PROFICIENCY_SET_COMMIT = 'character.CUSTOM_PROFICIENCY_SET_COMMIT';
|
||||
export const CUSTOM_PROFICIENCY_REMOVE = 'character.CUSTOM_PROFICIENCY_REMOVE';
|
||||
export const CUSTOM_PROFICIENCY_REMOVE_COMMIT = 'character.CUSTOM_PROFICIENCY_REMOVE_COMMIT';
|
||||
export const CUSTOM_DEFENSE_ADJUSTMENT_ADD = 'character.CUSTOM_DEFENSE_ADJUSTMENT_ADD';
|
||||
export const CUSTOM_DEFENSE_ADJUSTMENT_ADD_COMMIT = 'character.CUSTOM_DEFENSE_ADJUSTMENT_ADD_COMMIT';
|
||||
export const CUSTOM_DEFENSE_ADJUSTMENT_SET = 'character.CUSTOM_DEFENSE_ADJUSTMENT_SET';
|
||||
export const CUSTOM_DEFENSE_ADJUSTMENT_SET_COMMIT = 'character.CUSTOM_DEFENSE_ADJUSTMENT_SET_COMMIT';
|
||||
export const CUSTOM_DEFENSE_ADJUSTMENT_REMOVE = 'character.CUSTOM_DEFENSE_ADJUSTMENT_REMOVE';
|
||||
export const CUSTOM_DEFENSE_ADJUSTMENT_REMOVE_COMMIT = 'character.CUSTOM_DEFENSE_ADJUSTMENT_REMOVE_COMMIT';
|
||||
export const XP_SET = 'character.XP_SET';
|
||||
export const XP_SET_COMMIT = 'character.XP_SET_COMMIT';
|
||||
export const XP_SET_REQUEST = 'character.XP_SET_REQUEST';
|
||||
export const BASE_HIT_POINTS_SET = 'character.BASE_HIT_POINTS_SET';
|
||||
export const BASE_HIT_POINTS_SET_COMMIT = 'character.BASE_HIT_POINTS_SET_COMMIT';
|
||||
export const HIT_POINTS_SET = 'character.HIT_POINTS_SET';
|
||||
export const HIT_POINTS_SET_COMMIT = 'character.HIT_POINTS_SET_COMMIT';
|
||||
export const BONUS_HIT_POINTS_SET = 'character.BONUS_HIT_POINTS_SET';
|
||||
export const BONUS_HIT_POINTS_SET_COMMIT = 'character.BONUS_HIT_POINTS_SET_COMMIT';
|
||||
export const OVERRIDE_HIT_POINTS_SET = 'character.OVERRIDE_HIT_POINTS_SET';
|
||||
export const OVERRIDE_HIT_POINTS_SET_COMMIT = 'character.OVERRIDE_HIT_POINTS_SET_COMMIT';
|
||||
export const DEATHSAVES_SET = 'character.DEATHSAVES_SET';
|
||||
export const DEATHSAVES_SET_COMMIT = 'character.DEATHSAVES_SET_COMMIT';
|
||||
export const RESTORE_LIFE = 'character.RESTORE_LIFE';
|
||||
export const SHORT_REST = 'character.SHORT_REST';
|
||||
export const SHORT_REST_COMMIT = 'character.SHORT_REST_COMMIT';
|
||||
export const LONG_REST = 'character.LONG_REST';
|
||||
export const LONG_REST_COMMIT = 'character.LONG_REST_COMMIT';
|
||||
export const CURRENCIES_SET = 'character.CURRENCIES_SET';
|
||||
export const CURRENCIES_SET_COMMIT = 'character.CURRENCIES_SET_COMMIT';
|
||||
export const CURRENCY_TRANSACTION_SET = 'character.CURRENCY_TRANSACTION_SET';
|
||||
export const CURRENCY_COPPER_SET = 'character.CURRENCY_COPPER_SET';
|
||||
export const CURRENCY_COPPER_SET_COMMIT = 'character.CURRENCY_COPPER_SET_COMMIT';
|
||||
export const CURRENCY_ELECTRUM_SET = 'character.CURRENCY_ELECTRUM_SET';
|
||||
export const CURRENCY_ELECTRUM_SET_COMMIT = 'character.CURRENCY_ELECTRUM_SET_COMMIT';
|
||||
export const CURRENCY_GOLD_SET = 'character.CURRENCY_GOLD_SET';
|
||||
export const CURRENCY_GOLD_SET_COMMIT = 'character.CURRENCY_GOLD_SET_COMMIT';
|
||||
export const CURRENCY_PLATINUM_SET = 'character.CURRENCY_PLATINUM_SET';
|
||||
export const CURRENCY_PLATINUM_SET_COMMIT = 'character.CURRENCY_PLATINUM_SET_COMMIT';
|
||||
export const CURRENCY_SILVER_SET = 'character.CURRENCY_SILVER_SET';
|
||||
export const CURRENCY_SILVER_SET_COMMIT = 'character.CURRENCY_SILVER_SET_COMMIT';
|
||||
export const INSPIRATION_SET = 'character.INSPIRATION_SET';
|
||||
export const INSPIRATION_SET_COMMIT = 'character.INSPIRATION_SET_COMMIT';
|
||||
export const STATUS_SET = 'character.STATUS_SET';
|
||||
export const STATUS_SET_COMMIT = 'character.STATUS_SET_COMMIT';
|
||||
export const STATUS_SLUG_SET = 'character.STATUS_SLUG_SET';
|
||||
export const STATUS_SLUG_SET_COMMIT = 'character.STATUS_SLUG_SET_COMMIT';
|
||||
@@ -0,0 +1,2 @@
|
||||
export const CHOICES_SET = 'character.CHOICES_SET';
|
||||
export const CHOICES_SET_COMMIT = 'character.CHOICES_SET_COMMIT';
|
||||
@@ -0,0 +1,13 @@
|
||||
export const INITIAL_CLASS_SET = 'character.INITIAL_CLASS_SET';
|
||||
export const CLASS_ADD = 'character.CLASS_ADD';
|
||||
export const CLASS_ADD_REQUEST = 'character.CLASS_ADD_REQUEST';
|
||||
export const CLASS_ADD_POST_ACTION = 'character.CLASS_ADD_POST_ACTION';
|
||||
export const CLASS_REMOVE_REQUEST = 'character.CLASS_REMOVE_REQUEST';
|
||||
export const CLASS_REMOVE_POST_ACTION = 'character.CLASS_REMOVE_POST_ACTION';
|
||||
export const CLASS_REMOVE_COMMIT = 'character.CLASS_REMOVE_COMMIT';
|
||||
export const CLASS_SET = 'character.CLASS_SET';
|
||||
export const CLASS_SET_COMMIT = 'character.CLASS_SET_COMMIT';
|
||||
export const CLASS_LEVEL_SET_REQUEST = 'character.CLASS_LEVEL_SET_REQUEST';
|
||||
export const CLASSES_SET = 'character.CLASSES_SET';
|
||||
export const CLASSES_SET_COMMIT = 'character.CLASSES_SET_COMMIT';
|
||||
export const CLASSES_UNSET = 'character.CLASSES_UNSET';
|
||||
@@ -0,0 +1 @@
|
||||
export const CLASS_FEATURE_CHOICE_SET_REQUEST = 'character.CLASS_FEATURE_CHOICE_SET_REQUEST';
|
||||
@@ -0,0 +1,5 @@
|
||||
export const CONDITION_SET = 'character.CONDITION_SET';
|
||||
export const CONDITION_ADD = 'character.CONDITION_ADD';
|
||||
export const CONDITION_REMOVE = 'character.CONDITION_REMOVE';
|
||||
export const CONDITIONS_SET = 'character.CONDITIONS_SET';
|
||||
export const CONDITIONS_SET_COMMIT = 'character.CONDITIONS_SET_COMMIT';
|
||||
@@ -0,0 +1,6 @@
|
||||
export const SHOW_HELP_TEXT_SET = 'character.SHOW_HELP_TEXT_SET';
|
||||
export const SHOW_HELP_TEXT_SET_REQUEST = 'character.SHOW_HELP_TEXT_SET_REQUEST';
|
||||
export const ABILITY_SCORE_TYPE_SET_REQUEST = 'character.ABILITY_SCORE_TYPE_SET_REQUEST';
|
||||
export const ABILITY_SCORE_TYPE_SET_COMMIT = 'character.ABILITY_SCORE_TYPE_SET_COMMIT';
|
||||
export const STARTING_EQUIPMENT_TYPE_SET = 'character.STARTING_EQUIPMENT_TYPE_SET';
|
||||
export const STARTING_EQUIPMENT_TYPE_SET_COMMIT = 'character.STARTING_EQUIPMENT_TYPE_SET_COMMIT';
|
||||
@@ -0,0 +1,11 @@
|
||||
export const CHARACTER_SET = 'character.CHARACTER_SET';
|
||||
export const CHARACTER_COMPONENTS_SET = 'character.CHARACTER_COMPONENTS_SET';
|
||||
export const CHARACTER_COMPONENTS_SET_COMMIT = 'character.CHARACTER_COMPONENTS_SET_COMMIT';
|
||||
export const ACTIVE_SOURCE_CATEGORIES_SET = 'character.ACTIVE_SOURCE_CATEGORIES_SET';
|
||||
export const ACTIVE_SOURCE_CATEGORIES_SET_COMMIT = 'character.ACTIVE_SOURCE_CATEGORIES_SET_COMMIT';
|
||||
export const ACTIVE_SOURCES_SET = 'character.ACTIVE_SOURCES_SET';
|
||||
export const ACTIVE_SOURCES_SET_COMMIT = 'character.ACTIVE_SOURCES_SET_COMMIT';
|
||||
export const PREFERENCE_CHOOSE = 'character.PREFERENCE_CHOOSE';
|
||||
export const PREFERENCE_SET = 'character.PREFERENCE_SET';
|
||||
export const PREFERENCE_SET_COMMIT = 'character.PREFERENCE_SET_COMMIT';
|
||||
export const SEND_SOCIAL_IMAGE_DATA = 'character.SEND_SOCIAL_IMAGE_DATA';
|
||||
@@ -0,0 +1,12 @@
|
||||
export const CREATURE_CREATE = 'character.CREATURE_CREATE';
|
||||
export const CREATURE_ADD = 'character.CREATURE_ADD';
|
||||
export const CREATURE_ADD_COMMIT = 'character.CREATURE_ADD_COMMIT';
|
||||
export const CREATURE_REMOVE = 'character.CREATURE_REMOVE';
|
||||
export const CREATURE_REMOVE_COMMIT = 'character.CREATURE_REMOVE_COMMIT';
|
||||
export const CREATURE_DATA_SET = 'character.CREATURE_DATA_SET';
|
||||
export const CREATURE_DATA_SET_COMMIT = 'character.CREATURE_DATA_SET_COMMIT';
|
||||
export const CREATURE_HIT_POINTS_SET = 'character.CREATURE_HIT_POINTS_SET';
|
||||
export const CREATURE_HIT_POINTS_SET_COMMIT = 'character.CREATURE_HIT_POINTS_SET_COMMIT';
|
||||
export const CREATURE_ACTIVE_SET = 'character.CREATURE_ACTIVE_SET';
|
||||
export const CREATURE_ACTIVE_SET_COMMIT = 'character.CREATURE_ACTIVE_SET_COMMIT';
|
||||
export const CREATURE_CUSTOMIZATIONS_DELETE = 'character.CREATURE_CUSTOMIZATIONS_DELETE';
|
||||
@@ -0,0 +1,9 @@
|
||||
export const BACKDROP_SET = 'character.BACKDROP_SET';
|
||||
export const BACKDROP_SET_COMMIT = 'character.BACKDROP_SET_COMMIT';
|
||||
export const FRAME_SET = 'character.FRAME_SET';
|
||||
export const FRAME_SET_COMMIT = 'character.FRAME_SET_COMMIT';
|
||||
export const THEME_SET = 'character.THEME_SET';
|
||||
export const THEME_SET_COMMIT = 'character.THEME_SET_COMMIT';
|
||||
export const PORTRAIT_SET = 'character.PORTRAIT_SET';
|
||||
export const PORTRAIT_SET_COMMIT = 'character.PORTRAIT_SET_COMMIT';
|
||||
export const PORTRAIT_UPLOAD = 'character.PORTRAIT_UPLOAD';
|
||||
@@ -0,0 +1,6 @@
|
||||
export const FEAT_CHOICE_SET_REQUEST = 'character.FEAT_CHOICE_SET_REQUEST';
|
||||
export const FEATS_SET = 'character.FEATS_SET';
|
||||
export const FEATS_SET_COMMIT = 'character.FEATS_SET_COMMIT';
|
||||
export const ADHOC_FEAT_CREATE = 'character.ADHOC_FEAT_CREATE';
|
||||
export const ADHOC_FEAT_REMOVE = 'character.ADHOC_FEAT_REMOVE';
|
||||
export const SET_ENTITY_FEAT = 'character.SET_ENTITY_FEAT';
|
||||
@@ -0,0 +1,39 @@
|
||||
export const ITEM_CREATE = 'character.ITEM_CREATE';
|
||||
export const ITEM_ADD = 'character.ITEM_ADD';
|
||||
export const ITEM_ADD_COMMIT = 'character.ITEM_ADD_COMMIT';
|
||||
export const ITEM_REMOVE = 'character.ITEM_REMOVE';
|
||||
export const ITEM_REMOVE_COMMIT = 'character.ITEM_REMOVE_COMMIT';
|
||||
export const ITEM_DESTROY = 'character.ITEM_DESTROY';
|
||||
export const ITEM_MOVE_SET = 'character.ITEM_MOVE_SET';
|
||||
export const ITEM_MOVE_SET_COMMIT = 'character.ITEM_MOVE_SET_COMMIT';
|
||||
export const ITEM_EQUIPPED_SET = 'character.ITEM_EQUIPPED_SET';
|
||||
export const ITEM_EQUIPPED_SET_COMMIT = 'character.ITEM_EQUIPPED_SET_COMMIT';
|
||||
export const ITEM_ATTUNE_SET = 'character.ITEM_ATTUNE_SET';
|
||||
export const ITEM_ATTUNE_SET_COMMIT = 'character.ITEM_ATTUNE_SET_COMMIT';
|
||||
export const ITEM_QUANTITY_SET = 'character.ITEM_QUANTITY_SET';
|
||||
export const ITEM_QUANTITY_SET_COMMIT = 'character.ITEM_QUANTITY_SET_COMMIT';
|
||||
export const ITEM_CHARGES_SET = 'character.ITEM_CHARGES_SET';
|
||||
export const ITEM_CHARGES_SET_COMMIT = 'character.ITEM_CHARGES_SET_COMMIT';
|
||||
export const ITEM_DISPLAY_AS_ATTACK_SET = 'character.ITEM_DISPLAY_AS_ATTACK_SET';
|
||||
export const ITEM_DISPLAY_AS_ATTACK_SET_COMMIT = 'character.ITEM_DISPLAY_AS_ATTACK_SET_COMMIT';
|
||||
export const ITEM_CUSTOMIZATIONS_DELETE = 'character.ITEM_CUSTOMIZATIONS_DELETE';
|
||||
export const CUSTOM_ITEM_CREATE = 'character.CUSTOM_ITEM_CREATE';
|
||||
export const CUSTOM_ITEM_DESTROY = 'character.CUSTOM_ITEM_DESTROY';
|
||||
export const CUSTOM_ITEM_ADD = 'character.CUSTOM_ITEM_ADD';
|
||||
export const CUSTOM_ITEM_ADD_COMMIT = 'character.CUSTOM_ITEM_ADD_COMMIT';
|
||||
export const CUSTOM_ITEM_REMOVE = 'character.CUSTOM_ITEM_REMOVE';
|
||||
export const CUSTOM_ITEM_REMOVE_COMMIT = 'character.CUSTOM_ITEM_REMOVE_COMMIT';
|
||||
export const CUSTOM_ITEM_SET = 'character.CUSTOM_ITEM_SET';
|
||||
export const CUSTOM_ITEM_SET_COMMIT = 'character.CUSTOM_ITEM_SET_COMMIT';
|
||||
export const ITEM_CURRENCY_SET = 'character.ITEM_CURRENCY_SET';
|
||||
export const ITEM_CURRENCY_SET_COMMIT = 'character.ITEM_CURRENCY_SET_COMMIT';
|
||||
export const ITEM_CURRENCY_COPPER_SET = 'character.ITEM_CURRENCY_COPPER_SET';
|
||||
export const ITEM_CURRENCY_COPPER_SET_COMMIT = 'character.ITEM_CURRENCY_COPPER_SET_COMMIT';
|
||||
export const ITEM_CURRENCY_ELECTRUM_SET = 'character.ITEM_CURRENCY_ELECTRUM_SET';
|
||||
export const ITEM_CURRENCY_ELECTRUM_SET_COMMIT = 'character.ITEM_CURRENCY_ELECTRUM_SET_COMMIT';
|
||||
export const ITEM_CURRENCY_GOLD_SET = 'character.ITEM_CURRENCY_GOLD_SET';
|
||||
export const ITEM_CURRENCY_GOLD_SET_COMMIT = 'character.ITEM_CURRENCY_GOLD_SET_COMMIT';
|
||||
export const ITEM_CURRENCY_PLATINUM_SET = 'character.ITEM_CURRENCY_PLATINUM_SET';
|
||||
export const ITEM_CURRENCY_PLATINUM_SET_COMMIT = 'character.ITEM_CURRENCY_PLATINUM_SET_COMMIT';
|
||||
export const ITEM_CURRENCY_SILVER_SET = 'character.ITEM_CURRENCY_SILVER_SET';
|
||||
export const ITEM_CURRENCY_SILVER_SET_COMMIT = 'character.ITEM_CURRENCY_SILVER_SET_COMMIT';
|
||||
@@ -0,0 +1,2 @@
|
||||
export const MODIFIERS_SET = 'character.MODIFIERS_SET';
|
||||
export const MODIFIERS_SET_COMMIT = 'character.MODIFIERS_SET_COMMIT';
|
||||
@@ -0,0 +1,2 @@
|
||||
export const OPTIONS_SET = 'character.OPTIONS_SET';
|
||||
export const OPTIONS_SET_COMMIT = 'character.OPTIONS_SET_COMMIT';
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
export const OPTIONAL_CLASS_FEATURE_CREATE = 'character.OPTIONAL_CLASS_FEATURE_CREATE';
|
||||
export const OPTIONAL_CLASS_FEATURE_ADD = 'character.OPTIONAL_CLASS_FEATURE_ADD';
|
||||
export const OPTIONAL_CLASS_FEATURE_ADD_COMMIT = 'character.OPTIONAL_CLASS_FEATURE_ADD_COMMIT';
|
||||
export const OPTIONAL_CLASS_FEATURE_SET_REQUEST = 'character.OPTIONAL_CLASS_FEATURE_SET_REQUEST';
|
||||
export const OPTIONAL_CLASS_FEATURE_SET = 'character.OPTIONAL_CLASS_FEATURE_SET';
|
||||
export const OPTIONAL_CLASS_FEATURE_SET_COMMIT = 'character.OPTIONAL_CLASS_FEATURE_SET_COMMIT';
|
||||
export const OPTIONAL_CLASS_FEATURE_DESTROY = 'character.OPTIONAL_CLASS_FEATURE_DESTROY';
|
||||
export const OPTIONAL_CLASS_FEATURE_REMOVE = 'character.OPTIONAL_CLASS_FEATURE_REMOVE';
|
||||
export const OPTIONAL_CLASS_FEATURE_REMOVE_COMMIT = 'character.OPTIONAL_CLASS_FEATURE_REMOVE_COMMIT';
|
||||
@@ -0,0 +1,9 @@
|
||||
export const OPTIONAL_ORIGIN_CREATE = 'character.OPTIONAL_ORIGIN_CREATE';
|
||||
export const OPTIONAL_ORIGIN_ADD = 'character.OPTIONAL_ORIGIN_ADD';
|
||||
export const OPTIONAL_ORIGIN_ADD_COMMIT = 'character.OPTIONAL_ORIGIN_ADD_COMMIT';
|
||||
export const OPTIONAL_ORIGIN_SET_REQUEST = 'character.OPTIONAL_ORIGIN_SET_REQUEST';
|
||||
export const OPTIONAL_ORIGIN_SET = 'character.OPTIONAL_ORIGIN_SET';
|
||||
export const OPTIONAL_ORIGIN_SET_COMMIT = 'character.OPTIONAL_ORIGIN_SET_COMMIT';
|
||||
export const OPTIONAL_ORIGIN_DESTROY = 'character.OPTIONAL_ORIGIN_DESTROY';
|
||||
export const OPTIONAL_ORIGIN_REMOVE = 'character.OPTIONAL_ORIGIN_REMOVE';
|
||||
export const OPTIONAL_ORIGIN_REMOVE_COMMIT = 'character.OPTIONAL_ORIGIN_REMOVE_COMMIT';
|
||||
@@ -0,0 +1,6 @@
|
||||
export const PREMADE_INFO_ADD = 'character.PREMADE_INFO_ADD';
|
||||
export const PREMADE_INFO_GET = 'character.PREMADE_INFO_GET';
|
||||
export const PREMADE_INFO_UPDATE = 'character.PREMADE_INFO_UPDATE';
|
||||
export const PREMADE_INFO_DELETE = 'character.PREMADE_INFO_DELETE';
|
||||
export const PREMADE_INFO_SET_COMMIT = 'character.PREMADE_INFO_SET_COMMIT';
|
||||
export const PREMADE_INFO_REMOVE_COMMIT = 'character.PREMADE_INFO_REMOVE_COMMIT';
|
||||
@@ -0,0 +1,5 @@
|
||||
export const RACE_CHOOSE = 'character.RACE_CHOOSE';
|
||||
export const RACE_CHOOSE_POST_ACTION = 'character.RACE_CHOOSE_POST_ACTION';
|
||||
export const RACE_SET = 'character.RACE_SET';
|
||||
export const RACE_SET_COMMIT = 'character.RACE_SET_COMMIT';
|
||||
export const RACE_UNSET = 'character.RACE_UNSET';
|
||||
@@ -0,0 +1 @@
|
||||
export const RACIAL_TRAIT_CHOICE_SET_REQUEST = 'character.RACIAL_TRAIT_CHOICE_SET_REQUEST';
|
||||
@@ -0,0 +1,24 @@
|
||||
export const SPELL_CREATE = 'character.SPELL_CREATE';
|
||||
export const SPELL_ADD = 'character.SPELL_ADD';
|
||||
export const SPELL_ADD_COMMIT = 'character.SPELL_ADD_COMMIT';
|
||||
export const SPELL_REMOVE = 'character.SPELL_REMOVE';
|
||||
export const SPELL_REMOVE_COMMIT = 'character.SPELL_REMOVE_COMMIT';
|
||||
export const SPELL_PREPARED_SET = 'character.SPELL_PREPARED_SET';
|
||||
export const SPELL_PREPARED_SET_COMMIT = 'character.SPELL_PREPARED_SET_COMMIT';
|
||||
export const SPELL_USE_SET = 'character.SPELL_USE_SET';
|
||||
export const SPELL_USE_SET_COMMIT = 'character.SPELL_USE_SET_COMMIT';
|
||||
export const SPELL_LEVEL_SPELL_SLOTS_SET = 'character.SPELL_LEVEL_SPELL_SLOTS_SET';
|
||||
export const SPELL_LEVEL_SPELL_SLOTS_SET_COMMIT = 'character.SPELL_LEVEL_SPELL_SLOTS_SET_COMMIT';
|
||||
export const PACT_MAGIC_SET = 'character.PACT_MAGIC_SET';
|
||||
export const PACT_MAGIC_SET_COMMIT = 'character.PACT_MAGIC_SET_COMMIT';
|
||||
export const SPELL_LEVEL_PACT_MAGIC_SLOTS_SET = 'character.SPELL_LEVEL_PACT_MAGIC_SLOTS_SET';
|
||||
export const SPELL_LEVEL_PACT_MAGIC_SLOTS_SET_COMMIT = 'character.SPELL_LEVEL_PACT_MAGIC_SLOTS_SET_COMMIT';
|
||||
export const SPELL_DISPLAY_AS_ATTACK_SET = 'character.SPELL_DISPLAY_AS_ATTACK_SET';
|
||||
export const SPELL_DISPLAY_AS_ATTACK_SET_COMMIT = 'character.SPELL_DISPLAY_AS_ATTACK_SET_COMMIT';
|
||||
export const SPELL_FEATURE_DISPLAY_AS_ATTACK_SET = 'character.SPELL_FEATURE_DISPLAY_AS_ATTACK_SET';
|
||||
export const SPELL_FEATURE_DISPLAY_AS_ATTACK_SET_COMMIT = 'character.SPELL_FEATURE_DISPLAY_AS_ATTACK_SET_COMMIT';
|
||||
export const SPELL_CUSTOMIZATIONS_DELETE = 'character.SPELL_CUSTOMIZATIONS_DELETE';
|
||||
export const SPELLS_SLOTS_SET = 'character.SPELLS_SLOTS_SET';
|
||||
export const SPELLS_SLOTS_SET_COMMIT = 'character.SPELLS_SLOTS_SET_COMMIT';
|
||||
export const CHARACTER_SPELLS_SET = 'character.CHARACTER_SPELLS_SET';
|
||||
export const CHARACTER_SPELLS_SET_COMMIT = 'character.CHARACTER_SPELLS_SET_COMMIT';
|
||||
@@ -0,0 +1,6 @@
|
||||
export const VALUE_SET = 'character.VALUE_SET';
|
||||
export const VALUE_SET_COMMIT = 'character.VALUE_SET_COMMIT';
|
||||
export const VALUE_REMOVE = 'character.VALUE_REMOVE';
|
||||
export const VALUE_REMOVE_COMMIT = 'character.VALUE_REMOVE_COMMIT';
|
||||
export const ENTITY_VALUES_REMOVE = 'character.ENTITY_VALUES_REMOVE';
|
||||
export const ENTITY_VALUES_REMOVE_COMMIT = 'character.ENTITY_VALUES_REMOVE_COMMIT';
|
||||
@@ -0,0 +1,124 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param name
|
||||
* @param actionType
|
||||
*/
|
||||
export function customActionCreate(name, actionType) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ACTION_CREATE,
|
||||
payload: {
|
||||
name,
|
||||
actionType,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param actions
|
||||
*/
|
||||
export function actionsSet(actions) {
|
||||
return {
|
||||
type: actionTypes.ACTIONS_SET,
|
||||
payload: {
|
||||
actions,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ACTIONS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param entityTypeId
|
||||
* @param uses
|
||||
* @param dataOriginType
|
||||
*/
|
||||
export function actionUseSet(id, entityTypeId, uses, dataOriginType) {
|
||||
return {
|
||||
type: actionTypes.ACTION_USE_SET,
|
||||
payload: {
|
||||
id,
|
||||
entityTypeId,
|
||||
uses,
|
||||
dataOriginType,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ACTION_USE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param action
|
||||
*/
|
||||
export function customActionAdd(action) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ACTION_ADD,
|
||||
payload: {
|
||||
action,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_ACTION_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
export function customActionRemove(id) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ACTION_REMOVE,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_ACTION_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param properties
|
||||
*/
|
||||
export function customActionSet(id, properties) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ACTION_SET,
|
||||
payload: {
|
||||
id,
|
||||
properties,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_ACTION_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param mappingId
|
||||
* @param mappingEntityTypeId
|
||||
*/
|
||||
export function actionCustomizationsDelete(mappingId, mappingEntityTypeId) {
|
||||
return {
|
||||
type: actionTypes.ACTION_CUSTOMIZATIONS_DELETE,
|
||||
payload: {
|
||||
mappingId,
|
||||
mappingEntityTypeId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param backgroundId
|
||||
*/
|
||||
export function backgroundChoose(backgroundId) {
|
||||
return {
|
||||
type: actionTypes.BACKGROUND_CHOOSE,
|
||||
payload: {
|
||||
backgroundId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param background
|
||||
*/
|
||||
export function backgroundSet(background) {
|
||||
return {
|
||||
type: actionTypes.BACKGROUND_SET,
|
||||
payload: {
|
||||
background,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.BACKGROUND_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param choiceType
|
||||
* @param choiceId
|
||||
* @param optionValue
|
||||
*/
|
||||
export function backgroundChoiceSetRequest(choiceType, choiceId, optionValue) {
|
||||
return {
|
||||
type: actionTypes.BACKGROUND_CHOICE_SET_REQUEST,
|
||||
payload: {
|
||||
choiceType,
|
||||
choiceId,
|
||||
optionValue,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param hasCustomBackground
|
||||
*/
|
||||
export function backgroundHasCustomSet(hasCustomBackground) {
|
||||
return {
|
||||
type: actionTypes.BACKGROUND_HAS_CUSTOM_SET,
|
||||
payload: {
|
||||
hasCustomBackground,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.BACKGROUND_HAS_CUSTOM_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param hasCustomBackground
|
||||
*/
|
||||
export function backgroundHasCustomSetRequest(hasCustomBackground) {
|
||||
return {
|
||||
type: actionTypes.BACKGROUND_HAS_CUSTOM_SET_REQUEST,
|
||||
payload: {
|
||||
hasCustomBackground,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param properties
|
||||
*/
|
||||
export function backgroundCustomSetRequest(properties) {
|
||||
return {
|
||||
type: actionTypes.BACKGROUND_CUSTOM_SET_REQUEST,
|
||||
payload: {
|
||||
properties,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param racialTraitId
|
||||
* @param affectedRacialTraitId
|
||||
*/
|
||||
export function campaignSettingSetRequest(CampaignSettingContract) {
|
||||
return {
|
||||
type: actionTypes.CAMPAIGN_SETTING_SET_REQUEST,
|
||||
payload: Object.assign({}, CampaignSettingContract),
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param CustomCampaignSettingContract
|
||||
*/
|
||||
export function campaignSettingSet(CampaignSettingContract) {
|
||||
return {
|
||||
type: actionTypes.CAMPAIGN_SETTING_SET,
|
||||
payload: Object.assign({}, CampaignSettingContract),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CAMPAIGN_SETTING_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,936 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export function characterLoad(characterId, requestParams = {}, config = {}) {
|
||||
return {
|
||||
type: actionTypes.CHARACTER_LOAD,
|
||||
payload: {
|
||||
characterId,
|
||||
requestParams,
|
||||
config: Object.assign({ includeAlwaysKnownSpells: false }, config),
|
||||
},
|
||||
meta: {
|
||||
postAction: {
|
||||
type: [actionTypes.CHARACTER_LOAD_POST_ACTION],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
export function loadLazyCharacterData() {
|
||||
return {
|
||||
type: actionTypes.LOAD_LAZY_CHARACTER_DATA,
|
||||
payload: {},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param currentXp
|
||||
*/
|
||||
export function xpSetRequest(currentXp) {
|
||||
return {
|
||||
type: actionTypes.XP_SET_REQUEST,
|
||||
payload: {
|
||||
currentXp,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param currentXp
|
||||
*/
|
||||
export function xpSet(currentXp) {
|
||||
return {
|
||||
type: actionTypes.XP_SET,
|
||||
payload: {
|
||||
currentXp,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.XP_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export function randomNameRequest() {
|
||||
return {
|
||||
type: actionTypes.RANDOM_NAME_REQUEST,
|
||||
payload: {},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
export function nameSet(name) {
|
||||
return {
|
||||
type: actionTypes.NAME_SET,
|
||||
payload: {
|
||||
name,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.NAME_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param restoreType
|
||||
*/
|
||||
export function restoreLife(restoreType) {
|
||||
return {
|
||||
type: actionTypes.RESTORE_LIFE,
|
||||
payload: {
|
||||
restoreType,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param name
|
||||
* @param type
|
||||
*/
|
||||
export function customProficiencyCreate(name, type) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_PROFICIENCY_CREATE,
|
||||
payload: {
|
||||
name,
|
||||
type,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param classHitDiceUsed
|
||||
* @param resetMaxHpModifier
|
||||
*/
|
||||
export function shortRest(classHitDiceUsed, resetMaxHpModifier) {
|
||||
return {
|
||||
type: actionTypes.SHORT_REST,
|
||||
payload: {
|
||||
classHitDiceUsed,
|
||||
resetMaxHpModifier,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param resetMaxHpModifier
|
||||
* @param adjustConditionLevel
|
||||
*/
|
||||
export function longRest(resetMaxHpModifier, adjustConditionLevel) {
|
||||
return {
|
||||
type: actionTypes.LONG_REST,
|
||||
payload: {
|
||||
resetMaxHpModifier,
|
||||
adjustConditionLevel,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param noteType
|
||||
* @param content
|
||||
*/
|
||||
export function noteSet(noteType, content) {
|
||||
return {
|
||||
type: actionTypes.NOTE_SET,
|
||||
payload: {
|
||||
noteType,
|
||||
content,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.NOTE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param traitType
|
||||
* @param content
|
||||
*/
|
||||
export function traitSet(traitType, content) {
|
||||
return {
|
||||
type: actionTypes.TRAIT_SET,
|
||||
payload: {
|
||||
traitType,
|
||||
content,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.TRAIT_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param baseHitPoints
|
||||
*/
|
||||
export function baseHitPointsSet(baseHitPoints) {
|
||||
return {
|
||||
type: actionTypes.BASE_HIT_POINTS_SET,
|
||||
payload: {
|
||||
baseHitPoints,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.BASE_HIT_POINTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param bonusHitPoints
|
||||
*/
|
||||
export function bonusHitPointsSet(bonusHitPoints) {
|
||||
return {
|
||||
type: actionTypes.BONUS_HIT_POINTS_SET,
|
||||
payload: {
|
||||
bonusHitPoints,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.BONUS_HIT_POINTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param overrideHitPoints
|
||||
*/
|
||||
export function overrideHitPointsSet(overrideHitPoints) {
|
||||
return {
|
||||
type: actionTypes.OVERRIDE_HIT_POINTS_SET,
|
||||
payload: {
|
||||
overrideHitPoints,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.OVERRIDE_HIT_POINTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param statId
|
||||
* @param type
|
||||
* @param value
|
||||
*/
|
||||
export function abilityScoreSet(statId, type, value) {
|
||||
return {
|
||||
type: actionTypes.ABILITY_SCORE_SET,
|
||||
payload: {
|
||||
statId,
|
||||
type,
|
||||
value,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param hair
|
||||
*/
|
||||
export function hairSet(hair) {
|
||||
return {
|
||||
type: actionTypes.HAIR_SET,
|
||||
payload: {
|
||||
hair,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.HAIR_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param skin
|
||||
*/
|
||||
export function skinSet(skin) {
|
||||
return {
|
||||
type: actionTypes.SKIN_SET,
|
||||
payload: {
|
||||
skin,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SKIN_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param eyes
|
||||
*/
|
||||
export function eyesSet(eyes) {
|
||||
return {
|
||||
type: actionTypes.EYES_SET,
|
||||
payload: {
|
||||
eyes,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.EYES_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param height
|
||||
*/
|
||||
export function heightSet(height) {
|
||||
return {
|
||||
type: actionTypes.HEIGHT_SET,
|
||||
payload: {
|
||||
height,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.HEIGHT_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param weight
|
||||
*/
|
||||
export function weightSet(weight) {
|
||||
return {
|
||||
type: actionTypes.WEIGHT_SET,
|
||||
payload: {
|
||||
weight,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.WEIGHT_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param age
|
||||
*/
|
||||
export function ageSet(age) {
|
||||
return {
|
||||
type: actionTypes.AGE_SET,
|
||||
payload: {
|
||||
age,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.AGE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param gender
|
||||
*/
|
||||
export function genderSet(gender) {
|
||||
return {
|
||||
type: actionTypes.GENDER_SET,
|
||||
payload: {
|
||||
gender,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.GENDER_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param alignmentId
|
||||
*/
|
||||
export function alignmentSet(alignmentId) {
|
||||
return {
|
||||
type: actionTypes.ALIGNMENT_SET,
|
||||
payload: {
|
||||
alignmentId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ALIGNMENT_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param lifestyleId
|
||||
*/
|
||||
export function lifestyleSet(lifestyleId) {
|
||||
return {
|
||||
type: actionTypes.LIFESTYLE_SET,
|
||||
payload: {
|
||||
lifestyleId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.LIFESTYLE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param faith
|
||||
*/
|
||||
export function faithSet(faith) {
|
||||
return {
|
||||
type: actionTypes.FAITH_SET,
|
||||
payload: {
|
||||
faith,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.FAITH_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param removedHitPoints
|
||||
* @param temporaryHitPoints
|
||||
*/
|
||||
export function hitPointsSet(removedHitPoints, temporaryHitPoints) {
|
||||
return {
|
||||
type: actionTypes.HIT_POINTS_SET,
|
||||
payload: {
|
||||
removedHitPoints,
|
||||
temporaryHitPoints,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.HIT_POINTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param inspiration
|
||||
*/
|
||||
export function inspirationSet(inspiration) {
|
||||
return {
|
||||
type: actionTypes.INSPIRATION_SET,
|
||||
payload: {
|
||||
inspiration,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.INSPIRATION_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param currencies
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function currenciesSet(currencies, destinationEntityTypeId, destinationEntityId, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.CURRENCIES_SET,
|
||||
payload: Object.assign(Object.assign({}, currencies), { destinationEntityTypeId,
|
||||
destinationEntityId }),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CURRENCIES_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function currencyCopperSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.CURRENCY_COPPER_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityId,
|
||||
destinationEntityTypeId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CURRENCY_COPPER_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function currencyElectrumSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.CURRENCY_ELECTRUM_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityId,
|
||||
destinationEntityTypeId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CURRENCY_ELECTRUM_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param transactionPayload
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function currencyTransactionSet(transactionPayload, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.CURRENCY_TRANSACTION_SET,
|
||||
payload: Object.assign({}, transactionPayload),
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function currencyGoldSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.CURRENCY_GOLD_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityId,
|
||||
destinationEntityTypeId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CURRENCY_GOLD_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function currencyPlatinumSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.CURRENCY_PLATINUM_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityId,
|
||||
destinationEntityTypeId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CURRENCY_PLATINUM_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function currencySilverSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.CURRENCY_SILVER_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityId,
|
||||
destinationEntityTypeId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CURRENCY_SILVER_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param starting
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function startingEquipmentAddRequest(starting, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.STARTING_EQUIPMENT_ADD_REQUEST,
|
||||
payload: Object.assign({}, starting),
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param gold
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function startingGoldAddRequest(gold, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.STARTING_GOLD_ADD_REQUEST,
|
||||
payload: {
|
||||
gold,
|
||||
},
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param fails
|
||||
* @param successes
|
||||
*/
|
||||
export function deathSavesSet(fails, successes) {
|
||||
return {
|
||||
type: actionTypes.DEATHSAVES_SET,
|
||||
payload: {
|
||||
fails,
|
||||
successes,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.DEATHSAVES_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param customSpeed
|
||||
*/
|
||||
export function movementAdd(customSpeed) {
|
||||
return {
|
||||
type: actionTypes.MOVEMENT_ADD,
|
||||
payload: Object.assign({}, customSpeed),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.MOVEMENT_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param customSpeed
|
||||
*/
|
||||
export function movementSet(customSpeed) {
|
||||
return {
|
||||
type: actionTypes.MOVEMENT_SET,
|
||||
payload: Object.assign({}, customSpeed),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.MOVEMENT_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param movementId
|
||||
*/
|
||||
export function movementRemove(movementId) {
|
||||
return {
|
||||
type: actionTypes.MOVEMENT_REMOVE,
|
||||
payload: {
|
||||
movementId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.MOVEMENT_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param customSense
|
||||
*/
|
||||
export function senseAdd(customSense) {
|
||||
return {
|
||||
type: actionTypes.SENSE_ADD,
|
||||
payload: Object.assign({}, customSense),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SENSE_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param customSense
|
||||
*/
|
||||
export function senseSet(customSense) {
|
||||
return {
|
||||
type: actionTypes.SENSE_SET,
|
||||
payload: Object.assign({}, customSense),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SENSE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param senseId
|
||||
*/
|
||||
export function senseRemove(senseId) {
|
||||
return {
|
||||
type: actionTypes.SENSE_REMOVE,
|
||||
payload: {
|
||||
senseId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SENSE_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param proficiency
|
||||
*/
|
||||
export function customProficiencyAdd(proficiency) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_PROFICIENCY_ADD,
|
||||
payload: {
|
||||
proficiency,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_PROFICIENCY_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
export function customProficiencyRemove(id) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_PROFICIENCY_REMOVE,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_PROFICIENCY_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param properties
|
||||
*/
|
||||
export function customProficiencySet(id, properties) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_PROFICIENCY_SET,
|
||||
payload: {
|
||||
id,
|
||||
properties,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_PROFICIENCY_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param customDefenseAdjustment
|
||||
*/
|
||||
export function customDefenseAdjustmentAdd(customDefenseAdjustment) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_DEFENSE_ADJUSTMENT_ADD,
|
||||
payload: Object.assign({}, customDefenseAdjustment),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_DEFENSE_ADJUSTMENT_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param customDefenseAdjustment
|
||||
*/
|
||||
export function customDefenseAdjustmentSet(customDefenseAdjustment) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_DEFENSE_ADJUSTMENT_SET,
|
||||
payload: Object.assign({}, customDefenseAdjustment),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_DEFENSE_ADJUSTMENT_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param type
|
||||
* @param adjustmentId
|
||||
*/
|
||||
export function customDefenseAdjustmentRemove(type, adjustmentId) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_DEFENSE_ADJUSTMENT_REMOVE,
|
||||
payload: {
|
||||
type,
|
||||
adjustmentId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_DEFENSE_ADJUSTMENT_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param statId
|
||||
* @param value
|
||||
*/
|
||||
export function abilityScoreBonusSet(statId, value) {
|
||||
return {
|
||||
type: actionTypes.ABILITY_SCORE_BONUS_SET,
|
||||
payload: {
|
||||
statId,
|
||||
value,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ABILITY_SCORE_BONUS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param statId
|
||||
* @param value
|
||||
*/
|
||||
export function abilityScoreOverrideSet(statId, value) {
|
||||
return {
|
||||
type: actionTypes.ABILITY_SCORE_OVERRIDE_SET,
|
||||
payload: {
|
||||
statId,
|
||||
value,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ABILITY_SCORE_OVERRIDE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param statId
|
||||
* @param value
|
||||
*/
|
||||
export function abilityScoreBaseSet(statId, value) {
|
||||
return {
|
||||
type: actionTypes.ABILITY_SCORE_BASE_SET,
|
||||
payload: {
|
||||
statId,
|
||||
value,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ABILITY_SCORE_BASE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param status
|
||||
*/
|
||||
export function statusSet(status) {
|
||||
return {
|
||||
type: actionTypes.STATUS_SET,
|
||||
payload: {
|
||||
status,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.STATUS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param statusSlug
|
||||
*/
|
||||
export function statusSlugSet(statusSlug) {
|
||||
return {
|
||||
type: actionTypes.STATUS_SLUG_SET,
|
||||
payload: {
|
||||
statusSlug,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.STATUS_SLUG_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param {array} choices
|
||||
* @param {array} choices.background
|
||||
* @param {array} choices.class
|
||||
* @param {array} choices.feat
|
||||
* @param {array} choices.race
|
||||
*/
|
||||
export function choicesSet(choices) {
|
||||
return {
|
||||
type: actionTypes.CHOICES_SET,
|
||||
payload: {
|
||||
choices,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CHOICES_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param charClass
|
||||
* @param level
|
||||
*/
|
||||
export function classAddRequest(charClass, level) {
|
||||
return {
|
||||
type: actionTypes.CLASS_ADD_REQUEST,
|
||||
payload: {
|
||||
charClass,
|
||||
level,
|
||||
},
|
||||
meta: {
|
||||
postAction: {
|
||||
type: [actionTypes.CLASS_ADD_POST_ACTION],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param characterClassId
|
||||
* @param newCharacterXp
|
||||
*/
|
||||
export function classRemoveRequest(characterClassId, newCharacterXp = null) {
|
||||
return {
|
||||
type: actionTypes.CLASS_REMOVE_REQUEST,
|
||||
payload: {
|
||||
characterClassId,
|
||||
newCharacterXp,
|
||||
},
|
||||
meta: {
|
||||
postAction: {
|
||||
type: [actionTypes.CLASS_REMOVE_POST_ACTION],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param classId
|
||||
* @param level
|
||||
* @param newCharacterXp
|
||||
*/
|
||||
export function classLevelSetRequest(classId, level, newCharacterXp = null) {
|
||||
return {
|
||||
type: actionTypes.CLASS_LEVEL_SET_REQUEST,
|
||||
payload: {
|
||||
classId,
|
||||
level,
|
||||
newCharacterXp,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
// TODO needs commit workflow
|
||||
/**
|
||||
*
|
||||
* @param charClass
|
||||
*/
|
||||
export function classAdd(charClass) {
|
||||
return {
|
||||
type: actionTypes.CLASS_ADD,
|
||||
payload: {
|
||||
charClass,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
// TODO needs commit workflow
|
||||
/**
|
||||
*
|
||||
* @param classes
|
||||
*/
|
||||
export function classesSet(classes) {
|
||||
return {
|
||||
type: actionTypes.CLASSES_SET,
|
||||
payload: {
|
||||
classes,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CLASSES_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
// TODO needs commit workflow
|
||||
/**
|
||||
*
|
||||
* @param charClass
|
||||
*/
|
||||
export function classSet(charClass) {
|
||||
return {
|
||||
type: actionTypes.CLASS_SET,
|
||||
payload: Object.assign({}, charClass),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CLASS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param classId
|
||||
* @param classFeatureId
|
||||
* @param choiceType
|
||||
* @param choiceId
|
||||
* @param optionValue
|
||||
*/
|
||||
export function classFeatureChoiceSetRequest(classId, classFeatureId, choiceType, choiceId, optionValue, parentChoiceId) {
|
||||
return {
|
||||
type: actionTypes.CLASS_FEATURE_CHOICE_SET_REQUEST,
|
||||
payload: {
|
||||
classId,
|
||||
classFeatureId,
|
||||
choiceType,
|
||||
choiceId,
|
||||
optionValue,
|
||||
parentChoiceId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param level
|
||||
*/
|
||||
export function conditionSet(id, level = null) {
|
||||
return {
|
||||
type: actionTypes.CONDITION_SET,
|
||||
payload: {
|
||||
id,
|
||||
level,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param level
|
||||
*/
|
||||
export function conditionAdd(id, level = null) {
|
||||
return {
|
||||
type: actionTypes.CONDITION_ADD,
|
||||
payload: {
|
||||
id,
|
||||
level,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
export function conditionRemove(id) {
|
||||
return {
|
||||
type: actionTypes.CONDITION_REMOVE,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param conditions
|
||||
*/
|
||||
export function conditionsSet(conditions) {
|
||||
return {
|
||||
type: actionTypes.CONDITIONS_SET,
|
||||
payload: {
|
||||
conditions,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CONDITIONS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param showHelpText
|
||||
*/
|
||||
export function showHelpTextSet(showHelpText) {
|
||||
return {
|
||||
type: actionTypes.SHOW_HELP_TEXT_SET,
|
||||
payload: {
|
||||
showHelpText,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param showHelpText
|
||||
*/
|
||||
export function showHelpTextSetRequest(showHelpText) {
|
||||
return {
|
||||
type: actionTypes.SHOW_HELP_TEXT_SET_REQUEST,
|
||||
payload: {
|
||||
showHelpText,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param startingEquipmentType
|
||||
*/
|
||||
export function startingEquipmentTypeSet(startingEquipmentType) {
|
||||
return {
|
||||
type: actionTypes.STARTING_EQUIPMENT_TYPE_SET,
|
||||
payload: {
|
||||
startingEquipmentType,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param payload
|
||||
*/
|
||||
export function startingEquipmentTypeSetCommit(payload) {
|
||||
return {
|
||||
type: actionTypes.STARTING_EQUIPMENT_TYPE_SET_COMMIT,
|
||||
payload,
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param abilityScoreType
|
||||
*/
|
||||
export function abilityScoreTypeSetRequest(abilityScoreType) {
|
||||
return {
|
||||
type: actionTypes.ABILITY_SCORE_TYPE_SET_REQUEST,
|
||||
payload: {
|
||||
abilityScoreType,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param abilityScoreType
|
||||
*/
|
||||
export function abilityScoreTypeSetCommit(abilityScoreType) {
|
||||
return {
|
||||
type: actionTypes.ABILITY_SCORE_TYPE_SET_COMMIT,
|
||||
payload: {
|
||||
abilityScoreType,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
// TODO needs commit flow
|
||||
/**
|
||||
*
|
||||
* @param data
|
||||
*/
|
||||
export function characterSet(data) {
|
||||
return {
|
||||
type: actionTypes.CHARACTER_SET,
|
||||
payload: Object.assign({}, data),
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param activeSourceCategories
|
||||
*/
|
||||
export function activeSourceCategoriesSet(activeSourceCategories) {
|
||||
return {
|
||||
type: actionTypes.ACTIVE_SOURCE_CATEGORIES_SET,
|
||||
payload: {
|
||||
activeSourceCategories,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ACTIVE_SOURCE_CATEGORIES_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
export function activeSourcesSet(enabledSourceIds, campaignSettingId) {
|
||||
return {
|
||||
type: actionTypes.ACTIVE_SOURCES_SET,
|
||||
payload: {
|
||||
enabledSourceIds,
|
||||
campaignSettingId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ACTIVE_SOURCES_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param key
|
||||
* @param value
|
||||
*/
|
||||
export function preferenceChoose(key, value) {
|
||||
return {
|
||||
type: actionTypes.PREFERENCE_CHOOSE,
|
||||
payload: {
|
||||
key,
|
||||
value,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param key
|
||||
* @param value
|
||||
*/
|
||||
export function preferenceSet(key, value) {
|
||||
return {
|
||||
type: actionTypes.PREFERENCE_SET,
|
||||
payload: {
|
||||
[key]: value,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.PREFERENCE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param components
|
||||
*/
|
||||
export function characterComponentsSet(components) {
|
||||
return {
|
||||
type: actionTypes.CHARACTER_COMPONENTS_SET,
|
||||
payload: Object.assign({}, components),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CHARACTER_COMPONENTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param socialImageData
|
||||
*/
|
||||
export function SendSocialImageData() {
|
||||
return {
|
||||
type: actionTypes.SEND_SOCIAL_IMAGE_DATA,
|
||||
payload: {},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param groupId
|
||||
* @param monsterId
|
||||
* @param names
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function creatureCreate(groupId, monsterId, names, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.CREATURE_CREATE,
|
||||
payload: {
|
||||
groupId,
|
||||
monsterId,
|
||||
names,
|
||||
},
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param creature
|
||||
*/
|
||||
export function creatureAdd(creature) {
|
||||
return {
|
||||
type: actionTypes.CREATURE_ADD,
|
||||
payload: {
|
||||
creature,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CREATURE_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
export function creatureRemove(id) {
|
||||
return {
|
||||
type: actionTypes.CREATURE_REMOVE,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CREATURE_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param properties
|
||||
*/
|
||||
export function creatureDataSet(id, properties) {
|
||||
return {
|
||||
type: actionTypes.CREATURE_DATA_SET,
|
||||
payload: {
|
||||
id,
|
||||
properties,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CREATURE_DATA_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param removedHitPoints
|
||||
* @param temporaryHitPoints
|
||||
*/
|
||||
export function creatureHitPointsSet(id, removedHitPoints, temporaryHitPoints) {
|
||||
return {
|
||||
type: actionTypes.CREATURE_HIT_POINTS_SET,
|
||||
payload: {
|
||||
id,
|
||||
removedHitPoints,
|
||||
temporaryHitPoints,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CREATURE_HIT_POINTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param isActive
|
||||
*/
|
||||
export function creatureActiveSet(id, isActive) {
|
||||
return {
|
||||
type: actionTypes.CREATURE_ACTIVE_SET,
|
||||
payload: {
|
||||
id,
|
||||
isActive,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CREATURE_ACTIVE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param mappingId
|
||||
* @param mappingEntityTypeId
|
||||
*/
|
||||
export function creatureCustomizationsDelete(mappingId, mappingEntityTypeId) {
|
||||
return {
|
||||
type: actionTypes.CREATURE_CUSTOMIZATIONS_DELETE,
|
||||
payload: {
|
||||
mappingId,
|
||||
mappingEntityTypeId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param backdrop
|
||||
*/
|
||||
export function backdropSet(backdrop) {
|
||||
return {
|
||||
type: actionTypes.BACKDROP_SET,
|
||||
payload: {
|
||||
backdrop,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.BACKDROP_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param frame
|
||||
*/
|
||||
export function frameSet(frame) {
|
||||
return {
|
||||
type: actionTypes.FRAME_SET,
|
||||
payload: {
|
||||
frame,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.FRAME_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param themeColor
|
||||
*/
|
||||
export function themeSet(themeColor) {
|
||||
return {
|
||||
type: actionTypes.THEME_SET,
|
||||
payload: {
|
||||
themeColor,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.THEME_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param avatarId
|
||||
* @param avatarUrl
|
||||
*/
|
||||
export function portraitSet(avatarId, avatarUrl) {
|
||||
return {
|
||||
type: actionTypes.PORTRAIT_SET,
|
||||
payload: {
|
||||
avatarId,
|
||||
avatarUrl,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.PORTRAIT_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param avatarImage
|
||||
*/
|
||||
export function portraitUpload(avatarImage) {
|
||||
return {
|
||||
type: actionTypes.PORTRAIT_UPLOAD,
|
||||
payload: {
|
||||
avatarImage,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param feats
|
||||
*/
|
||||
export function featsSet(feats) {
|
||||
return {
|
||||
type: actionTypes.FEATS_SET,
|
||||
payload: {
|
||||
feats,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.FEATS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param featId
|
||||
* @param choiceType
|
||||
* @param choiceId
|
||||
* @param optionValue
|
||||
*/
|
||||
export function featChoiceSetRequest(featId, choiceType, choiceId, optionValue) {
|
||||
return {
|
||||
type: actionTypes.FEAT_CHOICE_SET_REQUEST,
|
||||
payload: {
|
||||
featId,
|
||||
choiceType,
|
||||
choiceId,
|
||||
optionValue,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
export function adhocFeatCreate(id) {
|
||||
return {
|
||||
type: actionTypes.ADHOC_FEAT_CREATE,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
export function adhocFeatRemove(id) {
|
||||
return {
|
||||
type: actionTypes.ADHOC_FEAT_REMOVE,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param featureId
|
||||
* @param featureTypeId
|
||||
*/
|
||||
export function setEntityFeat(id, featureId, featureTypeId) {
|
||||
return {
|
||||
type: actionTypes.SET_ENTITY_FEAT,
|
||||
payload: {
|
||||
id,
|
||||
featureId,
|
||||
featureTypeId,
|
||||
},
|
||||
meta: {}, // TODO consider passing accept and reject callbacks into meta
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,460 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param item
|
||||
* @param quantity
|
||||
* @param accept
|
||||
* @param reject
|
||||
* @param containerDefinitionKey
|
||||
*/
|
||||
export function itemCreate(item, quantity, accept, reject, containerDefinitionKey) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CREATE,
|
||||
payload: {
|
||||
item,
|
||||
quantity,
|
||||
containerDefinitionKey,
|
||||
},
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param name
|
||||
* @param description
|
||||
* @param cost
|
||||
* @param quantity
|
||||
* @param weight
|
||||
* @param notes
|
||||
* @param containerDefinitionKey
|
||||
* @param partyId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function customItemCreate(name, description = null, cost = null, quantity = null, weight = null, notes = null, containerDefinitionKey, partyId = null, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ITEM_CREATE,
|
||||
payload: {
|
||||
name,
|
||||
description,
|
||||
cost,
|
||||
quantity,
|
||||
weight,
|
||||
notes,
|
||||
containerDefinitionKey,
|
||||
partyId,
|
||||
},
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param mappingId
|
||||
* @param partyId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function customItemDestroy(id, mappingId, partyId = null, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ITEM_DESTROY,
|
||||
payload: {
|
||||
id,
|
||||
mappingId,
|
||||
partyId,
|
||||
},
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param item
|
||||
*/
|
||||
export function customItemAdd(item) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ITEM_ADD,
|
||||
payload: {
|
||||
item,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_ITEM_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
export function customItemRemove(id) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ITEM_REMOVE,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_ITEM_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param properties
|
||||
* @param mappingId
|
||||
* @param partyId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function customItemSet(id, properties, mappingId, partyId = null, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.CUSTOM_ITEM_SET,
|
||||
payload: {
|
||||
id,
|
||||
properties,
|
||||
mappingId,
|
||||
partyId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CUSTOM_ITEM_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param item
|
||||
*/
|
||||
export function itemAdd(item) {
|
||||
return {
|
||||
type: actionTypes.ITEM_ADD,
|
||||
payload: {
|
||||
item,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param removeContainerContents
|
||||
*/
|
||||
export function itemRemove(id, removeContainerContents) {
|
||||
return {
|
||||
type: actionTypes.ITEM_REMOVE,
|
||||
payload: {
|
||||
id,
|
||||
removeContainerContents,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param removeContainerContents
|
||||
*/
|
||||
export function itemDestroy(id, removeContainerContents, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.ITEM_DESTROY,
|
||||
payload: {
|
||||
id,
|
||||
removeContainerContents,
|
||||
},
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param value
|
||||
*/
|
||||
export function itemEquippedSet(id, value, equippedEntityId, equippedEntityTypeId, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.ITEM_EQUIPPED_SET,
|
||||
payload: {
|
||||
id,
|
||||
value,
|
||||
equippedEntityId,
|
||||
equippedEntityTypeId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_EQUIPPED_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param value
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function itemAttuneSet(id, value, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.ITEM_ATTUNE_SET,
|
||||
payload: {
|
||||
id,
|
||||
value,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_ATTUNE_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param containerEntityId
|
||||
* @param containerEntityTypeId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function itemMoveSet(id, containerEntityId, containerEntityTypeId, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.ITEM_MOVE_SET,
|
||||
payload: {
|
||||
id,
|
||||
containerEntityId,
|
||||
containerEntityTypeId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_MOVE_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param quantity
|
||||
* @param containerEntityId
|
||||
* @param containerEntityTypeId
|
||||
*/
|
||||
export function itemQuantitySet(id, quantity, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.ITEM_QUANTITY_SET,
|
||||
payload: {
|
||||
id,
|
||||
quantity,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_QUANTITY_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param uses
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function itemChargesSet(id, uses, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CHARGES_SET,
|
||||
payload: {
|
||||
id,
|
||||
uses,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_CHARGES_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param mappingId
|
||||
* @param mappingEntityTypeId
|
||||
* @param partyId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function itemCustomizationsDelete(mappingId, mappingEntityTypeId, partyId, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CUSTOMIZATIONS_DELETE,
|
||||
payload: {
|
||||
mappingId,
|
||||
mappingEntityTypeId,
|
||||
partyId,
|
||||
},
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param currencies
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function itemCurrencySet(currency, id, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CURRENCY_SET,
|
||||
payload: {
|
||||
currency,
|
||||
id,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_CURRENCY_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function itemCurrencyCopperSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CURRENCY_COPPER_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityTypeId,
|
||||
destinationEntityId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_CURRENCY_COPPER_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function itemCurrencySilverSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CURRENCY_SILVER_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityTypeId,
|
||||
destinationEntityId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_CURRENCY_SILVER_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function itemCurrencyElectrumSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CURRENCY_ELECTRUM_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityTypeId,
|
||||
destinationEntityId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_CURRENCY_ELECTRUM_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function itemCurrencyGoldSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CURRENCY_GOLD_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityTypeId,
|
||||
destinationEntityId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_CURRENCY_GOLD_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param amount
|
||||
* @param destinationEntityTypeId
|
||||
* @param destinationEntityId
|
||||
*/
|
||||
export function itemCurrencyPlatinumSet(amount, destinationEntityTypeId, destinationEntityId) {
|
||||
return {
|
||||
type: actionTypes.ITEM_CURRENCY_PLATINUM_SET,
|
||||
payload: {
|
||||
amount,
|
||||
destinationEntityTypeId,
|
||||
destinationEntityId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ITEM_CURRENCY_PLATINUM_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param modifiers
|
||||
*/
|
||||
export function modifiersSet(modifiers) {
|
||||
return {
|
||||
type: actionTypes.MODIFIERS_SET,
|
||||
payload: {
|
||||
modifiers,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.MODIFIERS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param options
|
||||
*/
|
||||
export function optionsSet(options) {
|
||||
return {
|
||||
type: actionTypes.OPTIONS_SET,
|
||||
payload: {
|
||||
options,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.OPTIONS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param classFeatureId
|
||||
* @param affectedClassFeatureId
|
||||
*/
|
||||
export function optionalClassFeatureCreate(classFeatureId, affectedClassFeatureId) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_CREATE,
|
||||
payload: {
|
||||
classFeatureId,
|
||||
affectedClassFeatureId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param optionalClassFeature
|
||||
*/
|
||||
export function optionalClassFeatureAdd(optionalClassFeature) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_ADD,
|
||||
payload: {
|
||||
optionalClassFeature,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param classFeatureId
|
||||
* @param affectedClassFeatureId
|
||||
*/
|
||||
export function optionalClassFeatureSetRequest(classFeatureId, affectedClassFeatureId) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_SET_REQUEST,
|
||||
payload: {
|
||||
classFeatureId,
|
||||
affectedClassFeatureId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param optionalClassFeatureProps
|
||||
*/
|
||||
export function optionalClassFeatureSet(optionalClassFeatureProps) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_SET,
|
||||
payload: Object.assign({}, optionalClassFeatureProps),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param classFeatureId
|
||||
*/
|
||||
export function optionalClassFeatureDestroy(classFeatureId) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_DESTROY,
|
||||
payload: {
|
||||
classFeatureId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param classFeatureId
|
||||
*/
|
||||
export function optionalClassFeatureRemove(classFeatureId) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_REMOVE,
|
||||
payload: {
|
||||
classFeatureId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.OPTIONAL_CLASS_FEATURE_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param racialTraitId
|
||||
* @param affectedRacialTraitId
|
||||
*/
|
||||
export function optionalOriginCreate(racialTraitId, affectedRacialTraitId) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_CREATE,
|
||||
payload: {
|
||||
racialTraitId,
|
||||
affectedRacialTraitId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param optionalOrigin
|
||||
*/
|
||||
export function optionalOriginAdd(optionalOrigin) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_ADD,
|
||||
payload: {
|
||||
optionalOrigin,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param racialTraitId
|
||||
* @param affectedRacialTraitId
|
||||
*/
|
||||
export function optionalOriginSetRequest(racialTraitId, affectedRacialTraitId) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_SET_REQUEST,
|
||||
payload: {
|
||||
racialTraitId,
|
||||
affectedRacialTraitId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param optionalOriginContract
|
||||
*/
|
||||
export function optionalOriginSet(optionalOriginContract) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_SET,
|
||||
payload: Object.assign({}, optionalOriginContract),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param racialTraitId
|
||||
*/
|
||||
export function optionalOriginDestroy(racialTraitId) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_DESTROY,
|
||||
payload: {
|
||||
racialTraitId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param racialTraitId
|
||||
*/
|
||||
export function optionalOriginRemove(racialTraitId) {
|
||||
return {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_REMOVE,
|
||||
payload: {
|
||||
racialTraitId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.OPTIONAL_ORIGIN_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
export function premadeInfoSetCommit(premadeInfo) {
|
||||
return {
|
||||
type: actionTypes.PREMADE_INFO_SET_COMMIT,
|
||||
payload: premadeInfo,
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
export function premadeInfoAdd(premadeInfo) {
|
||||
return {
|
||||
type: actionTypes.PREMADE_INFO_ADD,
|
||||
payload: premadeInfo,
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.PREMADE_INFO_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
export function premadeInfoGet(characterId) {
|
||||
return {
|
||||
type: actionTypes.PREMADE_INFO_GET,
|
||||
payload: {
|
||||
characterId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.PREMADE_INFO_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
export function premadeInfoUpdate(premadeInfo) {
|
||||
return {
|
||||
type: actionTypes.PREMADE_INFO_UPDATE,
|
||||
payload: premadeInfo,
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.PREMADE_INFO_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
export function premadeInfoDelete(characterId) {
|
||||
return {
|
||||
type: actionTypes.PREMADE_INFO_DELETE,
|
||||
payload: {
|
||||
characterId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.PREMADE_INFO_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param race
|
||||
*/
|
||||
export function raceChoose(race) {
|
||||
return {
|
||||
type: actionTypes.RACE_CHOOSE,
|
||||
payload: {
|
||||
race,
|
||||
},
|
||||
meta: {
|
||||
postAction: {
|
||||
type: [actionTypes.RACE_CHOOSE_POST_ACTION],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param race
|
||||
*/
|
||||
export function raceSet(race) {
|
||||
return {
|
||||
type: actionTypes.RACE_SET,
|
||||
payload: {
|
||||
race,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.RACE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param racialTraitId
|
||||
* @param choiceType
|
||||
* @param choiceId
|
||||
* @param optionValue
|
||||
*/
|
||||
export function racialTraitChoiceSetRequest(racialTraitId, choiceType, choiceId, optionValue) {
|
||||
return {
|
||||
type: actionTypes.RACIAL_TRAIT_CHOICE_SET_REQUEST,
|
||||
payload: {
|
||||
racialTraitId,
|
||||
choiceType,
|
||||
choiceId,
|
||||
optionValue,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
import { SpellAccessors } from '../../../engine/Spell';
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param spell
|
||||
* @param characterClassId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function spellCreate(spell, characterClassId, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.SPELL_CREATE,
|
||||
payload: {
|
||||
spell,
|
||||
characterClassId,
|
||||
},
|
||||
meta: {
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param spell
|
||||
* @param characterClassId
|
||||
*/
|
||||
export function spellAdd(spell, characterClassId) {
|
||||
return {
|
||||
type: actionTypes.SPELL_ADD,
|
||||
payload: {
|
||||
spell,
|
||||
characterClassId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SPELL_ADD_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param spell
|
||||
* @param characterClassId
|
||||
* @param prepared
|
||||
*/
|
||||
export function spellPreparedSet(spell, characterClassId, prepared, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.SPELL_PREPARED_SET,
|
||||
payload: {
|
||||
spellId: SpellAccessors.getId(spell),
|
||||
characterClassId,
|
||||
entityTypeId: SpellAccessors.getMappingEntityTypeId(spell),
|
||||
id: SpellAccessors.getMappingId(spell),
|
||||
prepared,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SPELL_PREPARED_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param spell
|
||||
* @param characterClassId
|
||||
*/
|
||||
export function spellRemove(spell, characterClassId, accept, reject) {
|
||||
const payload = {
|
||||
spellId: SpellAccessors.getId(spell),
|
||||
characterClassId,
|
||||
entityTypeId: SpellAccessors.getMappingEntityTypeId(spell),
|
||||
id: SpellAccessors.getMappingId(spell),
|
||||
};
|
||||
return {
|
||||
type: actionTypes.SPELL_REMOVE,
|
||||
payload: Object.assign(Object.assign({}, payload), { spell }),
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SPELL_REMOVE_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @param entityTypeId
|
||||
* @param uses
|
||||
* @param dataOriginType
|
||||
*/
|
||||
export function spellUseSet(id, entityTypeId, uses, dataOriginType) {
|
||||
return {
|
||||
type: actionTypes.SPELL_USE_SET,
|
||||
payload: {
|
||||
id,
|
||||
entityTypeId,
|
||||
uses,
|
||||
dataOriginType,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SPELL_USE_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param pactMagic
|
||||
*/
|
||||
export function pactMagicSet(pactMagic) {
|
||||
return {
|
||||
type: actionTypes.PACT_MAGIC_SET,
|
||||
payload: {
|
||||
pactMagic,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.PACT_MAGIC_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param spellSlots
|
||||
*/
|
||||
export function spellSlotsSet(spellSlots) {
|
||||
return {
|
||||
type: actionTypes.SPELLS_SLOTS_SET,
|
||||
payload: {
|
||||
spellSlots,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SPELLS_SLOTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param levels
|
||||
*/
|
||||
export function spellLevelSpellSlotsSet(levels) {
|
||||
return {
|
||||
type: actionTypes.SPELL_LEVEL_SPELL_SLOTS_SET,
|
||||
payload: levels,
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SPELL_LEVEL_SPELL_SLOTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param levels
|
||||
*/
|
||||
export function spellLevelPactMagicSlotsSet(levels) {
|
||||
return {
|
||||
type: actionTypes.SPELL_LEVEL_PACT_MAGIC_SLOTS_SET,
|
||||
payload: levels,
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.SPELL_LEVEL_PACT_MAGIC_SLOTS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param mappingId
|
||||
* @param mappingEntityTypeId
|
||||
* @param contextId
|
||||
* @param contextTypeId
|
||||
*/
|
||||
export function spellCustomizationsDelete(mappingId, mappingEntityTypeId, contextId = null, contextTypeId = null) {
|
||||
return {
|
||||
type: actionTypes.SPELL_CUSTOMIZATIONS_DELETE,
|
||||
payload: {
|
||||
mappingId,
|
||||
mappingEntityTypeId,
|
||||
contextId,
|
||||
contextTypeId,
|
||||
},
|
||||
meta: {},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param spells
|
||||
*/
|
||||
export function characterSpellsSet(spells) {
|
||||
return {
|
||||
type: actionTypes.CHARACTER_SPELLS_SET,
|
||||
payload: {
|
||||
spells,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.CHARACTER_SPELLS_SET_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
import * as actionTypes from '../actionTypes';
|
||||
/**
|
||||
*
|
||||
* @param typeId
|
||||
* @param value
|
||||
* @param notes
|
||||
* @param valueId
|
||||
* @param valueTypeId
|
||||
* @param contextId
|
||||
* @param contextTypeId
|
||||
* @param partyId
|
||||
* @param accept
|
||||
* @param reject
|
||||
*/
|
||||
export function valueSet(typeId, value, notes, valueId = null, valueTypeId = null, contextId = null, contextTypeId = null, partyId = null, accept, reject) {
|
||||
return {
|
||||
type: actionTypes.VALUE_SET,
|
||||
payload: {
|
||||
typeId,
|
||||
value,
|
||||
notes,
|
||||
valueId,
|
||||
valueTypeId,
|
||||
contextId,
|
||||
contextTypeId,
|
||||
partyId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.VALUE_SET_COMMIT,
|
||||
},
|
||||
accept,
|
||||
reject,
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
* @param typeId
|
||||
* @param valueId
|
||||
* @param valueTypeId
|
||||
* @param contextId
|
||||
* @param contextTypeId
|
||||
* @param partyId
|
||||
*/
|
||||
export function valueRemove(typeId, valueId = null, valueTypeId = null, contextId = null, contextTypeId = null, partyId = null) {
|
||||
return {
|
||||
type: actionTypes.VALUE_REMOVE,
|
||||
payload: {
|
||||
typeId,
|
||||
valueId,
|
||||
valueTypeId,
|
||||
contextId,
|
||||
contextTypeId,
|
||||
partyId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.VALUE_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param valueId
|
||||
* @param valueTypeId
|
||||
* @param contextId
|
||||
* @param contextTypeId
|
||||
* @param partyId
|
||||
*/
|
||||
export function entityValuesRemove(valueId = null, valueTypeId = null, contextId = null, contextTypeId = null, partyId = null) {
|
||||
return {
|
||||
type: actionTypes.ENTITY_VALUES_REMOVE,
|
||||
payload: {
|
||||
valueId,
|
||||
valueTypeId,
|
||||
contextId,
|
||||
contextTypeId,
|
||||
partyId,
|
||||
},
|
||||
meta: {
|
||||
commit: {
|
||||
type: actionTypes.ENTITY_VALUES_REMOVE_COMMIT,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import * as actionTypes from './actionTypes';
|
||||
import * as actions from './actions';
|
||||
import * as typings from './typings';
|
||||
export const characterActionTypes = actionTypes;
|
||||
export const characterActions = actions;
|
||||
export const characterTypings = typings;
|
||||
Reference in New Issue
Block a user