hella-types 0.2.20 → 0.2.22

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(),
@@ -500,7 +497,7 @@ exports.EnemyZod = z.strictObject({
500
497
  sortId: z.number(),
501
498
  name: z.string(),
502
499
  enemyLevel: z.enum(['NORMAL', 'ELITE', 'BOSS']),
503
- description: z.string(),
500
+ description: z.string().nullable(),
504
501
  attackType: z.null(),
505
502
  ability: z.null(),
506
503
  isInvalidKilled: z.boolean(),
@@ -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(),
@@ -782,7 +779,7 @@ exports.ModuleZod = z.strictObject({
782
779
  })),
783
780
  }).nullable(),
784
781
  });
785
- exports.ParadoxZod = z.strictObject({
782
+ export const ParadoxZod = z.strictObject({
786
783
  excel: z.strictObject({
787
784
  charId: z.string(),
788
785
  stageId: z.string(),
@@ -807,7 +804,7 @@ exports.ParadoxZod = z.strictObject({
807
804
  }),
808
805
  levels: StageDataZod,
809
806
  });
810
- exports.RogueRelicZod = z.strictObject({
807
+ export const RogueRelicZod = z.strictObject({
811
808
  id: z.string(),
812
809
  name: z.string(),
813
810
  description: z.string().nullable(),
@@ -824,7 +821,7 @@ exports.RogueRelicZod = z.strictObject({
824
821
  unlockCondDesc: z.string().nullable(),
825
822
  shortUsage: z.string().nullable(),
826
823
  });
827
- exports.RogueStageZod = z.strictObject({
824
+ export const RogueStageZod = z.strictObject({
828
825
  excel: z.strictObject({
829
826
  id: z.string(),
830
827
  linkedStageId: z.string(),
@@ -848,7 +845,7 @@ exports.RogueStageZod = z.strictObject({
848
845
  }),
849
846
  levels: StageDataZod,
850
847
  });
851
- exports.RogueVariationZod = z.strictObject({
848
+ export const RogueVariationZod = z.strictObject({
852
849
  id: z.string(),
853
850
  type: z.string(),
854
851
  outerName: z.string(),
@@ -858,14 +855,14 @@ exports.RogueVariationZod = z.strictObject({
858
855
  iconId: z.string().nullable(),
859
856
  sound: z.string().nullable(),
860
857
  });
861
- exports.RogueThemeZod = z.strictObject({
858
+ export const RogueThemeZod = z.strictObject({
862
859
  name: z.string(),
863
- stageDict: z.record(z.string(), exports.RogueStageZod),
864
- toughStageDict: z.record(z.string(), exports.RogueStageZod),
865
- relicDict: z.record(z.string(), exports.RogueRelicZod),
866
- 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),
867
864
  });
868
- exports.SandboxItemZod = z.strictObject({
865
+ export const SandboxItemZod = z.strictObject({
869
866
  craft: z.strictObject({
870
867
  itemId: z.string(),
871
868
  type: z.string(),
@@ -919,7 +916,7 @@ exports.SandboxItemZod = z.strictObject({
919
916
  obtainApproach: z.string(),
920
917
  })
921
918
  });
922
- exports.SandboxStageZod = z.strictObject({
919
+ export const SandboxStageZod = z.strictObject({
923
920
  excel: z.strictObject({
924
921
  stageId: z.string(),
925
922
  levelId: z.string(),
@@ -931,7 +928,7 @@ exports.SandboxStageZod = z.strictObject({
931
928
  }),
932
929
  levels: StageDataZod,
933
930
  });
934
- exports.SandboxWeatherZod = z.strictObject({
931
+ export const SandboxWeatherZod = z.strictObject({
935
932
  weatherId: z.string(),
936
933
  name: z.string(),
937
934
  weatherLevel: z.number(),
@@ -942,13 +939,13 @@ exports.SandboxWeatherZod = z.strictObject({
942
939
  description: z.string(),
943
940
  buffId: z.string().nullable(),
944
941
  });
945
- exports.SandboxActZod = z.strictObject({
942
+ export const SandboxActZod = z.strictObject({
946
943
  name: z.string(),
947
- itemDict: z.record(z.string(), exports.SandboxItemZod),
948
- weatherDict: z.record(z.string(), exports.SandboxWeatherZod),
949
- 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),
950
947
  });
951
- exports.SkillZod = z.strictObject({
948
+ export const SkillZod = z.strictObject({
952
949
  deploy: DeploySkillZod.nullable(),
953
950
  excel: z.strictObject({
954
951
  skillId: z.string(),
@@ -974,7 +971,7 @@ exports.SkillZod = z.strictObject({
974
971
  }))
975
972
  }),
976
973
  });
977
- exports.SkinZod = z.strictObject({
974
+ export const SkinZod = z.strictObject({
978
975
  skinId: z.string(),
979
976
  charId: z.string(),
980
977
  tokenSkinMap: z.array(z.strictObject({
@@ -1020,7 +1017,7 @@ exports.SkinZod = z.strictObject({
1020
1017
  onPeriod: z.number(),
1021
1018
  }),
1022
1019
  });
1023
- exports.StageZod = z.strictObject({
1020
+ export const StageZod = z.strictObject({
1024
1021
  excel: z.strictObject({
1025
1022
  stageType: z.string(),
1026
1023
  difficulty: z.string(),
@@ -1123,7 +1120,7 @@ exports.StageZod = z.strictObject({
1123
1120
  }),
1124
1121
  levels: StageDataZod,
1125
1122
  });
1126
- exports.DeployableZod = z.strictObject({
1123
+ export const DeployableZod = z.strictObject({
1127
1124
  id: z.string(),
1128
1125
  archetype: z.string(),
1129
1126
  data: z.strictObject({
@@ -1222,20 +1219,20 @@ exports.DeployableZod = z.strictObject({
1222
1219
  lvlUpCost: z.array(LevelUpCostZod).nullable(),
1223
1220
  })),
1224
1221
  }),
1225
- range: exports.GridRangeZod.nullable(),
1226
- skills: z.array(exports.SkillZod.nullable()),
1227
- skins: z.array(exports.SkinZod.nullable()),
1222
+ range: GridRangeZod.nullable(),
1223
+ skills: z.array(SkillZod.nullable()),
1224
+ skins: z.array(SkinZod.nullable()),
1228
1225
  });
1229
1226
  ;
1230
- exports.OperatorZod = exports.DeployableZod.extend({
1227
+ export const OperatorZod = DeployableZod.extend({
1231
1228
  bases: z.array(z.strictObject({
1232
1229
  condition: z.strictObject({
1233
1230
  buffId: z.string(),
1234
1231
  cond: OperatorUnlockCondZod,
1235
1232
  }),
1236
- skill: exports.BaseZod,
1233
+ skill: BaseZod,
1237
1234
  })),
1238
- modules: z.array(exports.ModuleZod),
1239
- paradox: exports.ParadoxZod.nullable(),
1235
+ modules: z.array(ModuleZod),
1236
+ paradox: ParadoxZod.nullable(),
1240
1237
  recruit: z.number(),
1241
1238
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hella-types",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
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
@@ -527,7 +527,7 @@ export const EnemyZod = z.strictObject({
527
527
  sortId: z.number(),
528
528
  name: z.string(),
529
529
  enemyLevel: z.enum(['NORMAL', 'ELITE', 'BOSS']),
530
- description: z.string(),
530
+ description: z.string().nullable(),
531
531
  attackType: z.null(),
532
532
  ability: z.null(),
533
533
  isInvalidKilled: z.boolean(),
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
  },