@skyblock-finance/actions 0.18.1 → 0.20.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 CHANGED
@@ -1,4 +1,62 @@
1
1
  {
2
+ "$defs": {
3
+ "crystalInputOutput": {
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "amount": { "type": "number" },
7
+ "id": { "type": "string" },
8
+ "type": { "const": "crystal", "type": "string" }
9
+ },
10
+ "required": ["amount", "id", "type"],
11
+ "type": "object"
12
+ },
13
+ "currencyInputOutput": {
14
+ "additionalProperties": false,
15
+ "properties": {
16
+ "amount": { "type": "number" },
17
+ "id": {
18
+ "enum": [
19
+ "bingo-point",
20
+ "bit",
21
+ "coin",
22
+ "copper",
23
+ "forge-second",
24
+ "gem",
25
+ "mote",
26
+ "north-star",
27
+ "online-second",
28
+ "pest",
29
+ "second",
30
+ "usd"
31
+ ],
32
+ "type": "string"
33
+ },
34
+ "type": { "const": "currency", "type": "string" }
35
+ },
36
+ "required": ["amount", "id", "type"],
37
+ "type": "object"
38
+ },
39
+ "itemInputOutput": {
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "amount": { "type": "number" },
43
+ "id": { "type": "string" },
44
+ "type": { "const": "item", "type": "string" }
45
+ },
46
+ "required": ["amount", "id", "type"],
47
+ "type": "object"
48
+ },
49
+ "petInputOutput": {
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "amount": { "type": "number" },
53
+ "id": { "type": "string" },
54
+ "type": { "const": "pet", "type": "string" }
55
+ },
56
+ "required": ["amount", "id", "type"],
57
+ "type": "object"
58
+ }
59
+ },
2
60
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
61
  "additionalProperties": false,
4
62
  "properties": {
@@ -12,87 +70,10 @@
12
70
  "inputs": {
13
71
  "items": {
14
72
  "anyOf": [
15
- {
16
- "additionalProperties": false,
17
- "properties": {
18
- "amount": {
19
- "type": "number"
20
- },
21
- "id": {
22
- "type": "string"
23
- },
24
- "type": {
25
- "const": "crystal",
26
- "type": "string"
27
- }
28
- },
29
- "required": ["amount", "id", "type"],
30
- "type": "object"
31
- },
32
- {
33
- "additionalProperties": false,
34
- "properties": {
35
- "amount": {
36
- "type": "number"
37
- },
38
- "id": {
39
- "enum": [
40
- "bingo-point",
41
- "bit",
42
- "coin",
43
- "copper",
44
- "forge-second",
45
- "gem",
46
- "mote",
47
- "north-star",
48
- "pest",
49
- "second",
50
- "usd"
51
- ],
52
- "type": "string"
53
- },
54
- "type": {
55
- "const": "currency",
56
- "type": "string"
57
- }
58
- },
59
- "required": ["amount", "id", "type"],
60
- "type": "object"
61
- },
62
- {
63
- "additionalProperties": false,
64
- "properties": {
65
- "amount": {
66
- "type": "number"
67
- },
68
- "id": {
69
- "type": "string"
70
- },
71
- "type": {
72
- "const": "item",
73
- "type": "string"
74
- }
75
- },
76
- "required": ["amount", "id", "type"],
77
- "type": "object"
78
- },
79
- {
80
- "additionalProperties": false,
81
- "properties": {
82
- "amount": {
83
- "type": "number"
84
- },
85
- "id": {
86
- "type": "string"
87
- },
88
- "type": {
89
- "const": "pet",
90
- "type": "string"
91
- }
92
- },
93
- "required": ["amount", "id", "type"],
94
- "type": "object"
95
- }
73
+ { "$ref": "#/$defs/crystalInputOutput" },
74
+ { "$ref": "#/$defs/currencyInputOutput" },
75
+ { "$ref": "#/$defs/itemInputOutput" },
76
+ { "$ref": "#/$defs/petInputOutput" }
96
77
  ]
97
78
  },
98
79
  "type": "array"
@@ -100,86 +81,10 @@
100
81
  "outputs": {
101
82
  "items": {
102
83
  "anyOf": [
103
- {
104
- "additionalProperties": false,
105
- "properties": {
106
- "amount": {
107
- "type": "number"
108
- },
109
- "id": {
110
- "type": "string"
111
- },
112
- "type": {
113
- "const": "crystal",
114
- "type": "string"
115
- }
116
- },
117
- "required": ["amount", "id", "type"],
118
- "type": "object"
119
- },
120
- {
121
- "additionalProperties": false,
122
- "properties": {
123
- "amount": {
124
- "type": "number"
125
- },
126
- "id": {
127
- "enum": [
128
- "bingo-point",
129
- "bit",
130
- "coin",
131
- "copper",
132
- "gem",
133
- "mote",
134
- "north-star",
135
- "pest",
136
- "second",
137
- "usd"
138
- ],
139
- "type": "string"
140
- },
141
- "type": {
142
- "const": "currency",
143
- "type": "string"
144
- }
145
- },
146
- "required": ["amount", "id", "type"],
147
- "type": "object"
148
- },
149
- {
150
- "additionalProperties": false,
151
- "properties": {
152
- "amount": {
153
- "type": "number"
154
- },
155
- "id": {
156
- "type": "string"
157
- },
158
- "type": {
159
- "const": "item",
160
- "type": "string"
161
- }
162
- },
163
- "required": ["amount", "id", "type"],
164
- "type": "object"
165
- },
166
- {
167
- "additionalProperties": false,
168
- "properties": {
169
- "amount": {
170
- "type": "number"
171
- },
172
- "id": {
173
- "type": "string"
174
- },
175
- "type": {
176
- "const": "pet",
177
- "type": "string"
178
- }
179
- },
180
- "required": ["amount", "id", "type"],
181
- "type": "object"
182
- }
84
+ { "$ref": "#/$defs/crystalInputOutput" },
85
+ { "$ref": "#/$defs/currencyInputOutput" },
86
+ { "$ref": "#/$defs/itemInputOutput" },
87
+ { "$ref": "#/$defs/petInputOutput" }
183
88
  ]
184
89
  },
185
90
  "type": "array"
@@ -190,44 +95,9 @@
190
95
  {
191
96
  "additionalProperties": false,
192
97
  "properties": {
193
- "left": {
194
- "additionalProperties": false,
195
- "properties": {
196
- "amount": {
197
- "type": "number"
198
- },
199
- "id": {
200
- "type": "string"
201
- },
202
- "type": {
203
- "const": "item",
204
- "type": "string"
205
- }
206
- },
207
- "required": ["amount", "id", "type"],
208
- "type": "object"
209
- },
210
- "right": {
211
- "additionalProperties": false,
212
- "properties": {
213
- "amount": {
214
- "type": "number"
215
- },
216
- "id": {
217
- "type": "string"
218
- },
219
- "type": {
220
- "const": "item",
221
- "type": "string"
222
- }
223
- },
224
- "required": ["amount", "id", "type"],
225
- "type": "object"
226
- },
227
- "type": {
228
- "const": "anvil",
229
- "type": "string"
230
- }
98
+ "left": { "$ref": "#/$defs/itemInputOutput" },
99
+ "right": { "$ref": "#/$defs/itemInputOutput" },
100
+ "type": { "const": "anvil", "type": "string" }
231
101
  },
232
102
  "required": ["left", "right", "type"],
233
103
  "type": "object"
@@ -235,10 +105,7 @@
235
105
  {
236
106
  "additionalProperties": false,
237
107
  "properties": {
238
- "type": {
239
- "const": "forge",
240
- "type": "string"
241
- }
108
+ "type": { "const": "forge", "type": "string" }
242
109
  },
243
110
  "required": ["type"],
244
111
  "type": "object"
@@ -246,13 +113,8 @@
246
113
  {
247
114
  "additionalProperties": false,
248
115
  "properties": {
249
- "id": {
250
- "type": "string"
251
- },
252
- "type": {
253
- "const": "npc",
254
- "type": "string"
255
- }
116
+ "id": { "type": "string" },
117
+ "type": { "const": "npc", "type": "string" }
256
118
  },
257
119
  "required": ["id", "type"],
258
120
  "type": "object"
@@ -260,14 +122,8 @@
260
122
  {
261
123
  "additionalProperties": false,
262
124
  "properties": {
263
- "type": {
264
- "const": "website",
265
- "type": "string"
266
- },
267
- "url": {
268
- "format": "uri",
269
- "type": "string"
270
- }
125
+ "type": { "const": "website", "type": "string" },
126
+ "url": { "format": "uri", "type": "string" }
271
127
  },
272
128
  "required": ["type", "url"],
273
129
  "type": "object"
@@ -278,36 +134,15 @@
278
134
  "grid": {
279
135
  "items": {
280
136
  "anyOf": [
281
- {
282
- "additionalProperties": false,
283
- "properties": {
284
- "amount": {
285
- "type": "number"
286
- },
287
- "id": {
288
- "type": "string"
289
- },
290
- "type": {
291
- "const": "item",
292
- "type": "string"
293
- }
294
- },
295
- "required": ["amount", "id", "type"],
296
- "type": "object"
297
- },
298
- {
299
- "type": "null"
300
- }
137
+ { "$ref": "#/$defs/itemInputOutput" },
138
+ { "type": "null" }
301
139
  ]
302
140
  },
303
141
  "maxItems": 9,
304
142
  "minItems": 9,
305
143
  "type": "array"
306
144
  },
307
- "type": {
308
- "const": "workbench",
309
- "type": "string"
310
- }
145
+ "type": { "const": "workbench", "type": "string" }
311
146
  },
312
147
  "required": ["grid", "type"],
313
148
  "type": "object"
@@ -322,17 +157,9 @@
322
157
  {
323
158
  "additionalProperties": false,
324
159
  "properties": {
325
- "collection": {
326
- "enum": ["GEMSTONE"],
327
- "type": "string"
328
- },
329
- "tier": {
330
- "type": "number"
331
- },
332
- "type": {
333
- "const": "COLLECTION",
334
- "type": "string"
335
- }
160
+ "collection": { "enum": ["GEMSTONE"], "type": "string" },
161
+ "tier": { "type": "number" },
162
+ "type": { "const": "COLLECTION", "type": "string" }
336
163
  },
337
164
  "required": ["collection", "tier", "type"],
338
165
  "type": "object"
@@ -340,9 +167,7 @@
340
167
  {
341
168
  "additionalProperties": false,
342
169
  "properties": {
343
- "tier": {
344
- "type": "number"
345
- },
170
+ "tier": { "type": "number" },
346
171
  "type": {
347
172
  "const": "HEART_OF_THE_MOUNTAIN",
348
173
  "type": "string"
@@ -354,17 +179,12 @@
354
179
  {
355
180
  "additionalProperties": false,
356
181
  "properties": {
357
- "level": {
358
- "type": "number"
359
- },
182
+ "level": { "type": "number" },
360
183
  "skill": {
361
184
  "enum": ["MINING"],
362
185
  "type": "string"
363
186
  },
364
- "type": {
365
- "const": "SKILL",
366
- "type": "string"
367
- }
187
+ "type": { "const": "SKILL", "type": "string" }
368
188
  },
369
189
  "required": ["level", "skill", "type"],
370
190
  "type": "object"
@@ -380,6 +200,5 @@
380
200
  "type": "array"
381
201
  }
382
202
  },
383
- "required": ["actions"],
384
- "type": "object"
203
+ "required": ["actions"]
385
204
  }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "./$schema.json",
3
+ "actions": [
4
+ {
5
+ "inputs": [
6
+ { "amount": 1, "id": "NEW_BOTTLE_OF_JYRRE", "type": "item" },
7
+ { "amount": 1080000, "id": "online-second", "type": "currency" }
8
+ ],
9
+ "outputs": [
10
+ { "amount": 1, "id": "REFINED_BOTTLE_OF_JYRRE", "type": "item" }
11
+ ],
12
+ "place": []
13
+ },
14
+ {
15
+ "inputs": [
16
+ { "amount": 1, "id": "DARK_CACAO_TRUFFLE", "type": "item" },
17
+ { "amount": 1080000, "id": "online-second", "type": "currency" }
18
+ ],
19
+ "outputs": [
20
+ { "amount": 1, "id": "REFINED_DARK_CACAO_TRUFFLE", "type": "item" }
21
+ ],
22
+ "place": []
23
+ },
24
+ {
25
+ "inputs": [
26
+ { "amount": 1, "id": "DISCRITE", "type": "item" },
27
+ { "amount": 1080000, "id": "online-second", "type": "currency" }
28
+ ],
29
+ "outputs": [{ "amount": 1, "id": "SPOTLITE", "type": "item" }],
30
+ "place": []
31
+ },
32
+ {
33
+ "inputs": [
34
+ { "amount": 1, "id": "MOBY_DUCK", "type": "item" },
35
+ { "amount": 1080000, "id": "online-second", "type": "currency" }
36
+ ],
37
+ "outputs": [
38
+ { "amount": 1, "id": "MOBY_DUCK_COLLECTOR_EDITION", "type": "item" }
39
+ ],
40
+ "place": []
41
+ },
42
+ {
43
+ "inputs": [
44
+ { "amount": 1, "id": "ROSEWATER_FLASK", "type": "item" },
45
+ { "amount": 1080000, "id": "online-second", "type": "currency" }
46
+ ],
47
+ "outputs": [
48
+ { "amount": 1, "id": "FILLED_ROSEWATER_FLASK", "type": "item" }
49
+ ],
50
+ "place": []
51
+ },
52
+ {
53
+ "inputs": [
54
+ { "amount": 1, "id": "NOT_VERY_MOLDY_BREAD", "type": "item" },
55
+ { "amount": 1080000, "id": "online-second", "type": "currency" }
56
+ ],
57
+ "outputs": [{ "amount": 1, "id": "VERY_MOLDY_BREAD", "type": "item" }],
58
+ "place": []
59
+ }
60
+ ]
61
+ }