diff --git a/census.full.json b/census.full.json new file mode 100644 index 0000000..d158455 --- /dev/null +++ b/census.full.json @@ -0,0 +1,6275 @@ +[ + { + "name": "single_character_by_id", + "resolve_list": ["online_status", "friends", "world", "outfit", "item", "profile", "faction"], + "type": { + "character_id": "string", + "name": {"first": "string", "first_lower": "string"}, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": {"percent_to_next": "string", "value": "string"}, + "profile_id": "string", + "daily_ribbon": {"count": "string", "time": "string", "date": "string"}, + "prestige_level": "string", + "currency": { + "currency_id": "string", + "currency_name": "string", + "quantity": "string", + "prestige_currency": "string" + }, + "stats": { + "stat_history": { + "deaths": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "kills": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "score": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "time": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "facility_capture": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "facility_defend": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "battle_rank": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "certs": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "medals": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "ribbons": { + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + }, "stat": [ + { + "character_id": "string", + "stat_name": "string", + "profile_id": "string", + "value_forever": "string", + "value_monthly": "string", + "value_weekly": "string", + "value_daily": "string", + "value_one_life_max": "string", + "last_save": "string", + "last_save_date": "string" + } + ], "stat_by_faction": [ + { + "character_id": "string", + "stat_name": "string", + "profile_id": "string", + "value_forever_vs": "string", + "value_forever_nc": "string", + "value_forever_tr": "string", + "value_monthly_vs": "string", + "value_monthly_nc": "string", + "value_monthly_tr": "string", + "value_weekly_vs": "string", + "value_weekly_nc": "string", + "value_weekly_tr": "string", + "value_daily_vs": "string", + "value_daily_nc": "string", + "value_daily_tr": "string", + "value_one_life_max_vs": "string", + "value_one_life_max_nc": "string", + "value_one_life_max_tr": "string", + "last_save": "string", + "last_save_date": "string" + } + ], "weapon_stat": [ + { + "character_id": "string", + "stat_name": "string", + "item_id": "string", + "vehicle_id": "string", + "value": "string", + "last_save": "string", + "last_save_date": "string" + } + ], "weapon_stat_by_faction": [ + { + "character_id": "string", + "stat_name": "string", + "item_id": "string", + "vehicle_id": "string", + "value_vs": "string", + "value_nc": "string", + "value_tr": "string", + "last_save": "string", + "last_save_date": "string" + } + ] + }, + "online_status": "string", + "friends_list": [[]], + "world_id": "string", + "outfit": { + "member_since": "string", + "member_since_date": "string", + "member_rank": "string", + "member_rank_ordinal": "string", + "outfit_id": "string", + "name": "string", + "name_lower": "string", + "alias": "string", + "alias_lower": "string", + "time_created": "string", + "time_created_date": "string", + "leader_character_id": "string", + "member_count": "string" + }, + "items": [ + { + "item_id": "string", + "account_level": "string", + "item_id_merged": "string", + "item_type_id": "string", + "item_category_id": "string", + "activatable_ability_id": "string", + "is_vehicle_weapon": "string", + "name": "lang", + "description": "lang", + "faction_id": "string", + "max_stack_size": "string", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "is_default_attachment": "string" + } + ], + "sub_timing": {}, + "profile": { + "profile_type_id": "string", + "profile_type_description": "string", + "faction_id": "string", + "name": "lang", + "description": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "movement_speed": "string", + "backpedal_speed_modifier": "string", + "sprint_speed_modifier": "string", + "strafe_speed_modifier": "string" + }, + "faction": { + "name": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "code_tag": "string", + "user_selectable": "string" + } + }, + "query": ["character_id"] + }, + { + "name": "character", + "resolve_list": [ + "item", + "item_full", + "profile", + "faction", + "stat", + "stat_by_faction", + "weapon_stat", + "weapon_stat_by_faction", + "stat_history", + "online_status", + "friends", + "world", + "outfit", + "outfit_member", + "outfit_member_extended", + "currency" + ], + "type": { + "character_id": "string", + "name": {"first": "string", "first_lower": "string"}, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": {"percent_to_next": "string", "value": "string"}, + "profile_id": "string", + "daily_ribbon": {"count": "string", "time": "string", "date": "string"}, + "prestige_level": "string", + "items": [ + { + "item_id": "string", + "item_type_id": "string", + "item_category_id": "string", + "is_vehicle_weapon": "string", + "name": "lang", + "description": "lang", + "faction_id": "string", + "max_stack_size": "string", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "is_default_attachment": "string", + "item_id_merged": "string" + } + ], + "stats": { + "stat": [ + { + "stat_name": "string", + "profile_id": "string", + "value_forever": "string", + "value_monthly": "string", + "value_weekly": "string", + "value_daily": "string", + "value_one_life_max": "string", + "last_save": "string", + "last_save_date": "string" + } + ], "weapon_stat": [ + { + "stat_name": "string", + "item_id": "string", + "vehicle_id": "string", + "value": "string", + "last_save": "string", + "last_save_date": "string" + } + ], "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ], "stat_by_faction": [ + { + "stat_name": "string", + "profile_id": "string", + "value_forever_vs": "string", + "value_forever_nc": "string", + "value_forever_tr": "string", + "value_monthly_vs": "string", + "value_monthly_nc": "string", + "value_monthly_tr": "string", + "value_weekly_vs": "string", + "value_weekly_nc": "string", + "value_weekly_tr": "string", + "value_daily_vs": "string", + "value_daily_nc": "string", + "value_daily_tr": "string", + "value_one_life_max_vs": "string", + "value_one_life_max_nc": "string", + "value_one_life_max_tr": "string", + "last_save": "string", + "last_save_date": "string" + } + ], "weapon_stat_by_faction": [ + { + "stat_name": "string", + "item_id": "string", + "vehicle_id": "string", + "value_vs": "string", + "value_nc": "string", + "value_tr": "string", + "last_save": "string", + "last_save_date": "string" + } + ] + }, + "online_status": "string", + "profile": { + "profile_type_id": "string", + "profile_type_description": "string", + "faction_id": "string", + "name": "lang", + "description": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "movement_speed": "string", + "backpedal_speed_modifier": "string", + "sprint_speed_modifier": "string", + "strafe_speed_modifier": "string" + }, + "name_merged": "string", + "friend_list": [ + {"character_id": "string", "last_login_time": "string", "online": "string"} + ], + "world_id": "string", + "faction": { + "name": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "code_tag": "string", + "user_selectable": "string" + }, + "currency": { + "currency_id": "string", + "currency_name": "string", + "quantity": "string", + "prestige_currency": "string" + } + }, + "query": [ + "battle_rank", + "battle_rank.percent_to_next", + "battle_rank.value", + "certs", + "certs.available_points", + "certs.earned_points", + "certs.gifted_points", + "certs.percent_to_next", + "certs.spent_points", + "character_id", + "daily_ribbon", + "daily_ribbon.count", + "daily_ribbon.date", + "daily_ribbon.time", + "faction_id", + "head_id", + "name", + "name.first", + "name.first_lower", + "prestige_level", + "profile_id", + "times", + "times.creation", + "times.creation_date", + "times.last_login", + "times.last_login_date", + "times.last_save", + "times.last_save_date", + "times.login_count", + "times.minutes_played", + "title_id" + ] + }, + { + "name": "character_name", + "resolve_list": [], + "type": {"character_id": "string", "name": {"first": "string", "first_lower": "string"}}, + "query": ["character_id", "name", "name.first", "name.first_lower"] + }, + { + "name": "characters_achievement", + "resolve_list": [], + "type": { + "character_id": "string", + "achievement_id": "string", + "start": "string", + "start_date": "string", + "finish": "string", + "finish_date": "string", + "last_save": "string", + "last_save_date": "string" + }, + "query": [ + "achievement_id", + "character_id", + "earned_count", + "finish", + "finish_date", + "last_save", + "last_save_date", + "start", + "start_date" + ] + }, + { + "name": "characters_currency", + "resolve_list": [], + "type": { + "character_id": "string", + "currency_id": "string", + "currency_name": "string", + "quantity": "string", + "prestige_currency": "string" + }, + "query": ["character_id", "currency_id", "currency_name", "prestige_currency", "quantity"] + }, + { + "name": "characters_directive", + "resolve_list": [], + "type": { + "character_id": "string", + "directive_tree_id": "string", + "directive_id": "string", + "completion_time": "string", + "completion_time_date": "string" + }, + "query": ["character_id", "completion_time", "completion_time_date", "directive_id", "directive_tree_id"] + }, + { + "name": "characters_directive_objective", + "resolve_list": [], + "type": { + "character_id": "string", + "directive_id": "string", + "objective_id": "string", + "objective_group_id": "string", + "status": "string", + "state_data": "string" + }, + "query": ["character_id", "directive_id", "objective_group_id", "objective_id", "state_data", "status"] + }, + { + "name": "characters_directive_tier", + "resolve_list": [], + "type": { + "character_id": "string", + "directive_tree_id": "string", + "directive_tier_id": "string", + "completion_time": "string", + "completion_time_date": "string" + }, + "query": ["character_id", "completion_time", "completion_time_date", "directive_tier_id", "directive_tree_id"] + }, + { + "name": "characters_directive_tree", + "resolve_list": [], + "type": { + "character_id": "string", + "directive_tree_id": "string", + "current_directive_tier_id": "string", + "current_level": "string", + "completion_time": "string", + "completion_time_date": "string" + }, + "query": [ + "character_id", + "completion_time", + "completion_time_date", + "current_directive_tier_id", + "current_level", + "directive_tree_id" + ] + }, + { + "name": "characters_skill", + "resolve_list": [], + "type": {"character_id": "string", "skill_id": "string", "last_save": "string", "last_save_date": "string"}, + "query": ["character_id", "last_save", "last_save_date", "skill_id"] + }, + { + "name": "characters_stat", + "resolve_list": [], + "type": { + "character_id": "string", + "stat_name": "string", + "profile_id": "string", + "value_forever": "string", + "value_monthly": "string", + "value_weekly": "string", + "value_daily": "string", + "value_one_life_max": "string", + "last_save": "string", + "last_save_date": "string" + }, + "query": [ + "character_id", + "last_save", + "last_save_date", + "profile_id", + "stat_name", + "value_daily", + "value_forever", + "value_monthly", + "value_one_life_max", + "value_weekly" + ] + }, + { + "name": "characters_stat_by_faction", + "resolve_list": [], + "type": { + "character_id": "string", + "stat_name": "string", + "profile_id": "string", + "value_forever_vs": "string", + "value_forever_nc": "string", + "value_forever_tr": "string", + "value_monthly_vs": "string", + "value_monthly_nc": "string", + "value_monthly_tr": "string", + "value_weekly_vs": "string", + "value_weekly_nc": "string", + "value_weekly_tr": "string", + "value_daily_vs": "string", + "value_daily_nc": "string", + "value_daily_tr": "string", + "value_one_life_max_vs": "string", + "value_one_life_max_nc": "string", + "value_one_life_max_tr": "string", + "last_save": "string", + "last_save_date": "string" + }, + "query": [ + "character_id", + "last_save", + "last_save_date", + "profile_id", + "stat_name", + "value_daily_nc", + "value_daily_tr", + "value_daily_vs", + "value_forever_nc", + "value_forever_tr", + "value_forever_vs", + "value_monthly_nc", + "value_monthly_tr", + "value_monthly_vs", + "value_one_life_max_nc", + "value_one_life_max_tr", + "value_one_life_max_vs", + "value_weekly_nc", + "value_weekly_tr", + "value_weekly_vs" + ] + }, + { + "name": "characters_stat_history", + "resolve_list": [], + "type": { + "character_id": "string", + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "query": [ + "all_time", + "character_id", + "day", + "day.d01", + "day.d02", + "day.d03", + "day.d04", + "day.d05", + "day.d06", + "day.d07", + "day.d08", + "day.d09", + "day.d10", + "day.d11", + "day.d12", + "day.d13", + "day.d14", + "day.d15", + "day.d16", + "day.d17", + "day.d18", + "day.d19", + "day.d20", + "day.d21", + "day.d22", + "day.d23", + "day.d24", + "day.d25", + "day.d26", + "day.d27", + "day.d28", + "day.d29", + "day.d30", + "day.d31", + "last_save", + "last_save_date", + "month", + "month.m01", + "month.m02", + "month.m03", + "month.m04", + "month.m05", + "month.m06", + "month.m07", + "month.m08", + "month.m09", + "month.m10", + "month.m11", + "month.m12", + "one_life_max", + "stat_name", + "week", + "week.w01", + "week.w02", + "week.w03", + "week.w04", + "week.w05", + "week.w06", + "week.w07", + "week.w08", + "week.w09", + "week.w10", + "week.w11", + "week.w12", + "week.w13" + ] + }, + { + "name": "characters_weapon_stat", + "resolve_list": ["item", "vehicle"], + "type": { + "character_id": "string", + "stat_name": "string", + "item_id": "string", + "vehicle_id": "string", + "value": "string", + "last_save": "string", + "last_save_date": "string", + "vehicle": { + "name": "lang", + "description": "lang", + "type_id": "string", + "type_name": "string", + "cost": "string", + "cost_resource_id": "string", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + } + }, + "query": ["character_id", "item_id", "last_save", "last_save_date", "stat_name", "value", "vehicle_id"] + }, + { + "name": "characters_weapon_stat_by_faction", + "resolve_list": ["item", "vehicle"], + "type": { + "character_id": "string", + "stat_name": "string", + "item_id": "string", + "vehicle_id": "string", + "value_vs": "string", + "value_nc": "string", + "value_tr": "string", + "last_save": "string", + "last_save_date": "string", + "item": { + "item_type_id": "string", + "item_category_id": "string", + "is_vehicle_weapon": "string", + "name": "lang", + "description": "lang", + "faction_id": "string", + "max_stack_size": "string", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "skill_set_id": "string", + "is_default_attachment": "string" + } + }, + "query": [ + "character_id", + "item_id", + "last_save", + "last_save_date", + "stat_name", + "value_nc", + "value_tr", + "value_vs", + "vehicle_id" + ] + }, + { + "name": "world_stat_history", + "resolve_list": [], + "type": { + "world_id": "string", + "stat_name": "string", + "type": "string", + "tracker_name": "string", + "faction": "string", + "all_time": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + "query": [ + "all_time", + "day", + "day.d01", + "day.d02", + "day.d03", + "day.d04", + "day.d05", + "day.d06", + "day.d07", + "day.d08", + "day.d09", + "day.d10", + "day.d11", + "day.d12", + "day.d13", + "day.d14", + "day.d15", + "day.d16", + "day.d17", + "day.d18", + "day.d19", + "day.d20", + "day.d21", + "day.d22", + "day.d23", + "day.d24", + "day.d25", + "day.d26", + "day.d27", + "day.d28", + "day.d29", + "day.d30", + "day.d31", + "faction", + "last_save", + "last_save_date", + "month", + "month.m01", + "month.m02", + "month.m03", + "month.m04", + "month.m05", + "month.m06", + "month.m07", + "month.m08", + "month.m09", + "month.m10", + "month.m11", + "month.m12", + "stat_name", + "tracker_name", + "type", + "week", + "week.w01", + "week.w02", + "week.w03", + "week.w04", + "week.w05", + "week.w06", + "week.w07", + "week.w08", + "week.w09", + "week.w10", + "week.w11", + "week.w12", + "week.w13", + "world_id" + ] + }, + { + "name": "characters_item", + "resolve_list": [], + "type": {"character_id": "string", "item_id": "string"}, + "query": ["character_id"] + }, + { + "name": "ability", + "resolve_list": [], + "type": {"ability_id": "string", "ability_type_id": "string"}, + "query": [ + "ability_id", + "ability_type_id", + "distance_max", + "expire_msec", + "first_use_delay_msec", + "flag_toggle", + "next_use_delay_msec", + "param1", + "param10", + "param11", + "param12", + "param13", + "param14", + "param2", + "param3", + "param4", + "param5", + "param6", + "param7", + "param8", + "param9", + "radius_max", + "resource_cost_per_msec", + "resource_first_cost", + "resource_type_id", + "reuse_delay_msec", + "string1", + "string2", + "string3", + "string4" + ] + }, + { + "name": "ability_type", + "resolve_list": [], + "type": {"ability_type_id": "string"}, + "query": [ + "ability_type_id", + "description", + "param1", + "param10", + "param11", + "param12", + "param13", + "param14", + "param2", + "param3", + "param4", + "param5", + "param6", + "param7", + "param8", + "param9", + "string1", + "string2", + "string3", + "string4" + ] + }, + { + "name": "achievement", + "resolve_list": [], + "type": { + "achievement_id": "string", + "item_id": "string", + "objective_group_id": "string", + "reward_id": "string", + "repeatable": "string", + "name": "lang", + "description": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "achievement_id", + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "image_id", + "image_path", + "image_set_id", + "item_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "objective_group_id", + "repeatable", + "reward_id" + ] + }, + { + "name": "armor_facing", + "resolve_list": [], + "type": {"armor_facing_id": "string", "description": "string"}, + "query": ["armor_facing_id", "description"] + }, + { + "name": "armor_info", + "resolve_list": [], + "type": { + "armor_info_id": "string", + "armor_facing_id": "string", + "armor_percent": "string", + "description": "string" + }, + "query": ["armor_amount", "armor_facing_id", "armor_info_id", "armor_percent", "description"] + }, + { + "name": "currency", + "resolve_list": [], + "type": {"currency_id": "string", "name": "lang", "icon_id": "string", "inventory_cap": "string"}, + "query": [ + "currency_id", + "icon_id", + "inventory_cap", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr" + ] + }, + { + "name": "directive", + "resolve_list": [], + "type": { + "directive_id": "string", + "directive_tree_id": "string", + "directive_tier_id": "string", + "objective_set_id": "string", + "name": "lang", + "description": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "directive_id", + "directive_tier_id", + "directive_tree_id", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "objective_set_id", + "qualify_requirement_id" + ] + }, + { + "name": "directive_tier", + "resolve_list": [], + "type": { + "directive_tree_id": "string", + "directive_tier_id": "string", + "directive_points": "string", + "completion_count": "string", + "name": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "completion_count", + "directive_points", + "directive_tier_id", + "directive_tree_id", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "reward_set_id" + ] + }, + { + "name": "directive_tree", + "resolve_list": [], + "type": { + "directive_tree_id": "string", + "directive_tree_category_id": "string", + "name": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "directive_tree_category_id", + "directive_tree_id", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr" + ] + }, + { + "name": "directive_tree_category", + "resolve_list": [], + "type": {"directive_tree_category_id": "string", "name": "lang"}, + "query": ["directive_tree_category_id", "name", "name.de", "name.en", "name.es", "name.fr", "name.it", "name.tr"] + }, + { + "name": "effect", + "resolve_list": [], + "type": { + "effect_id": "string", + "effect_type_id": "string", + "ability_id": "string", + "target_type_id": "string", + "resist_type_id": "string", + "param1": "string", + "param2": "string", + "param5": "string", + "param6": "string", + "param7": "string", + "param8": "string", + "param9": "string" + }, + "query": [ + "ability_id", + "duration_seconds", + "effect_id", + "effect_type_id", + "is_drain", + "param1", + "param10", + "param11", + "param12", + "param13", + "param2", + "param3", + "param4", + "param5", + "param6", + "param7", + "param8", + "param9", + "resist_type_id", + "target_type_id" + ] + }, + { + "name": "effect_type", + "resolve_list": [], + "type": {"effect_type_id": "string", "description": "string", "param1": "string", "param3": "string"}, + "query": [ + "description", + "effect_type_id", + "param1", + "param10", + "param11", + "param12", + "param13", + "param2", + "param3", + "param4", + "param5", + "param6", + "param7", + "param8", + "param9" + ] + }, + { + "name": "empire_scores", + "resolve_list": [], + "type": { + "tracker_name": "string", + "tracker_description": "string", + "start_date": "string", + "start_time": "string", + "end_date": "string", + "end_time": "string", + "name": "lang" + }, + "query": [ + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "end_date", + "end_time", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "start_date", + "start_time", + "tracker_description", + "tracker_name" + ] + }, + { + "name": "experience", + "resolve_list": [], + "type": {"experience_id": "string", "description": "string", "xp": "string"}, + "query": ["description", "experience_id", "xp"] + }, + { + "name": "experience_rank", + "resolve_list": [], + "type": { + "rank": "string", + "xp_max": "string", + "vs": {"title": "lang", "image_set_id": "string", "image_id": "string"}, + "vs_image_path": "string", + "nc": {"title": "lang", "image_set_id": "string", "image_id": "string"}, + "nc_image_path": "string", + "tr": {"title": "lang", "image_set_id": "string", "image_id": "string"}, + "tr_image_path": "string" + }, + "query": [ + "nc", + "nc.image_id", + "nc.image_set_id", + "nc.title", + "nc.title.de", + "nc.title.en", + "nc.title.es", + "nc.title.fr", + "nc.title.it", + "nc.title.tr", + "nc_image_path", + "rank", + "tr", + "tr.image_id", + "tr.image_set_id", + "tr.title", + "tr.title.de", + "tr.title.en", + "tr.title.es", + "tr.title.fr", + "tr.title.it", + "tr.title.tr", + "tr_image_path", + "vs", + "vs.image_id", + "vs.image_set_id", + "vs.title", + "vs.title.de", + "vs.title.en", + "vs.title.es", + "vs.title.fr", + "vs.title.it", + "vs.title.tr", + "vs_image_path", + "xp_max" + ] + }, + { + "name": "facility_link", + "resolve_list": [], + "type": {"zone_id": "string", "facility_id_a": "string", "facility_id_b": "string"}, + "query": ["description", "facility_id_a", "facility_id_b", "zone_id"] + }, + { + "name": "facility_type", + "resolve_list": [], + "type": {"facility_type_id": "string", "description": "string"}, + "query": ["description", "facility_type_id"] + }, + { + "name": "faction", + "resolve_list": [], + "type": {"faction_id": "string", "name": "lang", "code_tag": "string", "user_selectable": "string"}, + "query": [ + "code_tag", + "faction_id", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "user_selectable" + ] + }, + { + "name": "fire_group", + "resolve_list": [], + "type": {"fire_group_id": "string"}, + "query": [ + "can_chamber_ironsights", + "chamber_duration_ms", + "fire_group_id", + "spool_up_initial_refire_ms", + "spool_up_ms", + "transition_duration_ms" + ] + }, + { + "name": "fire_group_to_fire_mode", + "resolve_list": [], + "type": {"fire_group_id": "string", "fire_mode_id": "string", "fire_mode_index": "string"}, + "query": ["fire_group_id", "fire_mode_id", "fire_mode_index"] + }, + { + "name": "fire_mode", + "resolve_list": [], + "type": { + "fire_mode_id": "string", + "item_id": "string", + "type": "string", + "description": "lang", + "player_state_group_id": "string", + "cof_recoil": "string", + "reload_time_ms": "string", + "pellets_per_shot": "string", + "pellet_spread": "string", + "default_zoom": "string", + "speed": "string", + "projectile_description": "string", + "damage_type": "string", + "damage": "string", + "damage_target_type": "string", + "damage_resist_type": "string" + }, + "query": [ + "cof_recoil", + "damage", + "damage_max", + "damage_max_range", + "damage_min", + "damage_min_range", + "damage_radius", + "damage_resist_type", + "damage_target_type", + "damage_type", + "default_zoom", + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "fire_mode_id", + "indirect_damage_max", + "indirect_damage_max_range", + "indirect_damage_min", + "indirect_damage_min_range", + "indirect_damage_resist_type", + "indirect_damage_target_type", + "item_id", + "max_speed", + "muzzle_velocity", + "pellet_spread", + "pellets_per_shot", + "player_state_group_id", + "projectile_description", + "reload_chamber_time_ms", + "reload_time_ms", + "speed", + "type" + ] + }, + { + "name": "fire_mode_2", + "resolve_list": [], + "type": { + "fire_mode_id": "string", + "fire_mode_type_id": "string", + "automatic": "string", + "grief_immune": "string", + "move_modifier": "string", + "sprint_fire": "string", + "turn_modifier": "string", + "use_in_water": "string", + "zoom_default": "string", + "cof_pellet_spread": "string", + "cof_range": "string", + "cof_recoil": "string", + "cof_scalar": "string", + "cof_scalar_moving": "string", + "player_state_group_id": "string", + "damage_direct_effect_id": "string", + "damage_head_multiplier": "string", + "fire_ammo_per_shot": "string", + "fire_auto_fire_ms": "string", + "fire_burst_count": "string", + "fire_charge_up_ms": "string", + "fire_delay_ms": "string", + "fire_detect_range": "string", + "fire_duration_ms": "string", + "fire_refire_ms": "string", + "fire_pellets_per_shot": "string", + "recoil_first_shot_modifier": "string", + "reload_time_ms": "string", + "armor_penetration": "string", + "max_damage": "string", + "min_damage_range": "string", + "shield_bypass_pct": "string", + "description": "lang" + }, + "query": [ + "ability_id", + "ammo_slot", + "armor_penetration", + "automatic", + "cof_override", + "cof_pellet_spread", + "cof_range", + "cof_recoil", + "cof_scalar", + "cof_scalar_moving", + "damage_direct_effect_id", + "damage_head_multiplier", + "damage_indirect_effect_id", + "damage_legs_multiplier", + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "fire_ammo_per_shot", + "fire_auto_fire_ms", + "fire_burst_count", + "fire_charge_up_ms", + "fire_delay_ms", + "fire_detect_range", + "fire_duration_ms", + "fire_mode_id", + "fire_mode_type_id", + "fire_pellets_per_shot", + "fire_refire_ms", + "grief_immune", + "heat_per_shot", + "heat_recovery_delay_ms", + "heat_threshold", + "iron_sights", + "laser_guided", + "lockon_acquire_close_ms", + "lockon_acquire_far_ms", + "lockon_acquire_ms", + "lockon_angle", + "lockon_lose_ms", + "lockon_maintain", + "lockon_radius", + "lockon_range", + "lockon_range_close", + "lockon_range_far", + "lockon_required", + "max_damage", + "max_damage_ind", + "max_damage_ind_radius", + "max_damage_range", + "min_damage", + "min_damage_ind", + "min_damage_ind_radius", + "min_damage_range", + "move_modifier", + "player_state_group_id", + "projectile_speed_override", + "recoil_angle_max", + "recoil_angle_min", + "recoil_first_shot_modifier", + "recoil_horizontal_max", + "recoil_horizontal_max_increase", + "recoil_horizontal_min", + "recoil_horizontal_min_increase", + "recoil_horizontal_tolerance", + "recoil_increase", + "recoil_increase_crouched", + "recoil_magnitude_max", + "recoil_magnitude_min", + "recoil_max_total_magnitude", + "recoil_recovery_acceleration", + "recoil_recovery_delay_ms", + "recoil_recovery_rate", + "recoil_shots_at_min_magnitude", + "reload_ammo_fill_ms", + "reload_block_auto", + "reload_chamber_ms", + "reload_continuous", + "reload_loop_end_ms", + "reload_loop_start_ms", + "reload_time_ms", + "shield_bypass_pct", + "sprint_fire", + "sway_amplitude_x", + "sway_amplitude_y", + "sway_can_steady", + "sway_period_x", + "sway_period_y", + "turn_modifier", + "use_in_water", + "zoom_default" + ] + }, + { + "name": "fire_mode_to_projectile", + "resolve_list": [], + "type": {"fire_mode_id": "string", "projectile_id": "string"}, + "query": ["fire_mode_id", "projectile_id"] + }, + { + "name": "fire_mode_type", + "resolve_list": [], + "type": {"fire_mode_type_id": "string", "description": "string"}, + "query": ["description", "fire_mode_type_id"] + }, + { + "name": "image", + "resolve_list": [], + "type": {"image_id": "string", "path": "string"}, + "query": ["description", "image_id", "path"] + }, + { + "name": "image_set", + "resolve_list": [], + "type": { + "image_set_id": "string", + "image_id": "string", + "description": "string", + "type_id": "string", + "type_description": "string", + "image_path": "string" + }, + "query": ["description", "image_id", "image_path", "image_set_id", "type_description", "type_id"] + }, + { + "name": "image_set_default", + "resolve_list": [], + "type": { + "image_set_id": "string", + "image_id": "string", + "description": "string", + "type_id": "string", + "type_description": "string", + "image_path": "string" + }, + "query": ["description", "image_id", "image_path", "image_set_id", "type_description", "type_id"] + }, + { + "name": "item", + "resolve_list": [], + "type": { + "item_id": "string", + "item_type_id": "string", + "item_category_id": "string", + "is_vehicle_weapon": "string", + "name": "lang", + "description": "lang", + "faction_id": "string", + "max_stack_size": "string", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "is_default_attachment": "string" + }, + "query": [ + "activatable_ability_id", + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "faction_id", + "image_id", + "image_path", + "image_set_id", + "is_default_attachment", + "is_vehicle_weapon", + "item_category_id", + "item_id", + "item_type_id", + "max_stack_size", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "passive_ability_id", + "release_time", + "skill_set_id" + ] + }, + { + "name": "item_attachment", + "resolve_list": [], + "type": {"item_id": "string", "attachment_item_id": "string"}, + "query": ["attachment_item_id", "item_id"] + }, + { + "name": "item_category", + "resolve_list": [], + "type": {"item_category_id": "string", "name": "lang"}, + "query": ["item_category_id", "name", "name.de", "name.en", "name.es", "name.fr", "name.it", "name.tr"] + }, + { + "name": "item_profile", + "resolve_list": [], + "type": {"item_id": "string", "profile_id": "string"}, + "query": ["item_id", "profile_id"] + }, + { + "name": "item_to_weapon", + "resolve_list": [], + "type": {"item_id": "string", "weapon_id": "string"}, + "query": ["item_id", "weapon_id"] + }, + { + "name": "item_type", + "resolve_list": [], + "type": {"item_type_id": "string", "name": "string", "code": "string"}, + "query": ["code", "item_type_id", "name"] + }, + { + "name": "loadout", + "resolve_list": [], + "type": {"loadout_id": "string", "profile_id": "string", "faction_id": "string", "code_name": "string"}, + "query": ["code_name", "faction_id", "loadout_id", "profile_id"] + }, + { + "name": "map_hex", + "resolve_list": [], + "type": { + "zone_id": "string", + "map_region_id": "string", + "x": "string", + "y": "string", + "hex_type": "string", + "type_name": "string" + }, + "query": ["hex_type", "map_region_id", "type_name", "x", "y", "zone_id"] + }, + { + "name": "map_region", + "resolve_list": [], + "type": { + "map_region_id": "string", + "zone_id": "string", + "facility_id": "string", + "facility_name": "string", + "facility_type_id": "string", + "facility_type": "string", + "location_x": "string", + "location_y": "string", + "location_z": "string", + "reward_amount": "string", + "reward_currency_id": "string" + }, + "query": [ + "facility_id", + "facility_name", + "facility_type", + "facility_type_id", + "location_x", + "location_y", + "location_z", + "map_region_id", + "reward_amount", + "reward_currency_id", + "zone_id" + ] + }, + { + "name": "marketing_bundle", + "resolve_list": [], + "type": { + "marketing_bundle_id": "string", + "name": "lang", + "description": "lang", + "image_id": "string", + "station_cash_price": "string", + "release_time": "string" + }, + "query": [ + "cert_price", + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "image_id", + "marketing_bundle_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "release_time", + "station_cash_price" + ] + }, + { + "name": "marketing_bundle_item", + "resolve_list": [], + "type": {"marketing_bundle_id": "string", "item_id": "string", "quantity": "string", "release_time": "string"}, + "query": ["item_id", "marketing_bundle_id", "quantity", "release_time"] + }, + { + "name": "marketing_bundle_with_1_item", + "resolve_list": [], + "type": { + "marketing_bundle_id": "string", + "item_id": "string", + "item_quantity": "string", + "station_cash_price": "string", + "release_time": "string" + }, + "query": ["cert_price", "item_id", "item_quantity", "marketing_bundle_id", "release_time", "station_cash_price"] + }, + { + "name": "metagame_event", + "resolve_list": [], + "type": { + "metagame_event_id": "string", + "name": "lang", + "description": "lang", + "type": "string", + "experience_bonus": "string" + }, + "query": [ + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "experience_bonus", + "metagame_event_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "type" + ] + }, + { + "name": "metagame_event_state", + "resolve_list": [], + "type": {"metagame_event_state_id": "string", "name": "string"}, + "query": ["metagame_event_state_id", "name"] + }, + { + "name": "objective", + "resolve_list": [], + "type": { + "objective_id": "string", + "objective_type_id": "string", + "objective_group_id": "string", + "param1": "string", + "param4": "string", + "param5": "string", + "param8": "string" + }, + "query": [ + "objective_group_id", + "objective_id", + "objective_type_id", + "param1", + "param2", + "param3", + "param4", + "param5", + "param6", + "param7", + "param8", + "param9" + ] + }, + { + "name": "objective_set_to_objective", + "resolve_list": [], + "type": {"objective_set_id": "string", "objective_group_id": "string"}, + "query": ["objective_group_id", "objective_set_id"] + }, + { + "name": "objective_type", + "resolve_list": [], + "type": { + "objective_type_id": "string", + "description": "string", + "param1": "string", + "param2": "string", + "param3": "string", + "param4": "string" + }, + "query": [ + "description", + "objective_type_id", + "param1", + "param2", + "param3", + "param4", + "param5", + "param6", + "param7", + "param8", + "param9" + ] + }, + { + "name": "player_state", + "resolve_list": [], + "type": {"player_state_id": "string", "description": "string"}, + "query": ["description", "player_state_id"] + }, + { + "name": "player_state_group", + "resolve_list": [], + "type": {"player_state_group_id": "string", "player_state": "string", "min_cone_of_fire": "string"}, + "query": ["min_cone_of_fire", "player_state", "player_state_group_id"] + }, + { + "name": "player_state_group_2", + "resolve_list": [], + "type": { + "player_state_group_id": "string", + "player_state_id": "string", + "can_iron_sight": "string", + "cof_grow_rate": "string", + "cof_max": "string", + "cof_min": "string", + "cof_recovery_delay_ms": "string", + "cof_recovery_rate": "string", + "cof_shots_before_penalty": "string", + "cof_recovery_delay_threshold": "string", + "cof_turn_penalty": "string" + }, + "query": [ + "can_iron_sight", + "cof_grow_rate", + "cof_max", + "cof_min", + "cof_recovery_delay_ms", + "cof_recovery_delay_threshold", + "cof_recovery_rate", + "cof_shots_before_penalty", + "cof_turn_penalty", + "player_state_group_id", + "player_state_id" + ] + }, + { + "name": "profile", + "resolve_list": [], + "type": { + "profile_id": "string", + "profile_type_id": "string", + "profile_type_description": "string", + "faction_id": "string", + "name": "lang", + "description": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string", + "movement_speed": "string", + "backpedal_speed_modifier": "string", + "sprint_speed_modifier": "string", + "strafe_speed_modifier": "string" + }, + "query": [ + "backpedal_speed_modifier", + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "faction_id", + "image_id", + "image_path", + "image_set_id", + "movement_speed", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "profile_id", + "profile_type_description", + "profile_type_id", + "sprint_speed_modifier", + "strafe_speed_modifier" + ] + }, + { + "name": "profile_2", + "resolve_list": [], + "type": {"profile_id": "string", "description": "string"}, + "query": ["description", "profile_id"] + }, + { + "name": "profile_armor_map", + "resolve_list": [], + "type": {"profile_id": "string", "armor_info_id": "string", "rank": "string"}, + "query": ["armor_info_id", "profile_id", "rank"] + }, + { + "name": "profile_resist_map", + "resolve_list": [], + "type": {"profile_id": "string", "resist_info_id": "string", "rank": "string"}, + "query": ["profile_id", "rank", "resist_info_id"] + }, + { + "name": "projectile", + "resolve_list": [], + "type": { + "projectile_id": "string", + "projectile_flight_type_id": "string", + "speed": "string", + "lifespan": "string", + "drag": "string", + "gravity": "string" + }, + "query": [ + "acceleration", + "arm_distance", + "detonate_distance", + "detonate_on_contact", + "drag", + "gravity", + "lifespan", + "lockon_acceleration", + "lockon_lifespan", + "lockon_lose_angle", + "lockon_seek_in_flight", + "projectile_flight_type_id", + "projectile_id", + "speed", + "speed_max", + "sticks_to_players", + "sticky", + "tether_distance", + "turn_rate" + ] + }, + { + "name": "projectile_flight_type", + "resolve_list": [], + "type": {"projectile_flight_type_id": "string", "description": "string"}, + "query": ["description", "projectile_flight_type_id"] + }, + { + "name": "region", + "resolve_list": [], + "type": {"region_id": "string", "zone_id": "string", "initial_faction_id": "string", "name": "lang"}, + "query": [ + "initial_faction_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "region_id", + "zone_id" + ] + }, + { + "name": "resist_info", + "resolve_list": [], + "type": { + "resist_info_id": "string", + "resist_type_id": "string", + "resist_percent": "string", + "multiplier_when_headshot": "string", + "description": "string" + }, + "query": [ + "description", + "multiplier_when_headshot", + "resist_amount", + "resist_info_id", + "resist_percent", + "resist_type_id" + ] + }, + { + "name": "resist_type", + "resolve_list": [], + "type": {"resist_type_id": "string", "description": "string"}, + "query": ["description", "resist_type_id"] + }, + { + "name": "resource_type", + "resolve_list": [], + "type": {"resource_type_id": "string", "description": "string"}, + "query": ["description", "resource_type_id"] + }, + { + "name": "reward", + "resolve_list": [], + "type": { + "reward_id": "string", + "reward_type_id": "string", + "count_min": "string", + "count_max": "string", + "param1": "string" + }, + "query": ["count_max", "count_min", "param1", "param2", "param3", "param4", "param5", "reward_id", "reward_type_id"] + }, + { + "name": "reward_group_to_reward", + "resolve_list": [], + "type": {"reward_group_id": "string", "reward_id": "string"}, + "query": ["reward_group_id", "reward_id"] + }, + { + "name": "reward_set_to_reward_group", + "resolve_list": [], + "type": {"reward_set_id": "string", "reward_group_id": "string"}, + "query": ["reward_group_id", "reward_set_id"] + }, + { + "name": "reward_type", + "resolve_list": [], + "type": { + "reward_type_id": "string", + "description": "string", + "count_min": "string", + "param1": "string", + "param2": "string", + "param3": "string", + "param4": "string" + }, + "query": [ + "count_max", + "count_min", + "description", + "param1", + "param2", + "param3", + "param4", + "param5", + "reward_type_id" + ] + }, + { + "name": "skill", + "resolve_list": [], + "type": { + "skill_id": "string", + "skill_line_id": "string", + "skill_line_index": "string", + "skill_points": "string", + "grant_item_id": "string", + "name": "lang", + "description": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "grant_item_id", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "skill_id", + "skill_line_id", + "skill_line_index", + "skill_points" + ] + }, + { + "name": "skill_category", + "resolve_list": [], + "type": { + "skill_category_id": "string", + "skill_set_id": "string", + "skill_set_index": "string", + "skill_points": "string", + "name": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "skill_category_id", + "skill_points", + "skill_set_id", + "skill_set_index" + ] + }, + { + "name": "skill_line", + "resolve_list": [], + "type": { + "skill_line_id": "string", + "skill_points": "string", + "name": "lang", + "description": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "skill_category_id", + "skill_category_index", + "skill_line_id", + "skill_points" + ] + }, + { + "name": "skill_set", + "resolve_list": [], + "type": { + "skill_set_id": "string", + "name": "lang", + "description": "lang", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "required_item_id", + "skill_points", + "skill_set_id" + ] + }, + { + "name": "target_type", + "resolve_list": [], + "type": {"target_type_id": "string", "description": "string"}, + "query": ["description", "target_type_id"] + }, + { + "name": "title", + "resolve_list": [], + "type": {"title_id": "string", "name": "lang"}, + "query": ["name", "name.de", "name.en", "name.es", "name.fr", "name.it", "name.tr", "title_id"] + }, + { + "name": "vehicle", + "resolve_list": [], + "type": { + "vehicle_id": "string", + "name": "lang", + "description": "lang", + "type_id": "string", + "type_name": "string", + "cost_resource_id": "string", + "image_set_id": "string", + "image_id": "string", + "image_path": "string" + }, + "query": [ + "cost", + "cost_resource_id", + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "image_id", + "image_path", + "image_set_id", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "type_id", + "type_name", + "vehicle_id" + ] + }, + { + "name": "vehicle_attachment", + "resolve_list": [], + "type": { + "item_id": "string", + "vehicle_id": "string", + "faction_id": "string", + "description": "string", + "slot_id": "string" + }, + "query": ["description", "faction_id", "item_id", "slot_id", "vehicle_id"] + }, + { + "name": "vehicle_faction", + "resolve_list": [], + "type": {"vehicle_id": "string", "faction_id": "string"}, + "query": ["faction_id", "vehicle_id"] + }, + { + "name": "vehicle_skill_set", + "resolve_list": [], + "type": {"vehicle_id": "string", "skill_set_id": "string", "faction_id": "string", "display_index": "string"}, + "query": ["display_index", "faction_id", "skill_set_id", "vehicle_id"] + }, + { + "name": "weapon", + "resolve_list": [], + "type": { + "weapon_id": "string", + "turn_modifier": "string", + "move_modifier": "string", + "sprint_recovery_ms": "string", + "equip_ms": "string", + "unequip_ms": "string", + "to_iron_sights_ms": "string", + "from_iron_sights_ms": "string", + "melee_detect_width": "string", + "melee_detect_height": "string" + }, + "query": [ + "equip_ms", + "from_iron_sights_ms", + "heat_bleed_off_rate", + "heat_capacity", + "heat_overheat_penalty_ms", + "melee_detect_height", + "melee_detect_width", + "move_modifier", + "sprint_recovery_ms", + "to_iron_sights_ms", + "turn_modifier", + "unequip_ms", + "weapon_group_id", + "weapon_id" + ] + }, + { + "name": "weapon_ammo_slot", + "resolve_list": [], + "type": {"weapon_id": "string", "weapon_slot_index": "string", "clip_size": "string", "capacity": "string"}, + "query": ["capacity", "clip_size", "refill_ammo_delay_ms", "refill_ammo_rate", "weapon_id", "weapon_slot_index"] + }, + { + "name": "weapon_datasheet", + "resolve_list": [], + "type": { + "item_id": "string", + "damage": "string", + "damage_min": "string", + "damage_max": "string", + "fire_cone": "string", + "fire_cone_min": "string", + "fire_cone_max": "string", + "fire_rate_ms": "string", + "fire_rate_ms_min": "string", + "fire_rate_mx_max": "string", + "reload_ms": "string", + "reload_ms_min": "string", + "reload_ms_max": "string", + "clip_size": "string", + "capacity": "string", + "range": "lang", + "show_clip_size": "string", + "show_fire_modes": "string", + "show_range": "string" + }, + "query": [ + "capacity", + "clip_size", + "damage", + "damage_max", + "damage_min", + "direct_damage", + "fire_cone", + "fire_cone_max", + "fire_cone_min", + "fire_rate_ms", + "fire_rate_ms_min", + "fire_rate_mx_max", + "indirect_damage", + "item_id", + "range", + "range.de", + "range.en", + "range.es", + "range.fr", + "range.it", + "range.tr", + "reload_ms", + "reload_ms_max", + "reload_ms_min", + "show_clip_size", + "show_fire_modes", + "show_range" + ] + }, + { + "name": "weapon_to_attachment", + "resolve_list": [], + "type": {"weapon_group_id": "string", "attachment_id": "string", "item_id": "string"}, + "query": ["attachment_id", "item_id", "weapon_group_id"] + }, + { + "name": "weapon_to_fire_group", + "resolve_list": [], + "type": {"weapon_id": "string", "fire_group_id": "string", "fire_group_index": "string"}, + "query": ["fire_group_id", "fire_group_index", "weapon_id"] + }, + { + "name": "zone", + "resolve_list": [], + "type": {"zone_id": "string", "code": "string", "hex_size": "string", "name": "lang", "description": "lang"}, + "query": [ + "code", + "description", + "description.de", + "description.en", + "description.es", + "description.fr", + "description.it", + "description.tr", + "hex_size", + "name", + "name.de", + "name.en", + "name.es", + "name.fr", + "name.it", + "name.tr", + "zone_id" + ] + }, + { + "name": "zone_effect", + "resolve_list": [], + "type": { + "zone_effect_id": "string", + "zone_effect_type_id": "string", + "ability_id": "string", + "param1": "string", + "param2": "string", + "param3": "string", + "param4": "string", + "param5": "string", + "param6": "string" + }, + "query": [ + "ability_id", + "param1", + "param10", + "param11", + "param12", + "param13", + "param14", + "param2", + "param3", + "param4", + "param5", + "param6", + "param7", + "param8", + "param9", + "string1", + "string2", + "string3", + "string4", + "zone_effect_id", + "zone_effect_type_id" + ] + }, + { + "name": "zone_effect_type", + "resolve_list": [], + "type": { + "zone_effect_type_id": "string", + "description": "string", + "param1": "string", + "param2": "string", + "param3": "string", + "param4": "string", + "param5": "string", + "param6": "string" + }, + "query": [ + "description", + "param1", + "param10", + "param11", + "param12", + "param13", + "param14", + "param2", + "param3", + "param4", + "param5", + "param6", + "param7", + "param8", + "param9", + "string1", + "string2", + "string3", + "string4", + "zone_effect_type_id" + ] + }, + { + "name": "characters_world", + "resolve_list": [], + "type": {"character_id": "string", "world_id": "string"}, + "query": ["character_id", "world_id"] + }, + { + "name": "world", + "resolve_list": [], + "type": {"world_id": "string", "state": "string", "name": "lang"}, + "query": ["description_t4id", "name_t4id", "state", "world_id"] + }, + { + "name": "outfit", + "resolve_list": [ + "leader", + "leader_name", + "leaders_stat_history", + "member", + "rank", + "member_character", + "member_character_name", + "member_characters_stat_history", + "member_online_status" + ], + "type": { + "outfit_id": "string", + "name": "string", + "name_lower": "string", + "alias": "string", + "alias_lower": "string", + "time_created": "string", + "time_created_date": "string", + "leader_character_id": "string", + "member_count": "string", + "leader": { + "name": {"first": "string", "first_lower": "string", "first_merged": "string", "first_lower_merged": "string"}, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": {"percent_to_next": "string", "value": "string"}, + "profile_id": "string", + "daily_ribbon": {"count": "string", "time": "string", "date": "string"}, + "prestige_level": "string", + "stats": { + "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ] + } + }, + "members": [ + { + "character_id": "string", + "member_since": "string", + "member_since_date": "string", + "rank": "string", + "rank_ordinal": "string", + "character": { + "stats": { + "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ] + } + }, + "character_id_merged": "string", + "member_since_merged": "string", + "member_since_date_merged": "string", + "rank_merged": "string", + "rank_ordinal_merged": "string", + "online_status": "string", + "name": { + "first": "string", + "first_lower": "string", + "first_merged": "string", + "first_lower_merged": "string" + }, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": {"percent_to_next": "string", "value": "string"}, + "profile_id": "string", + "daily_ribbon": {"count": "string", "time": "string", "date": "string"}, + "prestige_level": "string" + } + ] + }, + "query": [ + "alias", + "alias_lower", + "leader_character_id", + "member_count", + "name", + "name_lower", + "outfit_id", + "time_created", + "time_created_date" + ] + }, + { + "name": "outfit_member", + "resolve_list": ["character", "character_name", "characters_stat_history", "online_status", "outfit"], + "type": { + "outfit_id": "string", + "character_id": "string", + "member_since": "string", + "member_since_date": "string", + "rank": "string", + "rank_ordinal": "string", + "character": { + "name": {"first": "string", "first_lower": "string", "first_merged": "string", "first_lower_merged": "string"}, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": {"percent_to_next": "string", "value": "string"}, + "profile_id": "string", + "daily_ribbon": {"count": "string", "time": "string", "date": "string"}, + "prestige_level": "string", + "stats": { + "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ] + } + }, + "outfit": { + "name": "string", + "name_lower": "string", + "alias": "string", + "alias_lower": "string", + "time_created": "string", + "time_created_date": "string", + "leader_character_id": "string", + "member_count": "string" + }, + "online_status": "string" + }, + "query": ["character_id", "member_since", "member_since_date", "outfit_id", "rank", "rank_ordinal"] + }, + { + "name": "outfit_member_extended", + "resolve_list": [], + "type": { + "character_id": "string", + "member_since": "string", + "member_since_date": "string", + "member_rank": "string", + "member_rank_ordinal": "string", + "outfit_id": "string", + "name": "string", + "name_lower": "string", + "alias": "string", + "alias_lower": "string", + "time_created": "string", + "time_created_date": "string", + "leader_character_id": "string", + "member_count": "string" + }, + "query": [ + "alias", + "alias_lower", + "character_id", + "leader_character_id", + "member_count", + "member_rank", + "member_rank_ordinal", + "member_since", + "member_since_date", + "name", + "name_lower", + "outfit_id", + "time_created", + "time_created_date" + ] + }, + { + "name": "outfit_rank", + "resolve_list": [], + "type": {"outfit_id": "string", "ordinal": "string", "name": "string", "description": "string"}, + "query": ["description", "name", "ordinal", "outfit_id"] + }, + { + "name": "characters_online_status", + "resolve_list": [], + "type": {"character_id": "string", "online_status": "string"}, + "query": ["character_id"] + }, + { + "name": "map", + "resolve_list": [], + "type": { + "ZoneId": "string", + "Regions": { + "IsList": "string", + "Row": [ + { + "RowData": { + "RegionId": "string", + "FactionId": "string" + } + } + ] + } + }, + "query": [ + "world_id", + "zone_ids" + ] + }, + { + "name": "characters_friend", + "resolve_list": ["character", "character_name", "world"], + "type": { + "character_id": "string", + "name": "string", + "friend_list": [ + { + "character_id": "string", + "last_login_time": "string", + "online": "string", + "character_id_merged": "string", + "name": { + "first": "string", + "first_lower": "string" + }, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": { + "percent_to_next": "string", + "value": "string" + }, + "profile_id": "string", + "daily_ribbon": { + "count": "string", + "time": "string", + "date": "string" + }, + "prestige_level": "string", + "world_id": "string" + } + ] + }, + "query": ["character_id"] + }, + { + "name": "leaderboard", + "resolve_list": ["character", "world", "character_name", "characters_stat_history"], + "type": { + "character_id": "string", + "value": "string", + "rank": "string", + "name": { + "first": "string", + "first_lower": "string", + "first_merged": "string", + "first_lower_merged": "string" + }, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": { + "percent_to_next": "string", + "value": "string" + }, + "profile_id": "string", + "daily_ribbon": { + "count": "string", + "time": "string", + "date": "string" + }, + "prestige_level": "string", + "world_id": "string", + "stats": { + "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ] + } + }, + "query": [ + "name", + "period", + "world" + ] + }, + { + "name": "characters_leaderboard", + "resolve_list": ["character", "character_name", "characters_stat_history", "world"], + "type": { + "character_id": "string", + "value": "string", + "rank": "string", + "name": { + "first": "string", + "first_lower": "string", + "first_merged": "string", + "first_lower_merged": "string" + }, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": { + "percent_to_next": "string", + "value": "string" + }, + "profile_id": "string", + "daily_ribbon": { + "count": "string", + "time": "string", + "date": "string" + }, + "prestige_level": "string", + "world_id": "string", + "stats": { + "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ] + } + }, + "query": [ + "name", + "period", + "character_id" + ] + }, + { + "name": "characters_event_grouped", + "resolve_list": ["character", "character_name", "characters_stat_history"], + "type": { + "table_type": "string", "count": "string", "character_id": "string", "character": { + "name": {"first": "string", "first_lower": "string", "first_merged": "string", "first_lower_merged": "string"}, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": {"percent_to_next": "string", "value": "string"}, + "profile_id": "string", + "daily_ribbon": {"count": "string", "time": "string", "date": "string"}, + "prestige_level": "string", + "stats": { + "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ] + } + } + }, + "query": ["character_id"] + }, + { + "name": "characters_event", + "resolve_list": [ + "character", + "character_name", + "characters_stat_history", + "attacker", + "attacker_name", + "attackers_stat_history" + ], + "type": { + "character_id": "string", + "achievement_id": "string", + "timestamp": "string", + "zone_id": "string", + "world_id": "string", + "event_type": "string", + "table_type": "string", + "character": { + "name": {"first": "string", "first_lower": "string", "first_merged": "string", "first_lower_merged": "string"}, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": {"percent_to_next": "string", "value": "string"}, + "profile_id": "string", + "daily_ribbon": {"count": "string", "time": "string", "date": "string"}, + "prestige_level": "string", + "stats": { + "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ] + } + } + }, + "query": ["character_id"] + }, + { + "name": "event", + "resolve_list": [ + "character", + "character_name", + "characters_stat_history", + "attacker", + "attacker_name", + "attackers_stat_history" + ], + "type": { + "character_id": "string", + "achievement_id": "string", + "timestamp": "string", + "zone_id": "string", + "world_id": "string", + "event_type": "string", + "table_type": "string", + "character": { + "name": { + "first": "string", + "first_lower": "string" + }, + "faction_id": "string", + "head_id": "string", + "title_id": "string", + "times": { + "creation": "string", + "creation_date": "string", + "last_save": "string", + "last_save_date": "string", + "last_login": "string", + "last_login_date": "string", + "login_count": "string", + "minutes_played": "string" + }, + "certs": { + "earned_points": "string", + "gifted_points": "string", + "spent_points": "string", + "available_points": "string", + "percent_to_next": "string" + }, + "battle_rank": { + "percent_to_next": "string", + "value": "string" + }, + "profile_id": "string", + "daily_ribbon": { + "count": "string", + "time": "string", + "date": "string" + }, + "prestige_level": "string", + "stats": { + "stat_history": [ + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + }, + { + "stat_name": "string", + "all_time": "string", + "one_life_max": "string", + "day": { + "d01": "string", + "d02": "string", + "d03": "string", + "d04": "string", + "d05": "string", + "d06": "string", + "d07": "string", + "d08": "string", + "d09": "string", + "d10": "string", + "d11": "string", + "d12": "string", + "d13": "string", + "d14": "string", + "d15": "string", + "d16": "string", + "d17": "string", + "d18": "string", + "d19": "string", + "d20": "string", + "d21": "string", + "d22": "string", + "d23": "string", + "d24": "string", + "d25": "string", + "d26": "string", + "d27": "string", + "d28": "string", + "d29": "string", + "d30": "string", + "d31": "string" + }, + "month": { + "m01": "string", + "m02": "string", + "m03": "string", + "m04": "string", + "m05": "string", + "m06": "string", + "m07": "string", + "m08": "string", + "m09": "string", + "m10": "string", + "m11": "string", + "m12": "string" + }, + "week": { + "w01": "string", + "w02": "string", + "w03": "string", + "w04": "string", + "w05": "string", + "w06": "string", + "w07": "string", + "w08": "string", + "w09": "string", + "w10": "string", + "w11": "string", + "w12": "string", + "w13": "string" + }, + "last_save": "string", + "last_save_date": "string" + } + ] + } + } + }, + "query": ["after", "before", "type"] + }, + { + "name": "world_event", + "resolve_list": [], + "type": { + "facility_id": "string", + "faction_old": "string", + "faction_new": "string", + "duration_held": "string", + "objective_id": "string", + "timestamp": "string", + "zone_id": "string", + "world_id": "string", + "event_type": "string", + "table_type": "string", + "outfit_id": "string" + }, + "query": ["after", "before", "id", "type", "world_id"] + } +] diff --git a/census.json b/census.json new file mode 100644 index 0000000..b4c3ead --- /dev/null +++ b/census.json @@ -0,0 +1,640 @@ +[ + { + "resolve_list": [ + "online_status", + "friends", + "world", + "outfit", + "item", + "profile", + "faction" + ], + "count": "dynamic", + "name": "single_character_by_id" + }, + { + "resolve_list": [ + "item", + "item_full", + "profile", + "faction", + "stat", + "stat_by_faction", + "weapon_stat", + "weapon_stat_by_faction", + "stat_history", + "online_status", + "friends", + "world", + "outfit", + "outfit_member", + "outfit_member_extended", + "currency" + ], + "count": 13373797, + "name": "character" + }, + { + "resolve_list": [], + "count": 13373797, + "name": "character_name" + }, + { + "resolve_list": [], + "count": "?", + "name": "characters_achievement" + }, + { + "resolve_list": [], + "count": 13373797, + "name": "characters_currency" + }, + { + "resolve_list": [], + "count": "?", + "name": "characters_directive" + }, + { + "resolve_list": [], + "count": "?", + "name": "characters_directive_objective" + }, + { + "resolve_list": [], + "count": "?", + "name": "characters_directive_tier" + }, + { + "resolve_list": [], + "count": "?", + "name": "characters_directive_tree" + }, + { + "resolve_list": [], + "count": "?", + "name": "characters_skill" + }, + { + "resolve_list": [], + "count": 13373807, + "name": "characters_stat" + }, + { + "resolve_list": [], + "count": 13373807, + "name": "characters_stat_by_faction" + }, + { + "resolve_list": [], + "count": 11994254, + "name": "characters_stat_history" + }, + { + "resolve_list": [ + "item", + "vehicle" + ], + "count": 13373807, + "name": "characters_weapon_stat" + }, + { + "resolve_list": [ + "item", + "vehicle" + ], + "count": 13373807, + "name": "characters_weapon_stat_by_faction" + }, + { + "resolve_list": [], + "count": "?", + "name": "world_stat_history" + }, + { + "resolve_list": [], + "count": "dynamic", + "name": "characters_item", + "hidden": "false" + }, + { + "resolve_list": [], + "count": "?", + "name": "ability" + }, + { + "resolve_list": [], + "count": "?", + "name": "ability_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "achievement" + }, + { + "resolve_list": [], + "count": "?", + "name": "armor_facing" + }, + { + "resolve_list": [], + "count": "?", + "name": "armor_info" + }, + { + "resolve_list": [], + "count": "?", + "name": "currency" + }, + { + "resolve_list": [], + "count": "?", + "name": "directive" + }, + { + "resolve_list": [], + "count": "?", + "name": "directive_tier" + }, + { + "resolve_list": [], + "count": "?", + "name": "directive_tree" + }, + { + "resolve_list": [], + "count": "?", + "name": "directive_tree_category" + }, + { + "resolve_list": [], + "count": "?", + "name": "effect" + }, + { + "resolve_list": [], + "count": "?", + "name": "effect_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "empire_scores" + }, + { + "resolve_list": [], + "count": "?", + "name": "experience" + }, + { + "resolve_list": [], + "count": "?", + "name": "experience_rank" + }, + { + "resolve_list": [], + "count": "?", + "name": "facility_link" + }, + { + "resolve_list": [], + "count": "?", + "name": "facility_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "faction" + }, + { + "resolve_list": [], + "count": "?", + "name": "fire_group" + }, + { + "resolve_list": [], + "count": "?", + "name": "fire_group_to_fire_mode" + }, + { + "resolve_list": [], + "count": "?", + "name": "fire_mode" + }, + { + "resolve_list": [], + "count": "?", + "name": "fire_mode_2" + }, + { + "resolve_list": [], + "count": "?", + "name": "fire_mode_to_projectile" + }, + { + "resolve_list": [], + "count": "?", + "name": "fire_mode_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "image" + }, + { + "resolve_list": [], + "count": "?", + "name": "image_set" + }, + { + "resolve_list": [], + "count": "?", + "name": "image_set_default" + }, + { + "resolve_list": [], + "count": "?", + "name": "item" + }, + { + "resolve_list": [], + "count": "?", + "name": "item_attachment" + }, + { + "resolve_list": [], + "count": "?", + "name": "item_category" + }, + { + "resolve_list": [], + "count": "?", + "name": "item_profile" + }, + { + "resolve_list": [], + "count": "?", + "name": "item_to_weapon" + + }, + { + "resolve_list": [], + "count": "?", + "name": "item_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "loadout" + }, + { + "resolve_list": [], + "count": "?", + "name": "map_hex" + }, + { + "resolve_list": [], + "count": "?", + "name": "map_region" + }, + { + "resolve_list": [], + "count": "?", + "name": "marketing_bundle" + }, + { + "resolve_list": [], + "count": "?", + "name": "marketing_bundle_item" + }, + { + "resolve_list": [], + "count": "?", + "name": "marketing_bundle_with_1_item" + }, + { + "resolve_list": [], + "count": "?", + "name": "metagame_event" + }, + { + "resolve_list": [], + "count": "?", + "name": "metagame_event_state" + }, + { + "resolve_list": [], + "count": "?", + "name": "objective" + }, + { + "resolve_list": [], + "count": "?", + "name": "objective_set_to_objective" + }, + { + "resolve_list": [], + "count": "?", + "name": "objective_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "player_state" + }, + { + "resolve_list": [], + "count": "?", + "name": "player_state_group" + }, + { + "resolve_list": [], + "count": "?", + "name": "player_state_group_2" + }, + { + "resolve_list": [], + "count": "?", + "name": "profile" + }, + { + "resolve_list": [], + "count": "?", + "name": "profile_2" + }, + { + "resolve_list": [], + "count": "?", + "name": "profile_armor_map" + }, + { + "resolve_list": [], + "count": "?", + "name": "profile_resist_map" + }, + { + "resolve_list": [], + "count": "?", + "name": "projectile" + }, + { + "resolve_list": [], + "count": "?", + "name": "projectile_flight_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "region" + }, + { + "resolve_list": [], + "count": "?", + "name": "resist_info" + }, + { + "resolve_list": [], + "count": "?", + "name": "resist_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "resource_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "reward" + }, + { + "resolve_list": [], + "count": "?", + "name": "reward_group_to_reward" + }, + { + "resolve_list": [], + "count": "?", + "name": "reward_set_to_reward_group" + }, + { + "resolve_list": [], + "count": "?", + "name": "reward_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "skill" + }, + { + "resolve_list": [], + "count": "?", + "name": "skill_category" + }, + { + "resolve_list": [], + "count": "?", + "name": "skill_line" + }, + { + "resolve_list": [], + "count": "?", + "name": "skill_set" + }, + { + "resolve_list": [], + "count": "?", + "name": "target_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "title" + }, + { + "resolve_list": [], + "count": "?", + "name": "vehicle" + }, + { + "resolve_list": [], + "count": "?", + "name": "vehicle_attachment" + }, + { + "resolve_list": [], + "count": "?", + "name": "vehicle_faction" + }, + { + "resolve_list": [], + "count": "?", + "name": "vehicle_skill_set" + }, + { + "resolve_list": [], + "count": "?", + "name": "weapon" + }, + { + "resolve_list": [], + "count": "?", + "name": "weapon_ammo_slot" + }, + { + "resolve_list": [], + "count": "?", + "name": "weapon_datasheet" + }, + { + "resolve_list": [], + "count": "?", + "name": "weapon_to_attachment" + }, + { + "resolve_list": [], + "count": "?", + "name": "weapon_to_fire_group" + }, + { + "resolve_list": [], + "count": "?", + "name": "zone" + }, + { + "resolve_list": [], + "count": "?", + "name": "zone_effect" + }, + { + "resolve_list": [], + "count": "?", + "name": "zone_effect_type" + }, + { + "resolve_list": [], + "count": "?", + "name": "characters_world" + }, + { + "resolve_list": [], + "count": "?", + "name": "world" + }, + { + "resolve_list": [ + "leader", + "leader_name", + "leaders_stat_history", + "member", + "rank", + "member_character", + "member_character_name", + "member_characters_stat_history", + "member_online_status" + ], + "count": "?", + "name": "outfit" + }, + { + "resolve_list": [ + "character", + "character_name", + "characters_stat_history", + "online_status", + "outfit" + ], + "count": "?", + "name": "outfit_member" + }, + { + "resolve_list": [], + "count": "?", + "name": "outfit_member_extended" + }, + { + "resolve_list": [], + "count": "?", + "name": "outfit_rank" + }, + { + "resolve_list": [], + "count": "dynamic", + "name": "characters_online_status", + "hidden": "false" + }, + { + "resolve_list": [], + "count": "dynamic", + "name": "map", + "hidden": "false" + }, + { + "resolve_list": [ + "character", + "character_name", + "world" + ], + "count": "dynamic", + "name": "characters_friend" + }, + { + "resolve_list": [ + "character", + "world", + "character_name", + "characters_stat_history" + ], + "count": "dynamic", + "name": "leaderboard" + }, + { + "resolve_list": [ + "character", + "character_name", + "characters_stat_history", + "world" + ], + "count": "dynamic", + "name": "characters_leaderboard" + }, + { + "resolve_list": [ + "character", + "character_name", + "characters_stat_history" + ], + "count": "dynamic", + "name": "characters_event_grouped" + }, + { + "resolve_list": [ + "character", + "character_name", + "characters_stat_history", + "attacker", + "attacker_name", + "attackers_stat_history" + ], + "count": "dynamic", + "name": "characters_event" + }, + { + "resolve_list": [ + "character", + "character_name", + "characters_stat_history", + "attacker", + "attacker_name", + "attackers_stat_history" + ], + "count": "dynamic", + "name": "event" + }, + { + "resolve_list": [], + "count": "dynamic", + "name": "world_event" + } +] diff --git a/package-lock.json b/package-lock.json index 814657c..16f7442 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,27 +5,27 @@ "requires": true, "dependencies": { "@babel/code-frame": { - "version": "7.10.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.3.tgz", - "integrity": "sha512-fDx9eNW0qz0WkUeqL6tXEXzVlPh6Y5aCDEZesl0xBGA8ndRukX91Uk44ZqnkECp01NAZUdCAl+aiQNGi0k88Eg==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", + "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", "dev": true, "requires": { - "@babel/highlight": "^7.10.3" + "@babel/highlight": "^7.10.4" } }, "@babel/helper-validator-identifier": { - "version": "7.10.3", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.3.tgz", - "integrity": "sha512-bU8JvtlYpJSBPuj1VUmKpFGaDZuLxASky3LhaKj3bmpSTY6VWooSM8msk+Z0CZoErFye2tlABF6yDkT3FOPAXw==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", + "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", "dev": true }, "@babel/highlight": { - "version": "7.10.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.3.tgz", - "integrity": "sha512-Ih9B/u7AtgEnySE2L2F0Xm0GaM729XqqLfHkalTsbjXGyqmf/6M0Cu0WpvqueUlW+xk88BHw9Nkpj49naU+vWw==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", + "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.10.3", + "@babel/helper-validator-identifier": "^7.10.4", "chalk": "^2.0.0", "js-tokens": "^4.0.0" }, @@ -61,28 +61,35 @@ "integrity": "sha512-7+2BITlgjgDhH0vvwZU/HZJVyk+2XUlvxXe8dFMedNX/aMkaOq++rMAFXc0tM7ij15QaWlbdQASBR9dihi+bDQ==", "dev": true }, + "@types/lodash": { + "version": "4.14.157", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.157.tgz", + "integrity": "sha512-Ft5BNFmv2pHDgxV5JDsndOWTRJ+56zte0ZpYLowp03tW+K+t8u8YMOzAnpuqPgzX6WO1XpDIUm7u04M8vdDiVQ==", + "dev": true + }, "@types/node": { - "version": "14.0.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.13.tgz", - "integrity": "sha512-rouEWBImiRaSJsVA+ITTFM6ZxibuAlTuNOCyxVbwreu6k6+ujs7DfnU9o+PShFhET78pMBl3eH+AGSI5eOTkPA==", + "version": "14.0.22", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.22.tgz", + "integrity": "sha512-emeGcJvdiZ4Z3ohbmw93E/64jRzUHAItSHt8nF7M4TGgQTiWqFVGB8KNpLGFmUHmHLvjvBgFwVlqNcq+VuGv9g==", "dev": true }, "@types/ws": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.2.5.tgz", - "integrity": "sha512-4UEih9BI1nBKii385G9id1oFrSkLcClbwtDfcYj8HJLQqZVAtb/42vXVrYvRWCcufNF/a+rZD3MxNwghA7UmCg==", + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.2.6.tgz", + "integrity": "sha512-Q07IrQUSNpr+cXU4E4LtkSIBPie5GLZyyMC1QtQYRLWz701+XcoVygGUZgvLqElq1nU4ICldMYPnexlBsg3dqQ==", "dev": true, "requires": { "@types/node": "*" } }, "@typescript-eslint/eslint-plugin": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.3.0.tgz", - "integrity": "sha512-Ybx/wU75Tazz6nU2d7nN6ll0B98odoiYLXwcuwS5WSttGzK46t0n7TPRQ4ozwcTv82UY6TQoIvI+sJfTzqK9dQ==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.6.0.tgz", + "integrity": "sha512-ubHlHVt1lsPQB/CZdEov9XuOFhNG9YRC//kuiS1cMQI6Bs1SsqKrEmZnpgRwthGR09/kEDtr9MywlqXyyYd8GA==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "3.3.0", + "@typescript-eslint/experimental-utils": "3.6.0", + "debug": "^4.1.1", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", "semver": "^7.3.2", @@ -90,37 +97,46 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.3.0.tgz", - "integrity": "sha512-d4pGIAbu/tYsrPrdHCQ5xfadJGvlkUxbeBB56nO/VGmEDi/sKmfa5fGty5t5veL1OyJBrUmSiRn1R1qfVDydrg==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.6.0.tgz", + "integrity": "sha512-4Vdf2hvYMUnTdkCNZu+yYlFtL2v+N2R7JOynIOkFbPjf9o9wQvRwRkzUdWlFd2YiiUwJLbuuLnl5civNg5ykOQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "3.3.0", + "@typescript-eslint/types": "3.6.0", + "@typescript-eslint/typescript-estree": "3.6.0", "eslint-scope": "^5.0.0", "eslint-utils": "^2.0.0" } }, "@typescript-eslint/parser": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.3.0.tgz", - "integrity": "sha512-a7S0Sqn/+RpOOWTcaLw6RD4obsharzxmgMfdK24l364VxuBODXjuJM7ImCkSXEN7oz52aiZbXSbc76+2EsE91w==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.6.0.tgz", + "integrity": "sha512-taghDxuLhbDAD1U5Fk8vF+MnR0yiFE9Z3v2/bYScFb0N1I9SK8eKHkdJl1DAD48OGFDMFTeOTX0z7g0W6SYUXw==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "3.3.0", - "@typescript-eslint/typescript-estree": "3.3.0", + "@typescript-eslint/experimental-utils": "3.6.0", + "@typescript-eslint/types": "3.6.0", + "@typescript-eslint/typescript-estree": "3.6.0", "eslint-visitor-keys": "^1.1.0" } }, + "@typescript-eslint/types": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.6.0.tgz", + "integrity": "sha512-JwVj74ohUSt0ZPG+LZ7hb95fW8DFOqBuR6gE7qzq55KDI3BepqsCtHfBIoa0+Xi1AI7fq5nCu2VQL8z4eYftqg==", + "dev": true + }, "@typescript-eslint/typescript-estree": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.3.0.tgz", - "integrity": "sha512-3SqxylENltEvJsjjMSDCUx/edZNSC7wAqifUU1Ywp//0OWEZwMZJfecJud9XxJ/40rAKEbJMKBOQzeOjrLJFzQ==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.6.0.tgz", + "integrity": "sha512-G57NDSABHjvob7zVV09ehWyD1K6/YUKjz5+AufObFyjNO4DVmKejj47MHjVHHlZZKgmpJD2yyH9lfCXHrPITFg==", "dev": true, "requires": { + "@typescript-eslint/types": "3.6.0", + "@typescript-eslint/visitor-keys": "3.6.0", "debug": "^4.1.1", - "eslint-visitor-keys": "^1.1.0", "glob": "^7.1.6", "is-glob": "^4.0.1", "lodash": "^4.17.15", @@ -128,6 +144,15 @@ "tsutils": "^3.17.1" } }, + "@typescript-eslint/visitor-keys": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.6.0.tgz", + "integrity": "sha512-p1izllL2Ubwunite0ITjubuMQRBGgjdVYwyG7lXPX8GbrA6qF0uwSRz9MnXZaHMxID4948gX0Ez8v9tUDi/KfQ==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + } + }, "acorn": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.3.1.tgz", @@ -141,9 +166,9 @@ "dev": true }, "ajv": { - "version": "6.12.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz", - "integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==", + "version": "6.12.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", + "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", @@ -153,9 +178,9 @@ } }, "ansi-colors": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz", - "integrity": "sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", "dev": true }, "ansi-regex": { @@ -216,6 +241,14 @@ "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", "dev": true }, + "axios": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", + "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", + "requires": { + "follow-redirects": "1.5.10" + } + }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -460,12 +493,12 @@ "dev": true }, "enquirer": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.5.tgz", - "integrity": "sha512-BNT1C08P9XD0vNg3J475yIUG+mVdp9T6towYFHUv897X0KoHBjB1shyrNmhmtHWKP17iSWgo7Gqh7BBuzLZMSA==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", "dev": true, "requires": { - "ansi-colors": "^3.2.1" + "ansi-colors": "^4.1.1" } }, "es-abstract": { @@ -526,9 +559,9 @@ "dev": true }, "eslint": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.3.0.tgz", - "integrity": "sha512-dJMVXwfU5PT1cj2Nv2VPPrKahKTGdX+5Dh0Q3YuKt+Y2UhdL2YbzsVaBMyG9HC0tBismlv/r1+eZqs6SMIV38Q==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.4.0.tgz", + "integrity": "sha512-gU+lxhlPHu45H3JkEGgYhWhkR9wLHHEXC9FbWFnTlEkbKyZKWgWRLgf61E8zWmBuI6g5xKBph9ltg3NtZMVF8g==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -721,6 +754,29 @@ "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", "dev": true }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "requires": { + "debug": "=3.1.0" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -1027,9 +1083,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.19", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", + "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==", "dev": true }, "log-symbols": { @@ -1583,9 +1639,9 @@ "dev": true }, "typescript": { - "version": "3.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.5.tgz", - "integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==", + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz", + "integrity": "sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==", "dev": true }, "uri-js": { @@ -1719,9 +1775,9 @@ } }, "ws": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.0.tgz", - "integrity": "sha512-iFtXzngZVXPGgpTlP1rBqsUK82p9tKqsWRPg5L56egiljujJT3vGAYnHANvFxBieXrTFavhzhxW52jnaWV+w2w==" + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", + "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==" }, "y18n": { "version": "4.0.0", diff --git a/package.json b/package.json index 1b75a70..9be99ae 100644 --- a/package.json +++ b/package.json @@ -34,20 +34,23 @@ }, "homepage": "https://github.com/microwavekonijn/ps2census#readme", "dependencies": { - "ws": "^7.3.0" - }, - "devDependencies": { - "@types/node": "^14.0.13", - "@types/ws": "^7.2.5", - "@typescript-eslint/eslint-plugin": "^3.1.0", - "@typescript-eslint/parser": "^3.1.0", - "eslint": "^7.2.0", - "mocha": "^8.0.1", - "ts-node": "^8.10.1", - "typescript": "^3.9.5" + "axios": "^0.19.2", + "ws": "^7.3.1" }, "optionalDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" + }, + "devDependencies": { + "@types/lodash": "^4.14.157", + "@types/node": "^14.0.22", + "@types/ws": "^7.2.6", + "@typescript-eslint/eslint-plugin": "^3.6.0", + "@typescript-eslint/parser": "^3.6.0", + "eslint": "^7.4.0", + "lodash": "^4.17.19", + "mocha": "^8.0.1", + "ts-node": "^8.10.1", + "typescript": "^3.9.6" } } diff --git a/src/client/Client.ts b/src/client/Client.ts index 7ee4d98..b2575e8 100644 --- a/src/client/Client.ts +++ b/src/client/Client.ts @@ -4,9 +4,10 @@ import { ItemAddedData, MetagameEventData, PlayerFacilityCaptureData, PlayerFacilityDefendData, PlayerLoginData, PlayerLogoutData, SkillAddedData, VehicleDestroyData, } from './utils/PS2Events'; -import { ClientConfig, EventStreamSubscribed, PS2Environment } from './utils/Types'; +import { ClientConfig, EventStreamSubscribed} from './utils/Types'; import EventStreamManager from './EventStreamManager'; import PS2Event from './events/PS2Event'; +import { PS2Environment } from '../utils/Types'; declare interface Client { on(event: 'ready', listener: () => void): this; diff --git a/src/client/EventStream.ts b/src/client/EventStream.ts index 5ccafaa..d008d2d 100644 --- a/src/client/EventStream.ts +++ b/src/client/EventStream.ts @@ -1,9 +1,10 @@ import { EventEmitter } from 'events'; import WebSocket, { Data } from 'ws'; import Timeout = NodeJS.Timeout; -import { EventStreamConfig, PS2Environment } from './utils/Types'; -import { Events, State } from './utils/Contants'; +import { EventStreamConfig} from './utils/Types'; +import { Events, State } from './utils/Constants'; import EventStreamHandler from './concerns/EventStreamHandler'; +import { PS2Environment } from '../utils/Types'; declare interface EventStream { on(event: 'ready', listener: () => void): this; diff --git a/src/client/EventStreamHandler.ts b/src/client/EventStreamHandler.ts index 699389a..ead06ff 100644 --- a/src/client/EventStreamHandler.ts +++ b/src/client/EventStreamHandler.ts @@ -3,7 +3,7 @@ import { PS2EventData } from './utils/PS2Events'; import EventStreamFilter from './concerns/EventStreamFilter'; import PS2Event from './events/PS2Event'; import Client from './Client'; -import { Events } from './utils/Contants'; +import { Events } from './utils/Constants'; import AchievementEarned from './events/AchievementEarned'; import BattleRankUp from './events/BattleRankUp'; diff --git a/src/client/EventStreamManager.ts b/src/client/EventStreamManager.ts index 06a5278..981d87e 100644 --- a/src/client/EventStreamManager.ts +++ b/src/client/EventStreamManager.ts @@ -2,7 +2,7 @@ import { EventEmitter } from 'events'; import Client from './Client'; import EventStream from './EventStream'; import { EventStreamManagerConfig, EventStreamSubscription } from './utils/Types'; -import { Events } from './utils/Contants'; +import { Events } from './utils/Constants'; import Timeout = NodeJS.Timeout; import EventStreamHandler from './EventStreamHandler'; import DuplicateFilter from './utils/DuplicateFilter'; diff --git a/src/client/events/AchievementEarned.ts b/src/client/events/AchievementEarned.ts index 7d549e5..8b4e5b2 100644 --- a/src/client/events/AchievementEarned.ts +++ b/src/client/events/AchievementEarned.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { AchievementEarnedData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class AchievementEarned extends PS2Event implements AchievementEarnedData { public readonly emit = Events.PS2_ACHIEVEMENT; diff --git a/src/client/events/BattleRankUp.ts b/src/client/events/BattleRankUp.ts index 1276bb1..edcf33d 100644 --- a/src/client/events/BattleRankUp.ts +++ b/src/client/events/BattleRankUp.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { BattleRankUpData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class BattleRankUp extends PS2Event implements BattleRankUpData { public readonly emit = Events.PS2_RANKUP; diff --git a/src/client/events/ContinentLock.ts b/src/client/events/ContinentLock.ts index 535763e..95e0afb 100644 --- a/src/client/events/ContinentLock.ts +++ b/src/client/events/ContinentLock.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { ContinentLockData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class ContinentLock extends PS2Event implements ContinentLockData { public readonly emit = Events.PS2_LOCK; diff --git a/src/client/events/ContinentUnlock.ts b/src/client/events/ContinentUnlock.ts index 5eebd5b..8616d4b 100644 --- a/src/client/events/ContinentUnlock.ts +++ b/src/client/events/ContinentUnlock.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { ContinentUnlockData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class ContinentUnlock extends PS2Event implements ContinentUnlockData { public readonly emit = Events.PS2_UNLOCK; diff --git a/src/client/events/Death.ts b/src/client/events/Death.ts index a72165e..4d46b81 100644 --- a/src/client/events/Death.ts +++ b/src/client/events/Death.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { DeathData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class Death extends PS2Event implements DeathData { public readonly emit = Events.PS2_DEATH; diff --git a/src/client/events/FacilityControl.ts b/src/client/events/FacilityControl.ts index 284c377..b4523f0 100644 --- a/src/client/events/FacilityControl.ts +++ b/src/client/events/FacilityControl.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { FacilityControlData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class FacilityControl extends PS2Event implements FacilityControlData { public readonly emit = Events.PS2_CONTROL; diff --git a/src/client/events/GainExperience.ts b/src/client/events/GainExperience.ts index a571419..c1e262b 100644 --- a/src/client/events/GainExperience.ts +++ b/src/client/events/GainExperience.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { GainExperienceData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class GainExperience extends PS2Event implements GainExperienceData { public readonly emit = Events.PS2_EXPERIENCE; diff --git a/src/client/events/ItemAdded.ts b/src/client/events/ItemAdded.ts index 804c1ff..54657d1 100644 --- a/src/client/events/ItemAdded.ts +++ b/src/client/events/ItemAdded.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { ItemAddedData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class ItemAdded extends PS2Event implements ItemAddedData { public readonly emit = Events.PS2_ITEM; diff --git a/src/client/events/MetagameEvent.ts b/src/client/events/MetagameEvent.ts index dc18688..9f3da3b 100644 --- a/src/client/events/MetagameEvent.ts +++ b/src/client/events/MetagameEvent.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { MetagameEventData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class MetagameEvent extends PS2Event implements MetagameEventData { public readonly emit = Events.PS2_META_EVENT; diff --git a/src/client/events/PS2Event.ts b/src/client/events/PS2Event.ts index da6143f..9957040 100644 --- a/src/client/events/PS2Event.ts +++ b/src/client/events/PS2Event.ts @@ -1,6 +1,6 @@ import Client from '../Client'; import { PS2EventData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default abstract class PS2Event { public readonly emit: Events; diff --git a/src/client/events/PlayerFacilityCapture.ts b/src/client/events/PlayerFacilityCapture.ts index 435619f..da95c3f 100644 --- a/src/client/events/PlayerFacilityCapture.ts +++ b/src/client/events/PlayerFacilityCapture.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { PlayerFacilityCaptureData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class PlayerFacilityCapture extends PS2Event implements PlayerFacilityCaptureData { public readonly emit = Events.PS2_CAPTURE; diff --git a/src/client/events/PlayerFacilityDefend.ts b/src/client/events/PlayerFacilityDefend.ts index 81b092c..ab009e4 100644 --- a/src/client/events/PlayerFacilityDefend.ts +++ b/src/client/events/PlayerFacilityDefend.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { PlayerFacilityDefendData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class PlayerFacilityDefend extends PS2Event implements PlayerFacilityDefendData { public readonly emit = Events.PS2_DEFEND; diff --git a/src/client/events/PlayerLogin.ts b/src/client/events/PlayerLogin.ts index 6925e07..1b772ea 100644 --- a/src/client/events/PlayerLogin.ts +++ b/src/client/events/PlayerLogin.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { PlayerLoginData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class PlayerLogin extends PS2Event implements PlayerLoginData { public readonly emit = Events.PS2_LOGIN; diff --git a/src/client/events/PlayerLogout.ts b/src/client/events/PlayerLogout.ts index a130195..e3900d7 100644 --- a/src/client/events/PlayerLogout.ts +++ b/src/client/events/PlayerLogout.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { PlayerLogoutData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class PlayerLogout extends PS2Event implements PlayerLogoutData { public readonly emit = Events.PS2_LOGOUT; diff --git a/src/client/events/SkillAdded.ts b/src/client/events/SkillAdded.ts index ac01294..fcbca15 100644 --- a/src/client/events/SkillAdded.ts +++ b/src/client/events/SkillAdded.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { SkillAddedData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class SkillAdded extends PS2Event implements SkillAddedData { public readonly emit = Events.PS2_SKILL; diff --git a/src/client/events/VehicleDestroy.ts b/src/client/events/VehicleDestroy.ts index 2051047..71d634a 100644 --- a/src/client/events/VehicleDestroy.ts +++ b/src/client/events/VehicleDestroy.ts @@ -1,6 +1,6 @@ import PS2Event from './PS2Event'; import { VehicleDestroyData } from '../utils/PS2Events'; -import { Events } from '../utils/Contants'; +import { Events } from '../utils/Constants'; export default class VehicleDestroy extends PS2Event implements VehicleDestroyData { public readonly emit = Events.PS2_VEHICLE_DESTROYED; diff --git a/src/client/utils/Contants.ts b/src/client/utils/Constants.ts similarity index 100% rename from src/client/utils/Contants.ts rename to src/client/utils/Constants.ts diff --git a/src/client/utils/Types.ts b/src/client/utils/Types.ts index 379a41e..6c96ddf 100644 --- a/src/client/utils/Types.ts +++ b/src/client/utils/Types.ts @@ -1,7 +1,6 @@ import DuplicateFilter from './DuplicateFilter'; import { EventEmitter } from 'events'; - -export type PS2Environment = 'ps2' | 'ps2ps2us' | 'ps2ps4eu'; +import { PS2Environment } from '../../utils/Types'; export type ClientConfig = { serviceId?: string, diff --git a/src/index.ts b/src/index.ts index ea3b02b..66c722b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,7 +23,7 @@ export { default as PlayerLogout } from './client/events/PlayerLogout'; export { default as SkillAdded } from './client/events/SkillAdded'; export { default as VehicleDestroy } from './client/events/VehicleDestroy'; -export { Events } from './client/utils/Contants'; +export { Events } from './client/utils/Constants'; export { default as DuplicateFilter } from './client/utils/DuplicateFilter'; export { PS2EventData, @@ -44,10 +44,12 @@ export { VehicleDestroyData, } from './client/utils/PS2Events'; export { - PS2Environment, ClientConfig, EventStreamManagerConfig, EventStreamConfig, EventStreamSubscription, EventStreamSubscribed, } from './client/utils/Types'; +export { PS2Environment } from './utils/Types'; + +export * as rest from './rest'; diff --git a/src/rest/caseSensitive.ts b/src/rest/caseSensitive.ts new file mode 100644 index 0000000..260d65b --- /dev/null +++ b/src/rest/caseSensitive.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, sensitive = false): ApplyOperation<'case', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:case', sensitive); +} diff --git a/src/rest/count.ts b/src/rest/count.ts new file mode 100644 index 0000000..ae81361 --- /dev/null +++ b/src/rest/count.ts @@ -0,0 +1,27 @@ +import axios from 'axios'; +import CensusServerError from './exceptions/CensusServerError'; +import CensusRestException from './exceptions/CensusRestException'; +import { PS2Environment } from '../utils/Types'; +import { baseRequest, commands } from './utils/Types'; + +export function countFactory(environment: PS2Environment, serviceId?: string) { + const census = axios.create({ + baseURL: serviceId + ? `https://census.daybreakgames.com/s:${serviceId}/count/${environment}:v2` + : `https://census.daybreakgames.com/count/${environment}:v2`, + transformResponse(data) { + data = JSON.parse(data); + + if (data.errorMessage || data.errorCode) + throw new CensusServerError(data); + + if (data.error) + throw new CensusRestException(data.error); + + return data; + }, + }); + + return ({type, extract, params}: baseRequest<'count', Q, T, C, R>, query: Q): Promise => + census.get(type, {params: {...params, ...query}}).then(({count}: any) => count); +} diff --git a/src/rest/distinct.ts b/src/rest/distinct.ts new file mode 100644 index 0000000..d38e6a0 --- /dev/null +++ b/src/rest/distinct.ts @@ -0,0 +1,8 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +// TODO: Fix return type, also distinct with tree possible? +export default function (request: baseRequest, field: string): ApplyOperation<'distinct', O, Q, any, C, R> { + // @ts-ignore + return setParam(request, 'c:show', field); +} diff --git a/src/rest/exactMatchFirst.ts b/src/rest/exactMatchFirst.ts new file mode 100644 index 0000000..0684dfd --- /dev/null +++ b/src/rest/exactMatchFirst.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, exactMatchFirst = true): ApplyOperation<'exactMatchFirst', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:exactMatchFirst', exactMatchFirst); +} diff --git a/src/rest/exceptions/CensusRestException.ts b/src/rest/exceptions/CensusRestException.ts new file mode 100644 index 0000000..534ee00 --- /dev/null +++ b/src/rest/exceptions/CensusRestException.ts @@ -0,0 +1,15 @@ +export default class CensusRestException extends Error { + public constructor(message: string) { + super(message); + + this.name = 'CensusRestException'; + } + + public hasNoData(): boolean { + return this.message.includes('No data found.'); + } + + public requiresServiceId(): boolean { + return this.message.includes('Missing Service ID.'); + } +} diff --git a/src/rest/exceptions/CensusServerError.ts b/src/rest/exceptions/CensusServerError.ts new file mode 100644 index 0000000..c5ec4a2 --- /dev/null +++ b/src/rest/exceptions/CensusServerError.ts @@ -0,0 +1,10 @@ +export default class CensusServerError extends Error { + public readonly code: string; + + public constructor(data: any) { + super(data.errorMessage ?? 'Error message not supplied'); + + this.name = 'CensusServerError'; + this.code = data.errorCode; + } +} diff --git a/src/rest/get.ts b/src/rest/get.ts new file mode 100644 index 0000000..684f1c2 --- /dev/null +++ b/src/rest/get.ts @@ -0,0 +1,27 @@ +import axios from 'axios'; +import CensusServerError from './exceptions/CensusServerError'; +import CensusRestException from './exceptions/CensusRestException'; +import { PS2Environment } from '../utils/Types'; +import { baseRequest, commands } from './utils/Types'; + +export function getFactory(environment: PS2Environment, serviceId?: string) { + const census = axios.create({ + baseURL: serviceId + ? `https://census.daybreakgames.com/s:${serviceId}/get/${environment}:v2` + : `https://census.daybreakgames.com/get/${environment}:v2`, + transformResponse(data) { + data = JSON.parse(data); + + if (data.errorMessage || data.errorCode) + throw new CensusServerError(data); + + if (data.error) + throw new CensusRestException(data.error); + + return data; + }, + }); + + return ({type, extract, params}: baseRequest<'get', Q, T, C, R>, query: Q): Promise => + census.get(type, {params: {...params, ...query}}).then(extract); +} diff --git a/src/rest/has.ts b/src/rest/has.ts new file mode 100644 index 0000000..5d72c26 --- /dev/null +++ b/src/rest/has.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, field: string): ApplyOperation<'has', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:has', field); +} diff --git a/src/rest/hide.ts b/src/rest/hide.ts new file mode 100644 index 0000000..a2fbd7a --- /dev/null +++ b/src/rest/hide.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, fields: string[]): ApplyOperation<'show' | 'hide', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:hide', fields.join(',')); +} diff --git a/src/rest/includeNull.ts b/src/rest/includeNull.ts new file mode 100644 index 0000000..7e5e26e --- /dev/null +++ b/src/rest/includeNull.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, field: string): ApplyOperation<'includeNull', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:includeNull', field); +} diff --git a/src/rest/index.ts b/src/rest/index.ts new file mode 100644 index 0000000..4a43014 --- /dev/null +++ b/src/rest/index.ts @@ -0,0 +1,141 @@ +export { getFactory } from './get'; +export { countFactory } from './count'; + +/** Utility */ +export * as Helpers from './utils/Helpers'; +export * as Types from './utils/Types'; + +/** Exceptions */ +export { default as CensusRestException } from './exceptions/CensusRestException'; +export { default as CensusServerError } from './exceptions/CensusServerError'; + +/** Commands */ +export { default as caseSensitive } from './caseSensitive'; +export { default as distinct } from './distinct'; +export { default as exactMatchFirst } from './exactMatchFirst'; +export { default as has } from './has'; +export { default as hide } from './hide'; +export { default as includeNull } from './includeNull'; +export { default as join } from './join'; +export { default as lang } from './lang'; +export { default as limit } from './limit'; +export { default as resolve } from './resolve'; +export { default as retry } from './retry'; +export { default as show } from './show'; +export { default as sort } from './sort'; +export { default as start } from './start'; +export { default as timing } from './timing'; +export { default as tree } from './tree'; + +/** Types */ +export * as singleCharacterById from './types/singleCharacterById'; +export * as character from './types/character'; +export * as characterName from './types/characterName'; +export * as charactersAchievement from './types/charactersAchievement'; +export * as charactersCurrency from './types/charactersCurrency'; +export * as charactersDirective from './types/charactersDirective'; +export * as charactersDirectiveObjective from './types/charactersDirectiveObjective'; +export * as charactersDirectiveTier from './types/charactersDirectiveTier'; +export * as charactersDirectiveTree from './types/charactersDirectiveTree'; +export * as charactersSkill from './types/charactersSkill'; +export * as charactersStat from './types/charactersStat'; +export * as charactersStatByFaction from './types/charactersStatByFaction'; +export * as charactersStatHistory from './types/charactersStatHistory'; +export * as charactersWeaponStat from './types/charactersWeaponStat'; +export * as charactersWeaponStatByFaction from './types/charactersWeaponStatByFaction'; +export * as worldStatHistory from './types/worldStatHistory'; +export * as charactersItem from './types/charactersItem'; +export * as ability from './types/ability'; +export * as abilityType from './types/abilityType'; +export * as achievement from './types/achievement'; +export * as armorFacing from './types/armorFacing'; +export * as armorInfo from './types/armorInfo'; +export * as currency from './types/currency'; +export * as directive from './types/directive'; +export * as directiveTier from './types/directiveTier'; +export * as directiveTree from './types/directiveTree'; +export * as directiveTreeCategory from './types/directiveTreeCategory'; +export * as effect from './types/effect'; +export * as effectType from './types/effectType'; +export * as empireScores from './types/empireScores'; +export * as experience from './types/experience'; +export * as experienceRank from './types/experienceRank'; +export * as facilityLink from './types/facilityLink'; +export * as facilityType from './types/facilityType'; +export * as faction from './types/faction'; +export * as fireGroup from './types/fireGroup'; +export * as fireGroupToFireMode from './types/fireGroupToFireMode'; +export * as fireMode from './types/fireMode'; +export * as fireMode2 from './types/fireMode2'; +export * as fireModeToProjectile from './types/fireModeToProjectile'; +export * as fireModeType from './types/fireModeType'; +export * as image from './types/image'; +export * as imageSet from './types/imageSet'; +export * as imageSetDefault from './types/imageSetDefault'; +export * as item from './types/item'; +export * as itemAttachment from './types/itemAttachment'; +export * as itemCategory from './types/itemCategory'; +export * as itemProfile from './types/itemProfile'; +export * as itemToWeapon from './types/itemToWeapon'; +export * as itemType from './types/itemType'; +export * as loadout from './types/loadout'; +export * as mapHex from './types/mapHex'; +export * as mapRegion from './types/mapRegion'; +export * as marketingBundle from './types/marketingBundle'; +export * as marketingBundleItem from './types/marketingBundleItem'; +export * as marketingBundleWith1Item from './types/marketingBundleWith1Item'; +export * as metagameEvent from './types/metagameEvent'; +export * as metagameEventState from './types/metagameEventState'; +export * as objective from './types/objective'; +export * as objectiveSetToObjective from './types/objectiveSetToObjective'; +export * as objectiveType from './types/objectiveType'; +export * as playerState from './types/playerState'; +export * as playerStateGroup from './types/playerStateGroup'; +export * as playerStateGroup2 from './types/playerStateGroup2'; +export * as profile from './types/profile'; +export * as profile2 from './types/profile2'; +export * as profileArmorMap from './types/profileArmorMap'; +export * as profileResistMap from './types/profileResistMap'; +export * as projectile from './types/projectile'; +export * as projectileFlightType from './types/projectileFlightType'; +export * as region from './types/region'; +export * as resistInfo from './types/resistInfo'; +export * as resistType from './types/resistType'; +export * as resourceType from './types/resourceType'; +export * as reward from './types/reward'; +export * as rewardGroupToReward from './types/rewardGroupToReward'; +export * as rewardSetToRewardGroup from './types/rewardSetToRewardGroup'; +export * as rewardType from './types/rewardType'; +export * as skill from './types/skill'; +export * as skillCategory from './types/skillCategory'; +export * as skillLine from './types/skillLine'; +export * as skillSet from './types/skillSet'; +export * as targetType from './types/targetType'; +export * as title from './types/title'; +export * as vehicle from './types/vehicle'; +export * as vehicleAttachment from './types/vehicleAttachment'; +export * as vehicleFaction from './types/vehicleFaction'; +export * as vehicleSkillSet from './types/vehicleSkillSet'; +export * as weapon from './types/weapon'; +export * as weaponAmmoSlot from './types/weaponAmmoSlot'; +export * as weaponDatasheet from './types/weaponDatasheet'; +export * as weaponToAttachment from './types/weaponToAttachment'; +export * as weaponToFireGroup from './types/weaponToFireGroup'; +export * as zone from './types/zone'; +export * as zoneEffect from './types/zoneEffect'; +export * as zoneEffectType from './types/zoneEffectType'; +export * as charactersWorld from './types/charactersWorld'; +export * as world from './types/world'; +export * as outfit from './types/outfit'; +export * as outfitMember from './types/outfitMember'; +export * as outfitMemberExtended from './types/outfitMemberExtended'; +export * as outfitRank from './types/outfitRank'; +export * as charactersOnlineStatus from './types/charactersOnlineStatus'; +export * as map from './types/map'; +export * as charactersFriend from './types/charactersFriend'; +export * as leaderboard from './types/leaderboard'; +export * as charactersLeaderboard from './types/charactersLeaderboard'; +export * as charactersEventGrouped from './types/charactersEventGrouped'; +export * as charactersEvent from './types/charactersEvent'; +export * as event from './types/event'; +export * as worldEvent from './types/worldEvent'; diff --git a/src/rest/join.ts b/src/rest/join.ts new file mode 100644 index 0000000..8be64a7 --- /dev/null +++ b/src/rest/join.ts @@ -0,0 +1,55 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +type baseExtendedJoin = { + type: string, + on?: string, + to?: string, + list?: 0 | 1, + inject_at?: string, + terms?: Record, + outer?: 0 | 1 +} & ({ 'show': string[] } | { 'hide': string[] }) + +export type joinType = string | baseExtendedJoin | [string | baseExtendedJoin, joinType[]] + +function extendedJoinToString(join: baseExtendedJoin): string { + let r = `type: ${join['type']}`; + + [ + 'on', + 'to', + 'list', + 'inject_at', + 'outer', + ].forEach(k => { + // @ts-ignore + if (join[k]) r += `^${k}:${join[k]}`; + }); + + // @ts-ignore + if (join.terms) r += `terms:${Object.keys(join.terms).map(k => `${k}=${join.terms[k]}`).join('\'')}`; + + return r; +} + +function joinToString(join: joinType): string { + let nested = ''; + + if (Array.isArray(join)) { + nested = `(${join[1].map(joinToString).join(',')})`; + join = join[0]; + } + + return (typeof join === 'string' ? join : extendedJoinToString(join)) + nested; +} + +// TODO: Fix return type +export default function (request: baseRequest, joins: joinType[]): ApplyOperation<'join', O, Q, any, C, R> { + // @ts-ignore + return setParam( + request, + 'c:join', + joins.map(joinToString).join(','), + ); +} diff --git a/src/rest/lang.ts b/src/rest/lang.ts new file mode 100644 index 0000000..d371740 --- /dev/null +++ b/src/rest/lang.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, langs, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, lang: langs): ApplyOperation<'lang', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:lang', lang); +} diff --git a/src/rest/limit.ts b/src/rest/limit.ts new file mode 100644 index 0000000..d8d06cc --- /dev/null +++ b/src/rest/limit.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, limit: number, perDB = false): ApplyOperation<'limit', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, perDB ? 'c:limitPerDB' : 'c:limit', limit); +} diff --git a/src/rest/resolve.ts b/src/rest/resolve.ts new file mode 100644 index 0000000..6a02a7b --- /dev/null +++ b/src/rest/resolve.ts @@ -0,0 +1,13 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export type resolveType = R | [R, string[]]; + +export default function (request: baseRequest, resolve: resolveType[]): ApplyOperation<'resolve', O, Q, T, C, R> { + // @ts-ignore + return setParam( + request, + 'c:resolve', + resolve.map(r => Array.isArray(r) ? `${r[0]}(${r[1].join(',')})` : r).join(','), + ); +} diff --git a/src/rest/retry.ts b/src/rest/retry.ts new file mode 100644 index 0000000..fc3e3be --- /dev/null +++ b/src/rest/retry.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, retry = false): ApplyOperation<'retry', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:retry', retry); +} diff --git a/src/rest/show.ts b/src/rest/show.ts new file mode 100644 index 0000000..a688a53 --- /dev/null +++ b/src/rest/show.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, fields: string[]): ApplyOperation<'show' | 'hide', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:show', fields.join(',')); +} diff --git a/src/rest/sort.ts b/src/rest/sort.ts new file mode 100644 index 0000000..9268710 --- /dev/null +++ b/src/rest/sort.ts @@ -0,0 +1,13 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export type sortType = string | [string, 1 | -1]; + +export default function (request: baseRequest, fields: sortType[]): ApplyOperation<'sort', O, Q, T, C, R> { + // @ts-ignore + return setParam( + request, + 'c:sort', + fields.map(f => Array.isArray(f) ? f.join(':') : f).join(','), + ); +} diff --git a/src/rest/start.ts b/src/rest/start.ts new file mode 100644 index 0000000..2f1dd46 --- /dev/null +++ b/src/rest/start.ts @@ -0,0 +1,7 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export default function (request: baseRequest, start: number): ApplyOperation<'start', O, Q, T, C, R> { + // @ts-ignore + return setParam(request, 'c:start', start); +} diff --git a/src/rest/timing.ts b/src/rest/timing.ts new file mode 100644 index 0000000..fab1c60 --- /dev/null +++ b/src/rest/timing.ts @@ -0,0 +1,15 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setExtract, setParam } from './utils/Helpers'; + +export type timingType = { + 'item-ms': number, + 'total-ms': number +} + +export default function (request: baseRequest, timing = true): ApplyOperation<'timing' | 'distinct' | 'join' | 'tree', O, Q, [T, timingType], C, R> { + // @ts-ignore + return setExtract( + setParam(request, 'c:timing', timing), + (data) => [data[`${request.type}_list`], data.timing], + ); +} diff --git a/src/rest/tree.ts b/src/rest/tree.ts new file mode 100644 index 0000000..2f54b71 --- /dev/null +++ b/src/rest/tree.ts @@ -0,0 +1,29 @@ +import { ApplyOperation, baseRequest, commands, operations } from './utils/Types'; +import { setParam } from './utils/Helpers'; + +export type treeType = { + field: string, + list?: 0 | 1, + prefix?: string, + start?: string +} + +function treeToString(tree: treeType): string { + let r = tree.field; + + [ + 'list', + 'prefix', + 'start', + ].forEach(k => { + // @ts-ignore + if (tree[k]) r += `^${k}:${tree[k]}`; + }); + + return r; +} + +export default function (request: baseRequest, tree: treeType): ApplyOperation<'tree', O, Q, any, C, R> { + // @ts-ignore + return setParam(request, 'c:tree', treeToString(tree)); +} diff --git a/src/rest/types/ability.ts b/src/rest/types/ability.ts new file mode 100644 index 0000000..4f12f01 --- /dev/null +++ b/src/rest/types/ability.ts @@ -0,0 +1,44 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + ability_id: string, + ability_type_id: string, +}; + +export type query = { + ability_id: string, + ability_type_id: string, + distance_max: string, + expire_msec: string, + first_use_delay_msec: string, + flag_toggle: string, + next_use_delay_msec: string, + param1: string, + param10: string, + param11: string, + param12: string, + param13: string, + param14: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string, + radius_max: string, + resource_cost_per_msec: string, + resource_first_cost: string, + resource_type_id: string, + reuse_delay_msec: string, + string1: string, + string2: string, + string3: string, + string4: string +} + +export type resolve = never; + +export default requestFactory('ability'); diff --git a/src/rest/types/abilityType.ts b/src/rest/types/abilityType.ts new file mode 100644 index 0000000..4a51b26 --- /dev/null +++ b/src/rest/types/abilityType.ts @@ -0,0 +1,33 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + ability_type_id: string, +}; + +export type query = { + ability_type_id: string, + description: string, + param1: string, + param10: string, + param11: string, + param12: string, + param13: string, + param14: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string, + string1: string, + string2: string, + string3: string, + string4: string +} + +export type resolve = never; + +export default requestFactory('abilityType'); diff --git a/src/rest/types/achievement.ts b/src/rest/types/achievement.ts new file mode 100644 index 0000000..2abcd57 --- /dev/null +++ b/src/rest/types/achievement.ts @@ -0,0 +1,44 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + achievement_id: string, + item_id: string, + objective_group_id: string, + reward_id: string, + repeatable: string, + name: lang, + description: lang, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + achievement_id: string, + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + image_id: string, + image_path: string, + image_set_id: string, + item_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + objective_group_id: string, + repeatable: string, + reward_id: string +} + +export type resolve = never; + +export default requestFactory('achievement'); diff --git a/src/rest/types/armorFacing.ts b/src/rest/types/armorFacing.ts new file mode 100644 index 0000000..2ceaef4 --- /dev/null +++ b/src/rest/types/armorFacing.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + armor_facing_id: string, + description: string, +}; + +export type query = { + armor_facing_id: string, + description: string +} + +export type resolve = never; + +export default requestFactory('armorFacing'); diff --git a/src/rest/types/armorInfo.ts b/src/rest/types/armorInfo.ts new file mode 100644 index 0000000..a4f9bd4 --- /dev/null +++ b/src/rest/types/armorInfo.ts @@ -0,0 +1,21 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + armor_info_id: string, + armor_facing_id: string, + armor_percent: string, + description: string, +}; + +export type query = { + armor_amount: string, + armor_facing_id: string, + armor_info_id: string, + armor_percent: string, + description: string +} + +export type resolve = never; + +export default requestFactory('armorInfo'); diff --git a/src/rest/types/character.ts b/src/rest/types/character.ts new file mode 100644 index 0000000..d3f465e --- /dev/null +++ b/src/rest/types/character.ts @@ -0,0 +1,267 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + name: { + first: string, + first_lower: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + items: { + item_id: string, + item_type_id: string, + item_category_id: string, + is_vehicle_weapon: string, + name: lang, + description: lang, + faction_id: string, + max_stack_size: string, + image_set_id: string, + image_id: string, + image_path: string, + is_default_attachment: string, + item_id_merged: string, + }[], + stats: { + stat: { + stat_name: string, + profile_id: string, + value_forever: string, + value_monthly: string, + value_weekly: string, + value_daily: string, + value_one_life_max: string, + last_save: string, + last_save_date: string, + }[], + weapon_stat: { + stat_name: string, + item_id: string, + vehicle_id: string, + value: string, + last_save: string, + last_save_date: string, + }[], + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + stat_by_faction: { + stat_name: string, + profile_id: string, + value_forever_vs: string, + value_forever_nc: string, + value_forever_tr: string, + value_monthly_vs: string, + value_monthly_nc: string, + value_monthly_tr: string, + value_weekly_vs: string, + value_weekly_nc: string, + value_weekly_tr: string, + value_daily_vs: string, + value_daily_nc: string, + value_daily_tr: string, + value_one_life_max_vs: string, + value_one_life_max_nc: string, + value_one_life_max_tr: string, + last_save: string, + last_save_date: string, + }[], + weapon_stat_by_faction: { + stat_name: string, + item_id: string, + vehicle_id: string, + value_vs: string, + value_nc: string, + value_tr: string, + last_save: string, + last_save_date: string, + }[], + }, + online_status: string, + profile: { + profile_type_id: string, + profile_type_description: string, + faction_id: string, + name: lang, + description: lang, + image_set_id: string, + image_id: string, + image_path: string, + movement_speed: string, + backpedal_speed_modifier: string, + sprint_speed_modifier: string, + strafe_speed_modifier: string, + }, + name_merged: string, + friend_list: { + character_id: string, + last_login_time: string, + online: string, + }[], + world_id: string, + faction: { + name: lang, + image_set_id: string, + image_id: string, + image_path: string, + code_tag: string, + user_selectable: string, + }, + currency: { + currency_id: string, + currency_name: string, + quantity: string, + prestige_currency: string, + }, +}; + +export type query = { + battle_rank: string, + 'battle_rank.percent_to_next': string, + 'battle_rank.value': string, + certs: string, + 'certs.available_points': string, + 'certs.earned_points': string, + 'certs.gifted_points': string, + 'certs.percent_to_next': string, + 'certs.spent_points': string, + character_id: string, + daily_ribbon: string, + 'daily_ribbon.count': string, + 'daily_ribbon.date': string, + 'daily_ribbon.time': string, + faction_id: string, + head_id: string, + name: string, + 'name.first': string, + 'name.first_lower': string, + prestige_level: string, + profile_id: string, + times: string, + 'times.creation': string, + 'times.creation_date': string, + 'times.last_login': string, + 'times.last_login_date': string, + 'times.last_save': string, + 'times.last_save_date': string, + 'times.login_count': string, + 'times.minutes_played': string, + title_id: string +} + +export type resolve = + 'item' + | 'item_full' + | 'profile' + | 'faction' + | 'stat' + | 'stat_by_faction' + | 'weapon_stat' + | 'weapon_stat_by_faction' + | 'stat_history' + | 'online_status' + | 'friends' + | 'world' + | 'outfit' + | 'outfit_member' + | 'outfit_member_extended' + | 'currency'; + +export default requestFactory('character'); diff --git a/src/rest/types/characterName.ts b/src/rest/types/characterName.ts new file mode 100644 index 0000000..e24b5c6 --- /dev/null +++ b/src/rest/types/characterName.ts @@ -0,0 +1,21 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + name: { + first: string, + first_lower: string, + }, +}; + +export type query = { + character_id: string, + name: string, + 'name.first': string, + 'name.first_lower': string +} + +export type resolve = never; + +export default requestFactory('characterName'); diff --git a/src/rest/types/charactersAchievement.ts b/src/rest/types/charactersAchievement.ts new file mode 100644 index 0000000..64abd9d --- /dev/null +++ b/src/rest/types/charactersAchievement.ts @@ -0,0 +1,29 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + achievement_id: string, + start: string, + start_date: string, + finish: string, + finish_date: string, + last_save: string, + last_save_date: string, +}; + +export type query = { + achievement_id: string, + character_id: string, + earned_count: string, + finish: string, + finish_date: string, + last_save: string, + last_save_date: string, + start: string, + start_date: string +} + +export type resolve = never; + +export default requestFactory('charactersAchievement'); diff --git a/src/rest/types/charactersCurrency.ts b/src/rest/types/charactersCurrency.ts new file mode 100644 index 0000000..8853c72 --- /dev/null +++ b/src/rest/types/charactersCurrency.ts @@ -0,0 +1,22 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + currency_id: string, + currency_name: string, + quantity: string, + prestige_currency: string, +}; + +export type query = { + character_id: string, + currency_id: string, + currency_name: string, + prestige_currency: string, + quantity: string +} + +export type resolve = never; + +export default requestFactory('charactersCurrency'); diff --git a/src/rest/types/charactersDirective.ts b/src/rest/types/charactersDirective.ts new file mode 100644 index 0000000..8022781 --- /dev/null +++ b/src/rest/types/charactersDirective.ts @@ -0,0 +1,22 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + directive_tree_id: string, + directive_id: string, + completion_time: string, + completion_time_date: string, +}; + +export type query = { + character_id: string, + completion_time: string, + completion_time_date: string, + directive_id: string, + directive_tree_id: string +} + +export type resolve = never; + +export default requestFactory('charactersDirective'); diff --git a/src/rest/types/charactersDirectiveObjective.ts b/src/rest/types/charactersDirectiveObjective.ts new file mode 100644 index 0000000..a1fc039 --- /dev/null +++ b/src/rest/types/charactersDirectiveObjective.ts @@ -0,0 +1,24 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + directive_id: string, + objective_id: string, + objective_group_id: string, + status: string, + state_data: string, +}; + +export type query = { + character_id: string, + directive_id: string, + objective_group_id: string, + objective_id: string, + state_data: string, + status: string +} + +export type resolve = never; + +export default requestFactory('charactersDirectiveObjective'); diff --git a/src/rest/types/charactersDirectiveTier.ts b/src/rest/types/charactersDirectiveTier.ts new file mode 100644 index 0000000..1844d20 --- /dev/null +++ b/src/rest/types/charactersDirectiveTier.ts @@ -0,0 +1,22 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + directive_tree_id: string, + directive_tier_id: string, + completion_time: string, + completion_time_date: string, +}; + +export type query = { + character_id: string, + completion_time: string, + completion_time_date: string, + directive_tier_id: string, + directive_tree_id: string +} + +export type resolve = never; + +export default requestFactory('charactersDirectiveTier'); diff --git a/src/rest/types/charactersDirectiveTree.ts b/src/rest/types/charactersDirectiveTree.ts new file mode 100644 index 0000000..ea463bb --- /dev/null +++ b/src/rest/types/charactersDirectiveTree.ts @@ -0,0 +1,24 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + directive_tree_id: string, + current_directive_tier_id: string, + current_level: string, + completion_time: string, + completion_time_date: string, +}; + +export type query = { + character_id: string, + completion_time: string, + completion_time_date: string, + current_directive_tier_id: string, + current_level: string, + directive_tree_id: string +} + +export type resolve = never; + +export default requestFactory('charactersDirectiveTree'); diff --git a/src/rest/types/charactersEvent.ts b/src/rest/types/charactersEvent.ts new file mode 100644 index 0000000..c70cc3c --- /dev/null +++ b/src/rest/types/charactersEvent.ts @@ -0,0 +1,136 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + achievement_id: string, + timestamp: string, + zone_id: string, + world_id: string, + event_type: string, + table_type: string, + character: { + name: { + first: string, + first_lower: string, + first_merged: string, + first_lower_merged: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + stats: { + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + }, + }, +}; + +export type query = { + character_id: string +} + +export type resolve = + 'character' + | 'character_name' + | 'characters_stat_history' + | 'attacker' + | 'attacker_name' + | 'attackers_stat_history'; + +export default requestFactory('charactersEvent'); diff --git a/src/rest/types/charactersEventGrouped.ts b/src/rest/types/charactersEventGrouped.ts new file mode 100644 index 0000000..d761f89 --- /dev/null +++ b/src/rest/types/charactersEventGrouped.ts @@ -0,0 +1,129 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + table_type: string, + count: string, + character_id: string, + character: { + name: { + first: string, + first_lower: string, + first_merged: string, + first_lower_merged: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + stats: { + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + }, + }, +}; + +export type query = { + character_id: string +} + +export type resolve = + 'character' + | 'character_name' + | 'characters_stat_history'; + +export default requestFactory('charactersEventGrouped'); diff --git a/src/rest/types/charactersFriend.ts b/src/rest/types/charactersFriend.ts new file mode 100644 index 0000000..52f8dba --- /dev/null +++ b/src/rest/types/charactersFriend.ts @@ -0,0 +1,60 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + name: string, + friend_list: { + character_id: string, + last_login_time: string, + online: string, + character_id_merged: string, + name: { + first: string, + first_lower: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + world_id: string, + }[], +}; + +export type query = { + character_id: string +} + +export type resolve = + 'character' + | 'character_name' + | 'world'; + +export default requestFactory('charactersFriend'); diff --git a/src/rest/types/charactersItem.ts b/src/rest/types/charactersItem.ts new file mode 100644 index 0000000..9036a57 --- /dev/null +++ b/src/rest/types/charactersItem.ts @@ -0,0 +1,15 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + item_id: string, +}; + +export type query = { + character_id: string +} + +export type resolve = never; + +export default requestFactory('charactersItem'); diff --git a/src/rest/types/charactersLeaderboard.ts b/src/rest/types/charactersLeaderboard.ts new file mode 100644 index 0000000..1e38521 --- /dev/null +++ b/src/rest/types/charactersLeaderboard.ts @@ -0,0 +1,131 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + value: string, + rank: string, + name: { + first: string, + first_lower: string, + first_merged: string, + first_lower_merged: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + world_id: string, + stats: { + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + }, +}; + +export type query = { + name: string, + period: string, + character_id: string +} + +export type resolve = + 'character' + | 'character_name' + | 'characters_stat_history' + | 'world'; + +export default requestFactory('charactersLeaderboard'); diff --git a/src/rest/types/charactersOnlineStatus.ts b/src/rest/types/charactersOnlineStatus.ts new file mode 100644 index 0000000..1af2775 --- /dev/null +++ b/src/rest/types/charactersOnlineStatus.ts @@ -0,0 +1,15 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + online_status: string, +}; + +export type query = { + character_id: string +} + +export type resolve = never; + +export default requestFactory('charactersOnlineStatus'); diff --git a/src/rest/types/charactersSkill.ts b/src/rest/types/charactersSkill.ts new file mode 100644 index 0000000..95d6537 --- /dev/null +++ b/src/rest/types/charactersSkill.ts @@ -0,0 +1,20 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + skill_id: string, + last_save: string, + last_save_date: string, +}; + +export type query = { + character_id: string, + last_save: string, + last_save_date: string, + skill_id: string +} + +export type resolve = never; + +export default requestFactory('charactersSkill'); diff --git a/src/rest/types/charactersStat.ts b/src/rest/types/charactersStat.ts new file mode 100644 index 0000000..d78f3e6 --- /dev/null +++ b/src/rest/types/charactersStat.ts @@ -0,0 +1,32 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + stat_name: string, + profile_id: string, + value_forever: string, + value_monthly: string, + value_weekly: string, + value_daily: string, + value_one_life_max: string, + last_save: string, + last_save_date: string, +}; + +export type query = { + character_id: string, + last_save: string, + last_save_date: string, + profile_id: string, + stat_name: string, + value_daily: string, + value_forever: string, + value_monthly: string, + value_one_life_max: string, + value_weekly: string +} + +export type resolve = never; + +export default requestFactory('charactersStat'); diff --git a/src/rest/types/charactersStatByFaction.ts b/src/rest/types/charactersStatByFaction.ts new file mode 100644 index 0000000..fe87946 --- /dev/null +++ b/src/rest/types/charactersStatByFaction.ts @@ -0,0 +1,52 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + stat_name: string, + profile_id: string, + value_forever_vs: string, + value_forever_nc: string, + value_forever_tr: string, + value_monthly_vs: string, + value_monthly_nc: string, + value_monthly_tr: string, + value_weekly_vs: string, + value_weekly_nc: string, + value_weekly_tr: string, + value_daily_vs: string, + value_daily_nc: string, + value_daily_tr: string, + value_one_life_max_vs: string, + value_one_life_max_nc: string, + value_one_life_max_tr: string, + last_save: string, + last_save_date: string, +}; + +export type query = { + character_id: string, + last_save: string, + last_save_date: string, + profile_id: string, + stat_name: string, + value_daily_nc: string, + value_daily_tr: string, + value_daily_vs: string, + value_forever_nc: string, + value_forever_tr: string, + value_forever_vs: string, + value_monthly_nc: string, + value_monthly_tr: string, + value_monthly_vs: string, + value_one_life_max_nc: string, + value_one_life_max_tr: string, + value_one_life_max_vs: string, + value_weekly_nc: string, + value_weekly_tr: string, + value_weekly_vs: string +} + +export type resolve = never; + +export default requestFactory('charactersStatByFaction'); diff --git a/src/rest/types/charactersStatHistory.ts b/src/rest/types/charactersStatHistory.ts new file mode 100644 index 0000000..a1b16c5 --- /dev/null +++ b/src/rest/types/charactersStatHistory.ts @@ -0,0 +1,145 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, +}; + +export type query = { + all_time: string, + character_id: string, + day: string, + 'day.d01': string, + 'day.d02': string, + 'day.d03': string, + 'day.d04': string, + 'day.d05': string, + 'day.d06': string, + 'day.d07': string, + 'day.d08': string, + 'day.d09': string, + 'day.d10': string, + 'day.d11': string, + 'day.d12': string, + 'day.d13': string, + 'day.d14': string, + 'day.d15': string, + 'day.d16': string, + 'day.d17': string, + 'day.d18': string, + 'day.d19': string, + 'day.d20': string, + 'day.d21': string, + 'day.d22': string, + 'day.d23': string, + 'day.d24': string, + 'day.d25': string, + 'day.d26': string, + 'day.d27': string, + 'day.d28': string, + 'day.d29': string, + 'day.d30': string, + 'day.d31': string, + last_save: string, + last_save_date: string, + month: string, + 'month.m01': string, + 'month.m02': string, + 'month.m03': string, + 'month.m04': string, + 'month.m05': string, + 'month.m06': string, + 'month.m07': string, + 'month.m08': string, + 'month.m09': string, + 'month.m10': string, + 'month.m11': string, + 'month.m12': string, + one_life_max: string, + stat_name: string, + week: string, + 'week.w01': string, + 'week.w02': string, + 'week.w03': string, + 'week.w04': string, + 'week.w05': string, + 'week.w06': string, + 'week.w07': string, + 'week.w08': string, + 'week.w09': string, + 'week.w10': string, + 'week.w11': string, + 'week.w12': string, + 'week.w13': string +} + +export type resolve = never; + +export default requestFactory('charactersStatHistory'); diff --git a/src/rest/types/charactersWeaponStat.ts b/src/rest/types/charactersWeaponStat.ts new file mode 100644 index 0000000..a6a4306 --- /dev/null +++ b/src/rest/types/charactersWeaponStat.ts @@ -0,0 +1,39 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + stat_name: string, + item_id: string, + vehicle_id: string, + value: string, + last_save: string, + last_save_date: string, + vehicle: { + name: lang, + description: lang, + type_id: string, + type_name: string, + cost: string, + cost_resource_id: string, + image_set_id: string, + image_id: string, + image_path: string, + }, +}; + +export type query = { + character_id: string, + item_id: string, + last_save: string, + last_save_date: string, + stat_name: string, + value: string, + vehicle_id: string +} + +export type resolve = + 'item' + | 'vehicle'; + +export default requestFactory('charactersWeaponStat'); diff --git a/src/rest/types/charactersWeaponStatByFaction.ts b/src/rest/types/charactersWeaponStatByFaction.ts new file mode 100644 index 0000000..df39f2a --- /dev/null +++ b/src/rest/types/charactersWeaponStatByFaction.ts @@ -0,0 +1,46 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + stat_name: string, + item_id: string, + vehicle_id: string, + value_vs: string, + value_nc: string, + value_tr: string, + last_save: string, + last_save_date: string, + item: { + item_type_id: string, + item_category_id: string, + is_vehicle_weapon: string, + name: lang, + description: lang, + faction_id: string, + max_stack_size: string, + image_set_id: string, + image_id: string, + image_path: string, + skill_set_id: string, + is_default_attachment: string, + }, +}; + +export type query = { + character_id: string, + item_id: string, + last_save: string, + last_save_date: string, + stat_name: string, + value_nc: string, + value_tr: string, + value_vs: string, + vehicle_id: string +} + +export type resolve = + 'item' + | 'vehicle'; + +export default requestFactory('charactersWeaponStatByFaction'); diff --git a/src/rest/types/charactersWorld.ts b/src/rest/types/charactersWorld.ts new file mode 100644 index 0000000..c4cc518 --- /dev/null +++ b/src/rest/types/charactersWorld.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + world_id: string, +}; + +export type query = { + character_id: string, + world_id: string +} + +export type resolve = never; + +export default requestFactory('charactersWorld'); diff --git a/src/rest/types/currency.ts b/src/rest/types/currency.ts new file mode 100644 index 0000000..26af53a --- /dev/null +++ b/src/rest/types/currency.ts @@ -0,0 +1,26 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + currency_id: string, + name: lang, + icon_id: string, + inventory_cap: string, +}; + +export type query = { + currency_id: string, + icon_id: string, + inventory_cap: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string +} + +export type resolve = never; + +export default requestFactory('currency'); diff --git a/src/rest/types/directive.ts b/src/rest/types/directive.ts new file mode 100644 index 0000000..6b6f5af --- /dev/null +++ b/src/rest/types/directive.ts @@ -0,0 +1,43 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + directive_id: string, + directive_tree_id: string, + directive_tier_id: string, + objective_set_id: string, + name: lang, + description: lang, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + directive_id: string, + directive_tier_id: string, + directive_tree_id: string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + objective_set_id: string, + qualify_requirement_id: string +} + +export type resolve = never; + +export default requestFactory('directive'); diff --git a/src/rest/types/directiveTier.ts b/src/rest/types/directiveTier.ts new file mode 100644 index 0000000..b596c54 --- /dev/null +++ b/src/rest/types/directiveTier.ts @@ -0,0 +1,35 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + directive_tree_id: string, + directive_tier_id: string, + directive_points: string, + completion_count: string, + name: lang, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + completion_count: string, + directive_points: string, + directive_tier_id: string, + directive_tree_id: string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + reward_set_id: string +} + +export type resolve = never; + +export default requestFactory('directiveTier'); diff --git a/src/rest/types/directiveTree.ts b/src/rest/types/directiveTree.ts new file mode 100644 index 0000000..b9d9d03 --- /dev/null +++ b/src/rest/types/directiveTree.ts @@ -0,0 +1,37 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + directive_tree_id: string, + directive_tree_category_id: string, + name: lang, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + directive_tree_category_id: string, + directive_tree_id: string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string +} + +export type resolve = never; + +export default requestFactory('directiveTree'); diff --git a/src/rest/types/directiveTreeCategory.ts b/src/rest/types/directiveTreeCategory.ts new file mode 100644 index 0000000..fb98995 --- /dev/null +++ b/src/rest/types/directiveTreeCategory.ts @@ -0,0 +1,22 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + directive_tree_category_id: string, + name: lang, +}; + +export type query = { + directive_tree_category_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string +} + +export type resolve = never; + +export default requestFactory('directiveTreeCategory'); diff --git a/src/rest/types/effect.ts b/src/rest/types/effect.ts new file mode 100644 index 0000000..834fe12 --- /dev/null +++ b/src/rest/types/effect.ts @@ -0,0 +1,44 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + effect_id: string, + effect_type_id: string, + ability_id: string, + target_type_id: string, + resist_type_id: string, + param1: string, + param2: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string, +}; + +export type query = { + ability_id: string, + duration_seconds: string, + effect_id: string, + effect_type_id: string, + is_drain: string, + param1: string, + param10: string, + param11: string, + param12: string, + param13: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string, + resist_type_id: string, + target_type_id: string +} + +export type resolve = never; + +export default requestFactory('effect'); diff --git a/src/rest/types/effectType.ts b/src/rest/types/effectType.ts new file mode 100644 index 0000000..4bccbdd --- /dev/null +++ b/src/rest/types/effectType.ts @@ -0,0 +1,31 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + effect_type_id: string, + description: string, + param1: string, + param3: string, +}; + +export type query = { + description: string, + effect_type_id: string, + param1: string, + param10: string, + param11: string, + param12: string, + param13: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string +} + +export type resolve = never; + +export default requestFactory('effectType'); diff --git a/src/rest/types/empireScores.ts b/src/rest/types/empireScores.ts new file mode 100644 index 0000000..53844ba --- /dev/null +++ b/src/rest/types/empireScores.ts @@ -0,0 +1,39 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + tracker_name: string, + tracker_description: string, + start_date: string, + start_time: string, + end_date: string, + end_time: string, + name: lang, +}; + +export type query = { + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + end_date: string, + end_time: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + start_date: string, + start_time: string, + tracker_description: string, + tracker_name: string +} + +export type resolve = never; + +export default requestFactory('empireScores'); diff --git a/src/rest/types/event.ts b/src/rest/types/event.ts new file mode 100644 index 0000000..016f2ff --- /dev/null +++ b/src/rest/types/event.ts @@ -0,0 +1,136 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + achievement_id: string, + timestamp: string, + zone_id: string, + world_id: string, + event_type: string, + table_type: string, + character: { + name: { + first: string, + first_lower: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + stats: { + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + }, + }, +}; + +export type query = { + after: string, + before: string, + type: string +} + +export type resolve = + 'character' + | 'character_name' + | 'characters_stat_history' + | 'attacker' + | 'attacker_name' + | 'attackers_stat_history'; + +export default requestFactory('event'); diff --git a/src/rest/types/experience.ts b/src/rest/types/experience.ts new file mode 100644 index 0000000..8e3de56 --- /dev/null +++ b/src/rest/types/experience.ts @@ -0,0 +1,18 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + experience_id: string, + description: string, + xp: string, +}; + +export type query = { + description: string, + experience_id: string, + xp: string +} + +export type resolve = never; + +export default requestFactory('experience'); diff --git a/src/rest/types/experienceRank.ts b/src/rest/types/experienceRank.ts new file mode 100644 index 0000000..6f0f81c --- /dev/null +++ b/src/rest/types/experienceRank.ts @@ -0,0 +1,67 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + rank: string, + xp_max: string, + vs: { + title: lang, + image_set_id: string, + image_id: string, + }, + vs_image_path: string, + nc: { + title: lang, + image_set_id: string, + image_id: string, + }, + nc_image_path: string, + tr: { + title: lang, + image_set_id: string, + image_id: string, + }, + tr_image_path: string, +}; + +export type query = { + nc: string, + 'nc.image_id': string, + 'nc.image_set_id': string, + 'nc.title': string, + 'nc.title.de': string, + 'nc.title.en': string, + 'nc.title.es': string, + 'nc.title.fr': string, + 'nc.title.it': string, + 'nc.title.tr': string, + nc_image_path: string, + rank: string, + tr: string, + 'tr.image_id': string, + 'tr.image_set_id': string, + 'tr.title': string, + 'tr.title.de': string, + 'tr.title.en': string, + 'tr.title.es': string, + 'tr.title.fr': string, + 'tr.title.it': string, + 'tr.title.tr': string, + tr_image_path: string, + vs: string, + 'vs.image_id': string, + 'vs.image_set_id': string, + 'vs.title': string, + 'vs.title.de': string, + 'vs.title.en': string, + 'vs.title.es': string, + 'vs.title.fr': string, + 'vs.title.it': string, + 'vs.title.tr': string, + vs_image_path: string, + xp_max: string +} + +export type resolve = never; + +export default requestFactory('experienceRank'); diff --git a/src/rest/types/facilityLink.ts b/src/rest/types/facilityLink.ts new file mode 100644 index 0000000..6613775 --- /dev/null +++ b/src/rest/types/facilityLink.ts @@ -0,0 +1,19 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + zone_id: string, + facility_id_a: string, + facility_id_b: string, +}; + +export type query = { + description: string, + facility_id_a: string, + facility_id_b: string, + zone_id: string +} + +export type resolve = never; + +export default requestFactory('facilityLink'); diff --git a/src/rest/types/facilityType.ts b/src/rest/types/facilityType.ts new file mode 100644 index 0000000..d1a1ccf --- /dev/null +++ b/src/rest/types/facilityType.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + facility_type_id: string, + description: string, +}; + +export type query = { + description: string, + facility_type_id: string +} + +export type resolve = never; + +export default requestFactory('facilityType'); diff --git a/src/rest/types/faction.ts b/src/rest/types/faction.ts new file mode 100644 index 0000000..68c158d --- /dev/null +++ b/src/rest/types/faction.ts @@ -0,0 +1,29 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + faction_id: string, + name: lang, + code_tag: string, + user_selectable: string, +}; + +export type query = { + code_tag: string, + faction_id: string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + user_selectable: string +} + +export type resolve = never; + +export default requestFactory('faction'); diff --git a/src/rest/types/fireGroup.ts b/src/rest/types/fireGroup.ts new file mode 100644 index 0000000..bd89678 --- /dev/null +++ b/src/rest/types/fireGroup.ts @@ -0,0 +1,19 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + fire_group_id: string, +}; + +export type query = { + can_chamber_ironsights: string, + chamber_duration_ms: string, + fire_group_id: string, + spool_up_initial_refire_ms: string, + spool_up_ms: string, + transition_duration_ms: string +} + +export type resolve = never; + +export default requestFactory('fireGroup'); diff --git a/src/rest/types/fireGroupToFireMode.ts b/src/rest/types/fireGroupToFireMode.ts new file mode 100644 index 0000000..61938b4 --- /dev/null +++ b/src/rest/types/fireGroupToFireMode.ts @@ -0,0 +1,18 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + fire_group_id: string, + fire_mode_id: string, + fire_mode_index: string, +}; + +export type query = { + fire_group_id: string, + fire_mode_id: string, + fire_mode_index: string +} + +export type resolve = never; + +export default requestFactory('fireGroupToFireMode'); diff --git a/src/rest/types/fireMode.ts b/src/rest/types/fireMode.ts new file mode 100644 index 0000000..b98aa3a --- /dev/null +++ b/src/rest/types/fireMode.ts @@ -0,0 +1,64 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + fire_mode_id: string, + item_id: string, + type: string, + description: lang, + player_state_group_id: string, + cof_recoil: string, + reload_time_ms: string, + pellets_per_shot: string, + pellet_spread: string, + default_zoom: string, + speed: string, + projectile_description: string, + damage_type: string, + damage: string, + damage_target_type: string, + damage_resist_type: string, +}; + +export type query = { + cof_recoil: string, + damage: string, + damage_max: string, + damage_max_range: string, + damage_min: string, + damage_min_range: string, + damage_radius: string, + damage_resist_type: string, + damage_target_type: string, + damage_type: string, + default_zoom: string, + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + fire_mode_id: string, + indirect_damage_max: string, + indirect_damage_max_range: string, + indirect_damage_min: string, + indirect_damage_min_range: string, + indirect_damage_resist_type: string, + indirect_damage_target_type: string, + item_id: string, + max_speed: string, + muzzle_velocity: string, + pellet_spread: string, + pellets_per_shot: string, + player_state_group_id: string, + projectile_description: string, + reload_chamber_time_ms: string, + reload_time_ms: string, + speed: string, + type: string +} + +export type resolve = never; + +export default requestFactory('fireMode'); diff --git a/src/rest/types/fireMode2.ts b/src/rest/types/fireMode2.ts new file mode 100644 index 0000000..af735f1 --- /dev/null +++ b/src/rest/types/fireMode2.ts @@ -0,0 +1,139 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + fire_mode_id: string, + fire_mode_type_id: string, + automatic: string, + grief_immune: string, + move_modifier: string, + sprint_fire: string, + turn_modifier: string, + use_in_water: string, + zoom_default: string, + cof_pellet_spread: string, + cof_range: string, + cof_recoil: string, + cof_scalar: string, + cof_scalar_moving: string, + player_state_group_id: string, + damage_direct_effect_id: string, + damage_head_multiplier: string, + fire_ammo_per_shot: string, + fire_auto_fire_ms: string, + fire_burst_count: string, + fire_charge_up_ms: string, + fire_delay_ms: string, + fire_detect_range: string, + fire_duration_ms: string, + fire_refire_ms: string, + fire_pellets_per_shot: string, + recoil_first_shot_modifier: string, + reload_time_ms: string, + armor_penetration: string, + max_damage: string, + min_damage_range: string, + shield_bypass_pct: string, + description: lang, +}; + +export type query = { + ability_id: string, + ammo_slot: string, + armor_penetration: string, + automatic: string, + cof_override: string, + cof_pellet_spread: string, + cof_range: string, + cof_recoil: string, + cof_scalar: string, + cof_scalar_moving: string, + damage_direct_effect_id: string, + damage_head_multiplier: string, + damage_indirect_effect_id: string, + damage_legs_multiplier: string, + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + fire_ammo_per_shot: string, + fire_auto_fire_ms: string, + fire_burst_count: string, + fire_charge_up_ms: string, + fire_delay_ms: string, + fire_detect_range: string, + fire_duration_ms: string, + fire_mode_id: string, + fire_mode_type_id: string, + fire_pellets_per_shot: string, + fire_refire_ms: string, + grief_immune: string, + heat_per_shot: string, + heat_recovery_delay_ms: string, + heat_threshold: string, + iron_sights: string, + laser_guided: string, + lockon_acquire_close_ms: string, + lockon_acquire_far_ms: string, + lockon_acquire_ms: string, + lockon_angle: string, + lockon_lose_ms: string, + lockon_maintain: string, + lockon_radius: string, + lockon_range: string, + lockon_range_close: string, + lockon_range_far: string, + lockon_required: string, + max_damage: string, + max_damage_ind: string, + max_damage_ind_radius: string, + max_damage_range: string, + min_damage: string, + min_damage_ind: string, + min_damage_ind_radius: string, + min_damage_range: string, + move_modifier: string, + player_state_group_id: string, + projectile_speed_override: string, + recoil_angle_max: string, + recoil_angle_min: string, + recoil_first_shot_modifier: string, + recoil_horizontal_max: string, + recoil_horizontal_max_increase: string, + recoil_horizontal_min: string, + recoil_horizontal_min_increase: string, + recoil_horizontal_tolerance: string, + recoil_increase: string, + recoil_increase_crouched: string, + recoil_magnitude_max: string, + recoil_magnitude_min: string, + recoil_max_total_magnitude: string, + recoil_recovery_acceleration: string, + recoil_recovery_delay_ms: string, + recoil_recovery_rate: string, + recoil_shots_at_min_magnitude: string, + reload_ammo_fill_ms: string, + reload_block_auto: string, + reload_chamber_ms: string, + reload_continuous: string, + reload_loop_end_ms: string, + reload_loop_start_ms: string, + reload_time_ms: string, + shield_bypass_pct: string, + sprint_fire: string, + sway_amplitude_x: string, + sway_amplitude_y: string, + sway_can_steady: string, + sway_period_x: string, + sway_period_y: string, + turn_modifier: string, + use_in_water: string, + zoom_default: string +} + +export type resolve = never; + +export default requestFactory('fireMode2'); diff --git a/src/rest/types/fireModeToProjectile.ts b/src/rest/types/fireModeToProjectile.ts new file mode 100644 index 0000000..a509103 --- /dev/null +++ b/src/rest/types/fireModeToProjectile.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + fire_mode_id: string, + projectile_id: string, +}; + +export type query = { + fire_mode_id: string, + projectile_id: string +} + +export type resolve = never; + +export default requestFactory('fireModeToProjectile'); diff --git a/src/rest/types/fireModeType.ts b/src/rest/types/fireModeType.ts new file mode 100644 index 0000000..d642941 --- /dev/null +++ b/src/rest/types/fireModeType.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + fire_mode_type_id: string, + description: string, +}; + +export type query = { + description: string, + fire_mode_type_id: string +} + +export type resolve = never; + +export default requestFactory('fireModeType'); diff --git a/src/rest/types/image.ts b/src/rest/types/image.ts new file mode 100644 index 0000000..ad4a71c --- /dev/null +++ b/src/rest/types/image.ts @@ -0,0 +1,17 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + image_id: string, + path: string, +}; + +export type query = { + description: string, + image_id: string, + path: string +} + +export type resolve = never; + +export default requestFactory('image'); diff --git a/src/rest/types/imageSet.ts b/src/rest/types/imageSet.ts new file mode 100644 index 0000000..8b5e85a --- /dev/null +++ b/src/rest/types/imageSet.ts @@ -0,0 +1,24 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + image_set_id: string, + image_id: string, + description: string, + type_id: string, + type_description: string, + image_path: string, +}; + +export type query = { + description: string, + image_id: string, + image_path: string, + image_set_id: string, + type_description: string, + type_id: string +} + +export type resolve = never; + +export default requestFactory('imageSet'); diff --git a/src/rest/types/imageSetDefault.ts b/src/rest/types/imageSetDefault.ts new file mode 100644 index 0000000..600de46 --- /dev/null +++ b/src/rest/types/imageSetDefault.ts @@ -0,0 +1,24 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + image_set_id: string, + image_id: string, + description: string, + type_id: string, + type_description: string, + image_path: string, +}; + +export type query = { + description: string, + image_id: string, + image_path: string, + image_set_id: string, + type_description: string, + type_id: string +} + +export type resolve = never; + +export default requestFactory('imageSetDefault'); diff --git a/src/rest/types/item.ts b/src/rest/types/item.ts new file mode 100644 index 0000000..a6c686f --- /dev/null +++ b/src/rest/types/item.ts @@ -0,0 +1,52 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + item_id: string, + item_type_id: string, + item_category_id: string, + is_vehicle_weapon: string, + name: lang, + description: lang, + faction_id: string, + max_stack_size: string, + image_set_id: string, + image_id: string, + image_path: string, + is_default_attachment: string, +}; + +export type query = { + activatable_ability_id: string, + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + faction_id: string, + image_id: string, + image_path: string, + image_set_id: string, + is_default_attachment: string, + is_vehicle_weapon: string, + item_category_id: string, + item_id: string, + item_type_id: string, + max_stack_size: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + passive_ability_id: string, + release_time: string, + skill_set_id: string +} + +export type resolve = never; + +export default requestFactory('item'); diff --git a/src/rest/types/itemAttachment.ts b/src/rest/types/itemAttachment.ts new file mode 100644 index 0000000..beb10f1 --- /dev/null +++ b/src/rest/types/itemAttachment.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + item_id: string, + attachment_item_id: string, +}; + +export type query = { + attachment_item_id: string, + item_id: string +} + +export type resolve = never; + +export default requestFactory('itemAttachment'); diff --git a/src/rest/types/itemCategory.ts b/src/rest/types/itemCategory.ts new file mode 100644 index 0000000..5207606 --- /dev/null +++ b/src/rest/types/itemCategory.ts @@ -0,0 +1,22 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + item_category_id: string, + name: lang, +}; + +export type query = { + item_category_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string +} + +export type resolve = never; + +export default requestFactory('itemCategory'); diff --git a/src/rest/types/itemProfile.ts b/src/rest/types/itemProfile.ts new file mode 100644 index 0000000..2e8a0ad --- /dev/null +++ b/src/rest/types/itemProfile.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + item_id: string, + profile_id: string, +}; + +export type query = { + item_id: string, + profile_id: string +} + +export type resolve = never; + +export default requestFactory('itemProfile'); diff --git a/src/rest/types/itemToWeapon.ts b/src/rest/types/itemToWeapon.ts new file mode 100644 index 0000000..c5b8757 --- /dev/null +++ b/src/rest/types/itemToWeapon.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + item_id: string, + weapon_id: string, +}; + +export type query = { + item_id: string, + weapon_id: string +} + +export type resolve = never; + +export default requestFactory('itemToWeapon'); diff --git a/src/rest/types/itemType.ts b/src/rest/types/itemType.ts new file mode 100644 index 0000000..8436962 --- /dev/null +++ b/src/rest/types/itemType.ts @@ -0,0 +1,18 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + item_type_id: string, + name: string, + code: string, +}; + +export type query = { + code: string, + item_type_id: string, + name: string +} + +export type resolve = never; + +export default requestFactory('itemType'); diff --git a/src/rest/types/leaderboard.ts b/src/rest/types/leaderboard.ts new file mode 100644 index 0000000..2b04799 --- /dev/null +++ b/src/rest/types/leaderboard.ts @@ -0,0 +1,131 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + value: string, + rank: string, + name: { + first: string, + first_lower: string, + first_merged: string, + first_lower_merged: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + world_id: string, + stats: { + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + }, +}; + +export type query = { + name: string, + period: string, + world: string +} + +export type resolve = + 'character' + | 'world' + | 'character_name' + | 'characters_stat_history'; + +export default requestFactory('leaderboard'); diff --git a/src/rest/types/loadout.ts b/src/rest/types/loadout.ts new file mode 100644 index 0000000..5ab9289 --- /dev/null +++ b/src/rest/types/loadout.ts @@ -0,0 +1,20 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + loadout_id: string, + profile_id: string, + faction_id: string, + code_name: string, +}; + +export type query = { + code_name: string, + faction_id: string, + loadout_id: string, + profile_id: string +} + +export type resolve = never; + +export default requestFactory('loadout'); diff --git a/src/rest/types/map.ts b/src/rest/types/map.ts new file mode 100644 index 0000000..be769c5 --- /dev/null +++ b/src/rest/types/map.ts @@ -0,0 +1,24 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + ZoneId: string, + Regions: { + IsList: string, + Row: { + RowData: { + RegionId: string, + FactionId: string, + }, + }[], + }, +}; + +export type query = { + world_id: string, + zone_ids: string +} + +export type resolve = never; + +export default requestFactory('map'); diff --git a/src/rest/types/mapHex.ts b/src/rest/types/mapHex.ts new file mode 100644 index 0000000..492b24c --- /dev/null +++ b/src/rest/types/mapHex.ts @@ -0,0 +1,24 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + zone_id: string, + map_region_id: string, + x: string, + y: string, + hex_type: string, + type_name: string, +}; + +export type query = { + hex_type: string, + map_region_id: string, + type_name: string, + x: string, + y: string, + zone_id: string +} + +export type resolve = never; + +export default requestFactory('mapHex'); diff --git a/src/rest/types/mapRegion.ts b/src/rest/types/mapRegion.ts new file mode 100644 index 0000000..1e67cc0 --- /dev/null +++ b/src/rest/types/mapRegion.ts @@ -0,0 +1,34 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + map_region_id: string, + zone_id: string, + facility_id: string, + facility_name: string, + facility_type_id: string, + facility_type: string, + location_x: string, + location_y: string, + location_z: string, + reward_amount: string, + reward_currency_id: string, +}; + +export type query = { + facility_id: string, + facility_name: string, + facility_type: string, + facility_type_id: string, + location_x: string, + location_y: string, + location_z: string, + map_region_id: string, + reward_amount: string, + reward_currency_id: string, + zone_id: string +} + +export type resolve = never; + +export default requestFactory('mapRegion'); diff --git a/src/rest/types/marketingBundle.ts b/src/rest/types/marketingBundle.ts new file mode 100644 index 0000000..aab79f7 --- /dev/null +++ b/src/rest/types/marketingBundle.ts @@ -0,0 +1,37 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + marketing_bundle_id: string, + name: lang, + description: lang, + image_id: string, + station_cash_price: string, + release_time: string, +}; + +export type query = { + cert_price: string, + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + image_id: string, + marketing_bundle_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + release_time: string, + station_cash_price: string +} + +export type resolve = never; + +export default requestFactory('marketingBundle'); diff --git a/src/rest/types/marketingBundleItem.ts b/src/rest/types/marketingBundleItem.ts new file mode 100644 index 0000000..c131bf7 --- /dev/null +++ b/src/rest/types/marketingBundleItem.ts @@ -0,0 +1,20 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + marketing_bundle_id: string, + item_id: string, + quantity: string, + release_time: string, +}; + +export type query = { + item_id: string, + marketing_bundle_id: string, + quantity: string, + release_time: string +} + +export type resolve = never; + +export default requestFactory('marketingBundleItem'); diff --git a/src/rest/types/marketingBundleWith1Item.ts b/src/rest/types/marketingBundleWith1Item.ts new file mode 100644 index 0000000..e4355e2 --- /dev/null +++ b/src/rest/types/marketingBundleWith1Item.ts @@ -0,0 +1,23 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + marketing_bundle_id: string, + item_id: string, + item_quantity: string, + station_cash_price: string, + release_time: string, +}; + +export type query = { + cert_price: string, + item_id: string, + item_quantity: string, + marketing_bundle_id: string, + release_time: string, + station_cash_price: string +} + +export type resolve = never; + +export default requestFactory('marketingBundleWith1Item'); diff --git a/src/rest/types/metagameEvent.ts b/src/rest/types/metagameEvent.ts new file mode 100644 index 0000000..d6fc086 --- /dev/null +++ b/src/rest/types/metagameEvent.ts @@ -0,0 +1,34 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + metagame_event_id: string, + name: lang, + description: lang, + type: string, + experience_bonus: string, +}; + +export type query = { + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + experience_bonus: string, + metagame_event_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + type: string +} + +export type resolve = never; + +export default requestFactory('metagameEvent'); diff --git a/src/rest/types/metagameEventState.ts b/src/rest/types/metagameEventState.ts new file mode 100644 index 0000000..6d1154a --- /dev/null +++ b/src/rest/types/metagameEventState.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + metagame_event_state_id: string, + name: string, +}; + +export type query = { + metagame_event_state_id: string, + name: string +} + +export type resolve = never; + +export default requestFactory('metagameEventState'); diff --git a/src/rest/types/objective.ts b/src/rest/types/objective.ts new file mode 100644 index 0000000..617046e --- /dev/null +++ b/src/rest/types/objective.ts @@ -0,0 +1,31 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + objective_id: string, + objective_type_id: string, + objective_group_id: string, + param1: string, + param4: string, + param5: string, + param8: string, +}; + +export type query = { + objective_group_id: string, + objective_id: string, + objective_type_id: string, + param1: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string +} + +export type resolve = never; + +export default requestFactory('objective'); diff --git a/src/rest/types/objectiveSetToObjective.ts b/src/rest/types/objectiveSetToObjective.ts new file mode 100644 index 0000000..2032bad --- /dev/null +++ b/src/rest/types/objectiveSetToObjective.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + objective_set_id: string, + objective_group_id: string, +}; + +export type query = { + objective_group_id: string, + objective_set_id: string +} + +export type resolve = never; + +export default requestFactory('objectiveSetToObjective'); diff --git a/src/rest/types/objectiveType.ts b/src/rest/types/objectiveType.ts new file mode 100644 index 0000000..c47b83f --- /dev/null +++ b/src/rest/types/objectiveType.ts @@ -0,0 +1,29 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + objective_type_id: string, + description: string, + param1: string, + param2: string, + param3: string, + param4: string, +}; + +export type query = { + description: string, + objective_type_id: string, + param1: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string +} + +export type resolve = never; + +export default requestFactory('objectiveType'); diff --git a/src/rest/types/outfit.ts b/src/rest/types/outfit.ts new file mode 100644 index 0000000..5d13ec4 --- /dev/null +++ b/src/rest/types/outfit.ts @@ -0,0 +1,272 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + outfit_id: string, + name: string, + name_lower: string, + alias: string, + alias_lower: string, + time_created: string, + time_created_date: string, + leader_character_id: string, + member_count: string, + leader: { + name: { + first: string, + first_lower: string, + first_merged: string, + first_lower_merged: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + stats: { + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + }, + }, + members: { + character_id: string, + member_since: string, + member_since_date: string, + rank: string, + rank_ordinal: string, + character: { + stats: { + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + }, + }, + character_id_merged: string, + member_since_merged: string, + member_since_date_merged: string, + rank_merged: string, + rank_ordinal_merged: string, + online_status: string, + name: { + first: string, + first_lower: string, + first_merged: string, + first_lower_merged: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + }[], +}; + +export type query = { + alias: string, + alias_lower: string, + leader_character_id: string, + member_count: string, + name: string, + name_lower: string, + outfit_id: string, + time_created: string, + time_created_date: string +} + +export type resolve = + 'leader' + | 'leader_name' + | 'leaders_stat_history' + | 'member' + | 'rank' + | 'member_character' + | 'member_character_name' + | 'member_characters_stat_history' + | 'member_online_status'; + +export default requestFactory('outfit'); diff --git a/src/rest/types/outfitMember.ts b/src/rest/types/outfitMember.ts new file mode 100644 index 0000000..8b5b7fd --- /dev/null +++ b/src/rest/types/outfitMember.ts @@ -0,0 +1,150 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + outfit_id: string, + character_id: string, + member_since: string, + member_since_date: string, + rank: string, + rank_ordinal: string, + character: { + name: { + first: string, + first_lower: string, + first_merged: string, + first_lower_merged: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + stats: { + stat_history: { + stat_name: string, + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }[], + }, + }, + outfit: { + name: string, + name_lower: string, + alias: string, + alias_lower: string, + time_created: string, + time_created_date: string, + leader_character_id: string, + member_count: string, + }, + online_status: string, +}; + +export type query = { + character_id: string, + member_since: string, + member_since_date: string, + outfit_id: string, + rank: string, + rank_ordinal: string +} + +export type resolve = + 'character' + | 'character_name' + | 'characters_stat_history' + | 'online_status' + | 'outfit'; + +export default requestFactory('outfitMember'); diff --git a/src/rest/types/outfitMemberExtended.ts b/src/rest/types/outfitMemberExtended.ts new file mode 100644 index 0000000..245c430 --- /dev/null +++ b/src/rest/types/outfitMemberExtended.ts @@ -0,0 +1,40 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + member_since: string, + member_since_date: string, + member_rank: string, + member_rank_ordinal: string, + outfit_id: string, + name: string, + name_lower: string, + alias: string, + alias_lower: string, + time_created: string, + time_created_date: string, + leader_character_id: string, + member_count: string, +}; + +export type query = { + alias: string, + alias_lower: string, + character_id: string, + leader_character_id: string, + member_count: string, + member_rank: string, + member_rank_ordinal: string, + member_since: string, + member_since_date: string, + name: string, + name_lower: string, + outfit_id: string, + time_created: string, + time_created_date: string +} + +export type resolve = never; + +export default requestFactory('outfitMemberExtended'); diff --git a/src/rest/types/outfitRank.ts b/src/rest/types/outfitRank.ts new file mode 100644 index 0000000..f0547e6 --- /dev/null +++ b/src/rest/types/outfitRank.ts @@ -0,0 +1,20 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + outfit_id: string, + ordinal: string, + name: string, + description: string, +}; + +export type query = { + description: string, + name: string, + ordinal: string, + outfit_id: string +} + +export type resolve = never; + +export default requestFactory('outfitRank'); diff --git a/src/rest/types/playerState.ts b/src/rest/types/playerState.ts new file mode 100644 index 0000000..792fc9c --- /dev/null +++ b/src/rest/types/playerState.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + player_state_id: string, + description: string, +}; + +export type query = { + description: string, + player_state_id: string +} + +export type resolve = never; + +export default requestFactory('playerState'); diff --git a/src/rest/types/playerStateGroup.ts b/src/rest/types/playerStateGroup.ts new file mode 100644 index 0000000..5725271 --- /dev/null +++ b/src/rest/types/playerStateGroup.ts @@ -0,0 +1,18 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + player_state_group_id: string, + player_state: string, + min_cone_of_fire: string, +}; + +export type query = { + min_cone_of_fire: string, + player_state: string, + player_state_group_id: string +} + +export type resolve = never; + +export default requestFactory('playerStateGroup'); diff --git a/src/rest/types/playerStateGroup2.ts b/src/rest/types/playerStateGroup2.ts new file mode 100644 index 0000000..103e3e4 --- /dev/null +++ b/src/rest/types/playerStateGroup2.ts @@ -0,0 +1,34 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + player_state_group_id: string, + player_state_id: string, + can_iron_sight: string, + cof_grow_rate: string, + cof_max: string, + cof_min: string, + cof_recovery_delay_ms: string, + cof_recovery_rate: string, + cof_shots_before_penalty: string, + cof_recovery_delay_threshold: string, + cof_turn_penalty: string, +}; + +export type query = { + can_iron_sight: string, + cof_grow_rate: string, + cof_max: string, + cof_min: string, + cof_recovery_delay_ms: string, + cof_recovery_delay_threshold: string, + cof_recovery_rate: string, + cof_shots_before_penalty: string, + cof_turn_penalty: string, + player_state_group_id: string, + player_state_id: string +} + +export type resolve = never; + +export default requestFactory('playerStateGroup2'); diff --git a/src/rest/types/profile.ts b/src/rest/types/profile.ts new file mode 100644 index 0000000..6f180f2 --- /dev/null +++ b/src/rest/types/profile.ts @@ -0,0 +1,50 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + profile_id: string, + profile_type_id: string, + profile_type_description: string, + faction_id: string, + name: lang, + description: lang, + image_set_id: string, + image_id: string, + image_path: string, + movement_speed: string, + backpedal_speed_modifier: string, + sprint_speed_modifier: string, + strafe_speed_modifier: string, +}; + +export type query = { + backpedal_speed_modifier: string, + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + faction_id: string, + image_id: string, + image_path: string, + image_set_id: string, + movement_speed: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + profile_id: string, + profile_type_description: string, + profile_type_id: string, + sprint_speed_modifier: string, + strafe_speed_modifier: string +} + +export type resolve = never; + +export default requestFactory('profile'); diff --git a/src/rest/types/profile2.ts b/src/rest/types/profile2.ts new file mode 100644 index 0000000..ada0f86 --- /dev/null +++ b/src/rest/types/profile2.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + profile_id: string, + description: string, +}; + +export type query = { + description: string, + profile_id: string +} + +export type resolve = never; + +export default requestFactory('profile2'); diff --git a/src/rest/types/profileArmorMap.ts b/src/rest/types/profileArmorMap.ts new file mode 100644 index 0000000..ea66790 --- /dev/null +++ b/src/rest/types/profileArmorMap.ts @@ -0,0 +1,18 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + profile_id: string, + armor_info_id: string, + rank: string, +}; + +export type query = { + armor_info_id: string, + profile_id: string, + rank: string +} + +export type resolve = never; + +export default requestFactory('profileArmorMap'); diff --git a/src/rest/types/profileResistMap.ts b/src/rest/types/profileResistMap.ts new file mode 100644 index 0000000..347815d --- /dev/null +++ b/src/rest/types/profileResistMap.ts @@ -0,0 +1,18 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + profile_id: string, + resist_info_id: string, + rank: string, +}; + +export type query = { + profile_id: string, + rank: string, + resist_info_id: string +} + +export type resolve = never; + +export default requestFactory('profileResistMap'); diff --git a/src/rest/types/projectile.ts b/src/rest/types/projectile.ts new file mode 100644 index 0000000..e6026cd --- /dev/null +++ b/src/rest/types/projectile.ts @@ -0,0 +1,37 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + projectile_id: string, + projectile_flight_type_id: string, + speed: string, + lifespan: string, + drag: string, + gravity: string, +}; + +export type query = { + acceleration: string, + arm_distance: string, + detonate_distance: string, + detonate_on_contact: string, + drag: string, + gravity: string, + lifespan: string, + lockon_acceleration: string, + lockon_lifespan: string, + lockon_lose_angle: string, + lockon_seek_in_flight: string, + projectile_flight_type_id: string, + projectile_id: string, + speed: string, + speed_max: string, + sticks_to_players: string, + sticky: string, + tether_distance: string, + turn_rate: string +} + +export type resolve = never; + +export default requestFactory('projectile'); diff --git a/src/rest/types/projectileFlightType.ts b/src/rest/types/projectileFlightType.ts new file mode 100644 index 0000000..c14c250 --- /dev/null +++ b/src/rest/types/projectileFlightType.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + projectile_flight_type_id: string, + description: string, +}; + +export type query = { + description: string, + projectile_flight_type_id: string +} + +export type resolve = never; + +export default requestFactory('projectileFlightType'); diff --git a/src/rest/types/region.ts b/src/rest/types/region.ts new file mode 100644 index 0000000..655df8e --- /dev/null +++ b/src/rest/types/region.ts @@ -0,0 +1,26 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + region_id: string, + zone_id: string, + initial_faction_id: string, + name: lang, +}; + +export type query = { + initial_faction_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + region_id: string, + zone_id: string +} + +export type resolve = never; + +export default requestFactory('region'); diff --git a/src/rest/types/resistInfo.ts b/src/rest/types/resistInfo.ts new file mode 100644 index 0000000..7702eda --- /dev/null +++ b/src/rest/types/resistInfo.ts @@ -0,0 +1,23 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + resist_info_id: string, + resist_type_id: string, + resist_percent: string, + multiplier_when_headshot: string, + description: string, +}; + +export type query = { + description: string, + multiplier_when_headshot: string, + resist_amount: string, + resist_info_id: string, + resist_percent: string, + resist_type_id: string +} + +export type resolve = never; + +export default requestFactory('resistInfo'); diff --git a/src/rest/types/resistType.ts b/src/rest/types/resistType.ts new file mode 100644 index 0000000..b2f93fc --- /dev/null +++ b/src/rest/types/resistType.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + resist_type_id: string, + description: string, +}; + +export type query = { + description: string, + resist_type_id: string +} + +export type resolve = never; + +export default requestFactory('resistType'); diff --git a/src/rest/types/resourceType.ts b/src/rest/types/resourceType.ts new file mode 100644 index 0000000..f879527 --- /dev/null +++ b/src/rest/types/resourceType.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + resource_type_id: string, + description: string, +}; + +export type query = { + description: string, + resource_type_id: string +} + +export type resolve = never; + +export default requestFactory('resourceType'); diff --git a/src/rest/types/reward.ts b/src/rest/types/reward.ts new file mode 100644 index 0000000..5b79611 --- /dev/null +++ b/src/rest/types/reward.ts @@ -0,0 +1,26 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + reward_id: string, + reward_type_id: string, + count_min: string, + count_max: string, + param1: string, +}; + +export type query = { + count_max: string, + count_min: string, + param1: string, + param2: string, + param3: string, + param4: string, + param5: string, + reward_id: string, + reward_type_id: string +} + +export type resolve = never; + +export default requestFactory('reward'); diff --git a/src/rest/types/rewardGroupToReward.ts b/src/rest/types/rewardGroupToReward.ts new file mode 100644 index 0000000..9f642f5 --- /dev/null +++ b/src/rest/types/rewardGroupToReward.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + reward_group_id: string, + reward_id: string, +}; + +export type query = { + reward_group_id: string, + reward_id: string +} + +export type resolve = never; + +export default requestFactory('rewardGroupToReward'); diff --git a/src/rest/types/rewardSetToRewardGroup.ts b/src/rest/types/rewardSetToRewardGroup.ts new file mode 100644 index 0000000..9f7a8a7 --- /dev/null +++ b/src/rest/types/rewardSetToRewardGroup.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + reward_set_id: string, + reward_group_id: string, +}; + +export type query = { + reward_group_id: string, + reward_set_id: string +} + +export type resolve = never; + +export default requestFactory('rewardSetToRewardGroup'); diff --git a/src/rest/types/rewardType.ts b/src/rest/types/rewardType.ts new file mode 100644 index 0000000..0208968 --- /dev/null +++ b/src/rest/types/rewardType.ts @@ -0,0 +1,28 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + reward_type_id: string, + description: string, + count_min: string, + param1: string, + param2: string, + param3: string, + param4: string, +}; + +export type query = { + count_max: string, + count_min: string, + description: string, + param1: string, + param2: string, + param3: string, + param4: string, + param5: string, + reward_type_id: string +} + +export type resolve = never; + +export default requestFactory('rewardType'); diff --git a/src/rest/types/singleCharacterById.ts b/src/rest/types/singleCharacterById.ts new file mode 100644 index 0000000..4df470d --- /dev/null +++ b/src/rest/types/singleCharacterById.ts @@ -0,0 +1,858 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + character_id: string, + name: { + first: string, + first_lower: string, + }, + faction_id: string, + head_id: string, + title_id: string, + times: { + creation: string, + creation_date: string, + last_save: string, + last_save_date: string, + last_login: string, + last_login_date: string, + login_count: string, + minutes_played: string, + }, + certs: { + earned_points: string, + gifted_points: string, + spent_points: string, + available_points: string, + percent_to_next: string, + }, + battle_rank: { + percent_to_next: string, + value: string, + }, + profile_id: string, + daily_ribbon: { + count: string, + time: string, + date: string, + }, + prestige_level: string, + currency: { + currency_id: string, + currency_name: string, + quantity: string, + prestige_currency: string, + }, + stats: { + stat_history: { + deaths: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + kills: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + score: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + time: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + facility_capture: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + facility_defend: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + battle_rank: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + certs: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + medals: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + ribbons: { + all_time: string, + one_life_max: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, + }, + }, + stat: { + character_id: string, + stat_name: string, + profile_id: string, + value_forever: string, + value_monthly: string, + value_weekly: string, + value_daily: string, + value_one_life_max: string, + last_save: string, + last_save_date: string, + }[], + stat_by_faction: { + character_id: string, + stat_name: string, + profile_id: string, + value_forever_vs: string, + value_forever_nc: string, + value_forever_tr: string, + value_monthly_vs: string, + value_monthly_nc: string, + value_monthly_tr: string, + value_weekly_vs: string, + value_weekly_nc: string, + value_weekly_tr: string, + value_daily_vs: string, + value_daily_nc: string, + value_daily_tr: string, + value_one_life_max_vs: string, + value_one_life_max_nc: string, + value_one_life_max_tr: string, + last_save: string, + last_save_date: string, + }[], + weapon_stat: { + character_id: string, + stat_name: string, + item_id: string, + vehicle_id: string, + value: string, + last_save: string, + last_save_date: string, + }[], + weapon_stat_by_faction: { + character_id: string, + stat_name: string, + item_id: string, + vehicle_id: string, + value_vs: string, + value_nc: string, + value_tr: string, + last_save: string, + last_save_date: string, + }[], + }, + online_status: string, + friends_list: {}[], + world_id: string, + outfit: { + member_since: string, + member_since_date: string, + member_rank: string, + member_rank_ordinal: string, + outfit_id: string, + name: string, + name_lower: string, + alias: string, + alias_lower: string, + time_created: string, + time_created_date: string, + leader_character_id: string, + member_count: string, + }, + items: { + item_id: string, + account_level: string, + item_id_merged: string, + item_type_id: string, + item_category_id: string, + activatable_ability_id: string, + is_vehicle_weapon: string, + name: lang, + description: lang, + faction_id: string, + max_stack_size: string, + image_set_id: string, + image_id: string, + image_path: string, + is_default_attachment: string, + }[], + sub_timing: {}, + profile: { + profile_type_id: string, + profile_type_description: string, + faction_id: string, + name: lang, + description: lang, + image_set_id: string, + image_id: string, + image_path: string, + movement_speed: string, + backpedal_speed_modifier: string, + sprint_speed_modifier: string, + strafe_speed_modifier: string, + }, + faction: { + name: lang, + image_set_id: string, + image_id: string, + image_path: string, + code_tag: string, + user_selectable: string, + }, +}; + +export type query = { + character_id: string +} + +export type resolve = + 'online_status' + | 'friends' + | 'world' + | 'outfit' + | 'item' + | 'profile' + | 'faction'; + +export default requestFactory('singleCharacterById'); diff --git a/src/rest/types/skill.ts b/src/rest/types/skill.ts new file mode 100644 index 0000000..0736364 --- /dev/null +++ b/src/rest/types/skill.ts @@ -0,0 +1,44 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + skill_id: string, + skill_line_id: string, + skill_line_index: string, + skill_points: string, + grant_item_id: string, + name: lang, + description: lang, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + grant_item_id: string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + skill_id: string, + skill_line_id: string, + skill_line_index: string, + skill_points: string +} + +export type resolve = never; + +export default requestFactory('skill'); diff --git a/src/rest/types/skillCategory.ts b/src/rest/types/skillCategory.ts new file mode 100644 index 0000000..1c731c1 --- /dev/null +++ b/src/rest/types/skillCategory.ts @@ -0,0 +1,41 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + skill_category_id: string, + skill_set_id: string, + skill_set_index: string, + skill_points: string, + name: lang, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + skill_category_id: string, + skill_points: string, + skill_set_id: string, + skill_set_index: string +} + +export type resolve = never; + +export default requestFactory('skillCategory'); diff --git a/src/rest/types/skillLine.ts b/src/rest/types/skillLine.ts new file mode 100644 index 0000000..983c0c8 --- /dev/null +++ b/src/rest/types/skillLine.ts @@ -0,0 +1,40 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + skill_line_id: string, + skill_points: string, + name: lang, + description: lang, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + skill_category_id: string, + skill_category_index: string, + skill_line_id: string, + skill_points: string +} + +export type resolve = never; + +export default requestFactory('skillLine'); diff --git a/src/rest/types/skillSet.ts b/src/rest/types/skillSet.ts new file mode 100644 index 0000000..6156599 --- /dev/null +++ b/src/rest/types/skillSet.ts @@ -0,0 +1,38 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + skill_set_id: string, + name: lang, + description: lang, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + required_item_id: string, + skill_points: string, + skill_set_id: string +} + +export type resolve = never; + +export default requestFactory('skillSet'); diff --git a/src/rest/types/targetType.ts b/src/rest/types/targetType.ts new file mode 100644 index 0000000..26f1401 --- /dev/null +++ b/src/rest/types/targetType.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + target_type_id: string, + description: string, +}; + +export type query = { + description: string, + target_type_id: string +} + +export type resolve = never; + +export default requestFactory('targetType'); diff --git a/src/rest/types/title.ts b/src/rest/types/title.ts new file mode 100644 index 0000000..682cc2f --- /dev/null +++ b/src/rest/types/title.ts @@ -0,0 +1,22 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + title_id: string, + name: lang, +}; + +export type query = { + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + title_id: string +} + +export type resolve = never; + +export default requestFactory('title'); diff --git a/src/rest/types/vehicle.ts b/src/rest/types/vehicle.ts new file mode 100644 index 0000000..789d04f --- /dev/null +++ b/src/rest/types/vehicle.ts @@ -0,0 +1,43 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + vehicle_id: string, + name: lang, + description: lang, + type_id: string, + type_name: string, + cost_resource_id: string, + image_set_id: string, + image_id: string, + image_path: string, +}; + +export type query = { + cost: string, + cost_resource_id: string, + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + image_id: string, + image_path: string, + image_set_id: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + type_id: string, + type_name: string, + vehicle_id: string +} + +export type resolve = never; + +export default requestFactory('vehicle'); diff --git a/src/rest/types/vehicleAttachment.ts b/src/rest/types/vehicleAttachment.ts new file mode 100644 index 0000000..7e1c869 --- /dev/null +++ b/src/rest/types/vehicleAttachment.ts @@ -0,0 +1,22 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + item_id: string, + vehicle_id: string, + faction_id: string, + description: string, + slot_id: string, +}; + +export type query = { + description: string, + faction_id: string, + item_id: string, + slot_id: string, + vehicle_id: string +} + +export type resolve = never; + +export default requestFactory('vehicleAttachment'); diff --git a/src/rest/types/vehicleFaction.ts b/src/rest/types/vehicleFaction.ts new file mode 100644 index 0000000..11dbbd4 --- /dev/null +++ b/src/rest/types/vehicleFaction.ts @@ -0,0 +1,16 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + vehicle_id: string, + faction_id: string, +}; + +export type query = { + faction_id: string, + vehicle_id: string +} + +export type resolve = never; + +export default requestFactory('vehicleFaction'); diff --git a/src/rest/types/vehicleSkillSet.ts b/src/rest/types/vehicleSkillSet.ts new file mode 100644 index 0000000..e9985ff --- /dev/null +++ b/src/rest/types/vehicleSkillSet.ts @@ -0,0 +1,20 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + vehicle_id: string, + skill_set_id: string, + faction_id: string, + display_index: string, +}; + +export type query = { + display_index: string, + faction_id: string, + skill_set_id: string, + vehicle_id: string +} + +export type resolve = never; + +export default requestFactory('vehicleSkillSet'); diff --git a/src/rest/types/weapon.ts b/src/rest/types/weapon.ts new file mode 100644 index 0000000..698f63b --- /dev/null +++ b/src/rest/types/weapon.ts @@ -0,0 +1,36 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + weapon_id: string, + turn_modifier: string, + move_modifier: string, + sprint_recovery_ms: string, + equip_ms: string, + unequip_ms: string, + to_iron_sights_ms: string, + from_iron_sights_ms: string, + melee_detect_width: string, + melee_detect_height: string, +}; + +export type query = { + equip_ms: string, + from_iron_sights_ms: string, + heat_bleed_off_rate: string, + heat_capacity: string, + heat_overheat_penalty_ms: string, + melee_detect_height: string, + melee_detect_width: string, + move_modifier: string, + sprint_recovery_ms: string, + to_iron_sights_ms: string, + turn_modifier: string, + unequip_ms: string, + weapon_group_id: string, + weapon_id: string +} + +export type resolve = never; + +export default requestFactory('weapon'); diff --git a/src/rest/types/weaponAmmoSlot.ts b/src/rest/types/weaponAmmoSlot.ts new file mode 100644 index 0000000..7751732 --- /dev/null +++ b/src/rest/types/weaponAmmoSlot.ts @@ -0,0 +1,22 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + weapon_id: string, + weapon_slot_index: string, + clip_size: string, + capacity: string, +}; + +export type query = { + capacity: string, + clip_size: string, + refill_ammo_delay_ms: string, + refill_ammo_rate: string, + weapon_id: string, + weapon_slot_index: string +} + +export type resolve = never; + +export default requestFactory('weaponAmmoSlot'); diff --git a/src/rest/types/weaponDatasheet.ts b/src/rest/types/weaponDatasheet.ts new file mode 100644 index 0000000..41638c9 --- /dev/null +++ b/src/rest/types/weaponDatasheet.ts @@ -0,0 +1,58 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + item_id: string, + damage: string, + damage_min: string, + damage_max: string, + fire_cone: string, + fire_cone_min: string, + fire_cone_max: string, + fire_rate_ms: string, + fire_rate_ms_min: string, + fire_rate_mx_max: string, + reload_ms: string, + reload_ms_min: string, + reload_ms_max: string, + clip_size: string, + capacity: string, + range: lang, + show_clip_size: string, + show_fire_modes: string, + show_range: string, +}; + +export type query = { + capacity: string, + clip_size: string, + damage: string, + damage_max: string, + damage_min: string, + direct_damage: string, + fire_cone: string, + fire_cone_max: string, + fire_cone_min: string, + fire_rate_ms: string, + fire_rate_ms_min: string, + fire_rate_mx_max: string, + indirect_damage: string, + item_id: string, + range: string, + 'range.de': string, + 'range.en': string, + 'range.es': string, + 'range.fr': string, + 'range.it': string, + 'range.tr': string, + reload_ms: string, + reload_ms_max: string, + reload_ms_min: string, + show_clip_size: string, + show_fire_modes: string, + show_range: string +} + +export type resolve = never; + +export default requestFactory('weaponDatasheet'); diff --git a/src/rest/types/weaponToAttachment.ts b/src/rest/types/weaponToAttachment.ts new file mode 100644 index 0000000..576a9fe --- /dev/null +++ b/src/rest/types/weaponToAttachment.ts @@ -0,0 +1,18 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + weapon_group_id: string, + attachment_id: string, + item_id: string, +}; + +export type query = { + attachment_id: string, + item_id: string, + weapon_group_id: string +} + +export type resolve = never; + +export default requestFactory('weaponToAttachment'); diff --git a/src/rest/types/weaponToFireGroup.ts b/src/rest/types/weaponToFireGroup.ts new file mode 100644 index 0000000..58087ce --- /dev/null +++ b/src/rest/types/weaponToFireGroup.ts @@ -0,0 +1,18 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + weapon_id: string, + fire_group_id: string, + fire_group_index: string, +}; + +export type query = { + fire_group_id: string, + fire_group_index: string, + weapon_id: string +} + +export type resolve = never; + +export default requestFactory('weaponToFireGroup'); diff --git a/src/rest/types/world.ts b/src/rest/types/world.ts new file mode 100644 index 0000000..96e1677 --- /dev/null +++ b/src/rest/types/world.ts @@ -0,0 +1,19 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + world_id: string, + state: string, + name: lang, +}; + +export type query = { + description_t4id: string, + name_t4id: string, + state: string, + world_id: string +} + +export type resolve = never; + +export default requestFactory('world'); diff --git a/src/rest/types/worldEvent.ts b/src/rest/types/worldEvent.ts new file mode 100644 index 0000000..2a1373a --- /dev/null +++ b/src/rest/types/worldEvent.ts @@ -0,0 +1,28 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + facility_id: string, + faction_old: string, + faction_new: string, + duration_held: string, + objective_id: string, + timestamp: string, + zone_id: string, + world_id: string, + event_type: string, + table_type: string, + outfit_id: string, +}; + +export type query = { + after: string, + before: string, + id: string, + type: string, + world_id: string +} + +export type resolve = never; + +export default requestFactory('worldEvent'); diff --git a/src/rest/types/worldStatHistory.ts b/src/rest/types/worldStatHistory.ts new file mode 100644 index 0000000..8438ac6 --- /dev/null +++ b/src/rest/types/worldStatHistory.ts @@ -0,0 +1,149 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + world_id: string, + stat_name: string, + type: string, + tracker_name: string, + faction: string, + all_time: string, + day: { + d01: string, + d02: string, + d03: string, + d04: string, + d05: string, + d06: string, + d07: string, + d08: string, + d09: string, + d10: string, + d11: string, + d12: string, + d13: string, + d14: string, + d15: string, + d16: string, + d17: string, + d18: string, + d19: string, + d20: string, + d21: string, + d22: string, + d23: string, + d24: string, + d25: string, + d26: string, + d27: string, + d28: string, + d29: string, + d30: string, + d31: string, + }, + month: { + m01: string, + m02: string, + m03: string, + m04: string, + m05: string, + m06: string, + m07: string, + m08: string, + m09: string, + m10: string, + m11: string, + m12: string, + }, + week: { + w01: string, + w02: string, + w03: string, + w04: string, + w05: string, + w06: string, + w07: string, + w08: string, + w09: string, + w10: string, + w11: string, + w12: string, + w13: string, + }, + last_save: string, + last_save_date: string, +}; + +export type query = { + all_time: string, + day: string, + 'day.d01': string, + 'day.d02': string, + 'day.d03': string, + 'day.d04': string, + 'day.d05': string, + 'day.d06': string, + 'day.d07': string, + 'day.d08': string, + 'day.d09': string, + 'day.d10': string, + 'day.d11': string, + 'day.d12': string, + 'day.d13': string, + 'day.d14': string, + 'day.d15': string, + 'day.d16': string, + 'day.d17': string, + 'day.d18': string, + 'day.d19': string, + 'day.d20': string, + 'day.d21': string, + 'day.d22': string, + 'day.d23': string, + 'day.d24': string, + 'day.d25': string, + 'day.d26': string, + 'day.d27': string, + 'day.d28': string, + 'day.d29': string, + 'day.d30': string, + 'day.d31': string, + faction: string, + last_save: string, + last_save_date: string, + month: string, + 'month.m01': string, + 'month.m02': string, + 'month.m03': string, + 'month.m04': string, + 'month.m05': string, + 'month.m06': string, + 'month.m07': string, + 'month.m08': string, + 'month.m09': string, + 'month.m10': string, + 'month.m11': string, + 'month.m12': string, + stat_name: string, + tracker_name: string, + type: string, + week: string, + 'week.w01': string, + 'week.w02': string, + 'week.w03': string, + 'week.w04': string, + 'week.w05': string, + 'week.w06': string, + 'week.w07': string, + 'week.w08': string, + 'week.w09': string, + 'week.w10': string, + 'week.w11': string, + 'week.w12': string, + 'week.w13': string, + world_id: string +} + +export type resolve = never; + +export default requestFactory('worldStatHistory'); diff --git a/src/rest/types/zone.ts b/src/rest/types/zone.ts new file mode 100644 index 0000000..ae72b74 --- /dev/null +++ b/src/rest/types/zone.ts @@ -0,0 +1,34 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, lang, operations } from '../utils/Types'; + +export type typeData = { + zone_id: string, + code: string, + hex_size: string, + name: lang, + description: lang, +}; + +export type query = { + code: string, + description: string, + 'description.de': string, + 'description.en': string, + 'description.es': string, + 'description.fr': string, + 'description.it': string, + 'description.tr': string, + hex_size: string, + name: string, + 'name.de': string, + 'name.en': string, + 'name.es': string, + 'name.fr': string, + 'name.it': string, + 'name.tr': string, + zone_id: string +} + +export type resolve = never; + +export default requestFactory('zone'); diff --git a/src/rest/types/zoneEffect.ts b/src/rest/types/zoneEffect.ts new file mode 100644 index 0000000..dfb5279 --- /dev/null +++ b/src/rest/types/zoneEffect.ts @@ -0,0 +1,42 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + zone_effect_id: string, + zone_effect_type_id: string, + ability_id: string, + param1: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, +}; + +export type query = { + ability_id: string, + param1: string, + param10: string, + param11: string, + param12: string, + param13: string, + param14: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string, + string1: string, + string2: string, + string3: string, + string4: string, + zone_effect_id: string, + zone_effect_type_id: string +} + +export type resolve = never; + +export default requestFactory('zoneEffect'); diff --git a/src/rest/types/zoneEffectType.ts b/src/rest/types/zoneEffectType.ts new file mode 100644 index 0000000..796fbb9 --- /dev/null +++ b/src/rest/types/zoneEffectType.ts @@ -0,0 +1,40 @@ +import { requestFactory } from '../utils/Helpers'; +import { commands, operations } from '../utils/Types'; + +export type typeData = { + zone_effect_type_id: string, + description: string, + param1: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, +}; + +export type query = { + description: string, + param1: string, + param10: string, + param11: string, + param12: string, + param13: string, + param14: string, + param2: string, + param3: string, + param4: string, + param5: string, + param6: string, + param7: string, + param8: string, + param9: string, + string1: string, + string2: string, + string3: string, + string4: string, + zone_effect_type_id: string +} + +export type resolve = never; + +export default requestFactory('zoneEffectType'); diff --git a/src/rest/utils/Helpers.ts b/src/rest/utils/Helpers.ts new file mode 100644 index 0000000..86e5d2b --- /dev/null +++ b/src/rest/utils/Helpers.ts @@ -0,0 +1,25 @@ +import { baseRequest, commands } from './Types'; + +export function requestFactory(type: string): baseRequest { + return Object.freeze({ + type, + extract: (data: any) => data[`${type}_list`], + params: Object.freeze({}), + }); +} + +export function setParam({type, extract, params}: baseRequest, key: string, value: any): baseRequest { + return Object.freeze({ + type, + extract, + params: Object.freeze({...params, [key]: value}), + }); +} + +export function setExtract({type, params}: baseRequest, extract: (data: any) => TN): baseRequest { + return Object.freeze({ + type, + extract, + params: params, + }); +} diff --git a/src/rest/utils/Types.ts b/src/rest/utils/Types.ts new file mode 100644 index 0000000..1033bb5 --- /dev/null +++ b/src/rest/utils/Types.ts @@ -0,0 +1,36 @@ +export type operations = 'get' | 'count' + +export type commands = + 'case' + | 'distinct' + | 'exactMatchFirst' + | 'has' + | 'hide' + | 'includeNull' + | 'join' + | 'lang' + | 'limit' + | 'resolve' + | 'retry' + | 'show' + | 'sort' + | 'start' + | 'timing' + | 'tree'; + +export type baseRequest = Readonly<{ + type: string, + extract: (data: any) => T, + params: Readonly> +}> +export type ApplyOperation = E extends O ? baseRequest, R> : never; + +export type lang = { + en: string, + de: string, + es: string, + fr: string, + it: string, + tr: string +} +export type langs = keyof lang; diff --git a/src/utils/Types.ts b/src/utils/Types.ts new file mode 100644 index 0000000..328f9de --- /dev/null +++ b/src/utils/Types.ts @@ -0,0 +1 @@ +export type PS2Environment = 'ps2' | 'ps2ps4us' | 'ps2ps4eu';