@skyblock-finance/actions 0.0.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/README.md +3 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/data.d.ts +105 -0
- package/dist/data.js +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18 -0
- package/dist/schema.d.ts +258 -0
- package/dist/schema.js +47 -0
- package/package.json +45 -0
- package/source/data.test.ts +88 -0
- package/source/data.ts +8 -0
- package/source/index.ts +2 -0
- package/source/schema.ts +54 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../data/bits.json","../data/bits-crafts.json","../../../node_modules/zod/lib/helpers/typeAliases.d.ts","../../../node_modules/zod/lib/helpers/util.d.ts","../../../node_modules/zod/lib/ZodError.d.ts","../../../node_modules/zod/lib/locales/en.d.ts","../../../node_modules/zod/lib/errors.d.ts","../../../node_modules/zod/lib/helpers/parseUtil.d.ts","../../../node_modules/zod/lib/helpers/enumUtil.d.ts","../../../node_modules/zod/lib/helpers/errorUtil.d.ts","../../../node_modules/zod/lib/helpers/partialUtil.d.ts","../../../node_modules/zod/lib/types.d.ts","../../../node_modules/zod/lib/external.d.ts","../../../node_modules/zod/lib/index.d.ts","../../../node_modules/zod/index.d.ts","../source/schema.ts","../source/data.ts","../source/index.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/ws/index.d.ts","../../../node_modules/bun-types/fetch.d.ts","../../../node_modules/bun-types/globals.d.ts","../../../node_modules/bun-types/bun.d.ts","../../../node_modules/bun-types/overrides.d.ts","../../../node_modules/bun-types/ffi.d.ts","../../../node_modules/bun-types/test.d.ts","../../../node_modules/bun-types/html-rewriter.d.ts","../../../node_modules/bun-types/jsc.d.ts","../../../node_modules/bun-types/sqlite.d.ts","../../../node_modules/bun-types/wasm.d.ts","../../../node_modules/bun-types/deprecated.d.ts","../../../node_modules/bun-types/index.d.ts","../../../node_modules/@types/bun/index.d.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","886e50ef125efb7878f744e86908884c0133e7a6d9d80013f421b0cd8fb2af94",{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"fe9caf734414c15aaa9cef62b804bc87f2c5a79263e349c35012c66faf4d5ff5","4036d7745573c0b0792e9d31a12defdc62242a4a20cf3c70bf14e0af546b2152","5487b97cfa28b26b4a9ef0770f872bdbebd4c46124858de00f242c3eed7519f4","c2869c4f2f79fd2d03278a68ce7c061a5a8f4aed59efb655e25fe502e3e471d5","b8fe42dbf4b0efba2eb4dbfb2b95a3712676717ff8469767dc439e75d0c1a3b6","8485b6da53ec35637d072e516631d25dae53984500de70a6989058f24354666f","ebe80346928736532e4a822154eb77f57ef3389dbe2b3ba4e571366a15448ef2","83306c97a4643d78420f082547ea0d488a0d134c922c8e65fc0b4f08ef66d92b","f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","98a9cc18f661d28e6bd31c436e1984f3980f35e0f0aa9cf795c54f8ccb667ffe","c76b0c5727302341d0bdfa2cc2cee4b19ff185b554edb6e8543f0661d8487116","dccd26a5c85325a011aff40f401e0892bd0688d44132ba79e803c67e68fffea5","f5ef066942e4f0bd98200aa6a6694b831e73200c9b3ade77ad0aa2409e8fe1b1","b9e99cd94f4166a245f5158f7286c05406e2a4c694619bceb7a4f3519d1d768e","5568d7c32e5cf5f35e092649f4e5e168c3114c800b1d7545b7ae5e0415704802",{"version":"3c7ee30e0bd74f0cea426112627de5255bc3cddea10995aca5ab43f153308f15","signature":"3a1af3e8a8eb6fef281090379dd66663fa69b36e417ae1660d9a46d48df553fb"},{"version":"22192d4abb4fdbc59f48fe73fa0419ff4e8ab7fa08604752a68fcd3c2e9f5b66","signature":"e66c0f6ff81c912a6b59ab28625c058c4f9749b19e06017f0e7fd0a04b3f6351"},{"version":"4c0bb98aa9bce69f317dedec022ca1096abca5effc97fb8784a40610abb70d41","signature":"a01f5ca85d8e87b514806cdd6e5ad73fd52d50209704e5ee486d257de8e5e49b"},"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"7fd7fcbf021a5845bdd9397d4649fcf2fe17152d2098140fc723099a215d19ad","affectsGlobalScope":true},"df3389f71a71a38bc931aaf1ef97a65fada98f0a27f19dd12f8b8de2b0f4e461","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"8b809082dfeffc8cc4f3b9c59f55c0ff52ba12f5ae0766cb5c35deee83b8552e","affectsGlobalScope":true},"bd3f5d05b6b5e4bfcea7739a45f3ffb4a7f4a3442ba7baf93e0200799285b8f1","4c775c2fccabf49483c03cd5e3673f87c1ffb6079d98e7b81089c3def79e29c6","d4f9d3ae2fe1ae199e1c832cca2c44f45e0b305dfa2808afdd51249b6f4a5163","7525257b4aa35efc7a1bbc00f205a9a96c4e4ab791da90db41b77938c4e0c18e","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"674168aa3db414ea0a19b2a31d901b2d49705c7a495e43ffdc96928543010f8c","affectsGlobalScope":true},"fe1fd6afdfe77976d4c702f3746c05fb05a7e566845c890e0e970fe9376d6a90","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","afb1701fd4be413a8a5a88df6befdd4510c30a31372c07a4138facf61594c66d","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true},"c07146dbbbd8b347241b5df250a51e48f2d7bef19b1e187b1a3f20c849988ff1","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"ae5507fc333d637dec9f37c6b3f4d423105421ea2820a64818de55db85214d66","affectsGlobalScope":true},{"version":"0666f4c99b8688c7be5956df8fecf5d1779d3b22f8f2a88258ae7072c7b6026f","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","54e854615c4eafbdd3fd7688bd02a3aafd0ccf0e87c98f79d3e9109f047ce6b8","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","7fa32887f8a97909fca35ebba3740f8caf8df146618d8fff957a3f89f67a2f6a","9a9634296cca836c3308923ba7aa094fa6ed76bb1e366d8ddcf5c65888ab1024",{"version":"bddce945d552a963c9733db106b17a25474eefcab7fc990157a2134ef55d4954","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","4b55240c2a03b2c71e98a7fc528b16136faa762211c92e781a01c37821915ea6","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"94c086dff8dbc5998749326bc69b520e8e4273fb5b7b58b50e0210e0885dfcde","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"ebe5facd12fd7745cda5f4bc3319f91fb29dc1f96e57e9c6f8b260a7cc5b67ee","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","21c56c6e8eeacef15f63f373a29fab6a2b36e4705be7a528aae8c51469e2737b",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","f7163a5d37d21f636f6a5cd1c064ce95fada21917859a64b6cc49a8b6fd5c1a8","720f5d028d71bc22ed4a5311a6ea884329db475d994f805ea86470111eccc1a1",{"version":"af674bd72a6717a27e95dcc3eea6522f46596da680f30c9fcfeb3ec425a4ef00","affectsGlobalScope":true},{"version":"0c6caaaeb44f560c3e05f11e55ed6423e0bcabe2f9ae3aeed3cbc5ca0d61875d","affectsGlobalScope":true},{"version":"9603687f2c76dc11c02cca33e4b6672a8942934109f727a619feef030d24bd4b","affectsGlobalScope":true},"7f33db341488580a55f30ecfdf04e70c8312fd26fc2692903c7186217ae34eff",{"version":"3e7b0e076ec0ff2717fb4335a78e36499c73cf08e5b5a68273fa9494fd38614b","affectsGlobalScope":true},{"version":"2b8af6e8cf44313406800b820bffc49e83a8ec4598772db25954d03a86c96818","affectsGlobalScope":true},"6813c4ebad2ed9fd49be7805c4084cbbc2d484cca1dfafc6a8a196689b5d476a","965984634a4c933d7178f1e6f6e4e0a83560eee5d187c90d9e5a5738d0391a34",{"version":"d2e66d9477edaa0e4dea79d699f0855a5a7419915da740e28fbfdb322c6a60a6","affectsGlobalScope":true},{"version":"ca69bbf884a17e7a485bb4fcd129386874050916b275e414af14b2170b4ea728","affectsGlobalScope":true},"b52c121cd491cfdbea04c3a77d23e193c23cb411e7598a04ba13a4592842fe2f","37be812b06e518320ba82e2aff3ac2ca37370a9df917db708f081b9043fa3315"],"root":[[83,85]],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"outDir":"./","rootDir":"../source","skipLibCheck":true,"strict":true,"strictNullChecks":true,"target":99,"tsBuildInfoFile":"./.tsbuildinfo"},"fileIdsList":[[175,183,184],[86,175,183],[121,175,183],[122,127,155,175,183],[123,134,135,142,152,163,175,183],[123,124,134,142,175,183],[125,164,175,183],[126,127,135,143,175,183],[127,152,160,175,183],[128,130,134,142,175,183],[121,129,175,183],[130,131,175,183],[134,175,183],[132,134,175,183],[121,134,175,183],[134,135,136,152,163,175,183],[134,135,136,149,152,155,175,176,183],[119,122,168,175,183],[175,183],[130,134,137,142,152,163,175,183],[134,135,137,138,142,152,160,163,175,183],[137,139,152,160,163,175,183],[86,87,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,175,183],[134,140,175,183],[141,163,168,175,183],[130,134,142,152,175,183],[143,175,183],[144,175,183],[121,145,175,183],[146,162,168,175,183],[147,175,183],[148,175,183],[134,149,150,175,183],[149,151,164,166,175,183],[122,134,152,153,154,155,175,183],[122,152,154,175,183],[152,153,175,183],[155,175,183],[156,175,183],[121,152,175,183],[134,158,159,175,183],[158,159,175,183],[127,142,152,160,175,176,183],[161,175,183],[142,162,175,183],[122,137,148,163,175,183],[127,164,175,183],[152,165,175,183],[141,166,175,183],[167,175,183],[122,127,134,136,145,152,163,166,168,175,183],[152,169,175,183],[134,137,139,152,160,163,169,171,175,176,183],[127,164,183],[175],[119,175,183],[119,127,145,152,155,164,168,172,173,175,183],[171,172,173,174,175,176,177,178,179,180,181,182,183],[136,160,175,183],[175,178,183],[96,100,163,175,183],[96,152,163,175,183],[91,175,183],[93,96,160,163,175,176,183],[142,160,175,176,183],[171,175,183],[91,171,175,183],[93,96,142,163,175,183],[88,89,92,95,122,134,152,163,175,183],[88,94,175,183],[92,96,122,155,163,171,175,183],[122,171,175,183],[112,122,171,175,183],[90,91,171,175,183],[96,175,183],[90,91,92,93,94,95,96,97,98,100,101,102,103,104,105,106,107,108,109,110,111,113,114,115,116,117,118,175,183],[96,103,104,175,183],[94,96,104,105,175,183],[95,175,183],[88,91,96,175,183],[96,100,104,105,175,183],[100,175,183],[94,96,99,163,175,183],[88,93,94,96,100,103,175,183],[122,152,175,183],[91,96,112,122,168,171,175,183],[81,175,183],[70,71,81,175,183],[72,73,175,183],[70,71,72,74,75,79,175,183],[71,72,175,183],[80,175,183],[72,175,183],[70,71,72,75,76,77,78,175,183],[68,69,83,175,183],[83,84,175,183],[82,175,183],[83,84],[82]],"referencedMap":[[185,1],[86,2],[87,2],[121,3],[122,4],[123,5],[124,6],[125,7],[126,8],[127,9],[128,10],[129,11],[130,12],[131,12],[133,13],[132,14],[134,15],[135,16],[136,17],[120,18],[170,19],[137,20],[138,21],[139,22],[171,23],[140,24],[141,25],[142,26],[143,27],[144,28],[145,29],[146,30],[147,31],[148,32],[149,33],[150,33],[151,34],[152,35],[154,36],[153,37],[155,38],[156,39],[157,40],[158,41],[159,42],[160,43],[161,44],[162,45],[163,46],[164,47],[165,48],[166,49],[167,50],[168,51],[169,52],[172,53],[175,54],[183,55],[173,56],[177,19],[174,57],[179,19],[184,58],[180,19],[176,59],[181,19],[178,60],[182,19],[66,19],[67,19],[13,19],[12,19],[2,19],[14,19],[15,19],[16,19],[17,19],[18,19],[19,19],[20,19],[21,19],[3,19],[22,19],[4,19],[23,19],[27,19],[24,19],[25,19],[26,19],[28,19],[29,19],[30,19],[5,19],[31,19],[32,19],[33,19],[34,19],[6,19],[38,19],[35,19],[36,19],[37,19],[39,19],[7,19],[40,19],[45,19],[46,19],[41,19],[42,19],[43,19],[44,19],[8,19],[50,19],[47,19],[48,19],[49,19],[51,19],[9,19],[52,19],[53,19],[54,19],[57,19],[55,19],[56,19],[58,19],[59,19],[10,19],[1,19],[60,19],[11,19],[64,19],[62,19],[61,19],[65,19],[63,19],[103,61],[110,62],[102,61],[117,63],[94,64],[93,65],[116,66],[111,67],[114,68],[96,69],[95,70],[91,71],[90,72],[113,73],[92,74],[97,75],[98,19],[101,75],[88,19],[119,76],[118,75],[105,77],[106,78],[108,79],[104,80],[107,81],[112,66],[99,82],[100,83],[109,84],[89,85],[115,86],[82,87],[72,88],[74,89],[80,90],[76,19],[77,19],[75,91],[78,87],[70,19],[71,19],[81,92],[73,93],[79,94],[69,19],[68,19],[84,95],[85,96],[83,97]],"exportedModulesMap":[[185,1],[86,2],[87,2],[121,3],[122,4],[123,5],[124,6],[125,7],[126,8],[127,9],[128,10],[129,11],[130,12],[131,12],[133,13],[132,14],[134,15],[135,16],[136,17],[120,18],[170,19],[137,20],[138,21],[139,22],[171,23],[140,24],[141,25],[142,26],[143,27],[144,28],[145,29],[146,30],[147,31],[148,32],[149,33],[150,33],[151,34],[152,35],[154,36],[153,37],[155,38],[156,39],[157,40],[158,41],[159,42],[160,43],[161,44],[162,45],[163,46],[164,47],[165,48],[166,49],[167,50],[168,51],[169,52],[172,53],[175,54],[183,55],[173,56],[177,19],[174,57],[179,19],[184,58],[180,19],[176,59],[181,19],[178,60],[182,19],[66,19],[67,19],[13,19],[12,19],[2,19],[14,19],[15,19],[16,19],[17,19],[18,19],[19,19],[20,19],[21,19],[3,19],[22,19],[4,19],[23,19],[27,19],[24,19],[25,19],[26,19],[28,19],[29,19],[30,19],[5,19],[31,19],[32,19],[33,19],[34,19],[6,19],[38,19],[35,19],[36,19],[37,19],[39,19],[7,19],[40,19],[45,19],[46,19],[41,19],[42,19],[43,19],[44,19],[8,19],[50,19],[47,19],[48,19],[49,19],[51,19],[9,19],[52,19],[53,19],[54,19],[57,19],[55,19],[56,19],[58,19],[59,19],[10,19],[1,19],[60,19],[11,19],[64,19],[62,19],[61,19],[65,19],[63,19],[103,61],[110,62],[102,61],[117,63],[94,64],[93,65],[116,66],[111,67],[114,68],[96,69],[95,70],[91,71],[90,72],[113,73],[92,74],[97,75],[98,19],[101,75],[88,19],[119,76],[118,75],[105,77],[106,78],[108,79],[104,80],[107,81],[112,66],[99,82],[100,83],[109,84],[89,85],[115,86],[82,87],[72,88],[74,89],[80,90],[76,19],[77,19],[75,91],[78,87],[70,19],[71,19],[81,92],[73,93],[79,94],[69,19],[68,19],[85,98],[83,99]],"semanticDiagnosticsPerFile":[185,86,87,121,122,123,124,125,126,127,128,129,130,131,133,132,134,135,136,120,170,137,138,139,171,140,141,142,143,144,145,146,147,148,149,150,151,152,154,153,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,172,175,183,173,177,174,179,184,180,176,181,178,182,66,67,13,12,2,14,15,16,17,18,19,20,21,3,22,4,23,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,53,54,57,55,56,58,59,10,1,60,11,64,62,61,65,63,103,110,102,117,94,93,116,111,114,96,95,91,90,113,92,97,98,101,88,119,118,105,106,108,104,107,112,99,100,109,89,115,82,72,74,80,76,77,75,78,70,71,81,73,79,69,68,84,85,83],"latestChangedDtsFile":"./index.d.ts"},"version":"5.4.5"}
|
package/dist/data.d.ts
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export declare const bits: {
|
|
2
|
+
inputs: ({
|
|
3
|
+
amount: number;
|
|
4
|
+
id: string;
|
|
5
|
+
type: "item";
|
|
6
|
+
} | {
|
|
7
|
+
amount: number;
|
|
8
|
+
type: "bit";
|
|
9
|
+
} | {
|
|
10
|
+
amount: number;
|
|
11
|
+
type: "coin";
|
|
12
|
+
})[];
|
|
13
|
+
outputs: ({
|
|
14
|
+
amount: number;
|
|
15
|
+
id: string;
|
|
16
|
+
type: "item";
|
|
17
|
+
} | {
|
|
18
|
+
amount: number;
|
|
19
|
+
type: "bit";
|
|
20
|
+
} | {
|
|
21
|
+
amount: number;
|
|
22
|
+
type: "coin";
|
|
23
|
+
})[];
|
|
24
|
+
place: ({
|
|
25
|
+
id: string;
|
|
26
|
+
type: "npc";
|
|
27
|
+
} | {
|
|
28
|
+
type: "workbench";
|
|
29
|
+
grid: ({
|
|
30
|
+
amount: number;
|
|
31
|
+
id: string;
|
|
32
|
+
type: "item";
|
|
33
|
+
} | null)[];
|
|
34
|
+
})[];
|
|
35
|
+
}[];
|
|
36
|
+
export declare const bitsCrafts: {
|
|
37
|
+
inputs: ({
|
|
38
|
+
amount: number;
|
|
39
|
+
id: string;
|
|
40
|
+
type: "item";
|
|
41
|
+
} | {
|
|
42
|
+
amount: number;
|
|
43
|
+
type: "bit";
|
|
44
|
+
} | {
|
|
45
|
+
amount: number;
|
|
46
|
+
type: "coin";
|
|
47
|
+
})[];
|
|
48
|
+
outputs: ({
|
|
49
|
+
amount: number;
|
|
50
|
+
id: string;
|
|
51
|
+
type: "item";
|
|
52
|
+
} | {
|
|
53
|
+
amount: number;
|
|
54
|
+
type: "bit";
|
|
55
|
+
} | {
|
|
56
|
+
amount: number;
|
|
57
|
+
type: "coin";
|
|
58
|
+
})[];
|
|
59
|
+
place: ({
|
|
60
|
+
id: string;
|
|
61
|
+
type: "npc";
|
|
62
|
+
} | {
|
|
63
|
+
type: "workbench";
|
|
64
|
+
grid: ({
|
|
65
|
+
amount: number;
|
|
66
|
+
id: string;
|
|
67
|
+
type: "item";
|
|
68
|
+
} | null)[];
|
|
69
|
+
})[];
|
|
70
|
+
}[];
|
|
71
|
+
export declare const allActions: {
|
|
72
|
+
inputs: ({
|
|
73
|
+
amount: number;
|
|
74
|
+
id: string;
|
|
75
|
+
type: "item";
|
|
76
|
+
} | {
|
|
77
|
+
amount: number;
|
|
78
|
+
type: "bit";
|
|
79
|
+
} | {
|
|
80
|
+
amount: number;
|
|
81
|
+
type: "coin";
|
|
82
|
+
})[];
|
|
83
|
+
outputs: ({
|
|
84
|
+
amount: number;
|
|
85
|
+
id: string;
|
|
86
|
+
type: "item";
|
|
87
|
+
} | {
|
|
88
|
+
amount: number;
|
|
89
|
+
type: "bit";
|
|
90
|
+
} | {
|
|
91
|
+
amount: number;
|
|
92
|
+
type: "coin";
|
|
93
|
+
})[];
|
|
94
|
+
place: ({
|
|
95
|
+
id: string;
|
|
96
|
+
type: "npc";
|
|
97
|
+
} | {
|
|
98
|
+
type: "workbench";
|
|
99
|
+
grid: ({
|
|
100
|
+
amount: number;
|
|
101
|
+
id: string;
|
|
102
|
+
type: "item";
|
|
103
|
+
} | null)[];
|
|
104
|
+
})[];
|
|
105
|
+
}[];
|
package/dist/data.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allActions = exports.bitsCrafts = exports.bits = void 0;
|
|
4
|
+
const bits_json_1 = require("../data/bits.json");
|
|
5
|
+
const bits_crafts_json_1 = require("../data/bits-crafts.json");
|
|
6
|
+
exports.bits = bits_json_1.actions;
|
|
7
|
+
exports.bitsCrafts = bits_crafts_json_1.actions;
|
|
8
|
+
exports.allActions = [...exports.bits, ...exports.bitsCrafts];
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./data"), exports);
|
|
18
|
+
__exportStar(require("./schema"), exports);
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const actionIoItemSchema: z.ZodObject<{
|
|
3
|
+
amount: z.ZodNumber;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
type: z.ZodLiteral<"item">;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
amount: number;
|
|
8
|
+
id: string;
|
|
9
|
+
type: "item";
|
|
10
|
+
}, {
|
|
11
|
+
amount: number;
|
|
12
|
+
id: string;
|
|
13
|
+
type: "item";
|
|
14
|
+
}>;
|
|
15
|
+
export type ActionIoItem = z.output<typeof actionIoItemSchema>;
|
|
16
|
+
export declare const actionIoSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
17
|
+
amount: z.ZodNumber;
|
|
18
|
+
type: z.ZodLiteral<"bit">;
|
|
19
|
+
}, "strict", z.ZodTypeAny, {
|
|
20
|
+
amount: number;
|
|
21
|
+
type: "bit";
|
|
22
|
+
}, {
|
|
23
|
+
amount: number;
|
|
24
|
+
type: "bit";
|
|
25
|
+
}>, z.ZodObject<{
|
|
26
|
+
amount: z.ZodNumber;
|
|
27
|
+
type: z.ZodLiteral<"coin">;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
amount: number;
|
|
30
|
+
type: "coin";
|
|
31
|
+
}, {
|
|
32
|
+
amount: number;
|
|
33
|
+
type: "coin";
|
|
34
|
+
}>, z.ZodObject<{
|
|
35
|
+
amount: z.ZodNumber;
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
type: z.ZodLiteral<"item">;
|
|
38
|
+
}, "strict", z.ZodTypeAny, {
|
|
39
|
+
amount: number;
|
|
40
|
+
id: string;
|
|
41
|
+
type: "item";
|
|
42
|
+
}, {
|
|
43
|
+
amount: number;
|
|
44
|
+
id: string;
|
|
45
|
+
type: "item";
|
|
46
|
+
}>]>;
|
|
47
|
+
export type ActionIo = z.output<typeof actionIoSchema>;
|
|
48
|
+
export declare const actionPlaceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
type: z.ZodLiteral<"npc">;
|
|
51
|
+
}, "strict", z.ZodTypeAny, {
|
|
52
|
+
id: string;
|
|
53
|
+
type: "npc";
|
|
54
|
+
}, {
|
|
55
|
+
id: string;
|
|
56
|
+
type: "npc";
|
|
57
|
+
}>, z.ZodObject<{
|
|
58
|
+
grid: z.ZodArray<z.ZodNullable<z.ZodObject<{
|
|
59
|
+
amount: z.ZodNumber;
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
type: z.ZodLiteral<"item">;
|
|
62
|
+
}, "strict", z.ZodTypeAny, {
|
|
63
|
+
amount: number;
|
|
64
|
+
id: string;
|
|
65
|
+
type: "item";
|
|
66
|
+
}, {
|
|
67
|
+
amount: number;
|
|
68
|
+
id: string;
|
|
69
|
+
type: "item";
|
|
70
|
+
}>>, "many">;
|
|
71
|
+
type: z.ZodLiteral<"workbench">;
|
|
72
|
+
}, "strict", z.ZodTypeAny, {
|
|
73
|
+
type: "workbench";
|
|
74
|
+
grid: ({
|
|
75
|
+
amount: number;
|
|
76
|
+
id: string;
|
|
77
|
+
type: "item";
|
|
78
|
+
} | null)[];
|
|
79
|
+
}, {
|
|
80
|
+
type: "workbench";
|
|
81
|
+
grid: ({
|
|
82
|
+
amount: number;
|
|
83
|
+
id: string;
|
|
84
|
+
type: "item";
|
|
85
|
+
} | null)[];
|
|
86
|
+
}>]>;
|
|
87
|
+
export declare const actionSchema: z.ZodObject<{
|
|
88
|
+
inputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
89
|
+
amount: z.ZodNumber;
|
|
90
|
+
type: z.ZodLiteral<"bit">;
|
|
91
|
+
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
amount: number;
|
|
93
|
+
type: "bit";
|
|
94
|
+
}, {
|
|
95
|
+
amount: number;
|
|
96
|
+
type: "bit";
|
|
97
|
+
}>, z.ZodObject<{
|
|
98
|
+
amount: z.ZodNumber;
|
|
99
|
+
type: z.ZodLiteral<"coin">;
|
|
100
|
+
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
amount: number;
|
|
102
|
+
type: "coin";
|
|
103
|
+
}, {
|
|
104
|
+
amount: number;
|
|
105
|
+
type: "coin";
|
|
106
|
+
}>, z.ZodObject<{
|
|
107
|
+
amount: z.ZodNumber;
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
type: z.ZodLiteral<"item">;
|
|
110
|
+
}, "strict", z.ZodTypeAny, {
|
|
111
|
+
amount: number;
|
|
112
|
+
id: string;
|
|
113
|
+
type: "item";
|
|
114
|
+
}, {
|
|
115
|
+
amount: number;
|
|
116
|
+
id: string;
|
|
117
|
+
type: "item";
|
|
118
|
+
}>]>, "many">;
|
|
119
|
+
outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
120
|
+
amount: z.ZodNumber;
|
|
121
|
+
type: z.ZodLiteral<"bit">;
|
|
122
|
+
}, "strict", z.ZodTypeAny, {
|
|
123
|
+
amount: number;
|
|
124
|
+
type: "bit";
|
|
125
|
+
}, {
|
|
126
|
+
amount: number;
|
|
127
|
+
type: "bit";
|
|
128
|
+
}>, z.ZodObject<{
|
|
129
|
+
amount: z.ZodNumber;
|
|
130
|
+
type: z.ZodLiteral<"coin">;
|
|
131
|
+
}, "strict", z.ZodTypeAny, {
|
|
132
|
+
amount: number;
|
|
133
|
+
type: "coin";
|
|
134
|
+
}, {
|
|
135
|
+
amount: number;
|
|
136
|
+
type: "coin";
|
|
137
|
+
}>, z.ZodObject<{
|
|
138
|
+
amount: z.ZodNumber;
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
type: z.ZodLiteral<"item">;
|
|
141
|
+
}, "strict", z.ZodTypeAny, {
|
|
142
|
+
amount: number;
|
|
143
|
+
id: string;
|
|
144
|
+
type: "item";
|
|
145
|
+
}, {
|
|
146
|
+
amount: number;
|
|
147
|
+
id: string;
|
|
148
|
+
type: "item";
|
|
149
|
+
}>]>, "many">;
|
|
150
|
+
place: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
type: z.ZodLiteral<"npc">;
|
|
153
|
+
}, "strict", z.ZodTypeAny, {
|
|
154
|
+
id: string;
|
|
155
|
+
type: "npc";
|
|
156
|
+
}, {
|
|
157
|
+
id: string;
|
|
158
|
+
type: "npc";
|
|
159
|
+
}>, z.ZodObject<{
|
|
160
|
+
grid: z.ZodArray<z.ZodNullable<z.ZodObject<{
|
|
161
|
+
amount: z.ZodNumber;
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
type: z.ZodLiteral<"item">;
|
|
164
|
+
}, "strict", z.ZodTypeAny, {
|
|
165
|
+
amount: number;
|
|
166
|
+
id: string;
|
|
167
|
+
type: "item";
|
|
168
|
+
}, {
|
|
169
|
+
amount: number;
|
|
170
|
+
id: string;
|
|
171
|
+
type: "item";
|
|
172
|
+
}>>, "many">;
|
|
173
|
+
type: z.ZodLiteral<"workbench">;
|
|
174
|
+
}, "strict", z.ZodTypeAny, {
|
|
175
|
+
type: "workbench";
|
|
176
|
+
grid: ({
|
|
177
|
+
amount: number;
|
|
178
|
+
id: string;
|
|
179
|
+
type: "item";
|
|
180
|
+
} | null)[];
|
|
181
|
+
}, {
|
|
182
|
+
type: "workbench";
|
|
183
|
+
grid: ({
|
|
184
|
+
amount: number;
|
|
185
|
+
id: string;
|
|
186
|
+
type: "item";
|
|
187
|
+
} | null)[];
|
|
188
|
+
}>]>, "many">;
|
|
189
|
+
}, "strict", z.ZodTypeAny, {
|
|
190
|
+
inputs: ({
|
|
191
|
+
amount: number;
|
|
192
|
+
id: string;
|
|
193
|
+
type: "item";
|
|
194
|
+
} | {
|
|
195
|
+
amount: number;
|
|
196
|
+
type: "bit";
|
|
197
|
+
} | {
|
|
198
|
+
amount: number;
|
|
199
|
+
type: "coin";
|
|
200
|
+
})[];
|
|
201
|
+
outputs: ({
|
|
202
|
+
amount: number;
|
|
203
|
+
id: string;
|
|
204
|
+
type: "item";
|
|
205
|
+
} | {
|
|
206
|
+
amount: number;
|
|
207
|
+
type: "bit";
|
|
208
|
+
} | {
|
|
209
|
+
amount: number;
|
|
210
|
+
type: "coin";
|
|
211
|
+
})[];
|
|
212
|
+
place: ({
|
|
213
|
+
id: string;
|
|
214
|
+
type: "npc";
|
|
215
|
+
} | {
|
|
216
|
+
type: "workbench";
|
|
217
|
+
grid: ({
|
|
218
|
+
amount: number;
|
|
219
|
+
id: string;
|
|
220
|
+
type: "item";
|
|
221
|
+
} | null)[];
|
|
222
|
+
})[];
|
|
223
|
+
}, {
|
|
224
|
+
inputs: ({
|
|
225
|
+
amount: number;
|
|
226
|
+
id: string;
|
|
227
|
+
type: "item";
|
|
228
|
+
} | {
|
|
229
|
+
amount: number;
|
|
230
|
+
type: "bit";
|
|
231
|
+
} | {
|
|
232
|
+
amount: number;
|
|
233
|
+
type: "coin";
|
|
234
|
+
})[];
|
|
235
|
+
outputs: ({
|
|
236
|
+
amount: number;
|
|
237
|
+
id: string;
|
|
238
|
+
type: "item";
|
|
239
|
+
} | {
|
|
240
|
+
amount: number;
|
|
241
|
+
type: "bit";
|
|
242
|
+
} | {
|
|
243
|
+
amount: number;
|
|
244
|
+
type: "coin";
|
|
245
|
+
})[];
|
|
246
|
+
place: ({
|
|
247
|
+
id: string;
|
|
248
|
+
type: "npc";
|
|
249
|
+
} | {
|
|
250
|
+
type: "workbench";
|
|
251
|
+
grid: ({
|
|
252
|
+
amount: number;
|
|
253
|
+
id: string;
|
|
254
|
+
type: "item";
|
|
255
|
+
} | null)[];
|
|
256
|
+
})[];
|
|
257
|
+
}>;
|
|
258
|
+
export type Action = z.output<typeof actionSchema>;
|
package/dist/schema.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.actionSchema = exports.actionPlaceSchema = exports.actionIoSchema = exports.actionIoItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.actionIoItemSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
amount: zod_1.z.number().int().finite(),
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
type: zod_1.z.literal('item'),
|
|
10
|
+
})
|
|
11
|
+
.strict();
|
|
12
|
+
exports.actionIoSchema = zod_1.z.discriminatedUnion('type', [
|
|
13
|
+
zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
amount: zod_1.z.number().int().finite(),
|
|
16
|
+
type: zod_1.z.literal('bit'),
|
|
17
|
+
})
|
|
18
|
+
.strict(),
|
|
19
|
+
zod_1.z
|
|
20
|
+
.object({
|
|
21
|
+
amount: zod_1.z.number().int().finite(),
|
|
22
|
+
type: zod_1.z.literal('coin'),
|
|
23
|
+
})
|
|
24
|
+
.strict(),
|
|
25
|
+
exports.actionIoItemSchema,
|
|
26
|
+
]);
|
|
27
|
+
exports.actionPlaceSchema = zod_1.z.discriminatedUnion('type', [
|
|
28
|
+
zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
id: zod_1.z.string(),
|
|
31
|
+
type: zod_1.z.literal('npc'),
|
|
32
|
+
})
|
|
33
|
+
.strict(),
|
|
34
|
+
zod_1.z
|
|
35
|
+
.object({
|
|
36
|
+
grid: zod_1.z.array(exports.actionIoItemSchema.nullable()).length(9),
|
|
37
|
+
type: zod_1.z.literal('workbench'),
|
|
38
|
+
})
|
|
39
|
+
.strict(),
|
|
40
|
+
]);
|
|
41
|
+
exports.actionSchema = zod_1.z
|
|
42
|
+
.object({
|
|
43
|
+
inputs: zod_1.z.array(exports.actionIoSchema),
|
|
44
|
+
outputs: zod_1.z.array(exports.actionIoSchema),
|
|
45
|
+
place: zod_1.z.array(exports.actionPlaceSchema),
|
|
46
|
+
})
|
|
47
|
+
.strict();
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bugs": {
|
|
3
|
+
"url": "https://github.com/skyblock-finance/skyblock-finance-opensource/issues"
|
|
4
|
+
},
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"zod": "^3.23.8"
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@types/bun": "latest"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"source"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"hypixel-skyblock",
|
|
17
|
+
"hypixel",
|
|
18
|
+
"skyblock-finance"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"main": "dist/index.js",
|
|
22
|
+
"name": "@skyblock-finance/actions",
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"typescript": ">= 4"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/skyblock-finance/skyblock-finance-opensource"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rm -rf dist && tsc --build",
|
|
32
|
+
"check:arethetypeswrong": "bun run attw --pack .",
|
|
33
|
+
"check:eslint": "bun run eslint --max-warnings=0 .",
|
|
34
|
+
"check:prettier": "bun --bun run --cwd ../.. prettier --check packages/actions",
|
|
35
|
+
"check:publint": "bun --bun run publint",
|
|
36
|
+
"fix:eslint": "bun run check:eslint --fix",
|
|
37
|
+
"fix:prettier": "bun --bun run check:prettier --write",
|
|
38
|
+
"publish-package": "npm publish --access public --provenance",
|
|
39
|
+
"test": "bun test"
|
|
40
|
+
},
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"type": "commonjs",
|
|
43
|
+
"types": "dist/index.d.ts",
|
|
44
|
+
"version": "0.0.1"
|
|
45
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ActionIoItem, actionSchema } from './schema'
|
|
2
|
+
import { allActions } from './data'
|
|
3
|
+
import { z } from 'zod'
|
|
4
|
+
import { describe, expect, test } from 'bun:test'
|
|
5
|
+
import assert from 'node:assert'
|
|
6
|
+
|
|
7
|
+
test('all actions follow the schema', () => {
|
|
8
|
+
expect(() => z.array(actionSchema).parse(allActions)).not.toThrow()
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
describe('every action’s inputs match its outputs', () => {
|
|
12
|
+
/**
|
|
13
|
+
* Simplifies and "sorts" action input/output items
|
|
14
|
+
*/
|
|
15
|
+
const sumUp = (ios: ActionIoItem[]): Map<string, number> => {
|
|
16
|
+
const result = new Map<string, number>()
|
|
17
|
+
|
|
18
|
+
for (const io of ios) {
|
|
19
|
+
const previousValue = result.get(io.id) ?? 0
|
|
20
|
+
result.set(io.id, previousValue + io.amount)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return result
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
test('sumUp works', () => {
|
|
27
|
+
expect(
|
|
28
|
+
sumUp([
|
|
29
|
+
{
|
|
30
|
+
amount: 1,
|
|
31
|
+
id: 'FOO',
|
|
32
|
+
type: 'item',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
amount: 2,
|
|
36
|
+
id: 'BAR',
|
|
37
|
+
type: 'item',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
amount: 1,
|
|
41
|
+
id: 'BAZ',
|
|
42
|
+
type: 'item',
|
|
43
|
+
},
|
|
44
|
+
]),
|
|
45
|
+
).toEqual(
|
|
46
|
+
sumUp([
|
|
47
|
+
{
|
|
48
|
+
amount: 1,
|
|
49
|
+
id: 'BAR',
|
|
50
|
+
type: 'item',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
amount: 1,
|
|
54
|
+
id: 'FOO',
|
|
55
|
+
type: 'item',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
amount: 1,
|
|
59
|
+
id: 'BAZ',
|
|
60
|
+
type: 'item',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
amount: 1,
|
|
64
|
+
id: 'BAR',
|
|
65
|
+
type: 'item',
|
|
66
|
+
},
|
|
67
|
+
]),
|
|
68
|
+
)
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
for (const action of allActions) {
|
|
72
|
+
for (const grid of action.place.filter((x) => x.type === 'workbench')) {
|
|
73
|
+
test(`${JSON.stringify(action.outputs)} is valid`, () => {
|
|
74
|
+
assert(grid.type === 'workbench')
|
|
75
|
+
|
|
76
|
+
const actual = sumUp(
|
|
77
|
+
action.inputs.filter((x) => x.type === 'item') as ActionIoItem[],
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
const expected = sumUp(
|
|
81
|
+
grid.grid.filter((x) => x !== null) as ActionIoItem[],
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
expect(actual).toEqual(expected)
|
|
85
|
+
})
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
})
|
package/source/data.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { actions as _bits } from '../data/bits.json'
|
|
2
|
+
import { actions as _bitsCrafts } from '../data/bits-crafts.json'
|
|
3
|
+
import { Action } from './schema'
|
|
4
|
+
|
|
5
|
+
export const bits = _bits as Action[]
|
|
6
|
+
export const bitsCrafts = _bitsCrafts as Action[]
|
|
7
|
+
|
|
8
|
+
export const allActions = [...bits, ...bitsCrafts]
|
package/source/index.ts
ADDED
package/source/schema.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const actionIoItemSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
amount: z.number().int().finite(),
|
|
6
|
+
id: z.string(),
|
|
7
|
+
type: z.literal('item'),
|
|
8
|
+
})
|
|
9
|
+
.strict()
|
|
10
|
+
|
|
11
|
+
export type ActionIoItem = z.output<typeof actionIoItemSchema>
|
|
12
|
+
|
|
13
|
+
export const actionIoSchema = z.discriminatedUnion('type', [
|
|
14
|
+
z
|
|
15
|
+
.object({
|
|
16
|
+
amount: z.number().int().finite(),
|
|
17
|
+
type: z.literal('bit'),
|
|
18
|
+
})
|
|
19
|
+
.strict(),
|
|
20
|
+
z
|
|
21
|
+
.object({
|
|
22
|
+
amount: z.number().int().finite(),
|
|
23
|
+
type: z.literal('coin'),
|
|
24
|
+
})
|
|
25
|
+
.strict(),
|
|
26
|
+
actionIoItemSchema,
|
|
27
|
+
])
|
|
28
|
+
|
|
29
|
+
export type ActionIo = z.output<typeof actionIoSchema>
|
|
30
|
+
|
|
31
|
+
export const actionPlaceSchema = z.discriminatedUnion('type', [
|
|
32
|
+
z
|
|
33
|
+
.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
type: z.literal('npc'),
|
|
36
|
+
})
|
|
37
|
+
.strict(),
|
|
38
|
+
z
|
|
39
|
+
.object({
|
|
40
|
+
grid: z.array(actionIoItemSchema.nullable()).length(9),
|
|
41
|
+
type: z.literal('workbench'),
|
|
42
|
+
})
|
|
43
|
+
.strict(),
|
|
44
|
+
])
|
|
45
|
+
|
|
46
|
+
export const actionSchema = z
|
|
47
|
+
.object({
|
|
48
|
+
inputs: z.array(actionIoSchema),
|
|
49
|
+
outputs: z.array(actionIoSchema),
|
|
50
|
+
place: z.array(actionPlaceSchema),
|
|
51
|
+
})
|
|
52
|
+
.strict()
|
|
53
|
+
|
|
54
|
+
export type Action = z.output<typeof actionSchema>
|