@pokepc/dataset 6.6.0 → 6.7.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/build/{box-preset-sanitizer-GjGde3eW.mjs → box-preset-sanitizer-DHGv5TJj.mjs} +2 -2
- package/build/{box-preset-sanitizer-GjGde3eW.mjs.map → box-preset-sanitizer-DHGv5TJj.mjs.map} +1 -1
- package/build/box-preset-sanitizer-kg68JZPB.d.mts.map +1 -1
- package/build/{build-DeFbpXmN.mjs → build-DvGzwIK8.mjs} +74 -17
- package/build/build-DvGzwIK8.mjs.map +1 -0
- package/build/{build-GIV09lTc.mjs → build-bE_0_-0H.mjs} +4 -10
- package/build/{build-GIV09lTc.mjs.map → build-bE_0_-0H.mjs.map} +1 -1
- package/build/enums-CCbmORM6.d.mts.map +1 -1
- package/build/lib/box-preset-sanitizer.mjs +1 -1
- package/build/lib/box-preset-transform.d.mts +4 -6
- package/build/lib/box-preset-transform.d.mts.map +1 -1
- package/build/lib/box-preset-transform.mjs +2 -2
- package/build/lib/constants.d.mts +3 -4
- package/build/lib/constants.d.mts.map +1 -1
- package/build/lib/fs.d.mts +48 -49
- package/build/lib/fs.d.mts.map +1 -1
- package/build/lib/fs.mjs +3 -3
- package/build/lib/fs.mjs.map +1 -1
- package/build/lib/languages.d.mts +11 -12
- package/build/lib/languages.d.mts.map +1 -1
- package/build/lib/schemas.d.mts +1 -1
- package/build/lib/schemas.mjs +1 -1
- package/build/lib/search.d.mts +2 -3
- package/build/lib/search.d.mts.map +1 -1
- package/build/lib/search.mjs.map +1 -1
- package/build/lib/types.d.mts +34 -34
- package/build/lib/types.d.mts.map +1 -1
- package/build/lib/utils.d.mts +16 -17
- package/build/lib/utils.d.mts.map +1 -1
- package/build/lib/validators.d.mts +1 -1
- package/build/lib-next/_build.d.mts +1 -1
- package/build/lib-next/_build.mjs +2 -2
- package/build/lib-next/enums.d.mts +41 -42
- package/build/lib-next/enums.d.mts.map +1 -1
- package/build/lib-next/fs.d.mts +3 -4
- package/build/lib-next/fs.d.mts.map +1 -1
- package/build/lib-next/languages.d.mts +17 -18
- package/build/lib-next/languages.d.mts.map +1 -1
- package/build/lib-next/schemas.d.mts +222 -224
- package/build/lib-next/schemas.d.mts.map +1 -1
- package/build/lib-next/schemas.mjs +1 -1
- package/build/schemas-Bj1AIX0P.mjs +93 -0
- package/build/schemas-Bj1AIX0P.mjs.map +1 -0
- package/build/schemas-CDSWgtoj.d.mts +804 -0
- package/build/schemas-CDSWgtoj.d.mts.map +1 -0
- package/build/schemas-CcUqoHNr.mjs +349 -0
- package/build/schemas-CcUqoHNr.mjs.map +1 -0
- package/build/utils-BwovRocd.mjs.map +1 -1
- package/data/abilities.json +9 -0
- package/data/games/champions.json +5 -1
- package/data/indices/pokedexes.json +2 -1
- package/data/pokedexes/champions-regular-roster-m-b.json +3 -0
- package/data/pokedexes/champions-regular-roster-m-c.json +490 -0
- package/data/pokemon/absol-mega-z.json +1 -3
- package/data/pokemon/arboliva.json +1 -1
- package/data/pokemon/baxcalibur-mega.json +0 -1
- package/data/pokemon/baxcalibur.json +1 -1
- package/data/pokemon/cinderace.json +1 -1
- package/data/pokemon/farfetchd.json +2 -1
- package/data/pokemon/garchomp-mega-z.json +2 -2
- package/data/pokemon/gogoat.json +2 -1
- package/data/pokemon/golisopod-mega.json +1 -1
- package/data/pokemon/golisopod.json +12 -1
- package/data/pokemon/grapploct.json +1 -1
- package/data/pokemon/indeedee-f.json +1 -1
- package/data/pokemon/indeedee.json +1 -1
- package/data/pokemon/inteleon.json +1 -1
- package/data/pokemon/lucario-mega-z.json +1 -3
- package/data/pokemon/mabosstiff.json +1 -1
- package/data/pokemon/mrmime.json +2 -1
- package/data/pokemon/pawmot.json +1 -1
- package/data/pokemon/perrserker.json +1 -1
- package/data/pokemon/persian-alola.json +2 -1
- package/data/pokemon/persian.json +2 -1
- package/data/pokemon/pincurchin.json +1 -1
- package/data/pokemon/pyroar-f.json +7 -2
- package/data/pokemon/pyroar.json +2 -1
- package/data/pokemon/rillaboom.json +1 -1
- package/data/pokemon/salamence.json +2 -1
- package/data/pokemon/sirfetchd.json +1 -1
- package/data/pokemon/squawkabilly-blue.json +1 -1
- package/data/pokemon/squawkabilly-white.json +1 -1
- package/data/pokemon/squawkabilly-yellow.json +1 -1
- package/data/pokemon/squawkabilly.json +6 -2
- package/data/pokemon/swalot-f.json +7 -2
- package/data/pokemon/swalot.json +2 -1
- package/data/pokemon/thievul.json +1 -1
- package/data/pokemon/toxtricity-low-key.json +1 -1
- package/data/pokemon/toxtricity.json +1 -1
- package/data/pokemon/wigglytuff.json +2 -1
- package/data-next/champions/abilities.json +8 -0
- package/data-next/champions/i18n/chs/abilities.json +7 -0
- package/data-next/champions/i18n/cht/abilities.json +7 -0
- package/data-next/champions/i18n/deu/abilities.json +7 -0
- package/data-next/champions/i18n/eng/abilities.json +7 -0
- package/data-next/champions/i18n/es-es/abilities.json +7 -0
- package/data-next/champions/i18n/es-la/abilities.json +7 -0
- package/data-next/champions/i18n/fra/abilities.json +7 -0
- package/data-next/champions/i18n/ita/abilities.json +7 -0
- package/data-next/champions/i18n/jpn/abilities.json +7 -0
- package/data-next/champions/i18n/kor/abilities.json +7 -0
- package/data-next/champions/i18n/pt-br/abilities.json +7 -0
- package/data-next/champions/moves.json +1 -0
- package/package.json +10 -10
- package/build/build-DeFbpXmN.mjs.map +0 -1
- package/build/schemas-B4fI9u0f.mjs +0 -93
- package/build/schemas-B4fI9u0f.mjs.map +0 -1
- package/build/schemas-CiojUbKN.d.mts +0 -805
- package/build/schemas-CiojUbKN.d.mts.map +0 -1
- package/build/schemas-Dt7FbAMy.mjs +0 -349
- package/build/schemas-Dt7FbAMy.mjs.map +0 -1
|
@@ -1,63 +1,62 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
1
|
+
import { z as z$1 } from "zod";
|
|
3
2
|
//#region src/lib-next/schemas.d.ts
|
|
4
|
-
declare const slugSchema: z.ZodString;
|
|
5
|
-
declare const baseSchema: z.ZodObject<{
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
slug: z.ZodString;
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
description: z.ZodString;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
declare const championsLinkedBaseSchema: z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
championsId: z.ZodString;
|
|
14
|
-
pokeApiId: z.ZodOptional<z.ZodNumber
|
|
15
|
-
slug: z.ZodString;
|
|
16
|
-
name: z.ZodString;
|
|
17
|
-
description: z.ZodString;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
declare const i18nSchema: z.ZodObject<{
|
|
20
|
-
id: z.ZodString;
|
|
21
|
-
slug: z.ZodString;
|
|
22
|
-
slugLoc: z.ZodString;
|
|
23
|
-
name: z.ZodString;
|
|
24
|
-
description: z.ZodString;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
type I18nRecord = z.infer<typeof i18nSchema>;
|
|
27
|
-
declare const i18nRecordsSchema: z.ZodArray<z.ZodObject<{
|
|
28
|
-
id: z.ZodString;
|
|
29
|
-
slug: z.ZodString;
|
|
30
|
-
slugLoc: z.ZodString;
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
description: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>;
|
|
34
|
-
type I18nRecords = z.infer<typeof i18nRecordsSchema>;
|
|
35
|
-
declare const itemI18nSchema: z.ZodObject<{
|
|
36
|
-
id: z.ZodString;
|
|
37
|
-
slug: z.ZodString;
|
|
38
|
-
slugLoc: z.ZodString;
|
|
39
|
-
name: z.ZodString;
|
|
40
|
-
description: z.ZodString;
|
|
41
|
-
pluralName: z.ZodString;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
type ItemI18nRecord = z.infer<typeof itemI18nSchema>;
|
|
44
|
-
declare const itemI18nRecordsSchema: z.ZodArray<z.ZodObject<{
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
slug: z.ZodString;
|
|
47
|
-
slugLoc: z.ZodString;
|
|
48
|
-
name: z.ZodString;
|
|
49
|
-
description: z.ZodString;
|
|
50
|
-
pluralName: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
type ItemI18nRecords = z.infer<typeof itemI18nRecordsSchema>;
|
|
53
|
-
declare const moveSchema: z.ZodObject<{
|
|
54
|
-
id: z.ZodString;
|
|
55
|
-
championsId: z.ZodString;
|
|
56
|
-
pokeApiId: z.ZodOptional<z.ZodNumber
|
|
57
|
-
slug: z.ZodString;
|
|
58
|
-
name: z.ZodString;
|
|
59
|
-
description: z.ZodString;
|
|
60
|
-
type: z.ZodEnum<{
|
|
3
|
+
export declare const slugSchema: z$1.ZodString;
|
|
4
|
+
export declare const baseSchema: z$1.ZodObject<{
|
|
5
|
+
id: z$1.ZodString;
|
|
6
|
+
slug: z$1.ZodString;
|
|
7
|
+
name: z$1.ZodString;
|
|
8
|
+
description: z$1.ZodString;
|
|
9
|
+
}, z$1.core.$strip>;
|
|
10
|
+
export declare const championsLinkedBaseSchema: z$1.ZodObject<{
|
|
11
|
+
id: z$1.ZodString;
|
|
12
|
+
championsId: z$1.ZodString;
|
|
13
|
+
pokeApiId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
14
|
+
slug: z$1.ZodString;
|
|
15
|
+
name: z$1.ZodString;
|
|
16
|
+
description: z$1.ZodString;
|
|
17
|
+
}, z$1.core.$strip>;
|
|
18
|
+
export declare const i18nSchema: z$1.ZodObject<{
|
|
19
|
+
id: z$1.ZodString;
|
|
20
|
+
slug: z$1.ZodString;
|
|
21
|
+
slugLoc: z$1.ZodString;
|
|
22
|
+
name: z$1.ZodString;
|
|
23
|
+
description: z$1.ZodString;
|
|
24
|
+
}, z$1.core.$strip>;
|
|
25
|
+
export type I18nRecord = z$1.infer<typeof i18nSchema>;
|
|
26
|
+
export declare const i18nRecordsSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
27
|
+
id: z$1.ZodString;
|
|
28
|
+
slug: z$1.ZodString;
|
|
29
|
+
slugLoc: z$1.ZodString;
|
|
30
|
+
name: z$1.ZodString;
|
|
31
|
+
description: z$1.ZodString;
|
|
32
|
+
}, z$1.core.$strip>>;
|
|
33
|
+
export type I18nRecords = z$1.infer<typeof i18nRecordsSchema>;
|
|
34
|
+
export declare const itemI18nSchema: z$1.ZodObject<{
|
|
35
|
+
id: z$1.ZodString;
|
|
36
|
+
slug: z$1.ZodString;
|
|
37
|
+
slugLoc: z$1.ZodString;
|
|
38
|
+
name: z$1.ZodString;
|
|
39
|
+
description: z$1.ZodString;
|
|
40
|
+
pluralName: z$1.ZodString;
|
|
41
|
+
}, z$1.core.$strip>;
|
|
42
|
+
export type ItemI18nRecord = z$1.infer<typeof itemI18nSchema>;
|
|
43
|
+
export declare const itemI18nRecordsSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
44
|
+
id: z$1.ZodString;
|
|
45
|
+
slug: z$1.ZodString;
|
|
46
|
+
slugLoc: z$1.ZodString;
|
|
47
|
+
name: z$1.ZodString;
|
|
48
|
+
description: z$1.ZodString;
|
|
49
|
+
pluralName: z$1.ZodString;
|
|
50
|
+
}, z$1.core.$strip>>;
|
|
51
|
+
export type ItemI18nRecords = z$1.infer<typeof itemI18nRecordsSchema>;
|
|
52
|
+
export declare const moveSchema: z$1.ZodObject<{
|
|
53
|
+
id: z$1.ZodString;
|
|
54
|
+
championsId: z$1.ZodString;
|
|
55
|
+
pokeApiId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
56
|
+
slug: z$1.ZodString;
|
|
57
|
+
name: z$1.ZodString;
|
|
58
|
+
description: z$1.ZodString;
|
|
59
|
+
type: z$1.ZodEnum<{
|
|
61
60
|
normal: "normal";
|
|
62
61
|
fire: "fire";
|
|
63
62
|
water: "water";
|
|
@@ -77,16 +76,16 @@ declare const moveSchema: z.ZodObject<{
|
|
|
77
76
|
steel: "steel";
|
|
78
77
|
fairy: "fairy";
|
|
79
78
|
}>;
|
|
80
|
-
category: z.ZodEnum<{
|
|
79
|
+
category: z$1.ZodEnum<{
|
|
81
80
|
physical: "physical";
|
|
82
81
|
special: "special";
|
|
83
82
|
status: "status";
|
|
84
83
|
}>;
|
|
85
|
-
power: z.ZodNumber;
|
|
86
|
-
pp: z.ZodNumber;
|
|
87
|
-
accuracy: z.ZodNumber;
|
|
88
|
-
priority: z.ZodNumber;
|
|
89
|
-
target: z.ZodEnum<{
|
|
84
|
+
power: z$1.ZodNumber;
|
|
85
|
+
pp: z$1.ZodNumber;
|
|
86
|
+
accuracy: z$1.ZodNumber;
|
|
87
|
+
priority: z$1.ZodNumber;
|
|
88
|
+
target: z$1.ZodEnum<{
|
|
90
89
|
single_target: "single_target";
|
|
91
90
|
self: "self";
|
|
92
91
|
single_ally: "single_ally";
|
|
@@ -99,7 +98,7 @@ declare const moveSchema: z.ZodObject<{
|
|
|
99
98
|
all_pokemon: "all_pokemon";
|
|
100
99
|
varies: "varies";
|
|
101
100
|
}>;
|
|
102
|
-
classification: z.ZodArray<z.ZodEnum<{
|
|
101
|
+
classification: z$1.ZodArray<z$1.ZodEnum<{
|
|
103
102
|
punching: "punching";
|
|
104
103
|
sound_based: "sound_based";
|
|
105
104
|
dance: "dance";
|
|
@@ -113,18 +112,18 @@ declare const moveSchema: z.ZodObject<{
|
|
|
113
112
|
mental: "mental";
|
|
114
113
|
healing: "healing";
|
|
115
114
|
}>>;
|
|
116
|
-
contact: z.ZodBoolean;
|
|
117
|
-
usable: z.ZodBoolean;
|
|
118
|
-
}, z.core.$strip>;
|
|
119
|
-
type MoveRecord = z.infer<typeof moveSchema>;
|
|
120
|
-
declare const movesSchema: z.ZodArray<z.ZodObject<{
|
|
121
|
-
id: z.ZodString;
|
|
122
|
-
championsId: z.ZodString;
|
|
123
|
-
pokeApiId: z.ZodOptional<z.ZodNumber
|
|
124
|
-
slug: z.ZodString;
|
|
125
|
-
name: z.ZodString;
|
|
126
|
-
description: z.ZodString;
|
|
127
|
-
type: z.ZodEnum<{
|
|
115
|
+
contact: z$1.ZodBoolean;
|
|
116
|
+
usable: z$1.ZodBoolean;
|
|
117
|
+
}, z$1.core.$strip>;
|
|
118
|
+
export type MoveRecord = z$1.infer<typeof moveSchema>;
|
|
119
|
+
export declare const movesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
120
|
+
id: z$1.ZodString;
|
|
121
|
+
championsId: z$1.ZodString;
|
|
122
|
+
pokeApiId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
123
|
+
slug: z$1.ZodString;
|
|
124
|
+
name: z$1.ZodString;
|
|
125
|
+
description: z$1.ZodString;
|
|
126
|
+
type: z$1.ZodEnum<{
|
|
128
127
|
normal: "normal";
|
|
129
128
|
fire: "fire";
|
|
130
129
|
water: "water";
|
|
@@ -144,16 +143,16 @@ declare const movesSchema: z.ZodArray<z.ZodObject<{
|
|
|
144
143
|
steel: "steel";
|
|
145
144
|
fairy: "fairy";
|
|
146
145
|
}>;
|
|
147
|
-
category: z.ZodEnum<{
|
|
146
|
+
category: z$1.ZodEnum<{
|
|
148
147
|
physical: "physical";
|
|
149
148
|
special: "special";
|
|
150
149
|
status: "status";
|
|
151
150
|
}>;
|
|
152
|
-
power: z.ZodNumber;
|
|
153
|
-
pp: z.ZodNumber;
|
|
154
|
-
accuracy: z.ZodNumber;
|
|
155
|
-
priority: z.ZodNumber;
|
|
156
|
-
target: z.ZodEnum<{
|
|
151
|
+
power: z$1.ZodNumber;
|
|
152
|
+
pp: z$1.ZodNumber;
|
|
153
|
+
accuracy: z$1.ZodNumber;
|
|
154
|
+
priority: z$1.ZodNumber;
|
|
155
|
+
target: z$1.ZodEnum<{
|
|
157
156
|
single_target: "single_target";
|
|
158
157
|
self: "self";
|
|
159
158
|
single_ally: "single_ally";
|
|
@@ -166,7 +165,7 @@ declare const movesSchema: z.ZodArray<z.ZodObject<{
|
|
|
166
165
|
all_pokemon: "all_pokemon";
|
|
167
166
|
varies: "varies";
|
|
168
167
|
}>;
|
|
169
|
-
classification: z.ZodArray<z.ZodEnum<{
|
|
168
|
+
classification: z$1.ZodArray<z$1.ZodEnum<{
|
|
170
169
|
punching: "punching";
|
|
171
170
|
sound_based: "sound_based";
|
|
172
171
|
dance: "dance";
|
|
@@ -180,37 +179,37 @@ declare const movesSchema: z.ZodArray<z.ZodObject<{
|
|
|
180
179
|
mental: "mental";
|
|
181
180
|
healing: "healing";
|
|
182
181
|
}>>;
|
|
183
|
-
contact: z.ZodBoolean;
|
|
184
|
-
usable: z.ZodBoolean;
|
|
185
|
-
}, z.core.$strip>>;
|
|
186
|
-
type MoveRecords = z.infer<typeof movesSchema>;
|
|
187
|
-
declare const abilitySchema: z.ZodObject<{
|
|
188
|
-
id: z.ZodString;
|
|
189
|
-
championsId: z.ZodString;
|
|
190
|
-
pokeApiId: z.ZodOptional<z.ZodNumber
|
|
191
|
-
slug: z.ZodString;
|
|
192
|
-
name: z.ZodString;
|
|
193
|
-
description: z.ZodString;
|
|
194
|
-
}, z.core.$strip>;
|
|
195
|
-
type AbilityRecord = z.infer<typeof abilitySchema>;
|
|
196
|
-
declare const abilitiesSchema: z.ZodArray<z.ZodObject<{
|
|
197
|
-
id: z.ZodString;
|
|
198
|
-
championsId: z.ZodString;
|
|
199
|
-
pokeApiId: z.ZodOptional<z.ZodNumber
|
|
200
|
-
slug: z.ZodString;
|
|
201
|
-
name: z.ZodString;
|
|
202
|
-
description: z.ZodString;
|
|
203
|
-
}, z.core.$strip>>;
|
|
204
|
-
type AbilityRecords = z.infer<typeof abilitiesSchema>;
|
|
205
|
-
declare const itemSchema: z.ZodObject<{
|
|
206
|
-
id: z.ZodString;
|
|
207
|
-
championsId: z.ZodString;
|
|
208
|
-
pokeApiId: z.ZodOptional<z.ZodNumber
|
|
209
|
-
slug: z.ZodString;
|
|
210
|
-
name: z.ZodString;
|
|
211
|
-
description: z.ZodString;
|
|
212
|
-
pluralName: z.ZodString;
|
|
213
|
-
categories: z.ZodArray<z.ZodEnum<{
|
|
182
|
+
contact: z$1.ZodBoolean;
|
|
183
|
+
usable: z$1.ZodBoolean;
|
|
184
|
+
}, z$1.core.$strip>>;
|
|
185
|
+
export type MoveRecords = z$1.infer<typeof movesSchema>;
|
|
186
|
+
export declare const abilitySchema: z$1.ZodObject<{
|
|
187
|
+
id: z$1.ZodString;
|
|
188
|
+
championsId: z$1.ZodString;
|
|
189
|
+
pokeApiId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
190
|
+
slug: z$1.ZodString;
|
|
191
|
+
name: z$1.ZodString;
|
|
192
|
+
description: z$1.ZodString;
|
|
193
|
+
}, z$1.core.$strip>;
|
|
194
|
+
export type AbilityRecord = z$1.infer<typeof abilitySchema>;
|
|
195
|
+
export declare const abilitiesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
196
|
+
id: z$1.ZodString;
|
|
197
|
+
championsId: z$1.ZodString;
|
|
198
|
+
pokeApiId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
199
|
+
slug: z$1.ZodString;
|
|
200
|
+
name: z$1.ZodString;
|
|
201
|
+
description: z$1.ZodString;
|
|
202
|
+
}, z$1.core.$strip>>;
|
|
203
|
+
export type AbilityRecords = z$1.infer<typeof abilitiesSchema>;
|
|
204
|
+
export declare const itemSchema: z$1.ZodObject<{
|
|
205
|
+
id: z$1.ZodString;
|
|
206
|
+
championsId: z$1.ZodString;
|
|
207
|
+
pokeApiId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
208
|
+
slug: z$1.ZodString;
|
|
209
|
+
name: z$1.ZodString;
|
|
210
|
+
description: z$1.ZodString;
|
|
211
|
+
pluralName: z$1.ZodString;
|
|
212
|
+
categories: z$1.ZodArray<z$1.ZodEnum<{
|
|
214
213
|
power_boost: "power_boost";
|
|
215
214
|
recovery: "recovery";
|
|
216
215
|
defense: "defense";
|
|
@@ -220,17 +219,17 @@ declare const itemSchema: z.ZodObject<{
|
|
|
220
219
|
other: "other";
|
|
221
220
|
mega_stone: "mega_stone";
|
|
222
221
|
}>>;
|
|
223
|
-
}, z.core.$strip>;
|
|
224
|
-
type ItemRecord = z.infer<typeof itemSchema>;
|
|
225
|
-
declare const itemsSchema: z.ZodArray<z.ZodObject<{
|
|
226
|
-
id: z.ZodString;
|
|
227
|
-
championsId: z.ZodString;
|
|
228
|
-
pokeApiId: z.ZodOptional<z.ZodNumber
|
|
229
|
-
slug: z.ZodString;
|
|
230
|
-
name: z.ZodString;
|
|
231
|
-
description: z.ZodString;
|
|
232
|
-
pluralName: z.ZodString;
|
|
233
|
-
categories: z.ZodArray<z.ZodEnum<{
|
|
222
|
+
}, z$1.core.$strip>;
|
|
223
|
+
export type ItemRecord = z$1.infer<typeof itemSchema>;
|
|
224
|
+
export declare const itemsSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
225
|
+
id: z$1.ZodString;
|
|
226
|
+
championsId: z$1.ZodString;
|
|
227
|
+
pokeApiId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
228
|
+
slug: z$1.ZodString;
|
|
229
|
+
name: z$1.ZodString;
|
|
230
|
+
description: z$1.ZodString;
|
|
231
|
+
pluralName: z$1.ZodString;
|
|
232
|
+
categories: z$1.ZodArray<z$1.ZodEnum<{
|
|
234
233
|
power_boost: "power_boost";
|
|
235
234
|
recovery: "recovery";
|
|
236
235
|
defense: "defense";
|
|
@@ -240,39 +239,39 @@ declare const itemsSchema: z.ZodArray<z.ZodObject<{
|
|
|
240
239
|
other: "other";
|
|
241
240
|
mega_stone: "mega_stone";
|
|
242
241
|
}>>;
|
|
243
|
-
}, z.core.$strip>>;
|
|
244
|
-
type ItemRecords = z.infer<typeof itemsSchema>;
|
|
245
|
-
declare const battleStateSchema: z.ZodObject<{
|
|
246
|
-
id: z.ZodString;
|
|
247
|
-
slug: z.ZodString;
|
|
248
|
-
name: z.ZodString;
|
|
249
|
-
description: z.ZodString;
|
|
250
|
-
state: z.ZodEnum<{
|
|
242
|
+
}, z$1.core.$strip>>;
|
|
243
|
+
export type ItemRecords = z$1.infer<typeof itemsSchema>;
|
|
244
|
+
export declare const battleStateSchema: z$1.ZodObject<{
|
|
245
|
+
id: z$1.ZodString;
|
|
246
|
+
slug: z$1.ZodString;
|
|
247
|
+
name: z$1.ZodString;
|
|
248
|
+
description: z$1.ZodString;
|
|
249
|
+
state: z$1.ZodEnum<{
|
|
251
250
|
[x: string]: string;
|
|
252
251
|
}>;
|
|
253
|
-
}, z.core.$strip>;
|
|
254
|
-
type BattleStateRecord = z.infer<typeof battleStateSchema>;
|
|
255
|
-
declare const battleStatesSchema: z.ZodArray<z.ZodObject<{
|
|
256
|
-
id: z.ZodString;
|
|
257
|
-
slug: z.ZodString;
|
|
258
|
-
name: z.ZodString;
|
|
259
|
-
description: z.ZodString;
|
|
260
|
-
state: z.ZodEnum<{
|
|
252
|
+
}, z$1.core.$strip>;
|
|
253
|
+
export type BattleStateRecord = z$1.infer<typeof battleStateSchema>;
|
|
254
|
+
export declare const battleStatesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
255
|
+
id: z$1.ZodString;
|
|
256
|
+
slug: z$1.ZodString;
|
|
257
|
+
name: z$1.ZodString;
|
|
258
|
+
description: z$1.ZodString;
|
|
259
|
+
state: z$1.ZodEnum<{
|
|
261
260
|
[x: string]: string;
|
|
262
261
|
}>;
|
|
263
|
-
}, z.core.$strip>>;
|
|
264
|
-
type BattleStateRecords = z.infer<typeof battleStatesSchema>;
|
|
265
|
-
declare const pokemonSchema: z.ZodObject<{
|
|
266
|
-
id: z.ZodString;
|
|
267
|
-
nid: z.ZodString;
|
|
268
|
-
name: z.ZodString;
|
|
269
|
-
formName: z.ZodOptional<z.ZodString>;
|
|
270
|
-
pokeApiId: z.ZodNumber;
|
|
271
|
-
pokeApiFormId: z.ZodOptional<z.ZodNumber>;
|
|
272
|
-
showdownId: z.ZodString;
|
|
273
|
-
baseSpecies: z.ZodOptional<z.ZodString>;
|
|
274
|
-
championsId: z.ZodString;
|
|
275
|
-
type1: z.ZodEnum<{
|
|
262
|
+
}, z$1.core.$strip>>;
|
|
263
|
+
export type BattleStateRecords = z$1.infer<typeof battleStatesSchema>;
|
|
264
|
+
export declare const pokemonSchema: z$1.ZodObject<{
|
|
265
|
+
id: z$1.ZodString;
|
|
266
|
+
nid: z$1.ZodString;
|
|
267
|
+
name: z$1.ZodString;
|
|
268
|
+
formName: z$1.ZodOptional<z$1.ZodString>;
|
|
269
|
+
pokeApiId: z$1.ZodNumber;
|
|
270
|
+
pokeApiFormId: z$1.ZodOptional<z$1.ZodNumber>;
|
|
271
|
+
showdownId: z$1.ZodString;
|
|
272
|
+
baseSpecies: z$1.ZodOptional<z$1.ZodString>;
|
|
273
|
+
championsId: z$1.ZodString;
|
|
274
|
+
type1: z$1.ZodEnum<{
|
|
276
275
|
normal: "normal";
|
|
277
276
|
fire: "fire";
|
|
278
277
|
water: "water";
|
|
@@ -292,7 +291,7 @@ declare const pokemonSchema: z.ZodObject<{
|
|
|
292
291
|
steel: "steel";
|
|
293
292
|
fairy: "fairy";
|
|
294
293
|
}>;
|
|
295
|
-
type2: z.ZodNullable<z.ZodEnum<{
|
|
294
|
+
type2: z$1.ZodNullable<z$1.ZodEnum<{
|
|
296
295
|
normal: "normal";
|
|
297
296
|
fire: "fire";
|
|
298
297
|
water: "water";
|
|
@@ -312,32 +311,32 @@ declare const pokemonSchema: z.ZodObject<{
|
|
|
312
311
|
steel: "steel";
|
|
313
312
|
fairy: "fairy";
|
|
314
313
|
}>>;
|
|
315
|
-
abilities: z.ZodArray<z.ZodString>;
|
|
316
|
-
baseHp: z.ZodNumber;
|
|
317
|
-
baseAtk: z.ZodNumber;
|
|
318
|
-
baseDef: z.ZodNumber;
|
|
319
|
-
baseSpAtk: z.ZodNumber;
|
|
320
|
-
baseSpDef: z.ZodNumber;
|
|
321
|
-
baseSpeed: z.ZodNumber;
|
|
322
|
-
height: z.ZodNumber;
|
|
323
|
-
weight: z.ZodNumber;
|
|
324
|
-
isForm: z.ZodBoolean;
|
|
325
|
-
isBattleOnly: z.ZodBoolean;
|
|
326
|
-
isCosmetic: z.ZodBoolean;
|
|
327
|
-
isFemale: z.ZodBoolean;
|
|
328
|
-
}, z.core.$strip>;
|
|
329
|
-
type PokemonRecord = z.infer<typeof pokemonSchema>;
|
|
330
|
-
declare const pokemonListSchema: z.ZodArray<z.ZodObject<{
|
|
331
|
-
id: z.ZodString;
|
|
332
|
-
nid: z.ZodString;
|
|
333
|
-
name: z.ZodString;
|
|
334
|
-
formName: z.ZodOptional<z.ZodString>;
|
|
335
|
-
pokeApiId: z.ZodNumber;
|
|
336
|
-
pokeApiFormId: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
showdownId: z.ZodString;
|
|
338
|
-
baseSpecies: z.ZodOptional<z.ZodString>;
|
|
339
|
-
championsId: z.ZodString;
|
|
340
|
-
type1: z.ZodEnum<{
|
|
314
|
+
abilities: z$1.ZodArray<z$1.ZodString>;
|
|
315
|
+
baseHp: z$1.ZodNumber;
|
|
316
|
+
baseAtk: z$1.ZodNumber;
|
|
317
|
+
baseDef: z$1.ZodNumber;
|
|
318
|
+
baseSpAtk: z$1.ZodNumber;
|
|
319
|
+
baseSpDef: z$1.ZodNumber;
|
|
320
|
+
baseSpeed: z$1.ZodNumber;
|
|
321
|
+
height: z$1.ZodNumber;
|
|
322
|
+
weight: z$1.ZodNumber;
|
|
323
|
+
isForm: z$1.ZodBoolean;
|
|
324
|
+
isBattleOnly: z$1.ZodBoolean;
|
|
325
|
+
isCosmetic: z$1.ZodBoolean;
|
|
326
|
+
isFemale: z$1.ZodBoolean;
|
|
327
|
+
}, z$1.core.$strip>;
|
|
328
|
+
export type PokemonRecord = z$1.infer<typeof pokemonSchema>;
|
|
329
|
+
export declare const pokemonListSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
330
|
+
id: z$1.ZodString;
|
|
331
|
+
nid: z$1.ZodString;
|
|
332
|
+
name: z$1.ZodString;
|
|
333
|
+
formName: z$1.ZodOptional<z$1.ZodString>;
|
|
334
|
+
pokeApiId: z$1.ZodNumber;
|
|
335
|
+
pokeApiFormId: z$1.ZodOptional<z$1.ZodNumber>;
|
|
336
|
+
showdownId: z$1.ZodString;
|
|
337
|
+
baseSpecies: z$1.ZodOptional<z$1.ZodString>;
|
|
338
|
+
championsId: z$1.ZodString;
|
|
339
|
+
type1: z$1.ZodEnum<{
|
|
341
340
|
normal: "normal";
|
|
342
341
|
fire: "fire";
|
|
343
342
|
water: "water";
|
|
@@ -357,7 +356,7 @@ declare const pokemonListSchema: z.ZodArray<z.ZodObject<{
|
|
|
357
356
|
steel: "steel";
|
|
358
357
|
fairy: "fairy";
|
|
359
358
|
}>;
|
|
360
|
-
type2: z.ZodNullable<z.ZodEnum<{
|
|
359
|
+
type2: z$1.ZodNullable<z$1.ZodEnum<{
|
|
361
360
|
normal: "normal";
|
|
362
361
|
fire: "fire";
|
|
363
362
|
water: "water";
|
|
@@ -377,45 +376,44 @@ declare const pokemonListSchema: z.ZodArray<z.ZodObject<{
|
|
|
377
376
|
steel: "steel";
|
|
378
377
|
fairy: "fairy";
|
|
379
378
|
}>>;
|
|
380
|
-
abilities: z.ZodArray<z.ZodString>;
|
|
381
|
-
baseHp: z.ZodNumber;
|
|
382
|
-
baseAtk: z.ZodNumber;
|
|
383
|
-
baseDef: z.ZodNumber;
|
|
384
|
-
baseSpAtk: z.ZodNumber;
|
|
385
|
-
baseSpDef: z.ZodNumber;
|
|
386
|
-
baseSpeed: z.ZodNumber;
|
|
387
|
-
height: z.ZodNumber;
|
|
388
|
-
weight: z.ZodNumber;
|
|
389
|
-
isForm: z.ZodBoolean;
|
|
390
|
-
isBattleOnly: z.ZodBoolean;
|
|
391
|
-
isCosmetic: z.ZodBoolean;
|
|
392
|
-
isFemale: z.ZodBoolean;
|
|
393
|
-
}, z.core.$strip>>;
|
|
394
|
-
type PokemonRecords = z.infer<typeof pokemonListSchema>;
|
|
395
|
-
declare const pokemonI18nSchema: z.ZodObject<{
|
|
396
|
-
id: z.ZodString;
|
|
397
|
-
championsId: z.ZodString;
|
|
398
|
-
name: z.ZodString;
|
|
399
|
-
formName: z.ZodOptional<z.ZodString>;
|
|
400
|
-
}, z.core.$strip>;
|
|
401
|
-
type PokemonI18nRecord = z.infer<typeof pokemonI18nSchema>;
|
|
402
|
-
declare const pokemonI18nRecordsSchema: z.ZodArray<z.ZodObject<{
|
|
403
|
-
id: z.ZodString;
|
|
404
|
-
championsId: z.ZodString;
|
|
405
|
-
name: z.ZodString;
|
|
406
|
-
formName: z.ZodOptional<z.ZodString>;
|
|
407
|
-
}, z.core.$strip>>;
|
|
408
|
-
type PokemonI18nRecords = z.infer<typeof pokemonI18nRecordsSchema>;
|
|
409
|
-
declare const pokemonMovesRecordSchema: z.ZodObject<{
|
|
410
|
-
id: z.ZodString;
|
|
411
|
-
moves: z.ZodArray<z.ZodString>;
|
|
412
|
-
}, z.core.$strip>;
|
|
413
|
-
type PokemonMovesRecord = z.infer<typeof pokemonMovesRecordSchema>;
|
|
414
|
-
declare const pokemonMovesSchema: z.ZodArray<z.ZodObject<{
|
|
415
|
-
id: z.ZodString;
|
|
416
|
-
moves: z.ZodArray<z.ZodString>;
|
|
417
|
-
}, z.core.$strip>>;
|
|
418
|
-
type PokemonMovesRecords = z.infer<typeof pokemonMovesSchema>;
|
|
379
|
+
abilities: z$1.ZodArray<z$1.ZodString>;
|
|
380
|
+
baseHp: z$1.ZodNumber;
|
|
381
|
+
baseAtk: z$1.ZodNumber;
|
|
382
|
+
baseDef: z$1.ZodNumber;
|
|
383
|
+
baseSpAtk: z$1.ZodNumber;
|
|
384
|
+
baseSpDef: z$1.ZodNumber;
|
|
385
|
+
baseSpeed: z$1.ZodNumber;
|
|
386
|
+
height: z$1.ZodNumber;
|
|
387
|
+
weight: z$1.ZodNumber;
|
|
388
|
+
isForm: z$1.ZodBoolean;
|
|
389
|
+
isBattleOnly: z$1.ZodBoolean;
|
|
390
|
+
isCosmetic: z$1.ZodBoolean;
|
|
391
|
+
isFemale: z$1.ZodBoolean;
|
|
392
|
+
}, z$1.core.$strip>>;
|
|
393
|
+
export type PokemonRecords = z$1.infer<typeof pokemonListSchema>;
|
|
394
|
+
export declare const pokemonI18nSchema: z$1.ZodObject<{
|
|
395
|
+
id: z$1.ZodString;
|
|
396
|
+
championsId: z$1.ZodString;
|
|
397
|
+
name: z$1.ZodString;
|
|
398
|
+
formName: z$1.ZodOptional<z$1.ZodString>;
|
|
399
|
+
}, z$1.core.$strip>;
|
|
400
|
+
export type PokemonI18nRecord = z$1.infer<typeof pokemonI18nSchema>;
|
|
401
|
+
export declare const pokemonI18nRecordsSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
402
|
+
id: z$1.ZodString;
|
|
403
|
+
championsId: z$1.ZodString;
|
|
404
|
+
name: z$1.ZodString;
|
|
405
|
+
formName: z$1.ZodOptional<z$1.ZodString>;
|
|
406
|
+
}, z$1.core.$strip>>;
|
|
407
|
+
export type PokemonI18nRecords = z$1.infer<typeof pokemonI18nRecordsSchema>;
|
|
408
|
+
export declare const pokemonMovesRecordSchema: z$1.ZodObject<{
|
|
409
|
+
id: z$1.ZodString;
|
|
410
|
+
moves: z$1.ZodArray<z$1.ZodString>;
|
|
411
|
+
}, z$1.core.$strip>;
|
|
412
|
+
export type PokemonMovesRecord = z$1.infer<typeof pokemonMovesRecordSchema>;
|
|
413
|
+
export declare const pokemonMovesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
414
|
+
id: z$1.ZodString;
|
|
415
|
+
moves: z$1.ZodArray<z$1.ZodString>;
|
|
416
|
+
}, z$1.core.$strip>>;
|
|
417
|
+
export type PokemonMovesRecords = z$1.infer<typeof pokemonMovesSchema>;
|
|
419
418
|
//#endregion
|
|
420
|
-
export { AbilityRecord, AbilityRecords, BattleStateRecord, BattleStateRecords, I18nRecord, I18nRecords, ItemI18nRecord, ItemI18nRecords, ItemRecord, ItemRecords, MoveRecord, MoveRecords, PokemonI18nRecord, PokemonI18nRecords, PokemonMovesRecord, PokemonMovesRecords, PokemonRecord, PokemonRecords, abilitiesSchema, abilitySchema, baseSchema, battleStateSchema, battleStatesSchema, championsLinkedBaseSchema, i18nRecordsSchema, i18nSchema, itemI18nRecordsSchema, itemI18nSchema, itemSchema, itemsSchema, moveSchema, movesSchema, pokemonI18nRecordsSchema, pokemonI18nSchema, pokemonListSchema, pokemonMovesRecordSchema, pokemonMovesSchema, pokemonSchema, slugSchema };
|
|
421
419
|
//# sourceMappingURL=schemas.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.mts","names":[],"sources":["../../src/lib-next/schemas.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"schemas.d.mts","names":[],"sources":["../../src/lib-next/schemas.ts"],"mappings":";;qBAUa,YAAU,IAAA;qBAEV,YAAU,IAAA;;;;;GAKrB,IAAA,KAAA;qBAEW,2BAAyB,IAAA;;;;;;;GASpC,IAAA,KAAA;qBAEW,YAAU,IAAA;;;;;;GAMrB,IAAA,KAAA;YACU,aAAa,IAAE,aAAa;qBAC3B,mBAAiB,IAAA,SAAA,IAAA;;;;;;GAAsB,IAAA,KAAA;YACxC,cAAc,IAAE,aAAa;qBAE5B,gBAAc,IAAA;;;;;;;GAEzB,IAAA,KAAA;YACU,iBAAiB,IAAE,aAAa;qBAC/B,uBAAqB,IAAA,SAAA,IAAA;;;;;;;GAA0B,IAAA,KAAA;YAChD,kBAAkB,IAAE,aAAa;qBAEhC,YAAU,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWrB,IAAA,KAAA;YACU,aAAa,IAAE,aAAa;qBAC3B,aAAW,IAAA,SAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsB,IAAA,KAAA;YAClC,cAAc,IAAE,aAAa;qBAE5B,eAAa,IAAA;;;;;;;GAAuC,IAAA,KAAA;YACrD,gBAAgB,IAAE,aAAa;qBAC9B,iBAAe,IAAA,SAAA,IAAA;;;;;;;GAAyB,IAAA,KAAA;YACzC,iBAAiB,IAAE,aAAa;qBAE/B,YAAU,IAAA;;;;;;;;;;;;;;;;;;GAGrB,IAAA,KAAA;YACU,aAAa,IAAE,aAAa;qBAC3B,aAAW,IAAA,SAAA,IAAA;;;;;;;;;;;;;;;;;;GAAsB,IAAA,KAAA;YAClC,cAAc,IAAE,aAAa;qBAE5B,mBAAiB,IAAA;;;;;;;;GAE5B,IAAA,KAAA;YACU,oBAAoB,IAAE,aAAa;qBAClC,oBAAkB,IAAA,SAAA,IAAA;;;;;;;;GAA6B,IAAA,KAAA;YAChD,qBAAqB,IAAE,aAAa;qBAEnC,eAAa,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyBxB,IAAA,KAAA;YACU,gBAAgB,IAAE,aAAa;qBAC9B,mBAAiB,IAAA,SAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyB,IAAA,KAAA;YAC3C,iBAAiB,IAAE,aAAa;qBAE/B,mBAAiB,IAAA;;;;;GAK5B,IAAA,KAAA;YACU,oBAAoB,IAAE,aAAa;qBAClC,0BAAwB,IAAA,SAAA,IAAA;;;;;GAA6B,IAAA,KAAA;YACtD,qBAAqB,IAAE,aAAa;qBAEnC,0BAAwB,IAAA;;;GAGnC,IAAA,KAAA;YACU,qBAAqB,IAAE,aAAa;qBAEnC,oBAAkB,IAAA,SAAA,IAAA;;;GAAoC,IAAA,KAAA;YACvD,sBAAsB,IAAE,aAAa"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as pokemonListSchema, a as battleStatesSchema, b as pokemonSchema, c as i18nSchema, d as itemSchema, f as itemsSchema, g as pokemonI18nSchema, h as pokemonI18nRecordsSchema, i as battleStateSchema, l as itemI18nRecordsSchema, m as movesSchema, n as abilitySchema, o as championsLinkedBaseSchema, p as moveSchema, r as baseSchema, s as i18nRecordsSchema, t as abilitiesSchema, u as itemI18nSchema, v as pokemonMovesRecordSchema, x as slugSchema, y as pokemonMovesSchema } from "../schemas-
|
|
1
|
+
import { _ as pokemonListSchema, a as battleStatesSchema, b as pokemonSchema, c as i18nSchema, d as itemSchema, f as itemsSchema, g as pokemonI18nSchema, h as pokemonI18nRecordsSchema, i as battleStateSchema, l as itemI18nRecordsSchema, m as movesSchema, n as abilitySchema, o as championsLinkedBaseSchema, p as moveSchema, r as baseSchema, s as i18nRecordsSchema, t as abilitiesSchema, u as itemI18nSchema, v as pokemonMovesRecordSchema, x as slugSchema, y as pokemonMovesSchema } from "../schemas-Bj1AIX0P.mjs";
|
|
2
2
|
export { abilitiesSchema, abilitySchema, baseSchema, battleStateSchema, battleStatesSchema, championsLinkedBaseSchema, i18nRecordsSchema, i18nSchema, itemI18nRecordsSchema, itemI18nSchema, itemSchema, itemsSchema, moveSchema, movesSchema, pokemonI18nRecordsSchema, pokemonI18nSchema, pokemonListSchema, pokemonMovesRecordSchema, pokemonMovesSchema, pokemonSchema, slugSchema };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { c as itemCategories, d as moveClasses, f as moveTargets, h as pokemonTypes, n as battleStates, u as moveCategories } from "./enums-DlMg7WLl.mjs";
|
|
2
|
+
import { z as z$1 } from "zod";
|
|
3
|
+
//#region src/lib-next/schemas.ts
|
|
4
|
+
const slugSchema = z$1.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
5
|
+
const baseSchema = z$1.object({
|
|
6
|
+
id: z$1.string(),
|
|
7
|
+
slug: slugSchema,
|
|
8
|
+
name: z$1.string(),
|
|
9
|
+
description: z$1.string()
|
|
10
|
+
});
|
|
11
|
+
const championsLinkedBaseSchema = z$1.object({
|
|
12
|
+
id: slugSchema,
|
|
13
|
+
championsId: z$1.string(),
|
|
14
|
+
pokeApiId: z$1.number().int().positive().nullish(),
|
|
15
|
+
slug: slugSchema,
|
|
16
|
+
name: z$1.string(),
|
|
17
|
+
description: z$1.string()
|
|
18
|
+
});
|
|
19
|
+
const i18nSchema = z$1.object({
|
|
20
|
+
id: z$1.string(),
|
|
21
|
+
slug: slugSchema,
|
|
22
|
+
slugLoc: slugSchema,
|
|
23
|
+
name: z$1.string(),
|
|
24
|
+
description: z$1.string()
|
|
25
|
+
});
|
|
26
|
+
const i18nRecordsSchema = z$1.array(i18nSchema);
|
|
27
|
+
const itemI18nSchema = i18nSchema.extend({ pluralName: z$1.string() });
|
|
28
|
+
const itemI18nRecordsSchema = z$1.array(itemI18nSchema);
|
|
29
|
+
const moveSchema = championsLinkedBaseSchema.extend({
|
|
30
|
+
type: z$1.enum(pokemonTypes),
|
|
31
|
+
category: z$1.enum(moveCategories),
|
|
32
|
+
power: z$1.number().min(0).max(999),
|
|
33
|
+
pp: z$1.number().min(0).max(99),
|
|
34
|
+
accuracy: z$1.number().min(0).max(101),
|
|
35
|
+
priority: z$1.number().min(-10).max(10),
|
|
36
|
+
target: z$1.enum(moveTargets),
|
|
37
|
+
classification: z$1.array(z$1.enum(moveClasses)),
|
|
38
|
+
contact: z$1.boolean(),
|
|
39
|
+
usable: z$1.boolean()
|
|
40
|
+
});
|
|
41
|
+
const movesSchema = z$1.array(moveSchema);
|
|
42
|
+
const abilitySchema = championsLinkedBaseSchema.extend({});
|
|
43
|
+
const abilitiesSchema = z$1.array(abilitySchema);
|
|
44
|
+
const itemSchema = championsLinkedBaseSchema.extend({
|
|
45
|
+
pluralName: z$1.string(),
|
|
46
|
+
categories: z$1.array(z$1.enum(itemCategories))
|
|
47
|
+
});
|
|
48
|
+
const itemsSchema = z$1.array(itemSchema);
|
|
49
|
+
const battleStateSchema = baseSchema.extend({ state: z$1.enum(battleStates) });
|
|
50
|
+
const battleStatesSchema = z$1.array(battleStateSchema);
|
|
51
|
+
const pokemonSchema = z$1.object({
|
|
52
|
+
id: slugSchema,
|
|
53
|
+
nid: slugSchema,
|
|
54
|
+
name: z$1.string(),
|
|
55
|
+
formName: z$1.string().optional(),
|
|
56
|
+
pokeApiId: z$1.number().int().positive(),
|
|
57
|
+
pokeApiFormId: z$1.number().int().positive().optional(),
|
|
58
|
+
showdownId: z$1.string(),
|
|
59
|
+
baseSpecies: slugSchema.optional(),
|
|
60
|
+
championsId: z$1.string().regex(/^\d{7}$/),
|
|
61
|
+
type1: z$1.enum(pokemonTypes),
|
|
62
|
+
type2: z$1.enum(pokemonTypes).nullable(),
|
|
63
|
+
abilities: z$1.array(slugSchema),
|
|
64
|
+
baseHp: z$1.number().int().min(1),
|
|
65
|
+
baseAtk: z$1.number().int().min(1),
|
|
66
|
+
baseDef: z$1.number().int().min(1),
|
|
67
|
+
baseSpAtk: z$1.number().int().min(1),
|
|
68
|
+
baseSpDef: z$1.number().int().min(1),
|
|
69
|
+
baseSpeed: z$1.number().int().min(1),
|
|
70
|
+
height: z$1.number().int().min(-1),
|
|
71
|
+
weight: z$1.number().int().min(-1),
|
|
72
|
+
isForm: z$1.boolean(),
|
|
73
|
+
isBattleOnly: z$1.boolean(),
|
|
74
|
+
isCosmetic: z$1.boolean(),
|
|
75
|
+
isFemale: z$1.boolean()
|
|
76
|
+
});
|
|
77
|
+
const pokemonListSchema = z$1.array(pokemonSchema);
|
|
78
|
+
const pokemonI18nSchema = z$1.object({
|
|
79
|
+
id: slugSchema,
|
|
80
|
+
championsId: z$1.string().regex(/^\d{7}$/),
|
|
81
|
+
name: z$1.string(),
|
|
82
|
+
formName: z$1.string().optional()
|
|
83
|
+
});
|
|
84
|
+
const pokemonI18nRecordsSchema = z$1.array(pokemonI18nSchema);
|
|
85
|
+
const pokemonMovesRecordSchema = z$1.object({
|
|
86
|
+
id: slugSchema,
|
|
87
|
+
moves: z$1.array(slugSchema)
|
|
88
|
+
});
|
|
89
|
+
const pokemonMovesSchema = z$1.array(pokemonMovesRecordSchema);
|
|
90
|
+
//#endregion
|
|
91
|
+
export { pokemonListSchema as _, battleStatesSchema as a, pokemonSchema as b, i18nSchema as c, itemSchema as d, itemsSchema as f, pokemonI18nSchema as g, pokemonI18nRecordsSchema as h, battleStateSchema as i, itemI18nRecordsSchema as l, movesSchema as m, abilitySchema as n, championsLinkedBaseSchema as o, moveSchema as p, baseSchema as r, i18nRecordsSchema as s, abilitiesSchema as t, itemI18nSchema as u, pokemonMovesRecordSchema as v, slugSchema as x, pokemonMovesSchema as y };
|
|
92
|
+
|
|
93
|
+
//# sourceMappingURL=schemas-Bj1AIX0P.mjs.map
|