@n1xyz/nord-ts 0.0.17 → 0.0.18

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.
Files changed (48) hide show
  1. package/.local/qa.ts +77 -0
  2. package/.local/test-atomic.ts +112 -0
  3. package/check.sh +4 -0
  4. package/default.nix +47 -0
  5. package/dist/api/client.d.ts +14 -0
  6. package/dist/api/client.js +45 -0
  7. package/dist/gen/nord.d.ts +52 -23
  8. package/dist/gen/nord.js +322 -170
  9. package/dist/gen/openapi.d.ts +2244 -0
  10. package/dist/gen/openapi.js +6 -0
  11. package/dist/index.d.ts +0 -1
  12. package/dist/index.js +0 -9
  13. package/dist/nord/api/actions.d.ts +30 -1
  14. package/dist/nord/api/actions.js +60 -3
  15. package/dist/nord/api/core.d.ts +1 -34
  16. package/dist/nord/api/core.js +0 -71
  17. package/dist/nord/client/Nord.d.ts +31 -33
  18. package/dist/nord/client/Nord.js +100 -60
  19. package/dist/nord/client/NordUser.d.ts +64 -11
  20. package/dist/nord/client/NordUser.js +91 -33
  21. package/dist/nord/index.d.ts +0 -2
  22. package/dist/nord/index.js +0 -2
  23. package/dist/nord/models/Subscriber.d.ts +2 -2
  24. package/dist/types.d.ts +43 -190
  25. package/dist/utils.d.ts +1 -28
  26. package/dist/utils.js +5 -58
  27. package/dist/websocket/NordWebSocketClient.js +18 -13
  28. package/dist/websocket/index.d.ts +1 -1
  29. package/package.json +23 -31
  30. package/src/index.ts +0 -16
  31. package/src/nord/api/actions.ts +131 -9
  32. package/src/nord/api/core.ts +0 -71
  33. package/src/nord/client/Nord.ts +142 -76
  34. package/src/nord/client/NordUser.ts +171 -51
  35. package/src/nord/index.ts +0 -2
  36. package/src/nord/models/Subscriber.ts +2 -2
  37. package/src/types.ts +55 -216
  38. package/src/utils.ts +6 -63
  39. package/src/websocket/NordWebSocketClient.ts +23 -15
  40. package/src/websocket/index.ts +1 -1
  41. package/tests/utils.spec.ts +1 -34
  42. package/dist/idl/bridge.json +0 -1506
  43. package/jest.config.ts +0 -9
  44. package/nodemon.json +0 -4
  45. package/protoc-generate.sh +0 -23
  46. package/src/idl/bridge.json +0 -1506
  47. package/src/nord/api/market.ts +0 -122
  48. package/src/nord/api/queries.ts +0 -135
package/jest.config.ts DELETED
@@ -1,9 +0,0 @@
1
- import type {Config} from '@jest/types';
2
- // Sync object
3
- const config: Config.InitialOptions = {
4
- verbose: true,
5
- transform: {
6
- "^.+\\.tsx?$": "ts-jest",
7
- },
8
- };
9
- export default config;
package/nodemon.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "watch": ["src", "tests"],
3
- "ext": "js, ts"
4
- }
@@ -1,23 +0,0 @@
1
- #!/bin/sh
2
-
3
- SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
4
- PROTO_PATH="${SCRIPT_DIR}/../engine/nord.proto"
5
- PROTO_INCLUE_PATH="${SCRIPT_DIR}/.."
6
- PLUGIN_PATH="${SCRIPT_DIR}/node_modules/.bin/protoc-gen-ts_proto"
7
- OUT_DIR="${SCRIPT_DIR}/src/gen"
8
-
9
- # Clean all existing generated files
10
- rm -rf "${OUT_DIR}"
11
- mkdir "${OUT_DIR}"
12
-
13
- # Generate all messages
14
- protoc \
15
- --plugin="${PLUGIN_PATH}" \
16
- --ts_proto_opt=forceLong=bigint \
17
- --ts_proto_opt=esModuleInterop=true \
18
- --ts_proto_opt=oneof=unions-value \
19
- --ts_proto_opt=unrecognizedEnum=false \
20
- --ts_proto_out="${OUT_DIR}" \
21
- --proto_path="$(dirname "${PROTO_PATH}")" \
22
- --proto_path="${PROTO_INCLUE_PATH}" \
23
- "${PROTO_PATH}"