@skyblock-finance/actions 0.3.0 → 0.4.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 CHANGED
@@ -1,40 +1,6 @@
1
1
  {
2
- "$schema": "https://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "additionalProperties": false,
4
- "definitions": {
5
- "currencyAction": {
6
- "additionalProperties": false,
7
- "properties": {
8
- "amount": {
9
- "type": "number"
10
- },
11
- "id": {
12
- "enum": ["bit", "coin", "gem", "mote", "north-star", "pest", "usd"],
13
- "type": "string"
14
- },
15
- "type": {
16
- "const": "currency"
17
- }
18
- },
19
- "required": ["amount", "id", "type"]
20
- },
21
- "itemAction": {
22
- "additionalProperties": false,
23
- "properties": {
24
- "amount": {
25
- "type": "number"
26
- },
27
- "id": {
28
- "type": "string"
29
- },
30
- "type": {
31
- "const": "item"
32
- }
33
- },
34
- "required": ["id", "amount", "type"],
35
- "type": "object"
36
- }
37
- },
38
4
  "properties": {
39
5
  "$schema": {
40
6
  "type": "string"
@@ -45,38 +11,150 @@
45
11
  "properties": {
46
12
  "inputs": {
47
13
  "items": {
48
- "oneOf": [
49
- { "$ref": "#/definitions/currencyAction" },
50
- { "$ref": "#/definitions/itemAction" }
51
- ],
52
- "type": "object"
14
+ "anyOf": [
15
+ {
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "amount": {
19
+ "type": "number"
20
+ },
21
+ "id": {
22
+ "enum": [
23
+ "bit",
24
+ "coin",
25
+ "gem",
26
+ "north-star",
27
+ "pest",
28
+ "second",
29
+ "usd"
30
+ ],
31
+ "type": "string"
32
+ },
33
+ "type": {
34
+ "const": "currency",
35
+ "type": "string"
36
+ }
37
+ },
38
+ "required": ["amount", "id", "type"],
39
+ "type": "object"
40
+ },
41
+ {
42
+ "additionalProperties": false,
43
+ "properties": {
44
+ "amount": {
45
+ "type": "number"
46
+ },
47
+ "id": {
48
+ "type": "string"
49
+ },
50
+ "type": {
51
+ "const": "item",
52
+ "type": "string"
53
+ }
54
+ },
55
+ "required": ["amount", "id", "type"],
56
+ "type": "object"
57
+ }
58
+ ]
53
59
  },
54
60
  "type": "array"
55
61
  },
56
62
  "outputs": {
57
63
  "items": {
58
- "oneOf": [
59
- { "$ref": "#/definitions/currencyAction" },
60
- { "$ref": "#/definitions/itemAction" }
61
- ],
62
- "type": "object"
64
+ "anyOf": [
65
+ {
66
+ "additionalProperties": false,
67
+ "properties": {
68
+ "amount": {
69
+ "type": "number"
70
+ },
71
+ "id": {
72
+ "enum": [
73
+ "bit",
74
+ "coin",
75
+ "gem",
76
+ "north-star",
77
+ "pest",
78
+ "second",
79
+ "usd"
80
+ ],
81
+ "type": "string"
82
+ },
83
+ "type": {
84
+ "const": "currency",
85
+ "type": "string"
86
+ }
87
+ },
88
+ "required": ["amount", "id", "type"],
89
+ "type": "object"
90
+ },
91
+ {
92
+ "additionalProperties": false,
93
+ "properties": {
94
+ "amount": {
95
+ "type": "number"
96
+ },
97
+ "id": {
98
+ "type": "string"
99
+ },
100
+ "type": {
101
+ "const": "item",
102
+ "type": "string"
103
+ }
104
+ },
105
+ "required": ["amount", "id", "type"],
106
+ "type": "object"
107
+ }
108
+ ]
63
109
  },
64
110
  "type": "array"
65
111
  },
66
112
  "place": {
67
113
  "items": {
68
- "oneOf": [
114
+ "anyOf": [
69
115
  {
70
116
  "additionalProperties": false,
71
117
  "properties": {
72
- "id": {
73
- "type": "string"
118
+ "left": {
119
+ "additionalProperties": false,
120
+ "properties": {
121
+ "amount": {
122
+ "type": "number"
123
+ },
124
+ "id": {
125
+ "type": "string"
126
+ },
127
+ "type": {
128
+ "const": "item",
129
+ "type": "string"
130
+ }
131
+ },
132
+ "required": ["amount", "id", "type"],
133
+ "type": "object"
134
+ },
135
+ "right": {
136
+ "additionalProperties": false,
137
+ "properties": {
138
+ "amount": {
139
+ "type": "number"
140
+ },
141
+ "id": {
142
+ "type": "string"
143
+ },
144
+ "type": {
145
+ "const": "item",
146
+ "type": "string"
147
+ }
148
+ },
149
+ "required": ["amount", "id", "type"],
150
+ "type": "object"
74
151
  },
75
152
  "type": {
76
- "const": "item"
153
+ "const": "anvil",
154
+ "type": "string"
77
155
  }
78
156
  },
79
- "required": ["id", "type"],
157
+ "required": ["left", "right", "type"],
80
158
  "type": "object"
81
159
  },
82
160
  {
@@ -86,7 +164,8 @@
86
164
  "type": "string"
87
165
  },
88
166
  "type": {
89
- "const": "npc"
167
+ "const": "npc",
168
+ "type": "string"
90
169
  }
91
170
  },
92
171
  "required": ["id", "type"],
@@ -96,9 +175,11 @@
96
175
  "additionalProperties": false,
97
176
  "properties": {
98
177
  "type": {
99
- "const": "website"
178
+ "const": "website",
179
+ "type": "string"
100
180
  },
101
181
  "url": {
182
+ "format": "uri",
102
183
  "type": "string"
103
184
  }
104
185
  },
@@ -110,48 +191,44 @@
110
191
  "properties": {
111
192
  "grid": {
112
193
  "items": {
113
- "maxLength": 9,
114
- "minLength": 9,
115
- "oneOf": [
116
- { "$ref": "#/definitions/itemAction" },
117
- { "type": "null" }
194
+ "anyOf": [
195
+ {
196
+ "additionalProperties": false,
197
+ "properties": {
198
+ "amount": {
199
+ "type": "number"
200
+ },
201
+ "id": {
202
+ "type": "string"
203
+ },
204
+ "type": {
205
+ "const": "item",
206
+ "type": "string"
207
+ }
208
+ },
209
+ "required": ["amount", "id", "type"],
210
+ "type": "object"
211
+ },
212
+ {
213
+ "type": "null"
214
+ }
118
215
  ]
119
216
  },
217
+ "maxItems": 9,
218
+ "minItems": 9,
120
219
  "type": "array"
121
220
  },
122
221
  "type": {
123
- "const": "workbench"
124
- }
125
- },
126
- "required": ["type", "grid"],
127
- "type": "object"
128
- },
129
- {
130
- "additionalProperties": false,
131
- "properties": {
132
- "left": {
133
- "$ref": "#/definitions/itemAction",
134
- "type": "object"
135
- },
136
- "right": {
137
- "$ref": "#/definitions/itemAction",
138
- "type": "object"
139
- },
140
- "type": {
141
- "const": "anvil"
222
+ "const": "workbench",
223
+ "type": "string"
142
224
  }
143
225
  },
144
- "required": ["type", "left", "right"],
226
+ "required": ["grid", "type"],
145
227
  "type": "object"
146
228
  }
147
- ],
148
- "type": "object"
229
+ ]
149
230
  },
150
231
  "type": "array"
151
- },
152
- "requirements": {
153
- "items": {},
154
- "type": "array"
155
232
  }
156
233
  },
157
234
  "required": ["inputs", "outputs", "place"],
package/data/bits.json CHANGED
@@ -91,6 +91,11 @@
91
91
  "outputs": [{ "amount": 1, "id": "BITS_TALISMAN", "type": "item" }],
92
92
  "place": [{ "id": "ELIZABETH", "type": "npc" }]
93
93
  },
94
+ {
95
+ "inputs": [{ "amount": 5000, "id": "bit", "type": "currency" }],
96
+ "outputs": [{ "amount": 1, "id": "SHARD_BITBUG", "type": "item" }],
97
+ "place": [{ "id": "ELIZABETH", "type": "npc" }]
98
+ },
94
99
  {
95
100
  "inputs": [{ "amount": 8000, "id": "bit", "type": "currency" }],
96
101
  "outputs": [
@@ -233,6 +238,13 @@
233
238
  ],
234
239
  "place": [{ "id": "ELIZABETH", "type": "npc" }]
235
240
  },
241
+ {
242
+ "inputs": [{ "amount": 4000, "id": "bit", "type": "currency" }],
243
+ "outputs": [
244
+ { "amount": 1, "id": "ENCHANTMENT_ABSORB_1", "type": "item" }
245
+ ],
246
+ "place": [{ "id": "ELIZABETH", "type": "npc" }]
247
+ },
236
248
  {
237
249
  "inputs": [{ "amount": 4000, "id": "bit", "type": "currency" }],
238
250
  "outputs": [
package/data/gems.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "$schema": "./$schema.json",
3
3
  "actions": [
4
4
  {
5
- "inputs": [{ "amount": 4.99, "id": "usd", "type": "currency" }],
6
- "outputs": [{ "amount": 675, "id": "gem", "type": "currency" }],
5
+ "inputs": [{ "amount": 5.99, "id": "usd", "type": "currency" }],
6
+ "outputs": [{ "amount": 700, "id": "gem", "type": "currency" }],
7
7
  "place": [
8
8
  {
9
9
  "id": "ELIZABETH",
@@ -16,8 +16,8 @@
16
16
  ]
17
17
  },
18
18
  {
19
- "inputs": [{ "amount": 9.99, "id": "usd", "type": "currency" }],
20
- "outputs": [{ "amount": 1390, "id": "gem", "type": "currency" }],
19
+ "inputs": [{ "amount": 14.99, "id": "usd", "type": "currency" }],
20
+ "outputs": [{ "amount": 1800, "id": "gem", "type": "currency" }],
21
21
  "place": [
22
22
  {
23
23
  "id": "ELIZABETH",
@@ -30,8 +30,8 @@
30
30
  ]
31
31
  },
32
32
  {
33
- "inputs": [{ "amount": 24.99, "id": "usd", "type": "currency" }],
34
- "outputs": [{ "amount": 3600, "id": "gem", "type": "currency" }],
33
+ "inputs": [{ "amount": 29.99, "id": "usd", "type": "currency" }],
34
+ "outputs": [{ "amount": 3750, "id": "gem", "type": "currency" }],
35
35
  "place": [
36
36
  {
37
37
  "id": "ELIZABETH",
@@ -44,8 +44,8 @@
44
44
  ]
45
45
  },
46
46
  {
47
- "inputs": [{ "amount": 49.99, "id": "usd", "type": "currency" }],
48
- "outputs": [{ "amount": 7300, "id": "gem", "type": "currency" }],
47
+ "inputs": [{ "amount": 59.99, "id": "usd", "type": "currency" }],
48
+ "outputs": [{ "amount": 7600, "id": "gem", "type": "currency" }],
49
49
  "place": [
50
50
  {
51
51
  "id": "ELIZABETH",
@@ -58,8 +58,8 @@
58
58
  ]
59
59
  },
60
60
  {
61
- "inputs": [{ "amount": 99.99, "id": "usd", "type": "currency" }],
62
- "outputs": [{ "amount": 16400, "id": "gem", "type": "currency" }],
61
+ "inputs": [{ "amount": 119.99, "id": "usd", "type": "currency" }],
62
+ "outputs": [{ "amount": 17000, "id": "gem", "type": "currency" }],
63
63
  "place": [
64
64
  {
65
65
  "id": "ELIZABETH",