hella-types 0.2.27 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,69 @@
1
1
  import * as z from 'zod';
2
+ const AppearanceStyle = ['HIGH_DIFFICULTY', 'MAIN_NORMAL', 'MAIN_PREDEFINED', 'MIST_OPS', 'SPECIAL_STORY', 'SUB', 'TRAINING'];
3
+ const AttributeType = ['ATK', 'ATTACK_SPEED', 'COST', 'DEF', 'MAGIC_RESISTANCE', 'MAX_HP', 'RESPAWN_TIME'];
4
+ const BlockMask = ['FLY_ONLY', 'NONE', 'WALK_ONLY'];
5
+ const BuildableMask = ['ALL', 'MELEE', 'NONE', 'RANGED'];
6
+ const BuildableType = ['ALL', 'MELEE', 'NONE', 'RANGED'];
7
+ const BuffCategory = ['FUNCTION', 'OUTPUT', 'RECOVERY'];
8
+ const BuffType = ['M_ASC', 'M_DIAMOND', 'M_EXP', 'M_GOLD', 'W_ASC', 'W_BUILDING', 'W_EVOLVE', 'W_SKILL'];
9
+ const CardinalDirection = ['DOWN', 'LEFT', 'RIGHT', 'UP'];
10
+ const CheckpointType = ['APPEAR_AT_POS', 'DISAPPEAR', 'MAP_OFFSET_MOVE', 'MOVE', 'PATROL_MOVE', 'WAIT_BOSSRUSH_WAVE', 'WAIT_CURRENT_FRAGMENT_TIME', 'WAIT_CURRENT_WAVE_TIME', 'WAIT_FOR_SECONDS'];
11
+ const CompleteState = ['COMPLETE', 'PASS'];
12
+ const DropType = ['ADDITIONAL', 'COMPLETE', 'CONDITION_DROP', 'NORMAL', 'ONCE', 'SPECIAL'];
13
+ const DurationType = ['AMMO', 'NONE'];
14
+ const EnemyApplyWay = ['ALL', 'MELEE', 'NONE', 'RANGED'];
15
+ const EnemyLevelType = ['BOSS', 'ELITE', 'NORMAL'];
16
+ const EnemyMotion = ['FLY', 'WALK'];
17
+ const EnemySpType = ['INCREASE_WHEN_ATTACK', 'INCREASE_WHEN_TAKEN_DAMAGE', 'INCREASE_WITH_TIME', 'NONE'];
18
+ const EvolvePhase = ['PHASE_0', 'PHASE_2'];
19
+ const FormulaItem = ['ADDITION'];
20
+ const FormulaType = ['F_ASC', 'F_BUILDING', 'F_DIAMOND', 'F_EVOLVE', 'F_EXP', 'F_GOLD', 'F_SKILL'];
21
+ const GameEventDisplayType = ['BRANCHLINE', 'MINISTORY', 'NONE', 'SIDESTORY'];
22
+ const GameEventType = ['APRIL_FOOL', 'ARCADE', 'AUTOCHESS_SEASON', 'AUTOCHESS_VERIFY1', 'BLESS_ONLY', 'BOSS_RUSH', 'CHECKIN_ACCESS', 'CHECKIN_ALL_PLAYER', 'CHECKIN_ONLY', 'CHECKIN_VS', 'COLLECTION', 'DEFAULT', 'ENEMY_DUEL', 'FLIP_ONLY', 'FLOAT_PARADE', 'GRID_GACHA', 'GRID_GACHA_V2', 'HALFIDLE_VERIFY1', 'INTERLOCK', 'LOGIN_ONLY', 'MAINLINE_BP', 'MAIN_BUFF', 'MINISTORY', 'MISSION_ONLY', 'MULTIPLAY', 'MULTIPLAY_V3', 'MULTIPLAY_VERIFY2', 'PRAY_ONLY', 'RECRUIT_ONLY', 'ROGUELIKE', 'SWITCH_ONLY', 'TEAM_QUEST', 'TYPE_ACT12SIDE', 'TYPE_ACT13SIDE', 'TYPE_ACT17D7', 'TYPE_ACT17SIDE', 'TYPE_ACT20SIDE', 'TYPE_ACT21SIDE', 'TYPE_ACT24SIDE', 'TYPE_ACT25SIDE', 'TYPE_ACT27SIDE', 'TYPE_ACT29SIDE', 'TYPE_ACT35SIDE', 'TYPE_ACT36SIDE', 'TYPE_ACT38SIDE', 'TYPE_ACT3D0', 'TYPE_ACT42D0', 'TYPE_ACT42SIDE', 'TYPE_ACT44SIDE', 'TYPE_ACT45SIDE', 'TYPE_ACT46SIDE', 'TYPE_ACT4D0', 'TYPE_ACT5D0', 'TYPE_ACT5D1', 'TYPE_ACT9D0', 'TYPE_MAINSS', 'UNIQUE_ONLY', 'VEC_BREAK', 'VEC_BREAK_V2', 'YEAR_5_GENERAL'];
23
+ const GameEventRecType = ['CANNOT_COMPLETE', 'CAN_COMPLETE', 'SPECIAL'];
24
+ const HeightType = ['HIGHLAND', 'LOWLAND'];
25
+ const ItemClassifyType = ['CONSUME', 'MATERIAL', 'NONE', 'NORMAL'];
26
+ const ItemItemType = ['ACTIVITY_COIN', 'ACTIVITY_ITEM', 'ACTIVITY_POTENTIAL', 'AP_BASE', 'AP_GAMEPLAY', 'AP_ITEM', 'AP_SUPPLY', 'CARD_EXP', 'CLASSIC_FES_PICK_TIER_5', 'CLASSIC_FES_PICK_TIER_6', 'CLASSIC_SHD', 'CLASSIC_TKT_GACHA', 'CLASSIC_TKT_GACHA_10', 'CRS_RUNE_COIN', 'CRS_SHOP_COIN', 'CRS_SHOP_COIN_V2', 'DIAMOND', 'DIAMOND_SHD', 'EMOTICON_SET', 'EPGS_COIN', 'ET_STAGE', 'EXCLUSIVE_TKT_GACHA', 'EXCLUSIVE_TKT_GACHA_10', 'EXP_PLAYER', 'EXTERMINATION_AGENT', 'FAVOR_ADD_ITEM', 'GOLD', 'HGG_SHD', 'ITEM_PACK', 'LGG_SHD', 'LIMITED_BUFF', 'LIMITED_TKT_GACHA_10', 'LINKAGE_TKT_GACHA_10', 'LMTGS_COIN', 'MATERIAL', 'MATERIAL_ISSUE_VOUCHER', 'MCARD_VOUCHER', 'MEDAL', 'NEW_PROGRESS', 'OPTIONAL_VOUCHER_PICK', 'RENAMING_CARD', 'REP_COIN', 'RETRO_COIN', 'RETURN_CREDIT', 'RETURN_PROGRESS', 'RL_COIN', 'SANDBOX_TOKEN', 'SOCIAL_PT', 'TKT_GACHA', 'TKT_GACHA_10', 'TKT_GACHA_PRSV', 'TKT_INST_FIN', 'TKT_RECRUIT', 'TKT_TRY', 'UNI_COLLECTION', 'VOUCHER_CGACHA', 'VOUCHER_ELITE_II_4', 'VOUCHER_ELITE_II_5', 'VOUCHER_ELITE_II_6', 'VOUCHER_FULL_POTENTIAL', 'VOUCHER_LEVELMAX_4', 'VOUCHER_LEVELMAX_5', 'VOUCHER_LEVELMAX_6', 'VOUCHER_MGACHA', 'VOUCHER_PICK', 'VOUCHER_SKILL_SPECIALLEVELMAX_4', 'VOUCHER_SKILL_SPECIALLEVELMAX_5', 'VOUCHER_SKILL_SPECIALLEVELMAX_6', 'VOUCHER_SKIN'];
27
+ const ItemItemTypeLegacyNumeric = [85, 86, 87, 88, 90];
28
+ const ItemRarity = ['TIER_1', 'TIER_2', 'TIER_3', 'TIER_4', 'TIER_5', 'TIER_6'];
29
+ const LevelUpCostType = ['GOLD', 'MATERIAL'];
30
+ const ModuleType = ['ADVANCED', 'INITIAL'];
31
+ const MotionMode = ['E_NUM', 'FLY', 'WALK'];
32
+ const OccPer = ['ALMOST', 'ALWAYS', 'OFTEN', 'SOMETIMES', 'USUAL'];
33
+ const OperatorPhase = ['PHASE_0', 'PHASE_1', 'PHASE_2'];
34
+ const OperatorPosition = ['ALL', 'MELEE', 'NONE', 'RANGED'];
35
+ const OperatorProfession = ['CASTER', 'MEDIC', 'PIONEER', 'SNIPER', 'SPECIAL', 'SUPPORT', 'TANK', 'TOKEN', 'TRAP', 'WARRIOR'];
36
+ const ParadoxUnlockType = ['AWAKE'];
37
+ const PassableMask = ['ALL', 'FLY_ONLY', 'NONE'];
38
+ const PerformanceStageFlag = ['NORMAL_STAGE', 'PERFORMANCE_STAGE'];
39
+ const PlayerSideMask = ['ALL', 'NONE', 'SIDE_B'];
40
+ const PotentialRankType = ['BUFF', 'CUSTOM'];
41
+ const ProgressType = ['ONCE', 'PROGRESS'];
42
+ const Rarity = ['TIER_1', 'TIER_2', 'TIER_3', 'TIER_4', 'TIER_5', 'TIER_6'];
43
+ const RefreshType = ['ALWAYS', 'NEVER', 'PER_DAY', 'PER_SEASON', 'PER_SETTLE_DAY'];
44
+ const RewardType = ['ACTIVITY_ITEM', 'CARD_EXP', 'CHAR', 'CHARM', 'DIAMOND', 'ET_STAGE', 'FURN', 'GOLD', 'MATERIAL', 'PLOT_ITEM', 'TKT_RECRUIT'];
45
+ const RoomType = ['CONTROL', 'DORMITORY', 'HIRE', 'MANUFACTURE', 'MEETING', 'POWER', 'TRADING', 'TRAINING', 'WORKSHOP'];
46
+ const RogueRelicSubType = ['CURSE', 'NONE', 'RED_CAPSULE', 'SECRET', 'SINGLE_RAND_FREE', 'TEMP_TICKET', 'TOTEM_LOWER', 'TOTEM_UPPER'];
47
+ const RogueRelicType = ['ABSTRACT_DISASTER', 'ACTIVE_TOOL', 'BIGPILL', 'CHAOS', 'CHAOS_LEVEL', 'CHAOS_PURIFY', 'COPPER', 'COPPER_BUFF', 'COPPER_DRAW_NUM', 'CUSTOM_TICKET', 'DICE_POINT', 'DICE_TYPE', 'DISASTER', 'DISASTER_TYPE', 'DIVINATION_KIT', 'EXP', 'EXPLORE_TOOL', 'FEATURE', 'FRAGMENT', 'GOLD', 'HP', 'HPMAX', 'KEY_POINT', 'LOCKED_TREASURE', 'MAX_WEIGHT', 'PILL', 'POPULATION', 'RECRUIT_TICKET', 'RELIC', 'SAN_POINT', 'SHIELD', 'SPECIAL_ZONE_AP', 'SQUAD_CAPACITY', 'STASH_RECRUIT_LIMIT', 'TOTEM', 'TOTEM_EFFECT', 'UPGRADE_TICKET', 'VISION', 'WRATH'];
48
+ const RogueStageDifficulty = ['FOUR_STAR', 'NORMAL'];
49
+ const RogueVariationType = ['BAT', 'MAP', 'RES'];
50
+ const SandboxCraftType = ['BASE_BUILDING', 'COMBAT_BUILDING', 'TACTICAL'];
51
+ const SandboxDrinkType = ['FOOD', 'FOODMAT'];
52
+ const SandboxFoodAttribute = ['ATTACK', 'ENHANCED', 'NONE', 'SURVIVE'];
53
+ const SandboxFoodEffectType = ['ATTACK', 'COOLDOWN', 'COST', 'SKILL_POINT', 'SPECIAL', 'SURVIVE'];
54
+ const SandboxFoodVariantType = ['ALPHA', 'BETA', 'GAMMA', 'NONE'];
55
+ const SandboxItemType = ['ANIMAL', 'BUILDING', 'BUILDINGMAT', 'COIN', 'CRAFT', 'FOOD', 'FOODMAT', 'INSECT', 'PLACEHOLDER', 'SLUGITEM', 'SPECIALMAT', 'STAMINAPOT', 'TACTICAL'];
56
+ const SandboxWeatherType = ['DESERT', 'NORMAL', 'RAINFOREST', 'VOLCANO'];
57
+ const SkillSpType = ['INCREASE_WHEN_ATTACK', 'INCREASE_WHEN_TAKEN_DAMAGE', 'INCREASE_WITH_TIME', 'NONE'];
58
+ const SkillType = ['AUTO', 'MANUAL', 'PASSIVE'];
59
+ const SpTargetType = ['NONE', 'ROGUE'];
60
+ const StageActionType = ['ACTIVATE_PREDEFINED', 'BATTLE_EVENTS', 'DIALOG', 'DISPLAY_ENEMY_INFO', 'EMPTY', 'PLAY_BGM', 'PLAY_OPERA', 'PREVIEW_CURSOR', 'SPAWN', 'STORY', 'TRIGGER_PREDEFINED', 'WITHDRAW_PREDEFINED'];
61
+ const StageDifficulty = ['FOUR_STAR', 'NORMAL', 'SIX_STAR'];
62
+ const StageDiffGroup = ['ALL', 'EASY', 'NONE', 'NORMAL', 'TOUGH'];
63
+ const StageRandomType = ['ALWAYS', 'NEVER', 'PER_DAY', 'PER_SEASON', 'PER_SETTLE_DAY'];
64
+ const StageType = ['ACTIVITY', 'CAMPAIGN', 'CLIMB_TOWER', 'DAILY', 'GUIDE', 'MAIN', 'PERMANENT', 'SPECIAL_STORY', 'SUB', 'TEMPORARY'];
65
+ const VoucherItemType = ['MATERIAL_ISSUE_VOUCHER', 'OPTIONAL_VOUCHER_PICK'];
66
+ const VoiceType = ['ALL', 'ILLUST', 'NONE'];
2
67
  const BlackboardZod = z.strictObject({
3
68
  key: z.string().nullable(),
4
69
  value: z.number().nullable().optional(),
@@ -92,7 +157,7 @@ const EnemySkillsZod = z.strictObject({
92
157
  blackboard: z.array(BlackboardZod).nullable(),
93
158
  });
94
159
  const EnemySpDataZod = z.strictObject({
95
- spType: z.string(),
160
+ spType: z.enum(EnemySpType),
96
161
  maxSp: z.number(),
97
162
  initSp: z.number(),
98
163
  increment: z.number(),
@@ -118,7 +183,7 @@ const EnemyDataZod = z.strictObject({
118
183
  const LevelUpCostZod = z.strictObject({
119
184
  id: z.string(),
120
185
  count: z.number(),
121
- type: z.string(),
186
+ type: z.enum(LevelUpCostType),
122
187
  });
123
188
  const ManufactFormulaZod = z.strictObject({
124
189
  formulaId: z.string(),
@@ -126,8 +191,8 @@ const ManufactFormulaZod = z.strictObject({
126
191
  count: z.number(),
127
192
  weight: z.number(),
128
193
  costPoint: z.number(),
129
- formulaType: z.string(),
130
- buffType: z.string(),
194
+ formulaType: z.enum(FormulaType),
195
+ buffType: z.enum(BuffType),
131
196
  costs: z.array(LevelUpCostZod),
132
197
  requireRooms: z.array(z.strictObject({
133
198
  roomId: z.string(),
@@ -147,8 +212,8 @@ const WorkshopFormulaZod = z.strictObject({
147
212
  count: z.number(),
148
213
  goldCost: z.number(),
149
214
  apCost: z.number(),
150
- formulaType: z.string(),
151
- buffType: z.string(),
215
+ formulaType: z.enum(FormulaType),
216
+ buffType: z.enum(BuffType),
152
217
  extraOutcomeRate: z.number(),
153
218
  extraOutcomeGroup: z.array(z.strictObject({
154
219
  weight: z.number(),
@@ -167,7 +232,7 @@ const WorkshopFormulaZod = z.strictObject({
167
232
  })),
168
233
  });
169
234
  const OperatorUnlockCondZod = z.strictObject({
170
- phase: z.union([z.string(), z.number()]),
235
+ phase: z.union([z.enum(OperatorPhase), z.number()]),
171
236
  level: z.number(),
172
237
  });
173
238
  const LevelUpCostCondZod = z.strictObject({
@@ -195,7 +260,7 @@ const StageCardZod = z.strictObject({
195
260
  inst: z.strictObject({
196
261
  characterKey: z.string(),
197
262
  level: z.number(),
198
- phase: z.union([z.string(), z.number()]).optional(),
263
+ phase: z.union([z.enum(OperatorPhase), z.number()]).optional(),
199
264
  favorPoint: z.number(),
200
265
  potentialRank: z.number(),
201
266
  }),
@@ -210,7 +275,7 @@ const StageInstZod = StageCardZod.extend({
210
275
  row: z.number(),
211
276
  col: z.number(),
212
277
  }),
213
- direction: z.union([z.string(), z.number()]).optional(),
278
+ direction: z.union([z.enum(CardinalDirection), z.number()]).optional(),
214
279
  });
215
280
  const StageDefinesZod = z.strictObject({
216
281
  characterInsts: z.array(StageInstZod),
@@ -225,10 +290,10 @@ const StageEffectZod = z.strictObject({
225
290
  y: z.number(),
226
291
  z: z.number(),
227
292
  }),
228
- direction: z.union([z.string(), z.number()]),
293
+ direction: z.union([z.enum(CardinalDirection), z.number()]),
229
294
  });
230
295
  const StageActionZod = z.strictObject({
231
- actionType: z.union([z.string(), z.number()]),
296
+ actionType: z.union([z.enum(StageActionType), z.number()]),
232
297
  managedByScheduler: z.boolean(),
233
298
  key: z.string(),
234
299
  count: z.number(),
@@ -242,8 +307,8 @@ const StageActionZod = z.strictObject({
242
307
  hiddenGroup: z.string().nullable(),
243
308
  randomSpawnGroupKey: z.string().nullable().optional(),
244
309
  randomSpawnGroupPackKey: z.string().nullable().optional(),
245
- randomType: z.union([z.string(), z.number()]).optional(),
246
- refreshType: z.string().optional(),
310
+ randomType: z.union([z.enum(StageRandomType), z.number()]).optional(),
311
+ refreshType: z.union([z.enum(RefreshType), z.number()]).optional(),
247
312
  weight: z.number().optional(),
248
313
  dontBlockWave: z.boolean().optional(),
249
314
  isValid: z.boolean().optional(),
@@ -252,7 +317,7 @@ const StageActionZod = z.strictObject({
252
317
  forceBlockWaveInBranch: z.boolean().optional(),
253
318
  });
254
319
  const StageRouteZod = z.strictObject({
255
- motionMode: z.union([z.string(), z.number()]),
320
+ motionMode: z.union([z.enum(MotionMode), z.number()]),
256
321
  startPosition: z.strictObject({
257
322
  row: z.number(),
258
323
  col: z.number(),
@@ -270,7 +335,7 @@ const StageRouteZod = z.strictObject({
270
335
  y: z.number(),
271
336
  }),
272
337
  checkpoints: z.array(z.strictObject({
273
- type: z.union([z.string(), z.number()]),
338
+ type: z.union([z.enum(CheckpointType), z.number()]),
274
339
  time: z.number(),
275
340
  position: z.strictObject({
276
341
  row: z.number(),
@@ -291,8 +356,8 @@ const StageRouteZod = z.strictObject({
291
356
  const StageRune = z.strictObject({
292
357
  difficultyMask: z.union([z.string(), z.number()]),
293
358
  key: z.string(),
294
- professionMask: z.union([z.string(), z.number()]).optional(),
295
- buildableMask: z.union([z.string(), z.number()]),
359
+ professionMask: z.union([z.enum(['NONE', 'PIONEER', 'WARRIOR', 'TANK', 'SNIPER', 'CASTER', 'MEDIC', 'SUPPORT', 'SPECIAL', 'TRAP']), z.number()]).optional(),
360
+ buildableMask: z.union([z.enum(BuildableMask), z.number()]),
296
361
  blackboard: z.array(BlackboardZod),
297
362
  });
298
363
  const StageDataZod = z.strictObject({
@@ -320,10 +385,10 @@ const StageDataZod = z.strictObject({
320
385
  map: z.array(z.array(z.number())),
321
386
  tiles: z.array(z.strictObject({
322
387
  tileKey: z.string(),
323
- heightType: z.union([z.string(), z.number()]),
324
- buildableType: z.union([z.string(), z.number()]),
325
- passableMask: z.union([z.string(), z.number()]),
326
- playerSideMask: z.union([z.string(), z.number()]).optional(),
388
+ heightType: z.union([z.enum(HeightType), z.number()]),
389
+ buildableType: z.union([z.enum(BuildableType), z.number()]),
390
+ passableMask: z.union([z.enum(PassableMask), z.number()]),
391
+ playerSideMask: z.union([z.enum(PlayerSideMask), z.number()]).optional(),
327
392
  blackboard: z.array(BlackboardZod).nullable(),
328
393
  effects: z.array(StageEffectZod).nullable(),
329
394
  })),
@@ -332,8 +397,8 @@ const StageDataZod = z.strictObject({
332
397
  row: z.number(),
333
398
  col: z.number(),
334
399
  }),
335
- direction: z.union([z.string(), z.number()]),
336
- blockMask: z.union([z.string(), z.number()]),
400
+ direction: z.union([z.enum(CardinalDirection), z.number()]),
401
+ blockMask: z.union([z.enum(BlockMask), z.number()]),
337
402
  })).nullable(),
338
403
  tags: z.array(z.string()).nullable(),
339
404
  effects: z.array(StageEffectZod).nullable(),
@@ -450,8 +515,8 @@ export const BaseZod = z.strictObject({
450
515
  sortId: z.number(),
451
516
  buffColor: z.string(),
452
517
  textColor: z.string(),
453
- buffCategory: z.string(),
454
- roomType: z.string(),
518
+ buffCategory: z.enum(BuffCategory),
519
+ roomType: z.enum(RoomType),
455
520
  description: z.string(),
456
521
  });
457
522
  export const CCStageLegacyZod = z.strictObject({
@@ -468,7 +533,7 @@ export const CCStageZod = z.strictObject({
468
533
  stageId: z.string(),
469
534
  mapId: z.string(),
470
535
  levelId: z.string(),
471
- stageType: z.string(),
536
+ stageType: z.enum(StageType),
472
537
  code: z.string(),
473
538
  name: z.string(),
474
539
  loadingPicId: z.string(),
@@ -642,8 +707,8 @@ export const GachaPoolZod = z.strictObject({
642
707
  });
643
708
  export const GameEventZod = z.strictObject({
644
709
  id: z.string(),
645
- type: z.union([z.string(), z.number()]),
646
- displayType: z.string(),
710
+ type: z.enum(GameEventType),
711
+ displayType: z.enum(GameEventDisplayType),
647
712
  name: z.string(),
648
713
  startTime: z.number(),
649
714
  endTime: z.number(),
@@ -656,7 +721,7 @@ export const GameEventZod = z.strictObject({
656
721
  isReplicate: z.boolean(),
657
722
  needFixedSync: z.boolean(),
658
723
  trapDomainId: z.string().nullable(),
659
- recType: z.string().nullable(),
724
+ recType: z.enum(GameEventRecType).nullable(),
660
725
  isPageEntry: z.boolean(),
661
726
  isMagnify: z.boolean(),
662
727
  picGroup: z.array(z.strictObject({
@@ -688,7 +753,7 @@ export const ItemZod = z.strictObject({
688
753
  itemId: z.string(),
689
754
  name: z.string(),
690
755
  description: z.string().nullable(),
691
- rarity: z.string(),
756
+ rarity: z.enum(ItemRarity),
692
757
  iconId: z.string(),
693
758
  overrideBkg: z.null(),
694
759
  stackIconId: z.string().nullable(),
@@ -696,11 +761,11 @@ export const ItemZod = z.strictObject({
696
761
  usage: z.string().nullable(),
697
762
  obtainApproach: z.string().nullable(),
698
763
  hideInItemGet: z.boolean(),
699
- classifyType: z.string(),
700
- itemType: z.union([z.string(), z.number()]),
764
+ classifyType: z.enum(ItemClassifyType),
765
+ itemType: z.enum(ItemItemType).or(z.union([z.literal(85), z.literal(86), z.literal(87), z.literal(88), z.literal(90)])),
701
766
  stageDropList: z.array(z.strictObject({
702
767
  stageId: z.string(),
703
- occPer: z.string(),
768
+ occPer: z.enum(OccPer),
704
769
  })),
705
770
  buildingProductList: z.array(z.strictObject({
706
771
  roomType: z.string(),
@@ -708,7 +773,7 @@ export const ItemZod = z.strictObject({
708
773
  })),
709
774
  voucherRelateList: z.array(z.strictObject({
710
775
  voucherId: z.string(),
711
- voucherItemType: z.string(),
776
+ voucherItemType: z.enum(VoucherItemType),
712
777
  })).nullable(),
713
778
  }),
714
779
  formula: z.union([ManufactFormulaZod, WorkshopFormulaZod]).nullable(),
@@ -723,8 +788,8 @@ export const ModuleZod = z.strictObject({
723
788
  typeName1: z.string(),
724
789
  typeName2: z.string().nullable(),
725
790
  equipShiningColor: z.string(),
726
- showEvolvePhase: z.string(),
727
- unlockEvolvePhase: z.string(),
791
+ showEvolvePhase: z.enum(EvolvePhase),
792
+ unlockEvolvePhase: z.enum(EvolvePhase),
728
793
  charId: z.string(),
729
794
  tmplId: z.string().nullable(),
730
795
  showLevel: z.number(),
@@ -737,7 +802,7 @@ export const ModuleZod = z.strictObject({
737
802
  3: z.number(),
738
803
  }).nullable(),
739
804
  itemCost: z.record(z.string(), z.array(LevelUpCostZod)).nullable(),
740
- type: z.string(),
805
+ type: z.enum(ModuleType),
741
806
  uniEquipGetTime: z.number(),
742
807
  uniEquipShowEnd: z.number(),
743
808
  charEquipOrder: z.number(),
@@ -801,7 +866,7 @@ export const ParadoxZod = z.strictObject({
801
866
  loadingPicId: z.string(),
802
867
  description: z.string(),
803
868
  unlockParam: z.array(z.strictObject({
804
- unlockType: z.string(),
869
+ unlockType: z.enum(ParadoxUnlockType),
805
870
  unlockParam1: z.string(),
806
871
  unlockParam2: z.string(),
807
872
  unlockParam3: z.null(),
@@ -823,8 +888,8 @@ export const RogueRelicZod = z.strictObject({
823
888
  obtainApproach: z.string(),
824
889
  iconId: z.string(),
825
890
  itemIconGroupId: z.string().nullable(),
826
- type: z.string(),
827
- subType: z.string(),
891
+ type: z.enum(RogueRelicType),
892
+ subType: z.enum(RogueRelicSubType),
828
893
  rarity: z.string(),
829
894
  sortId: z.number(),
830
895
  canSacrifice: z.boolean(),
@@ -845,7 +910,7 @@ export const RogueStageZod = z.strictObject({
845
910
  eliteDesc: z.string().nullable(),
846
911
  isBoss: z.number(),
847
912
  isElite: z.number(),
848
- difficulty: z.string(),
913
+ difficulty: z.enum(RogueStageDifficulty),
849
914
  capsulePool: z.string().nullable(),
850
915
  capsuleProb: z.number(),
851
916
  vutresProb: z.array(z.number()),
@@ -858,7 +923,7 @@ export const RogueStageZod = z.strictObject({
858
923
  });
859
924
  export const RogueVariationZod = z.strictObject({
860
925
  id: z.string(),
861
- type: z.string(),
926
+ type: z.enum(RogueVariationType),
862
927
  outerName: z.string(),
863
928
  innerName: z.string(),
864
929
  functionDesc: z.string(),
@@ -876,7 +941,7 @@ export const RogueThemeZod = z.strictObject({
876
941
  export const SandboxItemZod = z.strictObject({
877
942
  craft: z.strictObject({
878
943
  itemId: z.string(),
879
- type: z.string(),
944
+ type: z.enum(SandboxCraftType),
880
945
  buildingUnlockDesc: z.string(),
881
946
  materialItems: z.record(z.string(), z.number()),
882
947
  upgradeItems: z.record(z.string(), z.number()).nullable(),
@@ -889,27 +954,27 @@ export const SandboxItemZod = z.strictObject({
889
954
  }).nullable(),
890
955
  drink: z.strictObject({
891
956
  id: z.string(),
892
- type: z.string(),
957
+ type: z.enum(SandboxDrinkType),
893
958
  count: z.number(),
894
959
  }).nullable(),
895
960
  foodMat: z.strictObject({
896
961
  id: z.string(),
897
962
  type: z.string(),
898
- attribute: z.string(),
899
- variantType: z.string(),
963
+ attribute: z.enum(SandboxFoodAttribute),
964
+ variantType: z.enum(SandboxFoodVariantType),
900
965
  bonusDuration: z.number(),
901
966
  buffDesc: z.string().nullable(),
902
967
  sortId: z.number(),
903
968
  }).nullable(),
904
969
  food: z.strictObject({
905
970
  id: z.string(),
906
- attributes: z.array(z.string()),
971
+ attributes: z.array(z.enum(SandboxFoodEffectType)),
907
972
  recipes: z.array(z.strictObject({
908
973
  foodId: z.string(),
909
974
  mats: z.array(z.string()),
910
975
  })).nullable(),
911
976
  variants: z.array(z.strictObject({
912
- type: z.string(),
977
+ type: z.enum(SandboxFoodVariantType),
913
978
  name: z.string(),
914
979
  usage: z.string(),
915
980
  })),
@@ -918,7 +983,7 @@ export const SandboxItemZod = z.strictObject({
918
983
  }).nullable(),
919
984
  data: z.strictObject({
920
985
  itemId: z.string(),
921
- itemType: z.string(),
986
+ itemType: z.enum(SandboxItemType),
922
987
  itemName: z.string(),
923
988
  itemUsage: z.string(),
924
989
  itemDesc: z.string(),
@@ -943,7 +1008,7 @@ export const SandboxWeatherZod = z.strictObject({
943
1008
  weatherId: z.string(),
944
1009
  name: z.string(),
945
1010
  weatherLevel: z.number(),
946
- weatherType: z.string(),
1011
+ weatherType: z.enum(SandboxWeatherType),
947
1012
  weatherTypeName: z.string(),
948
1013
  weatherIconId: z.string(),
949
1014
  functionDesc: z.string(),
@@ -966,10 +1031,10 @@ export const SkillZod = z.strictObject({
966
1031
  name: z.string(),
967
1032
  rangeId: z.string().nullable(),
968
1033
  description: z.string().nullable(),
969
- skillType: z.string(),
970
- durationType: z.string(),
1034
+ skillType: z.enum(SkillType),
1035
+ durationType: z.enum(DurationType),
971
1036
  spData: z.strictObject({
972
- spType: z.union([z.string(), z.number()]),
1037
+ spType: z.enum(SkillSpType).or(z.literal(8)),
973
1038
  levelUpCost: z.null(),
974
1039
  maxChargeTime: z.number(),
975
1040
  spCost: z.number(),
@@ -1005,7 +1070,7 @@ export const SkinZod = z.strictObject({
1005
1070
  isBuySkin: z.boolean(),
1006
1071
  tmplId: z.string().nullable(),
1007
1072
  voiceId: z.string().nullable(),
1008
- voiceType: z.string(),
1073
+ voiceType: z.enum(VoiceType),
1009
1074
  displaySkin: z.strictObject({
1010
1075
  skinName: z.string().nullable(),
1011
1076
  colorList: z.array(z.string()).nullable(),
@@ -1030,13 +1095,13 @@ export const SkinZod = z.strictObject({
1030
1095
  });
1031
1096
  export const StageZod = z.strictObject({
1032
1097
  excel: z.strictObject({
1033
- stageType: z.string(),
1034
- difficulty: z.string(),
1035
- performanceStageFlag: z.string(),
1036
- diffGroup: z.string(),
1098
+ stageType: z.enum(StageType),
1099
+ difficulty: z.enum(StageDifficulty),
1100
+ performanceStageFlag: z.enum(PerformanceStageFlag),
1101
+ diffGroup: z.enum(StageDiffGroup),
1037
1102
  unlockCondition: z.array(z.strictObject({
1038
1103
  stageId: z.string(),
1039
- completeState: z.string(),
1104
+ completeState: z.enum(CompleteState),
1040
1105
  })),
1041
1106
  stageId: z.string(),
1042
1107
  levelId: z.string(),
@@ -1076,22 +1141,22 @@ export const StageZod = z.strictObject({
1076
1141
  isHardPredefined: z.boolean(),
1077
1142
  isSkillSelectablePredefined: z.boolean(),
1078
1143
  isStoryOnly: z.boolean(),
1079
- appearanceStyle: z.string(),
1144
+ appearanceStyle: z.enum(AppearanceStyle),
1080
1145
  stageDropInfo: z.strictObject({
1081
1146
  firstPassRewards: z.null(),
1082
1147
  firstCompleteRewards: z.null(),
1083
1148
  passRewards: z.null(),
1084
1149
  completeRewards: z.null(),
1085
1150
  displayRewards: z.array(z.strictObject({
1086
- type: z.string(),
1151
+ type: z.enum(RewardType),
1087
1152
  id: z.string(),
1088
- dropType: z.string(),
1153
+ dropType: z.enum(DropType),
1089
1154
  })),
1090
1155
  displayDetailRewards: z.array(z.strictObject({
1091
1156
  occPercent: z.string(),
1092
- type: z.string(),
1157
+ type: z.enum(RewardType),
1093
1158
  id: z.string(),
1094
- dropType: z.string(),
1159
+ dropType: z.enum(DropType),
1095
1160
  })),
1096
1161
  }),
1097
1162
  canUseCharm: z.boolean(),
@@ -1113,10 +1178,10 @@ export const StageZod = z.strictObject({
1113
1178
  rewards: z.array(z.strictObject({
1114
1179
  id: z.string(),
1115
1180
  count: z.number(),
1116
- type: z.string(),
1181
+ type: z.enum(RewardType),
1117
1182
  })),
1118
1183
  progressInfo: z.strictObject({
1119
- progressType: z.string(),
1184
+ progressType: z.enum(ProgressType),
1120
1185
  descList: z.record(z.string(), z.string()),
1121
1186
  })
1122
1187
  })).nullable(),
@@ -1139,7 +1204,7 @@ export const DeployableZod = z.strictObject({
1139
1204
  name: z.string(),
1140
1205
  description: z.string().nullable(),
1141
1206
  sortIndex: z.number(),
1142
- spTargetType: z.string(),
1207
+ spTargetType: z.enum(SpTargetType),
1143
1208
  spTargetId: z.string().nullable(),
1144
1209
  canUseGeneralPotentialItem: z.boolean(),
1145
1210
  canUseActivityPotentialItem: z.boolean(),
@@ -1161,7 +1226,7 @@ export const DeployableZod = z.strictObject({
1161
1226
  })).nullable(),
1162
1227
  displayNumber: z.string().nullable(),
1163
1228
  appellation: z.string(),
1164
- position: z.string(),
1229
+ position: z.enum(OperatorPosition),
1165
1230
  tagList: z.array(z.string()).nullable(),
1166
1231
  itemUsage: z.string().nullable(),
1167
1232
  itemDesc: z.string().nullable(),
@@ -1169,8 +1234,8 @@ export const DeployableZod = z.strictObject({
1169
1234
  isNotObtainable: z.boolean(),
1170
1235
  isSpChar: z.boolean(),
1171
1236
  maxPotentialLevel: z.number(),
1172
- rarity: z.string(),
1173
- profession: z.string(),
1237
+ rarity: z.enum(Rarity),
1238
+ profession: z.enum(OperatorProfession),
1174
1239
  subProfessionId: z.string(),
1175
1240
  trait: z.strictObject({
1176
1241
  candidates: z.array(z.strictObject({
@@ -1187,7 +1252,7 @@ export const DeployableZod = z.strictObject({
1187
1252
  rangeId: z.string().nullable(),
1188
1253
  maxLevel: z.number(),
1189
1254
  attributesKeyFrames: z.array(AttributesKeyFrameZod),
1190
- evolveCost: z.union([z.array(LevelUpCostZod), z.null()]),
1255
+ evolveCost: z.array(LevelUpCostZod).nullable(),
1191
1256
  })),
1192
1257
  skills: z.array(DeploySkillZod),
1193
1258
  displayTokenDict: z.record(z.boolean()).nullable(),
@@ -1205,7 +1270,7 @@ export const DeployableZod = z.strictObject({
1205
1270
  })).nullable(),
1206
1271
  })).nullable(),
1207
1272
  potentialRanks: z.array(z.strictObject({
1208
- type: z.string(),
1273
+ type: z.enum(PotentialRankType),
1209
1274
  description: z.string(),
1210
1275
  buff: z.strictObject({
1211
1276
  attributes: z.strictObject({
@@ -1215,8 +1280,8 @@ export const DeployableZod = z.strictObject({
1215
1280
  abnormalCombos: z.null(),
1216
1281
  abnormalComboImmunes: z.null(),
1217
1282
  attributeModifiers: z.array(z.strictObject({
1218
- attributeType: z.string(),
1219
- formulaItem: z.string(),
1283
+ attributeType: z.enum(AttributeType),
1284
+ formulaItem: z.enum(FormulaItem),
1220
1285
  value: z.number(),
1221
1286
  loadFromBlackboard: z.boolean(),
1222
1287
  fetchBaseValueFromSourceEntity: z.boolean(),
@@ -1249,6 +1314,7 @@ export const OperatorZod = DeployableZod.extend({
1249
1314
  }),
1250
1315
  skill: BaseZod,
1251
1316
  })),
1317
+ deploys: z.array(DeployableZod).nullable(),
1252
1318
  modules: z.array(ModuleZod),
1253
1319
  paradox: ParadoxZod.nullable(),
1254
1320
  recruit: z.number(),
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "hella-types",
3
- "version": "0.2.27",
3
+ "version": "0.3.0",
4
+ "type": "module",
4
5
  "main": "dist/index.js",
5
6
  "types": "dist/index.d.ts",
6
7
  "author": "",