@skyblock-finance/actions 0.16.1 → 0.18.1
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/data/$schema.json +34 -0
- package/data/forging.json +1168 -0
- package/data/merchants/einary.json +20 -1
- package/data/merchants/phillip.json +1 -1
- package/data/merchants/researcher-beryl.json +25 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/data.d.ts +1 -0
- package/dist/data.js +4 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/npcs.d.ts +1 -1
- package/dist/npcs.js +7 -0
- package/dist/schema.d.ts +29 -0
- package/dist/schema.js +8 -1
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
- package/source/data.ts +3 -0
- package/source/index.ts +2 -0
- package/source/npcs.ts +8 -0
- package/source/schema.ts +8 -0
- package/source/types.ts +2 -0
package/dist/schema.d.ts
CHANGED
|
@@ -26,6 +26,11 @@ export declare const actionIoItemSchema: z.ZodObject<{
|
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
type: z.ZodLiteral<"item">;
|
|
28
28
|
}, z.core.$strict>;
|
|
29
|
+
export declare const actionIoPetSchema: z.ZodObject<{
|
|
30
|
+
amount: z.ZodNumber;
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
type: z.ZodLiteral<"pet">;
|
|
33
|
+
}, z.core.$strict>;
|
|
29
34
|
export declare const actionIoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
35
|
amount: z.ZodNumber;
|
|
31
36
|
id: z.ZodString;
|
|
@@ -50,6 +55,10 @@ export declare const actionIoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
50
55
|
amount: z.ZodNumber;
|
|
51
56
|
id: z.ZodString;
|
|
52
57
|
type: z.ZodLiteral<"item">;
|
|
58
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
59
|
+
amount: z.ZodNumber;
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
type: z.ZodLiteral<"pet">;
|
|
53
62
|
}, z.core.$strict>]>;
|
|
54
63
|
export declare const npcIdSchema: z.ZodEnum<{
|
|
55
64
|
ADVENTURER: "ADVENTURER";
|
|
@@ -65,6 +74,7 @@ export declare const npcIdSchema: z.ZodEnum<{
|
|
|
65
74
|
MARTHOS: "MARTHOS";
|
|
66
75
|
PHILLIP: "PHILLIP";
|
|
67
76
|
PLUMBER_JOE: "PLUMBER_JOE";
|
|
77
|
+
RESEARCHER_BERYL: "RESEARCHER_BERYL";
|
|
68
78
|
SEYMOUR: "SEYMOUR";
|
|
69
79
|
SKYMART: "SKYMART";
|
|
70
80
|
SMITHMONGER: "SMITHMONGER";
|
|
@@ -98,6 +108,7 @@ export declare const actionPlaceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
98
108
|
MARTHOS: "MARTHOS";
|
|
99
109
|
PHILLIP: "PHILLIP";
|
|
100
110
|
PLUMBER_JOE: "PLUMBER_JOE";
|
|
111
|
+
RESEARCHER_BERYL: "RESEARCHER_BERYL";
|
|
101
112
|
SEYMOUR: "SEYMOUR";
|
|
102
113
|
SKYMART: "SKYMART";
|
|
103
114
|
SMITHMONGER: "SMITHMONGER";
|
|
@@ -158,6 +169,10 @@ export declare const actionSchema: z.ZodObject<{
|
|
|
158
169
|
amount: z.ZodNumber;
|
|
159
170
|
id: z.ZodString;
|
|
160
171
|
type: z.ZodLiteral<"item">;
|
|
172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
173
|
+
amount: z.ZodNumber;
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
type: z.ZodLiteral<"pet">;
|
|
161
176
|
}, z.core.$strict>]>>;
|
|
162
177
|
outputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
163
178
|
amount: z.ZodNumber;
|
|
@@ -183,6 +198,10 @@ export declare const actionSchema: z.ZodObject<{
|
|
|
183
198
|
amount: z.ZodNumber;
|
|
184
199
|
id: z.ZodString;
|
|
185
200
|
type: z.ZodLiteral<"item">;
|
|
201
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
202
|
+
amount: z.ZodNumber;
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
type: z.ZodLiteral<"pet">;
|
|
186
205
|
}, z.core.$strict>]>>;
|
|
187
206
|
place: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
188
207
|
left: z.ZodObject<{
|
|
@@ -213,6 +232,7 @@ export declare const actionSchema: z.ZodObject<{
|
|
|
213
232
|
MARTHOS: "MARTHOS";
|
|
214
233
|
PHILLIP: "PHILLIP";
|
|
215
234
|
PLUMBER_JOE: "PLUMBER_JOE";
|
|
235
|
+
RESEARCHER_BERYL: "RESEARCHER_BERYL";
|
|
216
236
|
SEYMOUR: "SEYMOUR";
|
|
217
237
|
SKYMART: "SKYMART";
|
|
218
238
|
SMITHMONGER: "SMITHMONGER";
|
|
@@ -273,6 +293,10 @@ export declare const actionDefinitionSchema: z.ZodObject<{
|
|
|
273
293
|
amount: z.ZodNumber;
|
|
274
294
|
id: z.ZodString;
|
|
275
295
|
type: z.ZodLiteral<"item">;
|
|
296
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
297
|
+
amount: z.ZodNumber;
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
type: z.ZodLiteral<"pet">;
|
|
276
300
|
}, z.core.$strict>]>>;
|
|
277
301
|
outputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
278
302
|
amount: z.ZodNumber;
|
|
@@ -298,6 +322,10 @@ export declare const actionDefinitionSchema: z.ZodObject<{
|
|
|
298
322
|
amount: z.ZodNumber;
|
|
299
323
|
id: z.ZodString;
|
|
300
324
|
type: z.ZodLiteral<"item">;
|
|
325
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
326
|
+
amount: z.ZodNumber;
|
|
327
|
+
id: z.ZodString;
|
|
328
|
+
type: z.ZodLiteral<"pet">;
|
|
301
329
|
}, z.core.$strict>]>>;
|
|
302
330
|
place: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
303
331
|
left: z.ZodObject<{
|
|
@@ -328,6 +356,7 @@ export declare const actionDefinitionSchema: z.ZodObject<{
|
|
|
328
356
|
MARTHOS: "MARTHOS";
|
|
329
357
|
PHILLIP: "PHILLIP";
|
|
330
358
|
PLUMBER_JOE: "PLUMBER_JOE";
|
|
359
|
+
RESEARCHER_BERYL: "RESEARCHER_BERYL";
|
|
331
360
|
SEYMOUR: "SEYMOUR";
|
|
332
361
|
SKYMART: "SKYMART";
|
|
333
362
|
SMITHMONGER: "SMITHMONGER";
|
package/dist/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.actionDefinitionSchema = exports.actionSchema = exports.actionRequirementSchema = exports.actionPlaceSchema = exports.npcIdSchema = exports.actionIoSchema = exports.actionIoItemSchema = exports.actionIoCurrencySchema = exports.actionIoCrystalSchema = void 0;
|
|
3
|
+
exports.actionDefinitionSchema = exports.actionSchema = exports.actionRequirementSchema = exports.actionPlaceSchema = exports.npcIdSchema = exports.actionIoSchema = exports.actionIoPetSchema = exports.actionIoItemSchema = exports.actionIoCurrencySchema = exports.actionIoCrystalSchema = void 0;
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
5
|
exports.actionIoCrystalSchema = v4_1.z.strictObject({
|
|
6
6
|
amount: v4_1.z.number(),
|
|
@@ -29,10 +29,16 @@ exports.actionIoItemSchema = v4_1.z.strictObject({
|
|
|
29
29
|
id: v4_1.z.string(),
|
|
30
30
|
type: v4_1.z.literal('item'),
|
|
31
31
|
});
|
|
32
|
+
exports.actionIoPetSchema = v4_1.z.strictObject({
|
|
33
|
+
amount: v4_1.z.number(),
|
|
34
|
+
id: v4_1.z.string(),
|
|
35
|
+
type: v4_1.z.literal('pet'),
|
|
36
|
+
});
|
|
32
37
|
exports.actionIoSchema = v4_1.z.discriminatedUnion('type', [
|
|
33
38
|
exports.actionIoCrystalSchema,
|
|
34
39
|
exports.actionIoCurrencySchema,
|
|
35
40
|
exports.actionIoItemSchema,
|
|
41
|
+
exports.actionIoPetSchema,
|
|
36
42
|
]);
|
|
37
43
|
exports.npcIdSchema = v4_1.z.enum([
|
|
38
44
|
'ADVENTURER',
|
|
@@ -48,6 +54,7 @@ exports.npcIdSchema = v4_1.z.enum([
|
|
|
48
54
|
'MARTHOS',
|
|
49
55
|
'PHILLIP',
|
|
50
56
|
'PLUMBER_JOE',
|
|
57
|
+
'RESEARCHER_BERYL',
|
|
51
58
|
'SEYMOUR',
|
|
52
59
|
'SKYMART',
|
|
53
60
|
'SMITHMONGER',
|
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { actionIoCrystalSchema, actionIoCurrencySchema, actionIoItemSchema, actionIoSchema, actionRequirementSchema, actionSchema, npcIdSchema } from './schema';
|
|
2
|
+
import { actionIoCrystalSchema, actionIoCurrencySchema, actionIoItemSchema, actionIoPetSchema, actionIoSchema, actionRequirementSchema, actionSchema, npcIdSchema } from './schema';
|
|
3
3
|
export type Action = z.output<typeof actionSchema>;
|
|
4
4
|
export type ActionCurrency = z.output<typeof actionIoCurrencySchema.shape.id>;
|
|
5
5
|
export type ActionIo = z.output<typeof actionIoSchema>;
|
|
6
6
|
export type ActionIoCrystal = z.output<typeof actionIoCrystalSchema>;
|
|
7
7
|
export type ActionIoCurrency = z.output<typeof actionIoCurrencySchema>;
|
|
8
8
|
export type ActionIoItem = z.output<typeof actionIoItemSchema>;
|
|
9
|
+
export type ActionIoPet = z.output<typeof actionIoPetSchema>;
|
|
9
10
|
export type ActionRequirement = z.output<typeof actionRequirementSchema>;
|
|
10
11
|
export type NpcId = z.output<typeof npcIdSchema>;
|
package/package.json
CHANGED
package/source/data.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { actions as _lotusEater } from '../data/merchants/lotus-eater.json'
|
|
|
22
22
|
import { actions as _marthos } from '../data/merchants/marthos.json'
|
|
23
23
|
import { actions as _phillip } from '../data/merchants/phillip.json'
|
|
24
24
|
import { actions as _plumberJoe } from '../data/merchants/plumber-joe.json'
|
|
25
|
+
import { actions as _researcherBeryl } from '../data/merchants/researcher-beryl.json'
|
|
25
26
|
import { actions as _seymour } from '../data/merchants/seymour.json'
|
|
26
27
|
import { actions as _skymart } from '../data/merchants/skymart.json'
|
|
27
28
|
import { actions as _smithmonger } from '../data/merchants/smithmonger.json'
|
|
@@ -67,6 +68,7 @@ export const lotusEater = _lotusEater as Action[]
|
|
|
67
68
|
export const marthos = _marthos as Action[]
|
|
68
69
|
export const phillip = _phillip as Action[]
|
|
69
70
|
export const plumberJoe = _plumberJoe as Action[]
|
|
71
|
+
export const researcherBeryl = _researcherBeryl as Action[]
|
|
70
72
|
export const seymour = _seymour as Action[]
|
|
71
73
|
export const skymart = _skymart as Action[]
|
|
72
74
|
export const smithmonger = _smithmonger as Action[]
|
|
@@ -136,6 +138,7 @@ export const allActions: Action[] = [
|
|
|
136
138
|
...northStarsCrafts,
|
|
137
139
|
...phillip,
|
|
138
140
|
...plumberJoe,
|
|
141
|
+
...researcherBeryl,
|
|
139
142
|
...seymour,
|
|
140
143
|
...skymart,
|
|
141
144
|
...smithmonger,
|
package/source/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export {
|
|
|
4
4
|
actionIoCrystalSchema,
|
|
5
5
|
actionIoCurrencySchema,
|
|
6
6
|
actionIoItemSchema,
|
|
7
|
+
actionIoPetSchema,
|
|
7
8
|
actionIoSchema,
|
|
8
9
|
actionPlaceSchema,
|
|
9
10
|
actionRequirementSchema,
|
|
@@ -17,6 +18,7 @@ export {
|
|
|
17
18
|
ActionIoCrystal,
|
|
18
19
|
ActionIoCurrency,
|
|
19
20
|
ActionIoItem,
|
|
21
|
+
ActionIoPet,
|
|
20
22
|
ActionRequirement,
|
|
21
23
|
NpcId,
|
|
22
24
|
} from './types'
|
package/source/npcs.ts
CHANGED
|
@@ -102,6 +102,14 @@ const _npcs: Record<NpcId, NpcMetadata> = {
|
|
|
102
102
|
},
|
|
103
103
|
name: 'Plumber Joe',
|
|
104
104
|
},
|
|
105
|
+
RESEARCHER_BERYL: {
|
|
106
|
+
links: {
|
|
107
|
+
communityWiki:
|
|
108
|
+
'https://hypixelskyblock.minecraft.wiki/w/Researcher_Beryl',
|
|
109
|
+
hypixelWiki: null,
|
|
110
|
+
},
|
|
111
|
+
name: 'Researcher Beryl',
|
|
112
|
+
},
|
|
105
113
|
SEYMOUR: {
|
|
106
114
|
links: {
|
|
107
115
|
communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Seymour',
|
package/source/schema.ts
CHANGED
|
@@ -30,10 +30,17 @@ export const actionIoItemSchema = z.strictObject({
|
|
|
30
30
|
type: z.literal('item'),
|
|
31
31
|
})
|
|
32
32
|
|
|
33
|
+
export const actionIoPetSchema = z.strictObject({
|
|
34
|
+
amount: z.number(),
|
|
35
|
+
id: z.string(),
|
|
36
|
+
type: z.literal('pet'),
|
|
37
|
+
})
|
|
38
|
+
|
|
33
39
|
export const actionIoSchema = z.discriminatedUnion('type', [
|
|
34
40
|
actionIoCrystalSchema,
|
|
35
41
|
actionIoCurrencySchema,
|
|
36
42
|
actionIoItemSchema,
|
|
43
|
+
actionIoPetSchema,
|
|
37
44
|
])
|
|
38
45
|
|
|
39
46
|
export const npcIdSchema = z.enum([
|
|
@@ -50,6 +57,7 @@ export const npcIdSchema = z.enum([
|
|
|
50
57
|
'MARTHOS',
|
|
51
58
|
'PHILLIP',
|
|
52
59
|
'PLUMBER_JOE',
|
|
60
|
+
'RESEARCHER_BERYL',
|
|
53
61
|
'SEYMOUR',
|
|
54
62
|
'SKYMART',
|
|
55
63
|
'SMITHMONGER',
|
package/source/types.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
actionIoCrystalSchema,
|
|
5
5
|
actionIoCurrencySchema,
|
|
6
6
|
actionIoItemSchema,
|
|
7
|
+
actionIoPetSchema,
|
|
7
8
|
actionIoSchema,
|
|
8
9
|
actionRequirementSchema,
|
|
9
10
|
actionSchema,
|
|
@@ -16,5 +17,6 @@ export type ActionIo = z.output<typeof actionIoSchema>
|
|
|
16
17
|
export type ActionIoCrystal = z.output<typeof actionIoCrystalSchema>
|
|
17
18
|
export type ActionIoCurrency = z.output<typeof actionIoCurrencySchema>
|
|
18
19
|
export type ActionIoItem = z.output<typeof actionIoItemSchema>
|
|
20
|
+
export type ActionIoPet = z.output<typeof actionIoPetSchema>
|
|
19
21
|
export type ActionRequirement = z.output<typeof actionRequirementSchema>
|
|
20
22
|
export type NpcId = z.output<typeof npcIdSchema>
|