@temboplus/tembo-dashboard 0.2.0 → 0.2.2

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 (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +46 -92
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.d.ts +3 -2
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.esm.js +1 -1
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/lib/api/base-repository.d.ts +4 -4
  10. package/dist/lib/api/base-repository.d.ts.map +1 -0
  11. package/dist/lib/api/common-schemas.d.ts +37 -296
  12. package/dist/lib/api/common-schemas.d.ts.map +1 -0
  13. package/dist/lib/api/index.d.ts +1 -0
  14. package/dist/lib/api/index.d.ts.map +1 -0
  15. package/dist/lib/error/error.api.d.ts +3 -2
  16. package/dist/lib/error/error.api.d.ts.map +1 -0
  17. package/dist/lib/error/index.d.ts +1 -0
  18. package/dist/lib/error/index.d.ts.map +1 -0
  19. package/dist/lib/models/index.d.ts +2 -1
  20. package/dist/lib/models/index.d.ts.map +1 -0
  21. package/dist/lib/models/statement-entry.model.d.ts +3 -2
  22. package/dist/lib/models/statement-entry.model.d.ts.map +1 -0
  23. package/dist/lib/models/transaction-summary.model.d.ts +3 -2
  24. package/dist/lib/models/transaction-summary.model.d.ts.map +1 -0
  25. package/dist/lib/models/wallet-info.model.d.ts +2 -1
  26. package/dist/lib/models/wallet-info.model.d.ts.map +1 -0
  27. package/dist/lib/query/index.d.ts +1 -0
  28. package/dist/lib/query/index.d.ts.map +1 -0
  29. package/dist/lib/query/query.builder.d.ts +2 -1
  30. package/dist/lib/query/query.builder.d.ts.map +1 -0
  31. package/dist/lib/query/query.types.d.ts +1 -0
  32. package/dist/lib/query/query.types.d.ts.map +1 -0
  33. package/dist/lib/types.d.ts +1 -0
  34. package/dist/lib/types.d.ts.map +1 -0
  35. package/dist/modules/auth/auth.api-contract.d.ts +11 -108
  36. package/dist/modules/auth/auth.api-contract.d.ts.map +1 -0
  37. package/dist/modules/auth/auth.dtos.d.ts +4 -23
  38. package/dist/modules/auth/auth.dtos.d.ts.map +1 -0
  39. package/dist/modules/auth/auth.repository.d.ts +1 -0
  40. package/dist/modules/auth/auth.repository.d.ts.map +1 -0
  41. package/dist/modules/auth/index.d.ts +3 -2
  42. package/dist/modules/auth/index.d.ts.map +1 -0
  43. package/dist/modules/auth/user.model.d.ts +1 -0
  44. package/dist/modules/auth/user.model.d.ts.map +1 -0
  45. package/dist/modules/collection/collection.api-contract.d.ts +35 -387
  46. package/dist/modules/collection/collection.api-contract.d.ts.map +1 -0
  47. package/dist/modules/collection/collection.model.d.ts +3 -2
  48. package/dist/modules/collection/collection.model.d.ts.map +1 -0
  49. package/dist/modules/collection/collection.query.d.ts +2 -1
  50. package/dist/modules/collection/collection.query.d.ts.map +1 -0
  51. package/dist/modules/collection/collection.repository.d.ts +4 -3
  52. package/dist/modules/collection/collection.repository.d.ts.map +1 -0
  53. package/dist/modules/collection/collection.types.d.ts +32 -167
  54. package/dist/modules/collection/collection.types.d.ts.map +1 -0
  55. package/dist/modules/collection/index.d.ts +3 -2
  56. package/dist/modules/collection/index.d.ts.map +1 -0
  57. package/dist/modules/payout/index.d.ts +3 -2
  58. package/dist/modules/payout/index.d.ts.map +1 -0
  59. package/dist/modules/payout/payout.api-contract.d.ts +36 -402
  60. package/dist/modules/payout/payout.api-contract.d.ts.map +1 -0
  61. package/dist/modules/payout/payout.model.d.ts +4 -3
  62. package/dist/modules/payout/payout.model.d.ts.map +1 -0
  63. package/dist/modules/payout/payout.query.d.ts +2 -1
  64. package/dist/modules/payout/payout.query.d.ts.map +1 -0
  65. package/dist/modules/payout/payout.repository.d.ts +4 -3
  66. package/dist/modules/payout/payout.repository.d.ts.map +1 -0
  67. package/dist/modules/payout/payout.types.d.ts +39 -214
  68. package/dist/modules/payout/payout.types.d.ts.map +1 -0
  69. package/dist/modules/transaction/index.d.ts +1 -0
  70. package/dist/modules/transaction/index.d.ts.map +1 -0
  71. package/dist/modules/transaction/transaction.api-contract.d.ts +7 -84
  72. package/dist/modules/transaction/transaction.api-contract.d.ts.map +1 -0
  73. package/dist/modules/transaction/transaction.repository.d.ts +2 -1
  74. package/dist/modules/transaction/transaction.repository.d.ts.map +1 -0
  75. package/dist/modules/transaction/transaction.types.d.ts +3 -28
  76. package/dist/modules/transaction/transaction.types.d.ts.map +1 -0
  77. package/dist/modules/wallet/index.d.ts +1 -0
  78. package/dist/modules/wallet/index.d.ts.map +1 -0
  79. package/dist/modules/wallet/wallet.api-contract.d.ts +32 -287
  80. package/dist/modules/wallet/wallet.api-contract.d.ts.map +1 -0
  81. package/dist/modules/wallet/wallet.model.d.ts +2 -1
  82. package/dist/modules/wallet/wallet.model.d.ts.map +1 -0
  83. package/dist/modules/wallet/wallet.repository.d.ts +2 -1
  84. package/dist/modules/wallet/wallet.repository.d.ts.map +1 -0
  85. package/dist/modules/wallet/wallet.types.d.ts +8 -61
  86. package/dist/modules/wallet/wallet.types.d.ts.map +1 -0
  87. package/package.json +34 -23
package/package.json CHANGED
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "name": "@temboplus/tembo-dashboard",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "A foundational library for Temboplus-Dashboard projects providing type-safe data layer abstraction with API contracts, domain models, and repositories.",
5
+ "author": "Okello Gerald",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "temboplus",
9
+ "tembo-dashboard"
10
+ ],
11
+ "type": "module",
12
+ "sideEffects": false,
5
13
  "main": "./dist/index.cjs.js",
6
14
  "module": "./dist/index.esm.js",
7
15
  "types": "./dist/index.d.ts",
8
- "type": "module",
9
16
  "exports": {
10
17
  ".": {
11
18
  "types": "./dist/index.d.ts",
@@ -16,48 +23,52 @@
16
23
  "files": [
17
24
  "dist"
18
25
  ],
26
+ "engines": {
27
+ "node": ">=20",
28
+ "bun": ">=1.1"
29
+ },
19
30
  "scripts": {
20
- "build": "./node_modules/.bin/rollup -c rollup.config.js && ./node_modules/.bin/tsc-alias -p tsconfig.json --outDir dist",
21
- "prepare": "npm run build",
22
- "dev": "npm run build -- --watch",
23
- "test": "echo \"Error: no test specified\" && exit 1"
31
+ "dev": "bun x rollup -c rollup.config.js --watch",
32
+ "build": "bun x rollup -c rollup.config.js && bun x tsc-alias -p tsconfig.json --outDir dist",
33
+ "test": "bun test --pass-with-no-tests",
34
+ "lint": "bun x @biomejs/biome check src",
35
+ "format": "bun x @biomejs/biome check --write src",
36
+ "typecheck": "bun x tsc --noEmit",
37
+ "release": "echo 'Releases are tag-driven. Update CHANGELOG.md, bump version in package.json, then: git tag vX.Y.Z && git push origin main --tags'",
38
+ "prepublishOnly": "bun run typecheck && bun run test && bun run build"
24
39
  },
25
40
  "repository": {
26
41
  "type": "git",
27
42
  "url": "git+https://github.com/TemboPlus-Frontend/tembo-dashboard-js.git"
28
43
  },
29
- "keywords": [
30
- "temboplus",
31
- "tembo-dashboard"
32
- ],
33
- "author": "Okello Gerald",
34
- "license": "MIT",
35
44
  "bugs": {
36
45
  "url": "https://github.com/TemboPlus-Frontend/tembo-dashboard-js/issues"
37
46
  },
38
47
  "homepage": "https://github.com/TemboPlus-Frontend/tembo-dashboard-js#readme",
48
+ "publishConfig": {
49
+ "access": "public",
50
+ "registry": "https://registry.npmjs.org"
51
+ },
52
+ "dependencies": {
53
+ "@temboplus/frontend-core": "^1.0.3"
54
+ },
39
55
  "peerDependencies": {
40
- "@ts-rest/core": "^3.52.1",
56
+ "@ts-rest/core": "^3.53.0-rc.1",
41
57
  "tslib": "^2.8.1",
42
- "uuid": "^11.1.0",
43
- "zod": "^3.24.2"
58
+ "uuid": "^14.0.0",
59
+ "zod": "^4.4.3"
44
60
  },
45
61
  "devDependencies": {
62
+ "@biomejs/biome": "^2.4.16",
46
63
  "@rollup/plugin-alias": "^5.1.1",
47
64
  "@rollup/plugin-commonjs": "^28.0.3",
48
65
  "@rollup/plugin-json": "^6.1.0",
49
66
  "@rollup/plugin-node-resolve": "^16.0.1",
50
67
  "@rollup/plugin-terser": "^0.4.4",
51
68
  "@rollup/plugin-typescript": "^12.1.3",
52
- "@types/jest": "^29.5.14",
53
- "jest": "^29.7.0",
69
+ "@types/bun": "^1.3.14",
54
70
  "rollup": "^4.39.0",
55
- "ts-jest": "^29.3.1",
56
- "ts-node": "^10.9.2",
57
71
  "tsc-alias": "^1.8.16",
58
- "typescript": "^5.8.3"
59
- },
60
- "dependencies": {
61
- "@temboplus/frontend-core": "^1.0.2"
72
+ "typescript": "^6.0.3"
62
73
  }
63
74
  }