hella-types 0.2.19 → 0.2.21

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,29 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperatorZod = exports.DeployableZod = exports.StageZod = exports.SkinZod = exports.SkillZod = exports.SandboxActZod = exports.SandboxWeatherZod = exports.SandboxStageZod = exports.SandboxItemZod = exports.RogueThemeZod = exports.RogueVariationZod = exports.RogueStageZod = exports.RogueRelicZod = exports.ParadoxZod = exports.ModuleZod = exports.ItemZod = exports.GridRangeZod = exports.GameEventZod = exports.GachaPoolZod = exports.EnemyZod = exports.DefinitionZod = exports.CCSeasonZod = exports.CCStageZod = exports.CCStageLegacyZod = exports.BaseZod = void 0;
4
- var z = require("zod");
5
- var BlackboardZod = z.strictObject({
1
+ import * as z from 'zod';
2
+ const BlackboardZod = z.strictObject({
6
3
  key: z.string().nullable(),
7
4
  value: z.number().nullable().optional(),
8
5
  valueStr: z.string().nullable().optional(),
9
6
  });
10
- var DefinedStringZod = z.strictObject({
7
+ const DefinedStringZod = z.strictObject({
11
8
  m_defined: z.boolean(),
12
9
  m_value: z.string().nullable(),
13
10
  });
14
- var DefinedStringArrayZod = z.strictObject({
11
+ const DefinedStringArrayZod = z.strictObject({
15
12
  m_defined: z.boolean(),
16
13
  m_value: z.array(z.string()).nullable(),
17
14
  });
18
- var DefinedNumberZod = z.strictObject({
15
+ const DefinedNumberZod = z.strictObject({
19
16
  m_defined: z.boolean(),
20
17
  m_value: z.number().nullable(),
21
18
  });
22
- var DefinedBooleanZod = z.strictObject({
19
+ const DefinedBooleanZod = z.strictObject({
23
20
  m_defined: z.boolean(),
24
21
  m_value: z.boolean().nullable(),
25
22
  });
26
- var AttributesKeyFrameZod = z.strictObject({
23
+ const AttributesKeyFrameZod = z.strictObject({
27
24
  level: z.number(),
28
25
  data: z.strictObject({
29
26
  maxHp: z.number(),
@@ -54,7 +51,7 @@ var AttributesKeyFrameZod = z.strictObject({
54
51
  attractImmune: z.boolean(),
55
52
  }),
56
53
  });
57
- var EnemyAttributesZod = z.strictObject({
54
+ const EnemyAttributesZod = z.strictObject({
58
55
  maxHp: DefinedNumberZod,
59
56
  atk: DefinedNumberZod,
60
57
  def: DefinedNumberZod,
@@ -86,7 +83,7 @@ var EnemyAttributesZod = z.strictObject({
86
83
  palsyImmune: DefinedBooleanZod.optional(),
87
84
  attractImmune: DefinedBooleanZod.optional(),
88
85
  });
89
- var EnemySkillsZod = z.strictObject({
86
+ const EnemySkillsZod = z.strictObject({
90
87
  prefabKey: z.string(),
91
88
  priority: z.number(),
92
89
  cooldown: z.number(),
@@ -94,13 +91,13 @@ var EnemySkillsZod = z.strictObject({
94
91
  spCost: z.number(),
95
92
  blackboard: z.array(BlackboardZod).nullable(),
96
93
  });
97
- var EnemySpDataZod = z.strictObject({
94
+ const EnemySpDataZod = z.strictObject({
98
95
  spType: z.string(),
99
96
  maxSp: z.number(),
100
97
  initSp: z.number(),
101
98
  increment: z.number(),
102
99
  });
103
- var EnemyDataZod = z.strictObject({
100
+ const EnemyDataZod = z.strictObject({
104
101
  name: DefinedStringZod,
105
102
  description: DefinedStringZod,
106
103
  prefabKey: DefinedStringZod,
@@ -118,12 +115,12 @@ var EnemyDataZod = z.strictObject({
118
115
  skills: z.array(EnemySkillsZod).nullable(),
119
116
  spData: EnemySpDataZod.nullable(),
120
117
  });
121
- var LevelUpCostZod = z.strictObject({
118
+ const LevelUpCostZod = z.strictObject({
122
119
  id: z.string(),
123
120
  count: z.number(),
124
121
  type: z.string(),
125
122
  });
126
- var ManufactFormulaZod = z.strictObject({
123
+ const ManufactFormulaZod = z.strictObject({
127
124
  formulaId: z.string(),
128
125
  itemId: z.string(),
129
126
  count: z.number(),
@@ -142,7 +139,7 @@ var ManufactFormulaZod = z.strictObject({
142
139
  rank: z.number(),
143
140
  })),
144
141
  });
145
- var WorkshopFormulaZod = z.strictObject({
142
+ const WorkshopFormulaZod = z.strictObject({
146
143
  sortId: z.number(),
147
144
  formulaId: z.string(),
148
145
  rarity: z.number(),
@@ -169,23 +166,23 @@ var WorkshopFormulaZod = z.strictObject({
169
166
  rank: z.number(),
170
167
  })),
171
168
  });
172
- var OperatorUnlockCondZod = z.strictObject({
169
+ const OperatorUnlockCondZod = z.strictObject({
173
170
  phase: z.union([z.string(), z.number()]),
174
171
  level: z.number(),
175
172
  });
176
- var LevelUpCostCondZod = z.strictObject({
173
+ const LevelUpCostCondZod = z.strictObject({
177
174
  unlockCond: OperatorUnlockCondZod,
178
175
  lvlUpTime: z.number(),
179
176
  levelUpCost: z.array(LevelUpCostZod).nullable(),
180
177
  });
181
- var DeploySkillZod = z.strictObject({
178
+ const DeploySkillZod = z.strictObject({
182
179
  skillId: z.string().nullable(),
183
180
  overridePrefabKey: z.string().nullable(),
184
181
  overrideTokenKey: z.string().nullable(),
185
182
  levelUpCostCond: z.array(LevelUpCostCondZod),
186
183
  unlockCond: OperatorUnlockCondZod,
187
184
  });
188
- var StageCardZod = z.strictObject({
185
+ const StageCardZod = z.strictObject({
189
186
  initialCnt: z.number().optional(),
190
187
  hidden: z.boolean(),
191
188
  alias: z.string().nullable(),
@@ -208,20 +205,20 @@ var StageCardZod = z.strictObject({
208
205
  tmplId: z.string().nullable().optional(),
209
206
  overrideSkillBlackboard: z.array(BlackboardZod).nullable().optional(),
210
207
  });
211
- var StageInstZod = StageCardZod.extend({
208
+ const StageInstZod = StageCardZod.extend({
212
209
  position: z.strictObject({
213
210
  row: z.number(),
214
211
  col: z.number(),
215
212
  }),
216
213
  direction: z.union([z.string(), z.number()]).optional(),
217
214
  });
218
- var StageDefinesZod = z.strictObject({
215
+ const StageDefinesZod = z.strictObject({
219
216
  characterInsts: z.array(StageInstZod),
220
217
  tokenInsts: z.array(StageInstZod),
221
218
  characterCards: z.array(StageCardZod),
222
219
  tokenCards: z.array(StageCardZod),
223
220
  });
224
- var StageEffectZod = z.strictObject({
221
+ const StageEffectZod = z.strictObject({
225
222
  key: z.string(),
226
223
  offset: z.strictObject({
227
224
  x: z.number(),
@@ -230,7 +227,7 @@ var StageEffectZod = z.strictObject({
230
227
  }),
231
228
  direction: z.union([z.string(), z.number()]),
232
229
  });
233
- var StageActionZod = z.strictObject({
230
+ const StageActionZod = z.strictObject({
234
231
  actionType: z.union([z.string(), z.number()]),
235
232
  managedByScheduler: z.boolean(),
236
233
  key: z.string(),
@@ -254,7 +251,7 @@ var StageActionZod = z.strictObject({
254
251
  actionId: z.null().optional(),
255
252
  forceBlockWaveInBranch: z.boolean().optional(),
256
253
  });
257
- var StageRouteZod = z.strictObject({
254
+ const StageRouteZod = z.strictObject({
258
255
  motionMode: z.union([z.string(), z.number()]),
259
256
  startPosition: z.strictObject({
260
257
  row: z.number(),
@@ -291,14 +288,14 @@ var StageRouteZod = z.strictObject({
291
288
  visitEveryNodeCenter: z.boolean(),
292
289
  visitEveryCheckPoint: z.boolean().optional(),
293
290
  });
294
- var StageRune = z.strictObject({
291
+ const StageRune = z.strictObject({
295
292
  difficultyMask: z.union([z.string(), z.number()]),
296
293
  key: z.string(),
297
294
  professionMask: z.union([z.string(), z.number()]).optional(),
298
295
  buildableMask: z.union([z.string(), z.number()]),
299
296
  blackboard: z.array(BlackboardZod),
300
297
  });
301
- var StageDataZod = z.strictObject({
298
+ const StageDataZod = z.strictObject({
302
299
  options: z.strictObject({
303
300
  characterLimit: z.number(),
304
301
  maxLifePoint: z.number(),
@@ -445,7 +442,7 @@ var StageDataZod = z.strictObject({
445
442
  runtimeData: z.null().optional(),
446
443
  cameraPlugin: z.string().nullable().optional(),
447
444
  });
448
- exports.BaseZod = z.strictObject({
445
+ export const BaseZod = z.strictObject({
449
446
  buffId: z.string(),
450
447
  buffName: z.string(),
451
448
  buffIcon: z.string(),
@@ -457,7 +454,7 @@ exports.BaseZod = z.strictObject({
457
454
  roomType: z.string(),
458
455
  description: z.string(),
459
456
  });
460
- exports.CCStageLegacyZod = z.strictObject({
457
+ export const CCStageLegacyZod = z.strictObject({
461
458
  const: z.strictObject({
462
459
  levelId: z.string(),
463
460
  location: z.string(),
@@ -466,7 +463,7 @@ exports.CCStageLegacyZod = z.strictObject({
466
463
  }),
467
464
  levels: StageDataZod,
468
465
  });
469
- exports.CCStageZod = z.strictObject({
466
+ export const CCStageZod = z.strictObject({
470
467
  excel: z.strictObject({
471
468
  stageId: z.string(),
472
469
  mapId: z.string(),
@@ -483,16 +480,16 @@ exports.CCStageZod = z.strictObject({
483
480
  }),
484
481
  levels: StageDataZod,
485
482
  });
486
- exports.CCSeasonZod = z.strictObject({
483
+ export const CCSeasonZod = z.strictObject({
487
484
  seasonId: z.string(),
488
- stageDict: z.record(z.string(), exports.CCStageZod),
485
+ stageDict: z.record(z.string(), CCStageZod),
489
486
  });
490
- exports.DefinitionZod = z.strictObject({
487
+ export const DefinitionZod = z.strictObject({
491
488
  termId: z.string(),
492
489
  termName: z.string(),
493
490
  description: z.string(),
494
491
  });
495
- exports.EnemyZod = z.strictObject({
492
+ export const EnemyZod = z.strictObject({
496
493
  excel: z.strictObject({
497
494
  enemyId: z.string(),
498
495
  enemyIndex: z.string(),
@@ -523,7 +520,7 @@ exports.EnemyZod = z.strictObject({
523
520
  })),
524
521
  }),
525
522
  });
526
- exports.GachaPoolZod = z.strictObject({
523
+ export const GachaPoolZod = z.strictObject({
527
524
  client: z.strictObject({
528
525
  gachaPoolId: z.string(),
529
526
  gachaIndex: z.number(),
@@ -633,7 +630,7 @@ exports.GachaPoolZod = z.strictObject({
633
630
  }),
634
631
  }),
635
632
  });
636
- exports.GameEventZod = z.strictObject({
633
+ export const GameEventZod = z.strictObject({
637
634
  id: z.string(),
638
635
  type: z.union([z.string(), z.number()]),
639
636
  displayType: z.string(),
@@ -668,7 +665,7 @@ exports.GameEventZod = z.strictObject({
668
665
  })),
669
666
  usePicGroup: z.boolean(),
670
667
  });
671
- exports.GridRangeZod = z.strictObject({
668
+ export const GridRangeZod = z.strictObject({
672
669
  id: z.string(),
673
670
  direction: z.number(),
674
671
  grids: z.array(z.strictObject({
@@ -676,7 +673,7 @@ exports.GridRangeZod = z.strictObject({
676
673
  col: z.number(),
677
674
  })),
678
675
  });
679
- exports.ItemZod = z.strictObject({
676
+ export const ItemZod = z.strictObject({
680
677
  data: z.strictObject({
681
678
  itemId: z.string(),
682
679
  name: z.string(),
@@ -706,7 +703,7 @@ exports.ItemZod = z.strictObject({
706
703
  }),
707
704
  formula: z.union([ManufactFormulaZod, WorkshopFormulaZod]).nullable(),
708
705
  });
709
- exports.ModuleZod = z.strictObject({
706
+ export const ModuleZod = z.strictObject({
710
707
  info: z.strictObject({
711
708
  uniEquipId: z.string(),
712
709
  uniEquipName: z.string(),
@@ -748,6 +745,7 @@ exports.ModuleZod = z.strictObject({
748
745
  target: z.string(),
749
746
  isToken: z.boolean(),
750
747
  validInGameTag: z.string().nullable(),
748
+ validInMapTag: z.string().nullable(),
751
749
  addOrOverrideTalentDataBundle: z.strictObject({
752
750
  candidates: z.array(z.strictObject({
753
751
  displayRangeId: z.boolean(),
@@ -781,7 +779,7 @@ exports.ModuleZod = z.strictObject({
781
779
  })),
782
780
  }).nullable(),
783
781
  });
784
- exports.ParadoxZod = z.strictObject({
782
+ export const ParadoxZod = z.strictObject({
785
783
  excel: z.strictObject({
786
784
  charId: z.string(),
787
785
  stageId: z.string(),
@@ -806,7 +804,7 @@ exports.ParadoxZod = z.strictObject({
806
804
  }),
807
805
  levels: StageDataZod,
808
806
  });
809
- exports.RogueRelicZod = z.strictObject({
807
+ export const RogueRelicZod = z.strictObject({
810
808
  id: z.string(),
811
809
  name: z.string(),
812
810
  description: z.string().nullable(),
@@ -823,7 +821,7 @@ exports.RogueRelicZod = z.strictObject({
823
821
  unlockCondDesc: z.string().nullable(),
824
822
  shortUsage: z.string().nullable(),
825
823
  });
826
- exports.RogueStageZod = z.strictObject({
824
+ export const RogueStageZod = z.strictObject({
827
825
  excel: z.strictObject({
828
826
  id: z.string(),
829
827
  linkedStageId: z.string(),
@@ -847,7 +845,7 @@ exports.RogueStageZod = z.strictObject({
847
845
  }),
848
846
  levels: StageDataZod,
849
847
  });
850
- exports.RogueVariationZod = z.strictObject({
848
+ export const RogueVariationZod = z.strictObject({
851
849
  id: z.string(),
852
850
  type: z.string(),
853
851
  outerName: z.string(),
@@ -857,14 +855,14 @@ exports.RogueVariationZod = z.strictObject({
857
855
  iconId: z.string().nullable(),
858
856
  sound: z.string().nullable(),
859
857
  });
860
- exports.RogueThemeZod = z.strictObject({
858
+ export const RogueThemeZod = z.strictObject({
861
859
  name: z.string(),
862
- stageDict: z.record(z.string(), exports.RogueStageZod),
863
- toughStageDict: z.record(z.string(), exports.RogueStageZod),
864
- relicDict: z.record(z.string(), exports.RogueRelicZod),
865
- variationDict: z.record(z.string(), exports.RogueVariationZod),
860
+ stageDict: z.record(z.string(), RogueStageZod),
861
+ toughStageDict: z.record(z.string(), RogueStageZod),
862
+ relicDict: z.record(z.string(), RogueRelicZod),
863
+ variationDict: z.record(z.string(), RogueVariationZod),
866
864
  });
867
- exports.SandboxItemZod = z.strictObject({
865
+ export const SandboxItemZod = z.strictObject({
868
866
  craft: z.strictObject({
869
867
  itemId: z.string(),
870
868
  type: z.string(),
@@ -918,7 +916,7 @@ exports.SandboxItemZod = z.strictObject({
918
916
  obtainApproach: z.string(),
919
917
  })
920
918
  });
921
- exports.SandboxStageZod = z.strictObject({
919
+ export const SandboxStageZod = z.strictObject({
922
920
  excel: z.strictObject({
923
921
  stageId: z.string(),
924
922
  levelId: z.string(),
@@ -930,7 +928,7 @@ exports.SandboxStageZod = z.strictObject({
930
928
  }),
931
929
  levels: StageDataZod,
932
930
  });
933
- exports.SandboxWeatherZod = z.strictObject({
931
+ export const SandboxWeatherZod = z.strictObject({
934
932
  weatherId: z.string(),
935
933
  name: z.string(),
936
934
  weatherLevel: z.number(),
@@ -941,13 +939,13 @@ exports.SandboxWeatherZod = z.strictObject({
941
939
  description: z.string(),
942
940
  buffId: z.string().nullable(),
943
941
  });
944
- exports.SandboxActZod = z.strictObject({
942
+ export const SandboxActZod = z.strictObject({
945
943
  name: z.string(),
946
- itemDict: z.record(z.string(), exports.SandboxItemZod),
947
- weatherDict: z.record(z.string(), exports.SandboxWeatherZod),
948
- stageDict: z.record(z.string(), exports.SandboxStageZod),
944
+ itemDict: z.record(z.string(), SandboxItemZod),
945
+ weatherDict: z.record(z.string(), SandboxWeatherZod),
946
+ stageDict: z.record(z.string(), SandboxStageZod),
949
947
  });
950
- exports.SkillZod = z.strictObject({
948
+ export const SkillZod = z.strictObject({
951
949
  deploy: DeploySkillZod.nullable(),
952
950
  excel: z.strictObject({
953
951
  skillId: z.string(),
@@ -973,7 +971,7 @@ exports.SkillZod = z.strictObject({
973
971
  }))
974
972
  }),
975
973
  });
976
- exports.SkinZod = z.strictObject({
974
+ export const SkinZod = z.strictObject({
977
975
  skinId: z.string(),
978
976
  charId: z.string(),
979
977
  tokenSkinMap: z.array(z.strictObject({
@@ -1019,7 +1017,7 @@ exports.SkinZod = z.strictObject({
1019
1017
  onPeriod: z.number(),
1020
1018
  }),
1021
1019
  });
1022
- exports.StageZod = z.strictObject({
1020
+ export const StageZod = z.strictObject({
1023
1021
  excel: z.strictObject({
1024
1022
  stageType: z.string(),
1025
1023
  difficulty: z.string(),
@@ -1122,7 +1120,7 @@ exports.StageZod = z.strictObject({
1122
1120
  }),
1123
1121
  levels: StageDataZod,
1124
1122
  });
1125
- exports.DeployableZod = z.strictObject({
1123
+ export const DeployableZod = z.strictObject({
1126
1124
  id: z.string(),
1127
1125
  archetype: z.string(),
1128
1126
  data: z.strictObject({
@@ -1221,20 +1219,20 @@ exports.DeployableZod = z.strictObject({
1221
1219
  lvlUpCost: z.array(LevelUpCostZod).nullable(),
1222
1220
  })),
1223
1221
  }),
1224
- range: exports.GridRangeZod.nullable(),
1225
- skills: z.array(exports.SkillZod.nullable()),
1226
- skins: z.array(exports.SkinZod.nullable()),
1222
+ range: GridRangeZod.nullable(),
1223
+ skills: z.array(SkillZod.nullable()),
1224
+ skins: z.array(SkinZod.nullable()),
1227
1225
  });
1228
1226
  ;
1229
- exports.OperatorZod = exports.DeployableZod.extend({
1227
+ export const OperatorZod = DeployableZod.extend({
1230
1228
  bases: z.array(z.strictObject({
1231
1229
  condition: z.strictObject({
1232
1230
  buffId: z.string(),
1233
1231
  cond: OperatorUnlockCondZod,
1234
1232
  }),
1235
- skill: exports.BaseZod,
1233
+ skill: BaseZod,
1236
1234
  })),
1237
- modules: z.array(exports.ModuleZod),
1238
- paradox: exports.ParadoxZod.nullable(),
1235
+ modules: z.array(ModuleZod),
1236
+ paradox: ParadoxZod.nullable(),
1239
1237
  recruit: z.number(),
1240
1238
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hella-types",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "",
@@ -10,11 +10,9 @@
10
10
  "build": "tsc"
11
11
  },
12
12
  "dependencies": {
13
+ "typescript": "^6.0.2",
13
14
  "zod": "3.22.4"
14
15
  },
15
- "devDependencies": {
16
- "@types/node": "^20.11.0"
17
- },
18
16
  "repository": {
19
17
  "type": "git",
20
18
  "url": "git+https://github.com/Awedtan/HellaAPI.git"
package/src/index.ts CHANGED
@@ -795,6 +795,7 @@ export const ModuleZod = z.strictObject({
795
795
  target: z.string(),
796
796
  isToken: z.boolean(),
797
797
  validInGameTag: z.string().nullable(),
798
+ validInMapTag: z.string().nullable(),
798
799
  addOrOverrideTalentDataBundle: z.strictObject({
799
800
  candidates: z.array(
800
801
  z.strictObject({
package/tsconfig.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "declaration": true,
4
+ "rootDir": "src",
4
5
  "outDir": "dist",
5
6
  "strict": true
6
7
  },