hella-types 0.0.17 → 0.1.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.d.ts +16687 -608
- package/dist/index.js +97 -2
- package/package.json +1 -1
- package/src/index.ts +104 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OperatorZod = exports.DeployableZod = exports.StageZod = exports.SkinZod = exports.SkillZod = exports.SandboxActZod = exports.RogueThemeZod = exports.ParadoxZod = exports.ModuleZod = exports.ItemZod = exports.GridRangeZod = exports.GameEventZod = exports.EnemyZod = exports.DefinitionZod = exports.CCStageZod = exports.BaseZod = void 0;
|
|
3
|
+
exports.OperatorZod = exports.DeployableZod = exports.StageZod = exports.SkinZod = exports.SkillZod = exports.SandboxActZod = exports.RogueThemeZod = 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
4
|
var z = require("zod");
|
|
5
5
|
var BlackboardZod = z.strictObject({
|
|
6
6
|
key: z.string(),
|
|
@@ -542,7 +542,7 @@ exports.BaseZod = z.strictObject({
|
|
|
542
542
|
roomType: z.string(),
|
|
543
543
|
description: z.string(),
|
|
544
544
|
});
|
|
545
|
-
exports.
|
|
545
|
+
exports.CCStageLegacyZod = z.strictObject({
|
|
546
546
|
const: z.strictObject({
|
|
547
547
|
levelId: z.string(),
|
|
548
548
|
location: z.string(),
|
|
@@ -551,6 +551,27 @@ exports.CCStageZod = z.strictObject({
|
|
|
551
551
|
}),
|
|
552
552
|
levels: StageDataZod,
|
|
553
553
|
});
|
|
554
|
+
exports.CCStageZod = z.strictObject({
|
|
555
|
+
excel: z.strictObject({
|
|
556
|
+
stageId: z.string(),
|
|
557
|
+
mapId: z.string(),
|
|
558
|
+
levelId: z.string(),
|
|
559
|
+
stageType: z.string(),
|
|
560
|
+
code: z.string(),
|
|
561
|
+
name: z.string(),
|
|
562
|
+
loadingPicId: z.string(),
|
|
563
|
+
description: z.string(),
|
|
564
|
+
picId: z.string(),
|
|
565
|
+
logoPicId: z.string(),
|
|
566
|
+
startTime: z.number(),
|
|
567
|
+
rewardEndTime: z.number(),
|
|
568
|
+
}),
|
|
569
|
+
levels: StageDataZod,
|
|
570
|
+
});
|
|
571
|
+
exports.CCSeasonZod = z.strictObject({
|
|
572
|
+
seasonId: z.string(),
|
|
573
|
+
stageDict: z.record(z.string(), exports.CCStageZod),
|
|
574
|
+
});
|
|
554
575
|
exports.DefinitionZod = z.strictObject({
|
|
555
576
|
termId: z.string(),
|
|
556
577
|
termName: z.string(),
|
|
@@ -587,6 +608,80 @@ exports.EnemyZod = z.strictObject({
|
|
|
587
608
|
})),
|
|
588
609
|
}),
|
|
589
610
|
});
|
|
611
|
+
exports.GachaPoolZod = z.strictObject({
|
|
612
|
+
client: z.strictObject({
|
|
613
|
+
gachaPoolId: z.string(),
|
|
614
|
+
gachaIndex: z.number(),
|
|
615
|
+
openTime: z.number(),
|
|
616
|
+
endTime: z.number(),
|
|
617
|
+
gachaPoolName: z.string(),
|
|
618
|
+
gachaPoolSummary: z.string(),
|
|
619
|
+
gachaPoolDetail: z.string().nullable(),
|
|
620
|
+
guarantee5Avail: z.number(),
|
|
621
|
+
guarantee5Count: z.number(),
|
|
622
|
+
LMTGSID: z.null(),
|
|
623
|
+
CDPrimColor: z.null(),
|
|
624
|
+
CDSecColor: z.null(),
|
|
625
|
+
gachaRuleType: z.string(),
|
|
626
|
+
dynMeta: z.union([
|
|
627
|
+
z.strictObject({
|
|
628
|
+
chooseRuleConst: z.string().optional(),
|
|
629
|
+
homeDescConst: z.string().optional(),
|
|
630
|
+
rarityPickCharDict: z.record(z.string(), z.array(z.string())).optional(),
|
|
631
|
+
scrollIndex: z.number(),
|
|
632
|
+
star5ChooseRuleConst: z.string().optional(),
|
|
633
|
+
star6ChooseRuleConst: z.string().optional(),
|
|
634
|
+
}),
|
|
635
|
+
z.strictObject({
|
|
636
|
+
main6RarityCharId: z.string().optional(),
|
|
637
|
+
rare5CharList: z.array(z.string()).optional(),
|
|
638
|
+
scrollIndex: z.number(),
|
|
639
|
+
sub6RarityCharId: z.string().optional(),
|
|
640
|
+
}),
|
|
641
|
+
]).nullable(),
|
|
642
|
+
linkageRuleId: z.string().nullable(),
|
|
643
|
+
linkageParam: z.strictObject({
|
|
644
|
+
guaranteeTarget6Count: z.number(),
|
|
645
|
+
}).nullable(),
|
|
646
|
+
}),
|
|
647
|
+
details: z.strictObject({
|
|
648
|
+
detailInfo: z.strictObject({
|
|
649
|
+
gachaObjGroups: z.array(z.strictObject({
|
|
650
|
+
groupType: z.number(),
|
|
651
|
+
startIndex: z.number(),
|
|
652
|
+
endIndex: z.number(),
|
|
653
|
+
})).nullable(),
|
|
654
|
+
availCharInfo: z.strictObject({
|
|
655
|
+
perAvailList: z.array(z.strictObject({
|
|
656
|
+
rarityRank: z.number(),
|
|
657
|
+
charIdList: z.array(z.string()),
|
|
658
|
+
totalPercent: z.number(),
|
|
659
|
+
})),
|
|
660
|
+
}),
|
|
661
|
+
upCharInfo: z.strictObject({
|
|
662
|
+
perCharList: z.array(z.strictObject({
|
|
663
|
+
rarityRank: z.number(),
|
|
664
|
+
charIdList: z.array(z.string()),
|
|
665
|
+
percent: z.number(),
|
|
666
|
+
count: z.number(),
|
|
667
|
+
})),
|
|
668
|
+
}),
|
|
669
|
+
limitedChar: z.null(),
|
|
670
|
+
weightUpCharInfoList: z.null(),
|
|
671
|
+
gachaObjList: z.array(z.strictObject({
|
|
672
|
+
gachaObject: z.string(),
|
|
673
|
+
type: z.number(),
|
|
674
|
+
imageType: z.number(),
|
|
675
|
+
param: z.string().nullable(),
|
|
676
|
+
})),
|
|
677
|
+
}),
|
|
678
|
+
gachaObjGroupType: z.number(),
|
|
679
|
+
playerDataDelta: z.strictObject({
|
|
680
|
+
modified: z.strictObject({}),
|
|
681
|
+
deleted: z.strictObject({}),
|
|
682
|
+
}),
|
|
683
|
+
}),
|
|
684
|
+
});
|
|
590
685
|
exports.GameEventZod = z.strictObject({
|
|
591
686
|
id: z.string(),
|
|
592
687
|
type: z.string(),
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -571,7 +571,7 @@ export const BaseZod = z.strictObject({
|
|
|
571
571
|
roomType: z.string(),
|
|
572
572
|
description: z.string(),
|
|
573
573
|
});
|
|
574
|
-
export const
|
|
574
|
+
export const CCStageLegacyZod = z.strictObject({
|
|
575
575
|
const: z.strictObject({
|
|
576
576
|
levelId: z.string(),
|
|
577
577
|
location: z.string(),
|
|
@@ -580,6 +580,27 @@ export const CCStageZod = z.strictObject({
|
|
|
580
580
|
}),
|
|
581
581
|
levels: StageDataZod,
|
|
582
582
|
});
|
|
583
|
+
export const CCStageZod = z.strictObject({
|
|
584
|
+
excel: z.strictObject({
|
|
585
|
+
stageId: z.string(),
|
|
586
|
+
mapId: z.string(),
|
|
587
|
+
levelId: z.string(),
|
|
588
|
+
stageType: z.string(),
|
|
589
|
+
code: z.string(),
|
|
590
|
+
name: z.string(),
|
|
591
|
+
loadingPicId: z.string(),
|
|
592
|
+
description: z.string(),
|
|
593
|
+
picId: z.string(),
|
|
594
|
+
logoPicId: z.string(),
|
|
595
|
+
startTime: z.number(),
|
|
596
|
+
rewardEndTime: z.number(),
|
|
597
|
+
}),
|
|
598
|
+
levels: StageDataZod,
|
|
599
|
+
});
|
|
600
|
+
export const CCSeasonZod = z.strictObject({
|
|
601
|
+
seasonId: z.string(),
|
|
602
|
+
stageDict: z.record(z.string(), CCStageZod),
|
|
603
|
+
});
|
|
583
604
|
export const DefinitionZod = z.strictObject({
|
|
584
605
|
termId: z.string(),
|
|
585
606
|
termName: z.string(),
|
|
@@ -620,6 +641,86 @@ export const EnemyZod = z.strictObject({
|
|
|
620
641
|
),
|
|
621
642
|
}),
|
|
622
643
|
});
|
|
644
|
+
export const GachaPoolZod = z.strictObject({
|
|
645
|
+
client: z.strictObject({
|
|
646
|
+
gachaPoolId: z.string(),
|
|
647
|
+
gachaIndex: z.number(),
|
|
648
|
+
openTime: z.number(),
|
|
649
|
+
endTime: z.number(),
|
|
650
|
+
gachaPoolName: z.string(),
|
|
651
|
+
gachaPoolSummary: z.string(),
|
|
652
|
+
gachaPoolDetail: z.string().nullable(),
|
|
653
|
+
guarantee5Avail: z.number(),
|
|
654
|
+
guarantee5Count: z.number(),
|
|
655
|
+
LMTGSID: z.null(),
|
|
656
|
+
CDPrimColor: z.null(),
|
|
657
|
+
CDSecColor: z.null(),
|
|
658
|
+
gachaRuleType: z.string(),
|
|
659
|
+
dynMeta: z.union([
|
|
660
|
+
z.strictObject({
|
|
661
|
+
chooseRuleConst: z.string().optional(),
|
|
662
|
+
homeDescConst: z.string().optional(),
|
|
663
|
+
rarityPickCharDict: z.record(z.string(), z.array(z.string())).optional(),
|
|
664
|
+
scrollIndex: z.number(),
|
|
665
|
+
star5ChooseRuleConst: z.string().optional(),
|
|
666
|
+
star6ChooseRuleConst: z.string().optional(),
|
|
667
|
+
}),
|
|
668
|
+
z.strictObject({
|
|
669
|
+
main6RarityCharId: z.string().optional(),
|
|
670
|
+
rare5CharList: z.array(z.string()).optional(),
|
|
671
|
+
scrollIndex: z.number(),
|
|
672
|
+
sub6RarityCharId: z.string().optional(),
|
|
673
|
+
}),
|
|
674
|
+
]).nullable(),
|
|
675
|
+
linkageRuleId: z.string().nullable(),
|
|
676
|
+
linkageParam: z.strictObject({
|
|
677
|
+
guaranteeTarget6Count: z.number(),
|
|
678
|
+
}).nullable(),
|
|
679
|
+
}),
|
|
680
|
+
details: z.strictObject({
|
|
681
|
+
detailInfo: z.strictObject({
|
|
682
|
+
gachaObjGroups: z.array(z.strictObject({
|
|
683
|
+
groupType: z.number(),
|
|
684
|
+
startIndex: z.number(),
|
|
685
|
+
endIndex: z.number(),
|
|
686
|
+
})).nullable(),
|
|
687
|
+
availCharInfo: z.strictObject({
|
|
688
|
+
perAvailList: z.array(
|
|
689
|
+
z.strictObject({
|
|
690
|
+
rarityRank: z.number(),
|
|
691
|
+
charIdList: z.array(z.string()),
|
|
692
|
+
totalPercent: z.number(),
|
|
693
|
+
})
|
|
694
|
+
),
|
|
695
|
+
}),
|
|
696
|
+
upCharInfo: z.strictObject({
|
|
697
|
+
perCharList: z.array(
|
|
698
|
+
z.strictObject({
|
|
699
|
+
rarityRank: z.number(),
|
|
700
|
+
charIdList: z.array(z.string()),
|
|
701
|
+
percent: z.number(),
|
|
702
|
+
count: z.number(),
|
|
703
|
+
})
|
|
704
|
+
),
|
|
705
|
+
}),
|
|
706
|
+
limitedChar: z.null(),
|
|
707
|
+
weightUpCharInfoList: z.null(),
|
|
708
|
+
gachaObjList: z.array(
|
|
709
|
+
z.strictObject({
|
|
710
|
+
gachaObject: z.string(),
|
|
711
|
+
type: z.number(),
|
|
712
|
+
imageType: z.number(),
|
|
713
|
+
param: z.string().nullable(),
|
|
714
|
+
})
|
|
715
|
+
),
|
|
716
|
+
}),
|
|
717
|
+
gachaObjGroupType: z.number(),
|
|
718
|
+
playerDataDelta: z.strictObject({
|
|
719
|
+
modified: z.strictObject({}),
|
|
720
|
+
deleted: z.strictObject({}),
|
|
721
|
+
}),
|
|
722
|
+
}),
|
|
723
|
+
});
|
|
623
724
|
export const GameEventZod = z.strictObject({
|
|
624
725
|
id: z.string(),
|
|
625
726
|
type: z.string(),
|
|
@@ -1097,10 +1198,11 @@ export const OperatorZod = DeployableZod.extend({
|
|
|
1097
1198
|
|
|
1098
1199
|
export type Blackboard = z.infer<typeof BlackboardZod>;
|
|
1099
1200
|
export type Base = z.infer<typeof BaseZod>;
|
|
1100
|
-
export type CCStage = z.infer<typeof
|
|
1201
|
+
export type CCStage = z.infer<typeof CCStageLegacyZod>;
|
|
1101
1202
|
export type Definition = z.infer<typeof DefinitionZod>;
|
|
1102
1203
|
export type Deployable = z.infer<typeof DeployableZod>;
|
|
1103
1204
|
export type Enemy = z.infer<typeof EnemyZod>;
|
|
1205
|
+
export type GachaPool = z.infer<typeof GachaPoolZod>;
|
|
1104
1206
|
export type GameEvent = z.infer<typeof GameEventZod>;
|
|
1105
1207
|
export type GridRange = z.infer<typeof GridRangeZod>;
|
|
1106
1208
|
export type Item = z.infer<typeof ItemZod>;
|