hella-types 0.2.14 → 0.2.15

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
@@ -284,6 +284,13 @@ var StageRouteZod = z.strictObject({
284
284
  visitEveryNodeCenter: z.boolean(),
285
285
  visitEveryCheckPoint: z.boolean().optional(),
286
286
  });
287
+ var StageRune = z.strictObject({
288
+ difficultyMask: z.union([z.string(), z.number()]),
289
+ key: z.string(),
290
+ professionMask: z.union([z.string(), z.number()]).optional(),
291
+ buildableMask: z.union([z.string(), z.number()]),
292
+ blackboard: z.array(BlackboardZod),
293
+ });
287
294
  var StageDataZod = z.strictObject({
288
295
  options: z.strictObject({
289
296
  characterLimit: z.number(),
@@ -330,14 +337,13 @@ var StageDataZod = z.strictObject({
330
337
  height: z.number().optional(),
331
338
  }),
332
339
  tilesDisallowToLocate: z.tuple([]),
333
- runes: z.array(z.strictObject({
334
- difficultyMask: z.union([z.string(), z.number()]),
335
- key: z.string(),
336
- professionMask: z.union([z.string(), z.number()]).optional(),
337
- buildableMask: z.union([z.string(), z.number()]),
338
- blackboard: z.array(BlackboardZod),
339
- })).nullable(),
340
- optionalRunes: z.array(z.null()).nullable().optional(),
340
+ runes: z.array(StageRune).nullable(),
341
+ optionalRunes: z.strictObject({
342
+ rune_level1_1: z.array(StageRune),
343
+ rune_level1_2: z.array(StageRune),
344
+ rune_level2_1: z.array(StageRune),
345
+ rune_level2_2: z.array(StageRune),
346
+ }).nullable().optional(),
341
347
  globalBuffs: z.array(z.strictObject({
342
348
  prefabKey: z.string(),
343
349
  blackboard: z.array(BlackboardZod).nullable(),
@@ -635,7 +641,20 @@ exports.GameEventZod = z.strictObject({
635
641
  recType: z.string().nullable(),
636
642
  isPageEntry: z.boolean(),
637
643
  isMagnify: z.boolean(),
638
- picGroup: z.array(z.null()),
644
+ picGroup: z.array(z.strictObject({
645
+ sortIndex: z.number(),
646
+ picId: z.string(),
647
+ availCheck: z.strictObject({
648
+ startTs: z.number(),
649
+ endTs: z.number(),
650
+ type: z.string(),
651
+ rate: z.number(),
652
+ stageUnlockParam: z.strictObject({
653
+ stageId: z.string(),
654
+ }).nullable(),
655
+ charUnlockParam: z.null(),
656
+ })
657
+ })),
639
658
  usePicGroup: z.boolean(),
640
659
  });
641
660
  exports.GridRangeZod = z.strictObject({
@@ -1075,7 +1094,11 @@ exports.StageZod = z.strictObject({
1075
1094
  })
1076
1095
  })).nullable(),
1077
1096
  sixStarBaseDesc: z.string().nullable().optional(),
1078
- sixStarDisplayRewardList: z.null().optional(),
1097
+ sixStarDisplayRewardList: z.array(z.strictObject({
1098
+ id: z.string(),
1099
+ count: z.number(),
1100
+ type: z.string(),
1101
+ })).nullable().optional(),
1079
1102
  advancedRuneIdList1: z.array(z.null()).optional(),
1080
1103
  advancedRuneIdList2: z.array(z.null()).optional(),
1081
1104
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hella-types",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "",
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { count } from 'console';
1
2
  import * as z from 'zod';
2
3
 
3
4
  const BlackboardZod = z.strictObject({
@@ -297,6 +298,13 @@ const StageRouteZod = z.strictObject({
297
298
  visitEveryNodeCenter: z.boolean(),
298
299
  visitEveryCheckPoint: z.boolean().optional(),
299
300
  });
301
+ const StageRune = z.strictObject({
302
+ difficultyMask: z.union([z.string(), z.number()]),
303
+ key: z.string(),
304
+ professionMask: z.union([z.string(), z.number()]).optional(),
305
+ buildableMask: z.union([z.string(), z.number()]),
306
+ blackboard: z.array(BlackboardZod),
307
+ });
300
308
  const StageDataZod = z.strictObject({
301
309
  options: z.strictObject({
302
310
  characterLimit: z.number(),
@@ -345,16 +353,13 @@ const StageDataZod = z.strictObject({
345
353
  height: z.number().optional(),
346
354
  }),
347
355
  tilesDisallowToLocate: z.tuple([]),
348
- runes: z.array(
349
- z.strictObject({
350
- difficultyMask: z.union([z.string(), z.number()]),
351
- key: z.string(),
352
- professionMask: z.union([z.string(), z.number()]).optional(),
353
- buildableMask: z.union([z.string(), z.number()]),
354
- blackboard: z.array(BlackboardZod),
355
- })
356
- ).nullable(),
357
- optionalRunes: z.array(z.null()).nullable().optional(),
356
+ runes: z.array(StageRune).nullable(),
357
+ optionalRunes: z.strictObject({
358
+ rune_level1_1: z.array(StageRune),
359
+ rune_level1_2: z.array(StageRune),
360
+ rune_level2_1: z.array(StageRune),
361
+ rune_level2_2: z.array(StageRune),
362
+ }).nullable().optional(),
358
363
  globalBuffs: z.array(
359
364
  z.strictObject({
360
365
  prefabKey: z.string(),
@@ -674,7 +679,20 @@ export const GameEventZod = z.strictObject({
674
679
  recType: z.string().nullable(),
675
680
  isPageEntry: z.boolean(),
676
681
  isMagnify: z.boolean(),
677
- picGroup: z.array(z.null()),
682
+ picGroup: z.array(z.strictObject({
683
+ sortIndex: z.number(),
684
+ picId: z.string(),
685
+ availCheck: z.strictObject({
686
+ startTs: z.number(),
687
+ endTs: z.number(),
688
+ type: z.string(),
689
+ rate: z.number(),
690
+ stageUnlockParam: z.strictObject({
691
+ stageId: z.string(),
692
+ }).nullable(),
693
+ charUnlockParam: z.null(),
694
+ })
695
+ })),
678
696
  usePicGroup: z.boolean(),
679
697
  });
680
698
  export const GridRangeZod = z.strictObject({
@@ -1148,7 +1166,11 @@ export const StageZod = z.strictObject({
1148
1166
  })
1149
1167
  ).nullable(),
1150
1168
  sixStarBaseDesc: z.string().nullable().optional(),
1151
- sixStarDisplayRewardList: z.null().optional(),
1169
+ sixStarDisplayRewardList: z.array(z.strictObject({
1170
+ id: z.string(),
1171
+ count: z.number(),
1172
+ type: z.string(),
1173
+ })).nullable().optional(),
1152
1174
  advancedRuneIdList1: z.array(z.null()).optional(),
1153
1175
  advancedRuneIdList2: z.array(z.null()).optional(),
1154
1176
  }),