@skyblock-finance/actions 0.6.1 → 0.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/dist/schema.d.ts CHANGED
@@ -37,11 +37,17 @@ export declare const actionIoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
37
37
  type: z.ZodLiteral<"item">;
38
38
  }, z.core.$strict>]>;
39
39
  export declare const npcIdSchema: z.ZodEnum<{
40
+ ADVENTURER: "ADVENTURER";
40
41
  ALCHEMIST: "ALCHEMIST";
41
- ELIZABETH: "ELIZABETH";
42
+ BUBU: "BUBU";
42
43
  EINARY: "EINARY";
44
+ ELIZABETH: "ELIZABETH";
45
+ FISHING_MERCHANT: "FISHING_MERCHANT";
43
46
  PHILLIP: "PHILLIP";
47
+ PLUMBER_JOE: "PLUMBER_JOE";
48
+ SEYMOUR: "SEYMOUR";
44
49
  SKYMART: "SKYMART";
50
+ SMITHMONGER: "SMITHMONGER";
45
51
  }>;
46
52
  export declare const actionPlaceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
53
  left: z.ZodObject<{
@@ -57,11 +63,17 @@ export declare const actionPlaceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
57
63
  type: z.ZodLiteral<"anvil">;
58
64
  }, z.core.$strict>, z.ZodObject<{
59
65
  id: z.ZodEnum<{
66
+ ADVENTURER: "ADVENTURER";
60
67
  ALCHEMIST: "ALCHEMIST";
61
- ELIZABETH: "ELIZABETH";
68
+ BUBU: "BUBU";
62
69
  EINARY: "EINARY";
70
+ ELIZABETH: "ELIZABETH";
71
+ FISHING_MERCHANT: "FISHING_MERCHANT";
63
72
  PHILLIP: "PHILLIP";
73
+ PLUMBER_JOE: "PLUMBER_JOE";
74
+ SEYMOUR: "SEYMOUR";
64
75
  SKYMART: "SKYMART";
76
+ SMITHMONGER: "SMITHMONGER";
65
77
  }>;
66
78
  type: z.ZodLiteral<"npc">;
67
79
  }, z.core.$strict>, z.ZodObject<{
@@ -126,11 +138,17 @@ export declare const actionSchema: z.ZodObject<{
126
138
  type: z.ZodLiteral<"anvil">;
127
139
  }, z.core.$strict>, z.ZodObject<{
128
140
  id: z.ZodEnum<{
141
+ ADVENTURER: "ADVENTURER";
129
142
  ALCHEMIST: "ALCHEMIST";
130
- ELIZABETH: "ELIZABETH";
143
+ BUBU: "BUBU";
131
144
  EINARY: "EINARY";
145
+ ELIZABETH: "ELIZABETH";
146
+ FISHING_MERCHANT: "FISHING_MERCHANT";
132
147
  PHILLIP: "PHILLIP";
148
+ PLUMBER_JOE: "PLUMBER_JOE";
149
+ SEYMOUR: "SEYMOUR";
133
150
  SKYMART: "SKYMART";
151
+ SMITHMONGER: "SMITHMONGER";
134
152
  }>;
135
153
  type: z.ZodLiteral<"npc">;
136
154
  }, z.core.$strict>, z.ZodObject<{
@@ -197,11 +215,17 @@ export declare const actionDefinitionSchema: z.ZodObject<{
197
215
  type: z.ZodLiteral<"anvil">;
198
216
  }, z.core.$strict>, z.ZodObject<{
199
217
  id: z.ZodEnum<{
218
+ ADVENTURER: "ADVENTURER";
200
219
  ALCHEMIST: "ALCHEMIST";
201
- ELIZABETH: "ELIZABETH";
220
+ BUBU: "BUBU";
202
221
  EINARY: "EINARY";
222
+ ELIZABETH: "ELIZABETH";
223
+ FISHING_MERCHANT: "FISHING_MERCHANT";
203
224
  PHILLIP: "PHILLIP";
225
+ PLUMBER_JOE: "PLUMBER_JOE";
226
+ SEYMOUR: "SEYMOUR";
204
227
  SKYMART: "SKYMART";
228
+ SMITHMONGER: "SMITHMONGER";
205
229
  }>;
206
230
  type: z.ZodLiteral<"npc">;
207
231
  }, z.core.$strict>, z.ZodObject<{
package/dist/schema.js CHANGED
@@ -30,11 +30,17 @@ exports.actionIoSchema = v4_1.z.discriminatedUnion('type', [
30
30
  exports.actionIoItemSchema,
31
31
  ]);
32
32
  exports.npcIdSchema = v4_1.z.enum([
33
+ 'ADVENTURER',
33
34
  'ALCHEMIST',
34
- 'ELIZABETH',
35
+ 'BUBU',
35
36
  'EINARY',
37
+ 'ELIZABETH',
38
+ 'FISHING_MERCHANT',
36
39
  'PHILLIP',
40
+ 'PLUMBER_JOE',
41
+ 'SEYMOUR',
37
42
  'SKYMART',
43
+ 'SMITHMONGER',
38
44
  ]);
39
45
  exports.actionPlaceSchema = v4_1.z.discriminatedUnion('type', [
40
46
  v4_1.z.strictObject({
package/package.json CHANGED
@@ -43,5 +43,5 @@
43
43
  "sideEffects": false,
44
44
  "type": "commonjs",
45
45
  "types": "dist/index.d.ts",
46
- "version": "0.6.1"
46
+ "version": "0.7.0"
47
47
  }
package/source/data.ts CHANGED
@@ -1,37 +1,52 @@
1
- import { actions as _bits } from '../data/bits.json'
2
1
  import { actions as _bitsCrafts } from '../data/bits-crafts.json'
2
+ import { actions as _bubu } from '../data/merchants/bubu.json'
3
3
  import { actions as _crimsonIsle } from '../data/crimson-isle.json'
4
+ import { actions as _einary } from '../data/merchants/einary.json'
5
+ import { actions as _elizabeth } from '../data/merchants/elizabeth.json'
6
+ import { actions as _fishingMerchant } from '../data/merchants/fishing-merchant.json'
4
7
  import { actions as _gems } from '../data/gems.json'
5
- import { actions as _northStars } from '../data/north-stars.json'
6
8
  import { actions as _northStarsCrafts } from '../data/north-stars-crafts.json'
7
- import { actions as _pests } from '../data/pests.json'
8
- import { actions as _skymart } from '../data/skymart.json'
9
+ import { actions as _phillip } from '../data/merchants/phillip.json'
10
+ import { actions as _plumberJoe } from '../data/merchants/plumber-joe.json'
11
+ import { actions as _seymour } from '../data/merchants/seymour.json'
12
+ import { actions as _skymart } from '../data/merchants/skymart.json'
13
+ import { actions as _smithmonger } from '../data/merchants/smithmonger.json'
9
14
  import { actions as _wood } from '../data/wood.json'
10
15
  import { Action } from './types'
11
16
 
12
- export const bits = _bits as Action[]
17
+ // merchants
18
+
19
+ export const bubu = _bubu as Action[]
20
+ export const einary = _einary as Action[]
21
+ export const elizabeth = _elizabeth as Action[]
22
+ export const fishingMerchant = _fishingMerchant as Action[]
23
+ export const phillip = _phillip as Action[]
24
+ export const plumberJoe = _plumberJoe as Action[]
25
+ export const seymour = _seymour as Action[]
26
+ export const skymart = _skymart as Action[]
27
+ export const smithmonger = _smithmonger as Action[]
28
+
29
+ // other
30
+
13
31
  export const bitsCrafts = _bitsCrafts as Action[]
14
32
  export const crimsonIsle = _crimsonIsle as Action[]
15
-
16
33
  export const gems = _gems as Action[]
17
-
18
- export const northStars = _northStars as Action[]
19
34
  export const northStarsCrafts = _northStarsCrafts as Action[]
20
-
21
- export const pests = _pests as Action[]
22
-
23
- export const skymart = _skymart as Action[]
24
-
25
35
  export const wood = _wood as Action[]
26
36
 
27
37
  export const allActions = [
28
- ...bits,
29
38
  ...bitsCrafts,
39
+ ...bubu,
30
40
  ...crimsonIsle,
41
+ ...einary,
42
+ ...elizabeth,
43
+ ...fishingMerchant,
31
44
  ...gems,
32
- ...northStars,
33
45
  ...northStarsCrafts,
34
- ...pests,
46
+ ...phillip,
47
+ ...plumberJoe,
48
+ ...seymour,
35
49
  ...skymart,
50
+ ...smithmonger,
36
51
  ...wood,
37
52
  ]
package/source/npcs.ts CHANGED
@@ -1,65 +1,96 @@
1
1
  import { NpcId } from './types'
2
2
 
3
- export const npcs = new Map<
4
- NpcId,
5
- {
6
- name: string
7
- links: {
8
- communityWiki: `https://hypixelskyblock.minecraft.wiki/${string}` | null
9
- hypixelWiki: `https://wiki.hypixel.net/${string}` | null
10
- }
3
+ type NpcMetadata = {
4
+ name: string
5
+ links: {
6
+ communityWiki: `https://hypixelskyblock.minecraft.wiki/${string}` | null
7
+ hypixelWiki: `https://wiki.hypixel.net/${string}` | null
11
8
  }
12
- >([
13
- [
14
- 'ALCHEMIST',
15
- {
16
- name: 'Elizabeth',
17
- links: {
18
- communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Alchemist',
19
- hypixelWiki: 'https://wiki.hypixel.net/Alchemist',
20
- },
9
+ }
10
+
11
+ const _npcs: Record<NpcId, NpcMetadata> = {
12
+ ADVENTURER: {
13
+ name: 'Adventurer',
14
+ links: {
15
+ communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Adventurer',
16
+ hypixelWiki: 'https://wiki.hypixel.net/Adventurer',
17
+ },
18
+ },
19
+ ALCHEMIST: {
20
+ name: 'Elizabeth',
21
+ links: {
22
+ communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Alchemist',
23
+ hypixelWiki: 'https://wiki.hypixel.net/Alchemist',
24
+ },
25
+ },
26
+ BUBU: {
27
+ name: 'Bubu',
28
+ links: {
29
+ communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Bubu',
30
+ hypixelWiki: 'https://wiki.hypixel.net/Bubu',
31
+ },
32
+ },
33
+ ELIZABETH: {
34
+ name: 'Elizabeth',
35
+ links: {
36
+ communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Elizabeth',
37
+ hypixelWiki: 'https://wiki.hypixel.net/Elizabeth',
38
+ },
39
+ },
40
+ EINARY: {
41
+ name: 'Elizabeth',
42
+ links: {
43
+ communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Einary',
44
+ hypixelWiki: 'https://wiki.hypixel.net/Einary',
45
+ },
46
+ },
47
+ FISHING_MERCHANT: {
48
+ name: 'Fishing Merchant',
49
+ links: {
50
+ communityWiki:
51
+ 'https://hypixelskyblock.minecraft.wiki/w/Fishing_Merchant',
52
+ hypixelWiki: 'https://wiki.hypixel.net/Fishing_Merchant',
53
+ },
54
+ },
55
+ PHILLIP: {
56
+ name: 'Pesthunter Phillip',
57
+ links: {
58
+ communityWiki:
59
+ 'https://hypixelskyblock.minecraft.wiki/w/Pesthunter_Phillip',
60
+ hypixelWiki: 'https://wiki.hypixel.net/Pesthunter_Phillip',
21
61
  },
22
- ],
23
- [
24
- 'ELIZABETH',
25
- {
26
- name: 'Elizabeth',
27
- links: {
28
- communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Elizabeth',
29
- hypixelWiki: 'https://wiki.hypixel.net/Elizabeth',
30
- },
62
+ },
63
+ SEYMOUR: {
64
+ name: 'Seymour',
65
+ links: {
66
+ communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Seymour',
67
+ hypixelWiki: 'https://wiki.hypixel.net/Seymour',
31
68
  },
32
- ],
33
- [
34
- 'EINARY',
35
- {
36
- name: 'Elizabeth',
37
- links: {
38
- communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Einary',
39
- hypixelWiki: 'https://wiki.hypixel.net/Einary',
40
- },
69
+ },
70
+ SKYMART: {
71
+ name: 'SkyMart',
72
+ links: {
73
+ communityWiki:
74
+ 'https://hypixelskyblock.minecraft.wiki/w/The_Garden#The_Desk',
75
+ hypixelWiki: 'https://wiki.hypixel.net/Garden#Desk',
41
76
  },
42
- ],
43
- [
44
- 'PHILLIP',
45
- {
46
- name: 'Pesthunter Phillip',
47
- links: {
48
- communityWiki:
49
- 'https://hypixelskyblock.minecraft.wiki/w/Pesthunter_Phillip',
50
- hypixelWiki: 'https://wiki.hypixel.net/Pesthunter_Phillip',
51
- },
77
+ },
78
+ SMITHMONGER: {
79
+ name: 'Smithmonger',
80
+ links: {
81
+ communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Smithmonger',
82
+ hypixelWiki: 'https://wiki.hypixel.net/Smithmonger',
52
83
  },
53
- ],
54
- [
55
- 'SKYMART',
56
- {
57
- name: 'SkyMart',
58
- links: {
59
- communityWiki:
60
- 'https://hypixelskyblock.minecraft.wiki/w/The_Garden#The_Desk',
61
- hypixelWiki: 'https://wiki.hypixel.net/Garden#Desk',
62
- },
84
+ },
85
+ PLUMBER_JOE: {
86
+ name: 'Plumber Joe',
87
+ links: {
88
+ communityWiki: 'https://hypixelskyblock.minecraft.wiki/w/Plumber_Joe',
89
+ hypixelWiki: 'https://wiki.hypixel.net/Plumber_Joe',
63
90
  },
64
- ],
65
- ])
91
+ },
92
+ }
93
+
94
+ export const npcs = new Map<NpcId, NpcMetadata>(
95
+ Object.entries(_npcs) as [NpcId, NpcMetadata][],
96
+ )
package/source/schema.ts CHANGED
@@ -31,11 +31,17 @@ export const actionIoSchema = z.discriminatedUnion('type', [
31
31
  ])
32
32
 
33
33
  export const npcIdSchema = z.enum([
34
+ 'ADVENTURER',
34
35
  'ALCHEMIST',
35
- 'ELIZABETH',
36
+ 'BUBU',
36
37
  'EINARY',
38
+ 'ELIZABETH',
39
+ 'FISHING_MERCHANT',
37
40
  'PHILLIP',
41
+ 'PLUMBER_JOE',
42
+ 'SEYMOUR',
38
43
  'SKYMART',
44
+ 'SMITHMONGER',
39
45
  ])
40
46
 
41
47
  export const actionPlaceSchema = z.discriminatedUnion('type', [