hella-types 0.0.15 → 0.0.17
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 +9293 -7669
- package/dist/index.js +26 -23
- package/package.json +1 -1
- package/src/index.ts +28 -25
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.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.EnemyZod = exports.DefinitionZod = exports.CCStageZod = exports.BaseZod = void 0;
|
|
4
4
|
var z = require("zod");
|
|
5
5
|
var BlackboardZod = z.strictObject({
|
|
6
6
|
key: z.string(),
|
|
@@ -902,25 +902,13 @@ exports.StageZod = z.strictObject({
|
|
|
902
902
|
}),
|
|
903
903
|
levels: StageDataZod,
|
|
904
904
|
});
|
|
905
|
-
exports.
|
|
905
|
+
exports.DeployableZod = z.strictObject({
|
|
906
906
|
id: z.string(),
|
|
907
|
-
recruit: z.number(),
|
|
908
907
|
archetype: z.string(),
|
|
909
|
-
range: exports.GridRangeZod,
|
|
910
|
-
skills: z.array(exports.SkillZod),
|
|
911
|
-
modules: z.array(exports.ModuleZod),
|
|
912
|
-
skins: z.array(exports.SkinZod),
|
|
913
|
-
bases: z.array(z.strictObject({
|
|
914
|
-
condition: z.strictObject({
|
|
915
|
-
buffId: z.string(),
|
|
916
|
-
cond: OperatorUnlockCondZod,
|
|
917
|
-
}),
|
|
918
|
-
skill: exports.BaseZod,
|
|
919
|
-
})),
|
|
920
|
-
paradox: exports.ParadoxZod.nullable(),
|
|
908
|
+
range: exports.GridRangeZod.nullable(),
|
|
921
909
|
data: z.strictObject({
|
|
922
910
|
name: z.string(),
|
|
923
|
-
description: z.string(),
|
|
911
|
+
description: z.string().nullable(),
|
|
924
912
|
canUseGeneralPotentialItem: z.boolean(),
|
|
925
913
|
canUseActivityPotentialItem: z.boolean(),
|
|
926
914
|
potentialItemId: z.string().nullable(),
|
|
@@ -932,7 +920,7 @@ exports.OperatorZod = z.strictObject({
|
|
|
932
920
|
displayNumber: z.string().nullable(),
|
|
933
921
|
appellation: z.string(),
|
|
934
922
|
position: z.string(),
|
|
935
|
-
tagList: z.array(z.string()),
|
|
923
|
+
tagList: z.array(z.string()).nullable(),
|
|
936
924
|
itemUsage: z.string().nullable(),
|
|
937
925
|
itemDesc: z.string().nullable(),
|
|
938
926
|
itemObtainApproach: z.string().nullable(),
|
|
@@ -954,13 +942,13 @@ exports.OperatorZod = z.strictObject({
|
|
|
954
942
|
}).nullable(),
|
|
955
943
|
phases: z.array(z.strictObject({
|
|
956
944
|
characterPrefabKey: z.string(),
|
|
957
|
-
rangeId: z.string(),
|
|
945
|
+
rangeId: z.string().nullable(),
|
|
958
946
|
maxLevel: z.number(),
|
|
959
947
|
attributesKeyFrames: z.array(AttributesKeyFrameZod),
|
|
960
948
|
evolveCost: z.union([z.array(LevelUpCostZod), z.null()]),
|
|
961
949
|
})),
|
|
962
950
|
skills: z.array(z.strictObject({
|
|
963
|
-
skillId: z.string(),
|
|
951
|
+
skillId: z.string().nullable(),
|
|
964
952
|
overridePrefabKey: z.string().nullable(),
|
|
965
953
|
overrideTokenKey: z.string().nullable(),
|
|
966
954
|
levelUpCostCond: z.array(LevelUpCostCondZod),
|
|
@@ -972,12 +960,12 @@ exports.OperatorZod = z.strictObject({
|
|
|
972
960
|
unlockCondition: OperatorUnlockCondZod,
|
|
973
961
|
requiredPotentialRank: z.number(),
|
|
974
962
|
prefabKey: z.string(),
|
|
975
|
-
name: z.string(),
|
|
976
|
-
description: z.string(),
|
|
963
|
+
name: z.string().nullable(),
|
|
964
|
+
description: z.string().nullable(),
|
|
977
965
|
rangeId: z.string().nullable(),
|
|
978
966
|
blackboard: z.array(BlackboardZod),
|
|
979
967
|
tokenKey: z.string().nullable(),
|
|
980
|
-
})),
|
|
968
|
+
})).nullable(),
|
|
981
969
|
})).nullable(),
|
|
982
970
|
potentialRanks: z.array(z.strictObject({
|
|
983
971
|
type: z.string(),
|
|
@@ -1000,10 +988,25 @@ exports.OperatorZod = z.strictObject({
|
|
|
1000
988
|
}).nullable(),
|
|
1001
989
|
equivalentCost: z.null(),
|
|
1002
990
|
})),
|
|
1003
|
-
favorKeyFrames: z.array(AttributesKeyFrameZod),
|
|
991
|
+
favorKeyFrames: z.array(AttributesKeyFrameZod).nullable(),
|
|
1004
992
|
allSkillLvlup: z.array(z.strictObject({
|
|
1005
993
|
unlockCond: OperatorUnlockCondZod,
|
|
1006
994
|
lvlUpCost: z.array(LevelUpCostZod).nullable(),
|
|
1007
995
|
})),
|
|
1008
996
|
}),
|
|
1009
997
|
});
|
|
998
|
+
;
|
|
999
|
+
exports.OperatorZod = exports.DeployableZod.extend({
|
|
1000
|
+
recruit: z.number(),
|
|
1001
|
+
skills: z.array(exports.SkillZod),
|
|
1002
|
+
modules: z.array(exports.ModuleZod),
|
|
1003
|
+
skins: z.array(exports.SkinZod),
|
|
1004
|
+
bases: z.array(z.strictObject({
|
|
1005
|
+
condition: z.strictObject({
|
|
1006
|
+
buffId: z.string(),
|
|
1007
|
+
cond: OperatorUnlockCondZod,
|
|
1008
|
+
}),
|
|
1009
|
+
skill: exports.BaseZod,
|
|
1010
|
+
})),
|
|
1011
|
+
paradox: exports.ParadoxZod.nullable(),
|
|
1012
|
+
});
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -969,27 +969,13 @@ export const StageZod = z.strictObject({
|
|
|
969
969
|
}),
|
|
970
970
|
levels: StageDataZod,
|
|
971
971
|
});
|
|
972
|
-
export const
|
|
972
|
+
export const DeployableZod = z.strictObject({
|
|
973
973
|
id: z.string(),
|
|
974
|
-
recruit: z.number(),
|
|
975
974
|
archetype: z.string(),
|
|
976
|
-
range: GridRangeZod,
|
|
977
|
-
skills: z.array(SkillZod),
|
|
978
|
-
modules: z.array(ModuleZod),
|
|
979
|
-
skins: z.array(SkinZod),
|
|
980
|
-
bases: z.array(
|
|
981
|
-
z.strictObject({
|
|
982
|
-
condition: z.strictObject({
|
|
983
|
-
buffId: z.string(),
|
|
984
|
-
cond: OperatorUnlockCondZod,
|
|
985
|
-
}),
|
|
986
|
-
skill: BaseZod,
|
|
987
|
-
})
|
|
988
|
-
),
|
|
989
|
-
paradox: ParadoxZod.nullable(),
|
|
975
|
+
range: GridRangeZod.nullable(),
|
|
990
976
|
data: z.strictObject({
|
|
991
977
|
name: z.string(),
|
|
992
|
-
description: z.string(),
|
|
978
|
+
description: z.string().nullable(),
|
|
993
979
|
canUseGeneralPotentialItem: z.boolean(),
|
|
994
980
|
canUseActivityPotentialItem: z.boolean(),
|
|
995
981
|
potentialItemId: z.string().nullable(),
|
|
@@ -1001,7 +987,7 @@ export const OperatorZod = z.strictObject({
|
|
|
1001
987
|
displayNumber: z.string().nullable(),
|
|
1002
988
|
appellation: z.string(),
|
|
1003
989
|
position: z.string(),
|
|
1004
|
-
tagList: z.array(z.string()),
|
|
990
|
+
tagList: z.array(z.string()).nullable(),
|
|
1005
991
|
itemUsage: z.string().nullable(),
|
|
1006
992
|
itemDesc: z.string().nullable(),
|
|
1007
993
|
itemObtainApproach: z.string().nullable(),
|
|
@@ -1026,7 +1012,7 @@ export const OperatorZod = z.strictObject({
|
|
|
1026
1012
|
phases: z.array(
|
|
1027
1013
|
z.strictObject({
|
|
1028
1014
|
characterPrefabKey: z.string(),
|
|
1029
|
-
rangeId: z.string(),
|
|
1015
|
+
rangeId: z.string().nullable(),
|
|
1030
1016
|
maxLevel: z.number(),
|
|
1031
1017
|
attributesKeyFrames: z.array(AttributesKeyFrameZod),
|
|
1032
1018
|
evolveCost: z.union([z.array(LevelUpCostZod), z.null()]),
|
|
@@ -1034,7 +1020,7 @@ export const OperatorZod = z.strictObject({
|
|
|
1034
1020
|
),
|
|
1035
1021
|
skills: z.array(
|
|
1036
1022
|
z.strictObject({
|
|
1037
|
-
skillId: z.string(),
|
|
1023
|
+
skillId: z.string().nullable(),
|
|
1038
1024
|
overridePrefabKey: z.string().nullable(),
|
|
1039
1025
|
overrideTokenKey: z.string().nullable(),
|
|
1040
1026
|
levelUpCostCond: z.array(LevelUpCostCondZod),
|
|
@@ -1049,13 +1035,13 @@ export const OperatorZod = z.strictObject({
|
|
|
1049
1035
|
unlockCondition: OperatorUnlockCondZod,
|
|
1050
1036
|
requiredPotentialRank: z.number(),
|
|
1051
1037
|
prefabKey: z.string(),
|
|
1052
|
-
name: z.string(),
|
|
1053
|
-
description: z.string(),
|
|
1038
|
+
name: z.string().nullable(),
|
|
1039
|
+
description: z.string().nullable(),
|
|
1054
1040
|
rangeId: z.string().nullable(),
|
|
1055
1041
|
blackboard: z.array(BlackboardZod),
|
|
1056
1042
|
tokenKey: z.string().nullable(),
|
|
1057
1043
|
})
|
|
1058
|
-
),
|
|
1044
|
+
).nullable(),
|
|
1059
1045
|
})
|
|
1060
1046
|
).nullable(),
|
|
1061
1047
|
potentialRanks: z.array(
|
|
@@ -1083,7 +1069,7 @@ export const OperatorZod = z.strictObject({
|
|
|
1083
1069
|
equivalentCost: z.null(),
|
|
1084
1070
|
})
|
|
1085
1071
|
),
|
|
1086
|
-
favorKeyFrames: z.array(AttributesKeyFrameZod),
|
|
1072
|
+
favorKeyFrames: z.array(AttributesKeyFrameZod).nullable(),
|
|
1087
1073
|
allSkillLvlup: z.array(
|
|
1088
1074
|
z.strictObject({
|
|
1089
1075
|
unlockCond: OperatorUnlockCondZod,
|
|
@@ -1091,12 +1077,29 @@ export const OperatorZod = z.strictObject({
|
|
|
1091
1077
|
})
|
|
1092
1078
|
),
|
|
1093
1079
|
}),
|
|
1094
|
-
})
|
|
1080
|
+
});;
|
|
1081
|
+
export const OperatorZod = DeployableZod.extend({
|
|
1082
|
+
recruit: z.number(),
|
|
1083
|
+
skills: z.array(SkillZod),
|
|
1084
|
+
modules: z.array(ModuleZod),
|
|
1085
|
+
skins: z.array(SkinZod),
|
|
1086
|
+
bases: z.array(
|
|
1087
|
+
z.strictObject({
|
|
1088
|
+
condition: z.strictObject({
|
|
1089
|
+
buffId: z.string(),
|
|
1090
|
+
cond: OperatorUnlockCondZod,
|
|
1091
|
+
}),
|
|
1092
|
+
skill: BaseZod,
|
|
1093
|
+
})
|
|
1094
|
+
),
|
|
1095
|
+
paradox: ParadoxZod.nullable(),
|
|
1096
|
+
})
|
|
1095
1097
|
|
|
1096
1098
|
export type Blackboard = z.infer<typeof BlackboardZod>;
|
|
1097
1099
|
export type Base = z.infer<typeof BaseZod>;
|
|
1098
1100
|
export type CCStage = z.infer<typeof CCStageZod>;
|
|
1099
1101
|
export type Definition = z.infer<typeof DefinitionZod>;
|
|
1102
|
+
export type Deployable = z.infer<typeof DeployableZod>;
|
|
1100
1103
|
export type Enemy = z.infer<typeof EnemyZod>;
|
|
1101
1104
|
export type GameEvent = z.infer<typeof GameEventZod>;
|
|
1102
1105
|
export type GridRange = z.infer<typeof GridRangeZod>;
|