@skyblock-finance/actions 0.16.1 → 0.18.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/data/$schema.json +34 -0
- package/data/forging.json +1168 -0
- package/data/merchants/einary.json +1 -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.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>
|