@temboplus/afloat 0.1.77-beta.8 → 0.1.78

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 (635) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +42 -246
  3. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts +5 -0
  4. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts.map +1 -0
  5. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.js +4 -0
  6. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts +11 -0
  7. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts.map +1 -0
  8. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.js +19 -0
  9. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts +2 -0
  10. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.js +1 -0
  12. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts +7 -0
  13. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts.map +1 -0
  14. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.js +197 -0
  15. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts +39 -0
  16. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.js +2475 -0
  18. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts +1901 -0
  19. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.js +1073 -0
  21. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts +3809 -0
  22. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.js +2325 -0
  24. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts +53 -0
  25. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.js +190 -0
  27. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts +40 -0
  28. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.js +58 -0
  30. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts +3 -0
  31. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.js +2 -0
  33. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts +11 -0
  34. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.js +26 -0
  36. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts +257 -0
  37. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.js +450 -0
  39. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts +5 -0
  40. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts.map +1 -0
  41. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.js +4 -0
  42. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts +7 -0
  43. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.js +45 -0
  45. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts +8 -0
  46. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts.map +1 -0
  47. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.js +9 -0
  48. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts +822 -0
  49. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts.map +1 -0
  50. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.js +737 -0
  51. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts +4 -0
  52. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts.map +1 -0
  53. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.js +3 -0
  54. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts +63 -0
  55. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts.map +1 -0
  56. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.js +105 -0
  57. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts +21 -0
  58. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts.map +1 -0
  59. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.js +25 -0
  60. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts +465 -0
  61. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts.map +1 -0
  62. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.js +471 -0
  63. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts +4 -0
  64. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts.map +1 -0
  65. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.js +3 -0
  66. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts +21 -0
  67. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts.map +1 -0
  68. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.js +28 -0
  69. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts +8 -0
  70. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts.map +1 -0
  71. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.js +9 -0
  72. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts +6 -0
  73. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts.map +1 -0
  74. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.js +5 -0
  75. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts +13 -0
  76. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts.map +1 -0
  77. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.js +13 -0
  78. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts +162 -0
  79. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts.map +1 -0
  80. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.js +459 -0
  81. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts +267 -0
  82. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts.map +1 -0
  83. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.js +498 -0
  84. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts +6 -0
  85. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts.map +1 -0
  86. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.js +5 -0
  87. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts +77 -0
  88. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts.map +1 -0
  89. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.js +90 -0
  90. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts +30 -0
  91. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts.map +1 -0
  92. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.js +47 -0
  93. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts +141 -0
  94. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts.map +1 -0
  95. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.js +290 -0
  96. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts +2 -0
  97. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts.map +1 -0
  98. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.js +1 -0
  99. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts +144 -0
  100. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts.map +1 -0
  101. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.js +318 -0
  102. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts +12 -0
  103. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts.map +1 -0
  104. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.js +19 -0
  105. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts +4 -0
  106. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts.map +1 -0
  107. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.js +3 -0
  108. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts +32 -0
  109. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts.map +1 -0
  110. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.js +68 -0
  111. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts +21 -0
  112. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts.map +1 -0
  113. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.js +34 -0
  114. package/esm/mod.d.ts +8 -0
  115. package/esm/mod.d.ts.map +1 -0
  116. package/esm/mod.js +7 -0
  117. package/esm/package.json +3 -0
  118. package/{dist/lib/error/error.api.d.ts → esm/src/errors/api_error.d.ts} +1 -0
  119. package/esm/src/errors/api_error.d.ts.map +1 -0
  120. package/esm/src/errors/api_error.js +90 -0
  121. package/esm/src/errors/index.d.ts +3 -0
  122. package/esm/src/errors/index.d.ts.map +1 -0
  123. package/esm/src/errors/index.js +2 -0
  124. package/{dist/lib/error/error.permission.d.ts → esm/src/errors/permission_error.d.ts} +2 -1
  125. package/esm/src/errors/permission_error.d.ts.map +1 -0
  126. package/esm/src/errors/permission_error.js +70 -0
  127. package/{dist/modules/team-member/team-member.contract.d.ts → esm/src/features/admin/contract.d.ts} +136 -211
  128. package/esm/src/features/admin/contract.d.ts.map +1 -0
  129. package/esm/src/features/admin/contract.js +210 -0
  130. package/esm/src/features/admin/index.d.ts +4 -0
  131. package/esm/src/features/admin/index.d.ts.map +1 -0
  132. package/esm/src/features/admin/index.js +3 -0
  133. package/esm/src/features/admin/repository.d.ts +114 -0
  134. package/esm/src/features/admin/repository.d.ts.map +1 -0
  135. package/esm/src/features/admin/repository.js +248 -0
  136. package/esm/src/features/admin/schemas.d.ts +146 -0
  137. package/esm/src/features/admin/schemas.d.ts.map +1 -0
  138. package/esm/src/features/admin/schemas.js +206 -0
  139. package/esm/src/features/auth/access/contract.d.ts +14 -0
  140. package/esm/src/features/auth/access/contract.d.ts.map +1 -0
  141. package/esm/src/features/auth/access/contract.js +14 -0
  142. package/esm/src/features/auth/access/repository.d.ts +11 -0
  143. package/esm/src/features/auth/access/repository.d.ts.map +1 -0
  144. package/esm/src/features/auth/access/repository.js +25 -0
  145. package/{dist/modules/auth/auth.contract.d.ts → esm/src/features/auth/contract.d.ts} +17 -14
  146. package/esm/src/features/auth/contract.d.ts.map +1 -0
  147. package/esm/src/features/auth/contract.js +43 -0
  148. package/esm/src/features/auth/identity/contract.d.ts +23 -0
  149. package/esm/src/features/auth/identity/contract.d.ts.map +1 -0
  150. package/esm/src/features/auth/identity/contract.js +17 -0
  151. package/esm/src/features/auth/identity/repository.d.ts +22 -0
  152. package/esm/src/features/auth/identity/repository.d.ts.map +1 -0
  153. package/esm/src/features/auth/identity/repository.js +30 -0
  154. package/esm/src/features/auth/index.d.ts +6 -0
  155. package/esm/src/features/auth/index.d.ts.map +1 -0
  156. package/esm/src/features/auth/index.js +5 -0
  157. package/esm/src/features/auth/manager.d.ts +105 -0
  158. package/esm/src/features/auth/manager.d.ts.map +1 -0
  159. package/esm/src/features/auth/manager.js +181 -0
  160. package/{dist/modules/profile/profile.api-contract.d.ts → esm/src/features/auth/profile/contract.d.ts} +6 -8
  161. package/esm/src/features/auth/profile/contract.d.ts.map +1 -0
  162. package/esm/src/features/auth/profile/contract.js +14 -0
  163. package/esm/src/features/auth/profile/repository.d.ts +11 -0
  164. package/esm/src/features/auth/profile/repository.d.ts.map +1 -0
  165. package/esm/src/features/auth/profile/repository.js +25 -0
  166. package/esm/src/features/auth/repository.d.ts +30 -0
  167. package/esm/src/features/auth/repository.d.ts.map +1 -0
  168. package/esm/src/features/auth/repository.js +69 -0
  169. package/{dist/modules/auth/storage/client-store.d.ts → esm/src/features/auth/storage/client_store.d.ts} +2 -1
  170. package/esm/src/features/auth/storage/client_store.d.ts.map +1 -0
  171. package/esm/src/features/auth/storage/client_store.js +46 -0
  172. package/{dist/modules/auth/storage/client-token-handler.d.ts → esm/src/features/auth/storage/client_token_handler.d.ts} +1 -0
  173. package/esm/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
  174. package/esm/src/features/auth/storage/client_token_handler.js +36 -0
  175. package/esm/src/features/auth/storage/server_store.d.ts +24 -0
  176. package/esm/src/features/auth/storage/server_store.d.ts.map +1 -0
  177. package/esm/src/features/auth/storage/server_store.js +34 -0
  178. package/esm/src/features/auth/storage/server_token_handler.d.ts +36 -0
  179. package/esm/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
  180. package/esm/src/features/auth/storage/server_token_handler.js +115 -0
  181. package/{dist/modules → esm/src/features}/auth/storage/types.d.ts +2 -1
  182. package/esm/src/features/auth/storage/types.d.ts.map +1 -0
  183. package/esm/src/features/auth/storage/types.js +1 -0
  184. package/{dist/modules/contact/contact.api-contract.d.ts → esm/src/features/contact/contract.d.ts} +56 -89
  185. package/esm/src/features/contact/contract.d.ts.map +1 -0
  186. package/esm/src/features/contact/contract.js +49 -0
  187. package/esm/src/features/contact/index.d.ts +2 -0
  188. package/esm/src/features/contact/index.d.ts.map +1 -0
  189. package/esm/src/features/contact/index.js +1 -0
  190. package/esm/src/features/contact/repository.d.ts +58 -0
  191. package/esm/src/features/contact/repository.d.ts.map +1 -0
  192. package/esm/src/features/contact/repository.js +108 -0
  193. package/{dist/modules/payout/payout.api-contract.d.ts → esm/src/features/payout/contract.d.ts} +198 -341
  194. package/esm/src/features/payout/contract.d.ts.map +1 -0
  195. package/esm/src/features/payout/contract.js +75 -0
  196. package/esm/src/features/payout/index.d.ts +2 -0
  197. package/esm/src/features/payout/index.d.ts.map +1 -0
  198. package/esm/src/features/payout/index.js +1 -0
  199. package/esm/src/features/payout/repository.d.ts +67 -0
  200. package/esm/src/features/payout/repository.d.ts.map +1 -0
  201. package/esm/src/features/payout/repository.js +163 -0
  202. package/{dist/modules/wallet/wallet.contract.d.ts → esm/src/features/wallet/contract.d.ts} +15 -17
  203. package/esm/src/features/wallet/contract.d.ts.map +1 -0
  204. package/esm/src/features/wallet/contract.js +38 -0
  205. package/esm/src/features/wallet/index.d.ts +2 -0
  206. package/esm/src/features/wallet/index.d.ts.map +1 -0
  207. package/esm/src/features/wallet/index.js +1 -0
  208. package/esm/src/features/wallet/repository.d.ts +57 -0
  209. package/esm/src/features/wallet/repository.d.ts.map +1 -0
  210. package/esm/src/features/wallet/repository.js +93 -0
  211. package/esm/src/models/contact/derivatives/contact.d.ts +172 -0
  212. package/esm/src/models/contact/derivatives/contact.d.ts.map +1 -0
  213. package/esm/src/models/contact/derivatives/contact.js +266 -0
  214. package/esm/src/models/contact/derivatives/contact_info.d.ts +188 -0
  215. package/esm/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
  216. package/esm/src/models/contact/derivatives/contact_info.js +255 -0
  217. package/esm/src/models/contact/index.d.ts +5 -0
  218. package/esm/src/models/contact/index.d.ts.map +1 -0
  219. package/esm/src/models/contact/index.js +4 -0
  220. package/esm/src/models/contact/schemas.d.ts +66 -0
  221. package/esm/src/models/contact/schemas.d.ts.map +1 -0
  222. package/esm/src/models/contact/schemas.js +64 -0
  223. package/esm/src/models/contact/validation.d.ts +37 -0
  224. package/esm/src/models/contact/validation.d.ts.map +1 -0
  225. package/esm/src/models/contact/validation.js +146 -0
  226. package/esm/src/models/index.d.ts +7 -0
  227. package/esm/src/models/index.d.ts.map +1 -0
  228. package/esm/src/models/index.js +6 -0
  229. package/esm/src/models/payout/api.d.ts +29 -0
  230. package/esm/src/models/payout/api.d.ts.map +1 -0
  231. package/esm/src/models/payout/api.js +1 -0
  232. package/esm/src/models/payout/channel.d.ts +58 -0
  233. package/esm/src/models/payout/channel.d.ts.map +1 -0
  234. package/esm/src/models/payout/channel.js +53 -0
  235. package/{dist/modules/payout/payout.model.d.ts → esm/src/models/payout/derivatives/payout.d.ts} +34 -15
  236. package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -0
  237. package/esm/src/models/payout/derivatives/payout.js +271 -0
  238. package/esm/src/models/payout/index.d.ts +7 -0
  239. package/esm/src/models/payout/index.d.ts.map +1 -0
  240. package/esm/src/models/payout/index.js +6 -0
  241. package/esm/src/models/payout/narration.d.ts +164 -0
  242. package/esm/src/models/payout/narration.d.ts.map +1 -0
  243. package/esm/src/models/payout/narration.js +308 -0
  244. package/esm/src/models/payout/schemas.d.ts +156 -0
  245. package/esm/src/models/payout/schemas.d.ts.map +1 -0
  246. package/esm/src/models/payout/schemas.js +105 -0
  247. package/esm/src/models/payout/status.d.ts +33 -0
  248. package/esm/src/models/payout/status.d.ts.map +1 -0
  249. package/esm/src/models/payout/status.js +34 -0
  250. package/{dist/modules/login/permission.type.d.ts → esm/src/models/permission.d.ts} +9 -8
  251. package/esm/src/models/permission.d.ts.map +1 -0
  252. package/esm/src/models/permission.js +50 -0
  253. package/{dist/modules/team-member/role.model.d.ts → esm/src/models/role.d.ts} +11 -3
  254. package/esm/src/models/role.d.ts.map +1 -0
  255. package/esm/src/models/role.js +73 -0
  256. package/esm/src/models/user/authenticated-user.d.ts +77 -0
  257. package/esm/src/models/user/authenticated-user.d.ts.map +1 -0
  258. package/esm/src/models/user/authenticated-user.js +226 -0
  259. package/esm/src/models/user/index.d.ts +4 -0
  260. package/esm/src/models/user/index.d.ts.map +1 -0
  261. package/esm/src/models/user/index.js +3 -0
  262. package/esm/src/models/user/managed-user.d.ts +108 -0
  263. package/esm/src/models/user/managed-user.d.ts.map +1 -0
  264. package/esm/src/models/user/managed-user.js +255 -0
  265. package/{dist/modules/profile/profile.model.d.ts → esm/src/models/user/profile.d.ts} +43 -37
  266. package/esm/src/models/user/profile.d.ts.map +1 -0
  267. package/esm/src/models/user/profile.js +334 -0
  268. package/esm/src/models/wallet/index.d.ts +4 -0
  269. package/esm/src/models/wallet/index.d.ts.map +1 -0
  270. package/esm/src/models/wallet/index.js +3 -0
  271. package/esm/src/models/wallet/schemas.d.ts +95 -0
  272. package/esm/src/models/wallet/schemas.d.ts.map +1 -0
  273. package/esm/src/models/wallet/schemas.js +35 -0
  274. package/esm/src/models/wallet/statement_entry.d.ts +160 -0
  275. package/esm/src/models/wallet/statement_entry.d.ts.map +1 -0
  276. package/esm/src/models/wallet/statement_entry.js +255 -0
  277. package/{dist/modules/wallet/wallet.model.d.ts → esm/src/models/wallet/wallet.d.ts} +47 -4
  278. package/esm/src/models/wallet/wallet.d.ts.map +1 -0
  279. package/esm/src/models/wallet/wallet.js +279 -0
  280. package/esm/src/shared/base_repository.d.ts +80 -0
  281. package/esm/src/shared/base_repository.d.ts.map +1 -0
  282. package/esm/src/shared/base_repository.js +153 -0
  283. package/esm/src/shared/common_responses.d.ts +13 -0
  284. package/esm/src/shared/common_responses.d.ts.map +1 -0
  285. package/esm/src/shared/common_responses.js +10 -0
  286. package/esm/src/shared/index.d.ts +3 -0
  287. package/esm/src/shared/index.d.ts.map +1 -0
  288. package/esm/src/shared/index.js +2 -0
  289. package/esm/src/shared/token_required_repository.d.ts +78 -0
  290. package/esm/src/shared/token_required_repository.d.ts.map +1 -0
  291. package/esm/src/shared/token_required_repository.js +128 -0
  292. package/package.json +23 -48
  293. package/script/mod.d.ts +8 -0
  294. package/script/mod.d.ts.map +1 -0
  295. package/script/mod.js +23 -0
  296. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts +5 -0
  297. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts.map +1 -0
  298. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.js +20 -0
  299. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts +11 -0
  300. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts.map +1 -0
  301. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.js +23 -0
  302. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts +2 -0
  303. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts.map +1 -0
  304. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.js +17 -0
  305. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts +7 -0
  306. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts.map +1 -0
  307. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.js +199 -0
  308. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts +39 -0
  309. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts.map +1 -0
  310. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.js +2477 -0
  311. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts +1901 -0
  312. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts.map +1 -0
  313. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.js +1075 -0
  314. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts +3809 -0
  315. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts.map +1 -0
  316. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.js +2327 -0
  317. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts +53 -0
  318. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts.map +1 -0
  319. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.js +194 -0
  320. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts +40 -0
  321. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts.map +1 -0
  322. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.js +62 -0
  323. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts +3 -0
  324. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts.map +1 -0
  325. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.js +18 -0
  326. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts +11 -0
  327. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts.map +1 -0
  328. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.js +30 -0
  329. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts +257 -0
  330. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts.map +1 -0
  331. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.js +458 -0
  332. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts +5 -0
  333. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts.map +1 -0
  334. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.js +20 -0
  335. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts +7 -0
  336. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts.map +1 -0
  337. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.js +48 -0
  338. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts +8 -0
  339. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts.map +1 -0
  340. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.js +12 -0
  341. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts +822 -0
  342. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts.map +1 -0
  343. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.js +745 -0
  344. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts +4 -0
  345. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts.map +1 -0
  346. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.js +19 -0
  347. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts +63 -0
  348. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts.map +1 -0
  349. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.js +108 -0
  350. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts +21 -0
  351. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts.map +1 -0
  352. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.js +30 -0
  353. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts +465 -0
  354. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts.map +1 -0
  355. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.js +479 -0
  356. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts +4 -0
  357. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts.map +1 -0
  358. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.js +19 -0
  359. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts +21 -0
  360. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts.map +1 -0
  361. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.js +31 -0
  362. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts +8 -0
  363. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts.map +1 -0
  364. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.js +12 -0
  365. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts +6 -0
  366. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts.map +1 -0
  367. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.js +21 -0
  368. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts +13 -0
  369. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts.map +1 -0
  370. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.js +16 -0
  371. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts +162 -0
  372. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts.map +1 -0
  373. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.js +463 -0
  374. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts +267 -0
  375. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts.map +1 -0
  376. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.js +506 -0
  377. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts +6 -0
  378. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts.map +1 -0
  379. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.js +21 -0
  380. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts +77 -0
  381. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts.map +1 -0
  382. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.js +94 -0
  383. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts +30 -0
  384. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts.map +1 -0
  385. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.js +50 -0
  386. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts +141 -0
  387. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts.map +1 -0
  388. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.js +294 -0
  389. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts +2 -0
  390. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts.map +1 -0
  391. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.js +17 -0
  392. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts +144 -0
  393. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts.map +1 -0
  394. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.js +328 -0
  395. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts +12 -0
  396. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts.map +1 -0
  397. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.js +23 -0
  398. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts +4 -0
  399. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts.map +1 -0
  400. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.js +19 -0
  401. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts +32 -0
  402. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts.map +1 -0
  403. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.js +75 -0
  404. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts +21 -0
  405. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts.map +1 -0
  406. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.js +39 -0
  407. package/script/npm/src/mod.d.ts +8 -0
  408. package/script/npm/src/mod.d.ts.map +1 -0
  409. package/script/npm/src/mod.js +23 -0
  410. package/script/npm/src/src/errors/api_error.d.ts +63 -0
  411. package/script/npm/src/src/errors/api_error.d.ts.map +1 -0
  412. package/script/npm/src/src/errors/api_error.js +94 -0
  413. package/script/npm/src/src/errors/index.d.ts +3 -0
  414. package/script/npm/src/src/errors/index.d.ts.map +1 -0
  415. package/script/npm/src/src/errors/index.js +18 -0
  416. package/script/npm/src/src/errors/permission_error.d.ts +48 -0
  417. package/script/npm/src/src/errors/permission_error.d.ts.map +1 -0
  418. package/script/npm/src/src/errors/permission_error.js +74 -0
  419. package/script/npm/src/src/features/admin/contract.d.ts +842 -0
  420. package/script/npm/src/src/features/admin/contract.d.ts.map +1 -0
  421. package/script/npm/src/src/features/admin/contract.js +213 -0
  422. package/script/npm/src/src/features/admin/index.d.ts +4 -0
  423. package/script/npm/src/src/features/admin/index.d.ts.map +1 -0
  424. package/script/npm/src/src/features/admin/index.js +19 -0
  425. package/script/npm/src/src/features/admin/repository.d.ts +114 -0
  426. package/script/npm/src/src/features/admin/repository.d.ts.map +1 -0
  427. package/script/npm/src/src/features/admin/repository.js +252 -0
  428. package/script/npm/src/src/features/admin/schemas.d.ts +146 -0
  429. package/script/npm/src/src/features/admin/schemas.d.ts.map +1 -0
  430. package/script/npm/src/src/features/admin/schemas.js +209 -0
  431. package/script/npm/src/src/features/auth/access/contract.d.ts +14 -0
  432. package/script/npm/src/src/features/auth/access/contract.d.ts.map +1 -0
  433. package/script/npm/src/src/features/auth/access/contract.js +17 -0
  434. package/script/npm/src/src/features/auth/access/repository.d.ts +11 -0
  435. package/script/npm/src/src/features/auth/access/repository.d.ts.map +1 -0
  436. package/script/npm/src/src/features/auth/access/repository.js +29 -0
  437. package/script/npm/src/src/features/auth/contract.d.ts +112 -0
  438. package/script/npm/src/src/features/auth/contract.d.ts.map +1 -0
  439. package/script/npm/src/src/features/auth/contract.js +46 -0
  440. package/script/npm/src/src/features/auth/identity/contract.d.ts +23 -0
  441. package/script/npm/src/src/features/auth/identity/contract.d.ts.map +1 -0
  442. package/script/npm/src/src/features/auth/identity/contract.js +20 -0
  443. package/script/npm/src/src/features/auth/identity/repository.d.ts +22 -0
  444. package/script/npm/src/src/features/auth/identity/repository.d.ts.map +1 -0
  445. package/script/npm/src/src/features/auth/identity/repository.js +34 -0
  446. package/script/npm/src/src/features/auth/index.d.ts +6 -0
  447. package/script/npm/src/src/features/auth/index.d.ts.map +1 -0
  448. package/script/npm/src/src/features/auth/index.js +21 -0
  449. package/script/npm/src/src/features/auth/manager.d.ts +105 -0
  450. package/script/npm/src/src/features/auth/manager.d.ts.map +1 -0
  451. package/script/npm/src/src/features/auth/manager.js +185 -0
  452. package/script/npm/src/src/features/auth/profile/contract.d.ts +37 -0
  453. package/script/npm/src/src/features/auth/profile/contract.d.ts.map +1 -0
  454. package/script/npm/src/src/features/auth/profile/contract.js +17 -0
  455. package/script/npm/src/src/features/auth/profile/repository.d.ts +11 -0
  456. package/script/npm/src/src/features/auth/profile/repository.d.ts.map +1 -0
  457. package/script/npm/src/src/features/auth/profile/repository.js +29 -0
  458. package/script/npm/src/src/features/auth/repository.d.ts +30 -0
  459. package/script/npm/src/src/features/auth/repository.d.ts.map +1 -0
  460. package/script/npm/src/src/features/auth/repository.js +73 -0
  461. package/script/npm/src/src/features/auth/storage/client_store.d.ts +30 -0
  462. package/script/npm/src/src/features/auth/storage/client_store.d.ts.map +1 -0
  463. package/script/npm/src/src/features/auth/storage/client_store.js +51 -0
  464. package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts +32 -0
  465. package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
  466. package/script/npm/src/src/features/auth/storage/client_token_handler.js +40 -0
  467. package/script/npm/src/src/features/auth/storage/server_store.d.ts +24 -0
  468. package/script/npm/src/src/features/auth/storage/server_store.d.ts.map +1 -0
  469. package/script/npm/src/src/features/auth/storage/server_store.js +38 -0
  470. package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts +36 -0
  471. package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
  472. package/script/npm/src/src/features/auth/storage/server_token_handler.js +119 -0
  473. package/script/npm/src/src/features/auth/storage/types.d.ts +42 -0
  474. package/script/npm/src/src/features/auth/storage/types.d.ts.map +1 -0
  475. package/script/npm/src/src/features/auth/storage/types.js +2 -0
  476. package/script/npm/src/src/features/contact/contract.d.ts +170 -0
  477. package/script/npm/src/src/features/contact/contract.d.ts.map +1 -0
  478. package/script/npm/src/src/features/contact/contract.js +52 -0
  479. package/script/npm/src/src/features/contact/index.d.ts +2 -0
  480. package/script/npm/src/src/features/contact/index.d.ts.map +1 -0
  481. package/script/npm/src/src/features/contact/index.js +17 -0
  482. package/script/npm/src/src/features/contact/repository.d.ts +58 -0
  483. package/script/npm/src/src/features/contact/repository.d.ts.map +1 -0
  484. package/script/npm/src/src/features/contact/repository.js +112 -0
  485. package/script/npm/src/src/features/payout/contract.d.ts +623 -0
  486. package/script/npm/src/src/features/payout/contract.d.ts.map +1 -0
  487. package/script/npm/src/src/features/payout/contract.js +78 -0
  488. package/script/npm/src/src/features/payout/index.d.ts +2 -0
  489. package/script/npm/src/src/features/payout/index.d.ts.map +1 -0
  490. package/script/npm/src/src/features/payout/index.js +17 -0
  491. package/script/npm/src/src/features/payout/repository.d.ts +67 -0
  492. package/script/npm/src/src/features/payout/repository.d.ts.map +1 -0
  493. package/script/npm/src/src/features/payout/repository.js +167 -0
  494. package/script/npm/src/src/features/wallet/contract.d.ts +137 -0
  495. package/script/npm/src/src/features/wallet/contract.d.ts.map +1 -0
  496. package/script/npm/src/src/features/wallet/contract.js +41 -0
  497. package/script/npm/src/src/features/wallet/index.d.ts +2 -0
  498. package/script/npm/src/src/features/wallet/index.d.ts.map +1 -0
  499. package/script/npm/src/src/features/wallet/index.js +17 -0
  500. package/script/npm/src/src/features/wallet/repository.d.ts +57 -0
  501. package/script/npm/src/src/features/wallet/repository.d.ts.map +1 -0
  502. package/script/npm/src/src/features/wallet/repository.js +97 -0
  503. package/script/npm/src/src/models/contact/derivatives/contact.d.ts +172 -0
  504. package/script/npm/src/src/models/contact/derivatives/contact.d.ts.map +1 -0
  505. package/script/npm/src/src/models/contact/derivatives/contact.js +270 -0
  506. package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts +188 -0
  507. package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
  508. package/script/npm/src/src/models/contact/derivatives/contact_info.js +260 -0
  509. package/script/npm/src/src/models/contact/index.d.ts +5 -0
  510. package/script/npm/src/src/models/contact/index.d.ts.map +1 -0
  511. package/script/npm/src/src/models/contact/index.js +20 -0
  512. package/script/npm/src/src/models/contact/schemas.d.ts +66 -0
  513. package/script/npm/src/src/models/contact/schemas.d.ts.map +1 -0
  514. package/script/npm/src/src/models/contact/schemas.js +67 -0
  515. package/script/npm/src/src/models/contact/validation.d.ts +37 -0
  516. package/script/npm/src/src/models/contact/validation.d.ts.map +1 -0
  517. package/script/npm/src/src/models/contact/validation.js +153 -0
  518. package/script/npm/src/src/models/index.d.ts +7 -0
  519. package/script/npm/src/src/models/index.d.ts.map +1 -0
  520. package/script/npm/src/src/models/index.js +22 -0
  521. package/script/npm/src/src/models/payout/api.d.ts +29 -0
  522. package/script/npm/src/src/models/payout/api.d.ts.map +1 -0
  523. package/script/npm/src/src/models/payout/api.js +2 -0
  524. package/script/npm/src/src/models/payout/channel.d.ts +58 -0
  525. package/script/npm/src/src/models/payout/channel.d.ts.map +1 -0
  526. package/script/npm/src/src/models/payout/channel.js +56 -0
  527. package/script/npm/src/src/models/payout/derivatives/payout.d.ts +158 -0
  528. package/script/npm/src/src/models/payout/derivatives/payout.d.ts.map +1 -0
  529. package/script/npm/src/src/models/payout/derivatives/payout.js +275 -0
  530. package/script/npm/src/src/models/payout/index.d.ts +7 -0
  531. package/script/npm/src/src/models/payout/index.d.ts.map +1 -0
  532. package/script/npm/src/src/models/payout/index.js +22 -0
  533. package/script/npm/src/src/models/payout/narration.d.ts +164 -0
  534. package/script/npm/src/src/models/payout/narration.d.ts.map +1 -0
  535. package/script/npm/src/src/models/payout/narration.js +312 -0
  536. package/script/npm/src/src/models/payout/schemas.d.ts +156 -0
  537. package/script/npm/src/src/models/payout/schemas.d.ts.map +1 -0
  538. package/script/npm/src/src/models/payout/schemas.js +108 -0
  539. package/script/npm/src/src/models/payout/status.d.ts +33 -0
  540. package/script/npm/src/src/models/payout/status.d.ts.map +1 -0
  541. package/script/npm/src/src/models/payout/status.js +37 -0
  542. package/script/npm/src/src/models/permission.d.ts +55 -0
  543. package/script/npm/src/src/models/permission.d.ts.map +1 -0
  544. package/script/npm/src/src/models/permission.js +53 -0
  545. package/script/npm/src/src/models/role.d.ts +21 -0
  546. package/script/npm/src/src/models/role.d.ts.map +1 -0
  547. package/script/npm/src/src/models/role.js +77 -0
  548. package/script/npm/src/src/models/user/authenticated-user.d.ts +77 -0
  549. package/script/npm/src/src/models/user/authenticated-user.d.ts.map +1 -0
  550. package/script/npm/src/src/models/user/authenticated-user.js +230 -0
  551. package/script/npm/src/src/models/user/index.d.ts +4 -0
  552. package/script/npm/src/src/models/user/index.d.ts.map +1 -0
  553. package/script/npm/src/src/models/user/index.js +19 -0
  554. package/script/npm/src/src/models/user/managed-user.d.ts +108 -0
  555. package/script/npm/src/src/models/user/managed-user.d.ts.map +1 -0
  556. package/script/npm/src/src/models/user/managed-user.js +260 -0
  557. package/script/npm/src/src/models/user/profile.d.ts +161 -0
  558. package/script/npm/src/src/models/user/profile.d.ts.map +1 -0
  559. package/script/npm/src/src/models/user/profile.js +338 -0
  560. package/script/npm/src/src/models/wallet/index.d.ts +4 -0
  561. package/script/npm/src/src/models/wallet/index.d.ts.map +1 -0
  562. package/script/npm/src/src/models/wallet/index.js +19 -0
  563. package/script/npm/src/src/models/wallet/schemas.d.ts +95 -0
  564. package/script/npm/src/src/models/wallet/schemas.d.ts.map +1 -0
  565. package/script/npm/src/src/models/wallet/schemas.js +38 -0
  566. package/script/npm/src/src/models/wallet/statement_entry.d.ts +160 -0
  567. package/script/npm/src/src/models/wallet/statement_entry.d.ts.map +1 -0
  568. package/script/npm/src/src/models/wallet/statement_entry.js +259 -0
  569. package/script/npm/src/src/models/wallet/wallet.d.ts +147 -0
  570. package/script/npm/src/src/models/wallet/wallet.d.ts.map +1 -0
  571. package/script/npm/src/src/models/wallet/wallet.js +283 -0
  572. package/script/npm/src/src/shared/base_repository.d.ts +80 -0
  573. package/script/npm/src/src/shared/base_repository.d.ts.map +1 -0
  574. package/script/npm/src/src/shared/base_repository.js +157 -0
  575. package/script/npm/src/src/shared/common_responses.d.ts +13 -0
  576. package/script/npm/src/src/shared/common_responses.d.ts.map +1 -0
  577. package/script/npm/src/src/shared/common_responses.js +13 -0
  578. package/script/npm/src/src/shared/index.d.ts +3 -0
  579. package/script/npm/src/src/shared/index.d.ts.map +1 -0
  580. package/script/npm/src/src/shared/index.js +18 -0
  581. package/script/npm/src/src/shared/token_required_repository.d.ts +78 -0
  582. package/script/npm/src/src/shared/token_required_repository.d.ts.map +1 -0
  583. package/script/npm/src/src/shared/token_required_repository.js +132 -0
  584. package/script/package.json +3 -0
  585. package/dist/index.cjs.js +0 -2
  586. package/dist/index.cjs.js.map +0 -1
  587. package/dist/index.d.ts +0 -10
  588. package/dist/index.esm.js +0 -2
  589. package/dist/index.esm.js.map +0 -1
  590. package/dist/lib/api/base-repository.d.ts +0 -175
  591. package/dist/lib/api/index.d.ts +0 -1
  592. package/dist/lib/error/error.utils.d.ts +0 -22
  593. package/dist/lib/error/index.d.ts +0 -3
  594. package/dist/lib/query/index.d.ts +0 -4
  595. package/dist/lib/query/pagination/pagination.d.ts +0 -73
  596. package/dist/lib/query/pagination/pagination.schemas.d.ts +0 -83
  597. package/dist/lib/query/query.builder.d.ts +0 -71
  598. package/dist/lib/query/query.types.d.ts +0 -36
  599. package/dist/modules/auth/auth.manager.d.ts +0 -249
  600. package/dist/modules/auth/auth.repository.d.ts +0 -83
  601. package/dist/modules/auth/auth.store.d.ts +0 -139
  602. package/dist/modules/auth/company-membership.model.d.ts +0 -58
  603. package/dist/modules/auth/index.d.ts +0 -4
  604. package/dist/modules/auth/user.model.d.ts +0 -140
  605. package/dist/modules/contact/contact-info.model.d.ts +0 -446
  606. package/dist/modules/contact/contact-input-handler.d.ts +0 -16
  607. package/dist/modules/contact/contact.dtos.d.ts +0 -84
  608. package/dist/modules/contact/contact.model.d.ts +0 -296
  609. package/dist/modules/contact/contact.repository.d.ts +0 -116
  610. package/dist/modules/contact/index.d.ts +0 -4
  611. package/dist/modules/login/index.d.ts +0 -4
  612. package/dist/modules/login/login.api-contract.d.ts +0 -51
  613. package/dist/modules/login/login.dtos.d.ts +0 -85
  614. package/dist/modules/login/login.model.d.ts +0 -138
  615. package/dist/modules/login/login.repository.d.ts +0 -58
  616. package/dist/modules/payout/index.d.ts +0 -5
  617. package/dist/modules/payout/payout-channel-handler.d.ts +0 -82
  618. package/dist/modules/payout/payout.dtos.d.ts +0 -605
  619. package/dist/modules/payout/payout.query.d.ts +0 -133
  620. package/dist/modules/payout/payout.repository.d.ts +0 -181
  621. package/dist/modules/profile/index.d.ts +0 -3
  622. package/dist/modules/profile/profile.dtos.d.ts +0 -80
  623. package/dist/modules/profile/profile.repository.d.ts +0 -56
  624. package/dist/modules/team-member/index.d.ts +0 -4
  625. package/dist/modules/team-member/team-member.dtos.d.ts +0 -261
  626. package/dist/modules/team-member/team-member.model.d.ts +0 -137
  627. package/dist/modules/team-member/team-member.repository.d.ts +0 -179
  628. package/dist/modules/wallet/index.d.ts +0 -7
  629. package/dist/modules/wallet/narration.model.d.ts +0 -229
  630. package/dist/modules/wallet/statement-entry.model.d.ts +0 -200
  631. package/dist/modules/wallet/wallet-manager.session.d.ts +0 -143
  632. package/dist/modules/wallet/wallet.dtos.d.ts +0 -204
  633. package/dist/modules/wallet/wallet.query.d.ts +0 -95
  634. package/dist/modules/wallet/wallet.repository.d.ts +0 -205
  635. package/dist/modules/wallet/wallet.utils.d.ts +0 -17
@@ -1,229 +0,0 @@
1
- import { ContactInfo, MobileContactInfo, BankContactInfo } from "../contact/contact-info.model.js";
2
- /** Prefix for Ecobank mobile transfer narrations */
3
- export declare const ECOBANK_PREFIX = "MOBILE TRANSFER ";
4
- /** V2 format prefix for payout narrations using contact details */
5
- export declare const NARR_V2_PREFIX: string;
6
- /** V1 format prefix for bank payout narrations */
7
- export declare const BANK_NARR_PREFIX: string;
8
- /** Legacy format prefix for bank payout narrations */
9
- export declare const LEGACY_BANK_NARR_PREFIX: string;
10
- /** V1 format prefix for mobile money payout narrations */
11
- export declare const MOBILE_NARR_PREFIX: string;
12
- /** Legacy format prefix for mobile money payout narrations */
13
- export declare const LEGACY_MOBILE_NARR_PREFIX: string;
14
- /**
15
- * Interface for the JSON representation of Narration
16
- */
17
- export interface NarrationJson {
18
- text: string;
19
- version?: string;
20
- }
21
- /**
22
- * Handles payout narration generation and parsing for the Afloat platform.
23
- *
24
- * This class provides functionality to:
25
- * - Generate standardized payout narrations using contact details (V2 format)
26
- * - Parse existing narrations to extract contact information
27
- * - Format narration text for different display contexts
28
- * - Handle V2 (PAY format), V1, and legacy narration formats for backward compatibility
29
- * - Serialize/deserialize to/from JSON format
30
- *
31
- * @example
32
- * ```typescript
33
- * // Generate V2 narration using contact info
34
- * const mobileContact = new MobileContactInfo("John Doe", phoneNumber);
35
- * const narration = Narration.generateDefaultPayoutNarration(mobileContact);
36
- * // Result: "PAYOUT +255123456789 JOHN DOE"
37
- *
38
- * const bankContact = new BankContactInfo("Jane Smith", bank, "1234567890");
39
- * const narration = Narration.generateDefaultPayoutNarration(bankContact);
40
- * // Result: "PAYOUT CORUTZTZ 1234567890 JANE SMITH"
41
- *
42
- * // Extract contact details from narration
43
- * const existingNarration = new Narration("PAYOUT +255123456789 JOHN DOE");
44
- * const contactInfo = existingNarration.getContactDetails();
45
- * // Returns: MobileContactInfo instance
46
- * ```
47
- */
48
- export declare class Narration {
49
- /** The raw narration text */
50
- text: string;
51
- /**
52
- * Creates a new Narration instance.
53
- *
54
- * @param text - The narration text to wrap
55
- */
56
- constructor(text: string);
57
- /**
58
- * Returns a medium-length version of the narration text suitable for table columns.
59
- * Truncates to 47 characters + "..." if longer than 50 characters.
60
- *
61
- * @returns Truncated narration text for medium-width displays
62
- */
63
- get mediumText(): string;
64
- /**
65
- * Returns a short version of the narration text suitable for compact displays.
66
- * Truncates to 32 characters + "..." if longer than 35 characters.
67
- *
68
- * @returns Truncated narration text for narrow displays
69
- */
70
- get shortText(): string;
71
- /**
72
- * Generates the default payout narration based on contact information using the V2 format.
73
- * Automatically determines whether to generate mobile or bank narration based on contact type.
74
- *
75
- * @param data - Contact information (either MobileContactInfo or BankContactInfo)
76
- * @returns Formatted default narration string in uppercase using V2 format, or empty string if contact type is unrecognized
77
- *
78
- * @example
79
- * ```typescript
80
- * const mobileContact = new MobileContactInfo("John Doe", phoneNumber);
81
- * const narration = Narration.generateDefaultPayoutNarration(mobileContact);
82
- * // Returns: "PAYOUT +255123456789 JOHN DOE"
83
- *
84
- * const bankContact = new BankContactInfo("Jane Smith", bank, "1234567890");
85
- * const narration = Narration.generateDefaultPayoutNarration(bankContact);
86
- * // Returns: "PAYOUT CORUTZTZ 1234567890 JANE SMITH"
87
- * ```
88
- */
89
- static generateDefaultPayoutNarration(data: ContactInfo): string;
90
- /**
91
- * Generates a V2 standardized mobile money payout narration with contact details.
92
- * Format: "PAY {phone_number} {name}"
93
- *
94
- * @param data - Mobile contact information containing phone number and name
95
- * @returns Formatted V2 mobile payout narration in uppercase
96
- *
97
- * @example
98
- * ```typescript
99
- * const contact = new MobileContactInfo("John Doe", phoneNumber);
100
- * const narration = Narration.generateMobilePayoutNarrationV2(contact);
101
- * // Returns: "PAYOUT +255123456789 JOHN DOE"
102
- * ```
103
- */
104
- static generateMobilePayoutNarrationV2(data: MobileContactInfo): string;
105
- /**
106
- * Generates a V2 standardized bank payout narration with contact details.
107
- * Format: "PAY {swift_code} {account_number} {account_name}"
108
- *
109
- * @param data - Bank contact information containing bank details, account number, and account name
110
- * @returns Formatted V2 bank payout narration in uppercase
111
- *
112
- * @example
113
- * ```typescript
114
- * const contact = new BankContactInfo("Jane Smith", bank, "1234567890");
115
- * const narration = Narration.generateBankPayoutNarrationV2(contact);
116
- * // Returns: "PAYOUT CORUTZTZ 1234567890 JANE SMITH"
117
- * ```
118
- */
119
- static generateBankPayoutNarrationV2(data: BankContactInfo): string;
120
- /**
121
- * Extracts contact information from the narration text.
122
- * Supports V2 (PAY format), V1, and legacy formats for comprehensive contact detection.
123
- *
124
- * @returns Parsed ContactInfo (BankContactInfo or MobileContactInfo) if successful, undefined otherwise
125
- *
126
- * @example
127
- * ```typescript
128
- * // V2 format
129
- * const v2Narration = new Narration("PAYOUT +255123456789 JOHN DOE");
130
- * const v2Contact = v2Narration.getContactDetails();
131
- * // Returns: MobileContactInfo instance
132
- *
133
- * // V1 format
134
- * const v1Narration = new Narration("PAYOUT TO BANK CRDB 1234567890 Jane Smith");
135
- * const v1Contact = v1Narration.getContactDetails();
136
- * // Returns: BankContactInfo instance
137
- * ```
138
- */
139
- getContactDetails: () => ContactInfo | undefined;
140
- /**
141
- * Extracts bank contact information from the narration text.
142
- * Handles V2 format (PAY with SWIFT code and details), V1 format, and legacy format.
143
- * Also handles Ecobank-prefixed narrations by stripping the prefix.
144
- *
145
- * V2 format: "PAYOUT {swift_code} {account_number} {account_name}"
146
- * V1 format: "PAYOUT TO BANK {bank_name} {account_number} {account_name}"
147
- * Legacy format: "TO_BANK => {json_object}"
148
- *
149
- * @returns BankContactInfo if parsing is successful, undefined otherwise
150
- *
151
- * @example
152
- * ```typescript
153
- * // V2 format
154
- * const v2Narration = new Narration("PAYOUT CORUTZTZ 1234567890 JANE SMITH");
155
- * const v2Contact = v2Narration.getBankContactDetails();
156
- *
157
- * // V1 format
158
- * const v1Narration = new Narration("PAYOUT TO BANK CRDB 1234567890 Jane Smith");
159
- * const v1Contact = v1Narration.getBankContactDetails();
160
- * ```
161
- */
162
- getBankContactDetails: () => BankContactInfo | undefined;
163
- /**
164
- * Extracts mobile contact information from the narration text.
165
- * Handles V2 format (PAY with phone number and name), V1 format, and legacy format.
166
- * Also handles Ecobank-prefixed narrations by stripping the prefix.
167
- *
168
- * V2 format: "PAYOUT {phone_number} {name}"
169
- * V1 format: "PAYOUT TO MOBILE {phone_number} {name}"
170
- * Legacy format: "TO_MOMO => {json_object}"
171
- *
172
- * @returns MobileContactInfo if parsing is successful, undefined otherwise
173
- *
174
- * @example
175
- * ```typescript
176
- * // V2 format
177
- * const v2Narration = new Narration("PAYOUT +255123456789 JOHN DOE");
178
- * const v2Contact = v2Narration.getMobileContactDetails();
179
- *
180
- * // V1 format
181
- * const v1Narration = new Narration("PAYOUT TO MOBILE +255123456789 John Doe");
182
- * const v1Contact = v1Narration.getMobileContactDetails();
183
- * ```
184
- */
185
- getMobileContactDetails: () => MobileContactInfo | undefined;
186
- /**
187
- * Serializes the Narration instance to a JSON-compatible object.
188
- *
189
- * @returns {NarrationJson} A plain object containing the narration data
190
- *
191
- * @example
192
- * ```typescript
193
- * const narration = new Narration("PAYOUT +255123456789 JOHN DOE");
194
- * const json = narration.toJson();
195
- * // Returns: { text: "PAYOUT +255123456789 JOHN DOE", version: "2.0" }
196
- * ```
197
- */
198
- toJson(): NarrationJson;
199
- /**
200
- * Creates a Narration instance from a JSON-compatible object.
201
- *
202
- * @param {NarrationJson | string} json - Either a NarrationJson object or a JSON string
203
- * @returns {Narration | undefined} A Narration instance if valid, undefined otherwise
204
- *
205
- * @example
206
- * ```typescript
207
- * // From object
208
- * const narration = Narration.fromJson({ text: "PAYOUT +255123456789 JOHN DOE" });
209
- *
210
- * // From JSON string
211
- * const narration = Narration.fromJson('{"text":"PAYOUT +255123456789 JOHN DOE"}');
212
- * ```
213
- */
214
- static fromJson(json: NarrationJson | string): Narration | undefined;
215
- /**
216
- * Type guard to check if an object is a valid NarrationJson
217
- *
218
- * @param obj - The object to validate
219
- * @returns True if the object conforms to NarrationJson structure
220
- */
221
- static isNarrationJson(obj: unknown): obj is NarrationJson;
222
- /**
223
- * Type guard to check if an unknown object is a valid Narration instance.
224
- *
225
- * @param obj - The object to check
226
- * @returns Type predicate indicating if the object is a Narration instance
227
- */
228
- static is(obj: unknown): obj is Narration;
229
- }
@@ -1,200 +0,0 @@
1
- import { WalletStatementEntryDTO } from "@/modules/wallet/wallet.dtos.js";
2
- import { Amount, AmountJson } from "@temboplus/frontend-core";
3
- import { NarrationJson, Narration } from "./narration.model.js";
4
- /**
5
- * Interface for the JSON representation of WalletStatementEntry
6
- */
7
- export interface WalletStatementEntryJson {
8
- accountNo?: string;
9
- debitOrCredit: string;
10
- tranRefNo: string;
11
- narration: NarrationJson;
12
- txnDate: string;
13
- valueDate: string;
14
- amountCredited: AmountJson;
15
- amountDebited: AmountJson;
16
- balance: AmountJson;
17
- currencyCode: string;
18
- version?: string;
19
- }
20
- /**
21
- * Represents a single entry in a Wallet's statement history.
22
- *
23
- * This class provides methods for creating, validating, and accessing statement entry data.
24
- * It integrates with the Zod schema validation for data integrity and includes narration parsing capabilities.
25
- * The narration field now uses the Narration class for enhanced functionality.
26
- */
27
- export declare class WalletStatementEntry {
28
- private _accountNo?;
29
- private _debitOrCredit;
30
- private _tranRefNo;
31
- private _narration;
32
- private _txnDate;
33
- private _valueDate;
34
- private _amountCredited;
35
- private _amountDebited;
36
- private _balance;
37
- private _currencyCode;
38
- /**
39
- * Gets the statement entry schema used for validation.
40
- */
41
- static get schema(): import("zod").ZodObject<{
42
- accountNo: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodString>, string | undefined, string | undefined>;
43
- debitOrCredit: import("zod").ZodString;
44
- tranRefNo: import("zod").ZodString;
45
- narration: import("zod").ZodString;
46
- txnDate: import("zod").ZodDate;
47
- valueDate: import("zod").ZodDate;
48
- amountCredited: import("zod").ZodNumber;
49
- amountDebited: import("zod").ZodNumber;
50
- balance: import("zod").ZodNumber;
51
- currencyCode: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodString>, string | undefined, string | undefined>>;
52
- }, "strip", import("zod").ZodTypeAny, {
53
- currencyCode: string;
54
- debitOrCredit: string;
55
- tranRefNo: string;
56
- narration: string;
57
- txnDate: Date;
58
- valueDate: Date;
59
- amountCredited: number;
60
- amountDebited: number;
61
- balance: number;
62
- accountNo?: string | undefined;
63
- }, {
64
- debitOrCredit: string;
65
- tranRefNo: string;
66
- narration: string;
67
- txnDate: Date;
68
- valueDate: Date;
69
- amountCredited: number;
70
- amountDebited: number;
71
- balance: number;
72
- accountNo?: string | undefined;
73
- currencyCode?: string | undefined;
74
- }>;
75
- /**
76
- * Private constructor to enforce use of static factory methods.
77
- * Assumes data is already validated and dates are Date objects.
78
- * @param data - Object containing statement entry information conforming to WalletStatementEntryDTO.
79
- * @param narration - Narration instance for the transaction
80
- */
81
- private constructor();
82
- /**
83
- * Creates a new WalletStatementEntry instance after validating the input data.
84
- * Handles date coercion via the schema and uses currencyCode from the data.
85
- *
86
- * @param data - Object containing statement entry information. Dates can be strings or Date objects.
87
- * @returns A new WalletStatementEntry instance, or undefined if validation fails.
88
- */
89
- static create(data: {
90
- accountNo?: string | null;
91
- debitOrCredit: string;
92
- tranRefNo: string;
93
- narration: string | Narration;
94
- txnDate: string | Date;
95
- valueDate: string | Date;
96
- amountCredited: number;
97
- amountDebited: number;
98
- balance: number;
99
- currencyCode?: string;
100
- }): WalletStatementEntry | undefined;
101
- get accountNo(): string | undefined;
102
- get debitOrCredit(): string;
103
- get tranRefNo(): string;
104
- get narration(): Narration;
105
- get txnDate(): Date;
106
- get valueDate(): Date;
107
- get amountCredited(): Amount;
108
- get amountDebited(): Amount;
109
- get balance(): Amount;
110
- get currencyCode(): string;
111
- /**
112
- * Serializes the WalletStatementEntry instance to a JSON-compatible object.
113
- * Dates are converted to ISO strings, amounts are serialized using Amount.toJson(),
114
- * and narration is serialized using Narration.toJson().
115
- *
116
- * @returns {WalletStatementEntryJson} A plain object containing all necessary data
117
- */
118
- toJson(): WalletStatementEntryJson;
119
- /**
120
- * Creates a WalletStatementEntry instance from a JSON-compatible object.
121
- *
122
- * @param {WalletStatementEntryJson | string} json - Either a WalletStatementEntryJson object or a JSON string
123
- * @returns {WalletStatementEntry | undefined} A WalletStatementEntry instance if valid, undefined otherwise
124
- */
125
- static fromJson(json: WalletStatementEntryJson | string): WalletStatementEntry | undefined;
126
- /**
127
- * Type guard to check if an object is a valid WalletStatementEntryJson
128
- *
129
- * @param obj - The object to validate
130
- * @returns True if the object conforms to WalletStatementEntryJson structure
131
- */
132
- static isWalletStatementEntryJson(obj: unknown): obj is WalletStatementEntryJson;
133
- /**
134
- * Validates the current statement entry instance data against the schema.
135
- * @returns True if the statement entry instance data is valid, false otherwise.
136
- */
137
- validate(): boolean;
138
- /**
139
- * Type guard to check if an unknown object is a valid WalletStatementEntry instance.
140
- * Performs structural checks (duck typing).
141
- * @param obj - The object to check.
142
- * @returns Type predicate indicating if the object is a WalletStatementEntry instance.
143
- */
144
- static is(obj: unknown): obj is WalletStatementEntry;
145
- /**
146
- * Checks if two WalletStatementEntry instances are equal based on their transaction reference numbers.
147
- * @param other - Another WalletStatementEntry to compare with.
148
- * @returns True if both entries have the same transaction reference number.
149
- */
150
- equals(other: WalletStatementEntry): boolean;
151
- /**
152
- * Creates a copy of this WalletStatementEntry with the same data.
153
- * @returns A new WalletStatementEntry instance with identical data.
154
- */
155
- clone(): WalletStatementEntry | undefined;
156
- /**
157
- * Returns a string representation of the statement entry for debugging.
158
- * @returns A formatted string with key transaction details.
159
- */
160
- toString(): string;
161
- /**
162
- * Serializes an array of WalletStatementEntry instances to JSON-compatible objects
163
- *
164
- * @param entries - Array of WalletStatementEntry instances to serialize
165
- * @returns Array of WalletStatementEntryJson objects
166
- */
167
- static toJsonArray(entries: WalletStatementEntry[]): WalletStatementEntryJson[];
168
- /**
169
- * Creates WalletStatementEntry instances from an array of JSON-compatible objects
170
- *
171
- * @param jsonArray - Array of WalletStatementEntryJson objects or JSON string
172
- * @returns Array of WalletStatementEntry instances (invalid items are filtered out)
173
- */
174
- static fromJsonArray(jsonArray: WalletStatementEntryJson[] | string): WalletStatementEntry[];
175
- /**
176
- * Legacy method for backwards compatibility - creates object representation
177
- * @deprecated Use toJson() instead for proper serialization
178
- */
179
- toObject(): Omit<WalletStatementEntryDTO, "amountCredited" | "amountDebited" | "balance" | "narration"> & {
180
- amountCredited: AmountJson;
181
- amountDebited: AmountJson;
182
- balance: AmountJson;
183
- narration: string;
184
- };
185
- /**
186
- * Legacy method for backwards compatibility - converts to JSON string
187
- * @deprecated Use JSON.stringify(entry.toJson()) instead
188
- */
189
- toJSON(): string;
190
- /**
191
- * Legacy method for backwards compatibility
192
- * @deprecated Use fromJson() instead
193
- */
194
- static fromJSON(jsonString: string): WalletStatementEntry | undefined;
195
- /**
196
- * Legacy method for backwards compatibility - creates from plain object
197
- * @deprecated Use fromJson() for serialized data or create() for raw data
198
- */
199
- static from(data: any): WalletStatementEntry | undefined;
200
- }
@@ -1,143 +0,0 @@
1
- import { Country, type CountryCode } from "@temboplus/frontend-core";
2
- import { Wallet } from "./wallet.model.js";
3
- import { User } from "../auth/user.model.js";
4
- /**
5
- * Defines the shape of the persisted wallet session state.
6
- * IMPORTANT: Properties like selectedWalletId/selectedCountryCode are guaranteed
7
- * non-nullable and valid ONLY when isInitialized is true.
8
- */
9
- interface WalletSession {
10
- userId: string;
11
- wallets: Wallet[];
12
- selectedWalletId: string;
13
- selectedCountryCode: CountryCode;
14
- lastSynced: Date | string;
15
- isInitialized: boolean;
16
- }
17
- /**
18
- * Defines the complete state shape including actions and internal getters.
19
- */
20
- interface WalletState extends WalletSession {
21
- setWallets: (wallets: Wallet[]) => void;
22
- setSelectedWallet: (wallet: Wallet) => void;
23
- setSelectedCountry: (countryCode: CountryCode) => void;
24
- reset: () => void;
25
- _getWalletsByCountry: (countryCode: CountryCode) => Wallet[];
26
- _getSelectedWallet: () => Wallet;
27
- }
28
- export declare const walletsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<WalletState>, "persist"> & {
29
- persist: {
30
- setOptions: (options: Partial<import("zustand/middleware").PersistOptions<WalletState, unknown>>) => void;
31
- clearStorage: () => void;
32
- rehydrate: () => Promise<void> | void;
33
- hasHydrated: () => boolean;
34
- onHydrate: (fn: (state: WalletState) => void) => () => void;
35
- onFinishHydration: (fn: (state: WalletState) => void) => () => void;
36
- getOptions: () => Partial<import("zustand/middleware").PersistOptions<WalletState, unknown>>;
37
- };
38
- }>;
39
- /**
40
- * WalletSessionManager handles wallet-related operations and state management coordination.
41
- * It uses a Zustand store (`useWalletStore`) for state and interacts with WalletRepo.
42
- *
43
- * IMPORTANT: This manager enforces the invariant that an initialized user session
44
- * always has at least one wallet and a valid selection. Methods that return selected
45
- * data (`getSelectedWallet`, `getSelectedCountry`, etc.) will THROW AN ERROR if called
46
- * before the session is initialized via the `initialize()` method.
47
- */
48
- export declare class WalletSessionManager {
49
- private repo;
50
- private static _instance;
51
- /**
52
- * @private
53
- */
54
- private constructor();
55
- /**
56
- * Gets the singleton instance of WalletSessionManager.
57
- * @returns {WalletSessionManager} The singleton instance.
58
- */
59
- static get instance(): WalletSessionManager;
60
- /**
61
- * Checks if the wallet session is initialized.
62
- * @returns {boolean} True if initialized, false otherwise.
63
- */
64
- isInitialized(): boolean;
65
- /**
66
- * Initializes the wallet manager for the current user.
67
- * Fetches wallets if the store isn't already initialized.
68
- * Throws an error if the user is not authenticated or if the user is found to have no wallets.
69
- * @async
70
- * @returns {Promise<void>} Resolves when initialization is complete.
71
- * @throws {Error} If user not authenticated or user has no wallets.
72
- */
73
- initialize(user: User): Promise<void>;
74
- /**
75
- * Fetches the latest wallet data from the server and updates the store.
76
- * Throws an error if the user has no wallets or if the fetch fails.
77
- * Ensures the store is updated and marked as initialized.
78
- * @async
79
- * @returns {Promise<void>} Resolves when refresh is complete.
80
- * @throws {Error} If fetch fails or user has no wallets.
81
- */
82
- refreshWallets(): Promise<void>;
83
- /**
84
- * Gets all available wallets. Guaranteed non-empty after successful initialization.
85
- * @returns {Wallet[]} Non-empty array of Wallet instances.
86
- * @throws {Error} If called before initialization is complete.
87
- */
88
- getWallets(): Wallet[];
89
- /**
90
- * Gets unique available country codes based on current wallets.
91
- * @returns {CountryCode[]} Array of CountryCodes. Guaranteed non-empty after initialization.
92
- * @throws {Error} If called before initialization is complete.
93
- */
94
- getCountries(): CountryCode[];
95
- /**
96
- * Gets wallets for a specific country.
97
- * @param {CountryCode} countryCode The country code to filter by.
98
- * @returns {Wallet[]} Array of Wallet instances for the country. May be empty if no wallets match the code, but the overall list isn't empty.
99
- * @throws {Error} If called before initialization is complete.
100
- */
101
- getWalletsByCountry(countryCode: CountryCode): Wallet[];
102
- /**
103
- * Gets the currently selected wallet instance.
104
- * @returns {Wallet} The selected Wallet instance (guaranteed non-nullable).
105
- * @throws {Error} If called before initialization is complete or if state is inconsistent.
106
- */
107
- getSelectedWallet(): Wallet;
108
- /**
109
- * Gets the currently selected country code.
110
- * @returns {CountryCode} The selected CountryCode (guaranteed non-nullable).
111
- * @throws {Error} If called before initialization is complete.
112
- */
113
- getSelectedCountryCode(): CountryCode;
114
- /**
115
- * Gets the currently selected Country object.
116
- * @returns {Country} The selected Country object (guaranteed non-nullable).
117
- * @throws {Error} If called before initialization or if Country.fromCode fails for the selected code.
118
- */
119
- getSelectedCountry(): Country;
120
- /**
121
- * Changes the selected wallet in the store.
122
- * Throws error if the provided walletId is not found in the current list.
123
- * @param {string} walletId - The ID of the wallet to select.
124
- * @returns {void}
125
- * @throws {Error} If wallet with given ID is not found or if called before initialization.
126
- */
127
- changeWallet(walletId: string): void;
128
- /**
129
- * Changes the selected country in the store.
130
- * Automatically selects the first available wallet for that country.
131
- * Throws error if no wallets exist for the given countryCode or if called before initialization.
132
- * @param {CountryCode} countryCode - The country code to select.
133
- * @returns {void}
134
- * @throws {Error} If no wallets found for the country code or if called before initialization.
135
- */
136
- changeCountry(countryCode: CountryCode): void;
137
- /**
138
- * Resets the wallet store to initial (uninitialized) state.
139
- * Typically used during user logout.
140
- */
141
- reset(): void;
142
- }
143
- export {};