@temboplus/afloat 0.1.56 → 0.1.58

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 (465) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +42 -246
  3. package/esm/_dnt.test_shims.d.ts.map +1 -0
  4. package/esm/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
  5. package/esm/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
  7. package/esm/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
  8. package/esm/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
  9. package/esm/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
  10. package/esm/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
  12. package/esm/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
  14. package/esm/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
  38. package/esm/mod.d.ts +8 -0
  39. package/esm/mod.d.ts.map +1 -0
  40. package/esm/mod.js +7 -0
  41. package/esm/package.json +3 -0
  42. package/{dist/lib/error/error.api.d.ts → esm/src/errors/api_error.d.ts} +1 -0
  43. package/esm/src/errors/api_error.d.ts.map +1 -0
  44. package/esm/src/errors/api_error.js +90 -0
  45. package/esm/src/errors/index.d.ts +3 -0
  46. package/esm/src/errors/index.d.ts.map +1 -0
  47. package/esm/src/errors/index.js +2 -0
  48. package/{dist/lib/error/error.permission.d.ts → esm/src/errors/permission_error.d.ts} +2 -1
  49. package/esm/src/errors/permission_error.d.ts.map +1 -0
  50. package/esm/src/errors/permission_error.js +70 -0
  51. package/{dist/features/admin/admin.contract.d.ts → esm/src/features/admin/contract.d.ts} +77 -41
  52. package/esm/src/features/admin/contract.d.ts.map +1 -0
  53. package/esm/src/features/admin/contract.js +210 -0
  54. package/esm/src/features/admin/index.d.ts +4 -0
  55. package/esm/src/features/admin/index.d.ts.map +1 -0
  56. package/esm/src/features/admin/index.js +3 -0
  57. package/esm/src/features/admin/repository.d.ts +114 -0
  58. package/esm/src/features/admin/repository.d.ts.map +1 -0
  59. package/esm/src/features/admin/repository.js +248 -0
  60. package/{dist/features/admin/admin.dtos.d.ts → esm/src/features/admin/schemas.d.ts} +9 -8
  61. package/esm/src/features/admin/schemas.d.ts.map +1 -0
  62. package/esm/src/features/admin/schemas.js +206 -0
  63. package/{dist/features/auth/access/access.api-contract.d.ts → esm/src/features/auth/access/contract.d.ts} +1 -0
  64. package/esm/src/features/auth/access/contract.d.ts.map +1 -0
  65. package/esm/src/features/auth/access/contract.js +14 -0
  66. package/esm/src/features/auth/access/repository.d.ts +11 -0
  67. package/esm/src/features/auth/access/repository.d.ts.map +1 -0
  68. package/esm/src/features/auth/access/repository.js +25 -0
  69. package/{dist/features/auth/auth.contract.d.ts → esm/src/features/auth/contract.d.ts} +8 -12
  70. package/esm/src/features/auth/contract.d.ts.map +1 -0
  71. package/esm/src/features/auth/contract.js +43 -0
  72. package/{dist/features/auth/identity/identity.api-contract.d.ts → esm/src/features/auth/identity/contract.d.ts} +1 -0
  73. package/esm/src/features/auth/identity/contract.d.ts.map +1 -0
  74. package/esm/src/features/auth/identity/contract.js +17 -0
  75. package/esm/src/features/auth/identity/repository.d.ts +22 -0
  76. package/esm/src/features/auth/identity/repository.d.ts.map +1 -0
  77. package/esm/src/features/auth/identity/repository.js +30 -0
  78. package/esm/src/features/auth/index.d.ts +6 -0
  79. package/esm/src/features/auth/index.d.ts.map +1 -0
  80. package/esm/src/features/auth/index.js +5 -0
  81. package/esm/src/features/auth/manager.d.ts +105 -0
  82. package/esm/src/features/auth/manager.d.ts.map +1 -0
  83. package/esm/src/features/auth/manager.js +181 -0
  84. package/{dist/features/auth/profile/profile.api-contract.d.ts → esm/src/features/auth/profile/contract.d.ts} +6 -8
  85. package/esm/src/features/auth/profile/contract.d.ts.map +1 -0
  86. package/esm/src/features/auth/profile/contract.js +14 -0
  87. package/esm/src/features/auth/profile/repository.d.ts +11 -0
  88. package/esm/src/features/auth/profile/repository.d.ts.map +1 -0
  89. package/esm/src/features/auth/profile/repository.js +25 -0
  90. package/esm/src/features/auth/repository.d.ts +30 -0
  91. package/esm/src/features/auth/repository.d.ts.map +1 -0
  92. package/esm/src/features/auth/repository.js +69 -0
  93. package/{dist/features/auth/storage/client-store.d.ts → esm/src/features/auth/storage/client_store.d.ts} +3 -2
  94. package/esm/src/features/auth/storage/client_store.d.ts.map +1 -0
  95. package/esm/src/features/auth/storage/client_store.js +46 -0
  96. package/{dist/features/auth/storage/client-token-handler.d.ts → esm/src/features/auth/storage/client_token_handler.d.ts} +2 -1
  97. package/esm/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
  98. package/esm/src/features/auth/storage/client_token_handler.js +36 -0
  99. package/esm/src/features/auth/storage/server_store.d.ts +24 -0
  100. package/esm/src/features/auth/storage/server_store.d.ts.map +1 -0
  101. package/esm/src/features/auth/storage/server_store.js +34 -0
  102. package/esm/src/features/auth/storage/server_token_handler.d.ts +36 -0
  103. package/esm/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
  104. package/esm/src/features/auth/storage/server_token_handler.js +115 -0
  105. package/{dist → esm/src}/features/auth/storage/types.d.ts +2 -1
  106. package/esm/src/features/auth/storage/types.d.ts.map +1 -0
  107. package/esm/src/features/auth/storage/types.js +1 -0
  108. package/{dist/features/contact/contact.api-contract.d.ts → esm/src/features/contact/contract.d.ts} +45 -101
  109. package/esm/src/features/contact/contract.d.ts.map +1 -0
  110. package/esm/src/features/contact/contract.js +49 -0
  111. package/esm/src/features/contact/index.d.ts +2 -0
  112. package/esm/src/features/contact/index.d.ts.map +1 -0
  113. package/esm/src/features/contact/index.js +1 -0
  114. package/esm/src/features/contact/repository.d.ts +58 -0
  115. package/esm/src/features/contact/repository.d.ts.map +1 -0
  116. package/esm/src/features/contact/repository.js +108 -0
  117. package/{dist/features/payout/payout.api-contract.d.ts → esm/src/features/payout/contract.d.ts} +187 -351
  118. package/esm/src/features/payout/contract.d.ts.map +1 -0
  119. package/esm/src/features/payout/contract.js +75 -0
  120. package/esm/src/features/payout/index.d.ts +2 -0
  121. package/esm/src/features/payout/index.d.ts.map +1 -0
  122. package/esm/src/features/payout/index.js +1 -0
  123. package/esm/src/features/payout/repository.d.ts +67 -0
  124. package/esm/src/features/payout/repository.d.ts.map +1 -0
  125. package/esm/src/features/payout/repository.js +163 -0
  126. package/{dist/features/wallet/wallet.contract.d.ts → esm/src/features/wallet/contract.d.ts} +7 -9
  127. package/esm/src/features/wallet/contract.d.ts.map +1 -0
  128. package/esm/src/features/wallet/contract.js +38 -0
  129. package/esm/src/features/wallet/index.d.ts +2 -0
  130. package/esm/src/features/wallet/index.d.ts.map +1 -0
  131. package/esm/src/features/wallet/index.js +1 -0
  132. package/esm/src/features/wallet/repository.d.ts +57 -0
  133. package/esm/src/features/wallet/repository.d.ts.map +1 -0
  134. package/esm/src/features/wallet/repository.js +93 -0
  135. package/{dist/models/contact.model.d.ts → esm/src/models/contact/derivatives/contact.d.ts} +16 -23
  136. package/esm/src/models/contact/derivatives/contact.d.ts.map +1 -0
  137. package/esm/src/models/contact/derivatives/contact.js +266 -0
  138. package/esm/src/models/contact/derivatives/contact.test.d.ts.map +1 -0
  139. package/esm/src/models/contact/derivatives/contact_info.d.ts +188 -0
  140. package/esm/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
  141. package/esm/src/models/contact/derivatives/contact_info.js +255 -0
  142. package/esm/src/models/contact/derivatives/contact_info.test.d.ts.map +1 -0
  143. package/esm/src/models/contact/index.d.ts +5 -0
  144. package/esm/src/models/contact/index.d.ts.map +1 -0
  145. package/esm/src/models/contact/index.js +4 -0
  146. package/esm/src/models/contact/schemas.d.ts +66 -0
  147. package/esm/src/models/contact/schemas.d.ts.map +1 -0
  148. package/esm/src/models/contact/schemas.js +64 -0
  149. package/esm/src/models/contact/validation.d.ts +37 -0
  150. package/esm/src/models/contact/validation.d.ts.map +1 -0
  151. package/esm/src/models/contact/validation.js +146 -0
  152. package/esm/src/models/contact/validation.test.d.ts.map +1 -0
  153. package/esm/src/models/index.d.ts +7 -0
  154. package/esm/src/models/index.d.ts.map +1 -0
  155. package/esm/src/models/index.js +6 -0
  156. package/esm/src/models/payout/api.d.ts +29 -0
  157. package/esm/src/models/payout/api.d.ts.map +1 -0
  158. package/esm/src/models/payout/api.js +1 -0
  159. package/esm/src/models/payout/channel.d.ts +58 -0
  160. package/esm/src/models/payout/channel.d.ts.map +1 -0
  161. package/esm/src/models/payout/channel.js +53 -0
  162. package/{dist/models/payout.model.d.ts → esm/src/models/payout/derivatives/payout.d.ts} +15 -13
  163. package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -0
  164. package/esm/src/models/payout/derivatives/payout.js +261 -0
  165. package/esm/src/models/payout/derivatives/payout.test.d.ts.map +1 -0
  166. package/esm/src/models/payout/index.d.ts +6 -0
  167. package/esm/src/models/payout/index.d.ts.map +1 -0
  168. package/esm/src/models/payout/index.js +5 -0
  169. package/esm/src/models/payout/schemas.d.ts +156 -0
  170. package/esm/src/models/payout/schemas.d.ts.map +1 -0
  171. package/esm/src/models/payout/schemas.js +105 -0
  172. package/esm/src/models/payout/status.d.ts +33 -0
  173. package/esm/src/models/payout/status.d.ts.map +1 -0
  174. package/esm/src/models/payout/status.js +34 -0
  175. package/{dist → esm/src}/models/permission.d.ts +2 -1
  176. package/esm/src/models/permission.d.ts.map +1 -0
  177. package/esm/src/models/permission.js +50 -0
  178. package/{dist/models/role.model.d.ts → esm/src/models/role.d.ts} +10 -2
  179. package/esm/src/models/role.d.ts.map +1 -0
  180. package/esm/src/models/role.js +73 -0
  181. package/{dist/models/user.model.d.ts → esm/src/models/user/authenticated-user.d.ts} +13 -18
  182. package/esm/src/models/user/authenticated-user.d.ts.map +1 -0
  183. package/esm/src/models/user/authenticated-user.js +226 -0
  184. package/esm/src/models/user/index.d.ts +4 -0
  185. package/esm/src/models/user/index.d.ts.map +1 -0
  186. package/esm/src/models/user/index.js +3 -0
  187. package/{dist/models/managed-user.model.d.ts → esm/src/models/user/managed-user.d.ts} +3 -3
  188. package/esm/src/models/user/managed-user.d.ts.map +1 -0
  189. package/esm/src/models/user/managed-user.js +255 -0
  190. package/{dist/models/profile.model.d.ts → esm/src/models/user/profile.d.ts} +43 -37
  191. package/esm/src/models/user/profile.d.ts.map +1 -0
  192. package/esm/src/models/user/profile.js +334 -0
  193. package/esm/src/models/wallet/index.d.ts +4 -0
  194. package/esm/src/models/wallet/index.d.ts.map +1 -0
  195. package/esm/src/models/wallet/index.js +3 -0
  196. package/esm/src/models/wallet/schemas.d.ts +95 -0
  197. package/esm/src/models/wallet/schemas.d.ts.map +1 -0
  198. package/esm/src/models/wallet/schemas.js +35 -0
  199. package/esm/src/models/wallet/statement_entry.d.ts +160 -0
  200. package/esm/src/models/wallet/statement_entry.d.ts.map +1 -0
  201. package/esm/src/models/wallet/statement_entry.js +255 -0
  202. package/{dist/models/wallet.model.d.ts → esm/src/models/wallet/wallet.d.ts} +46 -3
  203. package/esm/src/models/wallet/wallet.d.ts.map +1 -0
  204. package/esm/src/models/wallet/wallet.js +279 -0
  205. package/{dist/lib/api/base-repository.d.ts → esm/src/shared/base_repository.d.ts} +42 -137
  206. package/esm/src/shared/base_repository.d.ts.map +1 -0
  207. package/esm/src/shared/base_repository.js +153 -0
  208. package/{dist/lib/api/common-responses.d.ts → esm/src/shared/common_responses.d.ts} +1 -0
  209. package/esm/src/shared/common_responses.d.ts.map +1 -0
  210. package/esm/src/shared/common_responses.js +10 -0
  211. package/esm/src/shared/index.d.ts +3 -0
  212. package/esm/src/shared/index.d.ts.map +1 -0
  213. package/esm/src/shared/index.js +2 -0
  214. package/esm/src/shared/token_required_repository.d.ts +78 -0
  215. package/esm/src/shared/token_required_repository.d.ts.map +1 -0
  216. package/esm/src/shared/token_required_repository.js +128 -0
  217. package/package.json +25 -47
  218. package/script/_dnt.test_shims.d.ts.map +1 -0
  219. package/script/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
  220. package/script/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
  221. package/script/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
  222. package/script/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
  223. package/script/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
  224. package/script/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
  225. package/script/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
  226. package/script/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
  227. package/script/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
  228. package/script/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
  229. package/script/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
  230. package/script/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
  231. package/script/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
  232. package/script/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
  233. package/script/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
  234. package/script/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
  235. package/script/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
  236. package/script/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
  237. package/script/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
  238. package/script/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
  239. package/script/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
  240. package/script/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
  241. package/script/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
  242. package/script/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
  243. package/script/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
  244. package/script/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
  245. package/script/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
  246. package/script/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
  247. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
  248. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
  249. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
  250. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
  251. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
  252. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
  253. package/script/mod.d.ts +8 -0
  254. package/script/mod.d.ts.map +1 -0
  255. package/script/mod.js +23 -0
  256. package/script/package.json +3 -0
  257. package/script/src/errors/api_error.d.ts +63 -0
  258. package/script/src/errors/api_error.d.ts.map +1 -0
  259. package/script/src/errors/api_error.js +94 -0
  260. package/script/src/errors/index.d.ts +3 -0
  261. package/script/src/errors/index.d.ts.map +1 -0
  262. package/script/src/errors/index.js +18 -0
  263. package/script/src/errors/permission_error.d.ts +48 -0
  264. package/script/src/errors/permission_error.d.ts.map +1 -0
  265. package/script/src/errors/permission_error.js +74 -0
  266. package/script/src/features/admin/contract.d.ts +842 -0
  267. package/script/src/features/admin/contract.d.ts.map +1 -0
  268. package/script/src/features/admin/contract.js +213 -0
  269. package/script/src/features/admin/index.d.ts +4 -0
  270. package/script/src/features/admin/index.d.ts.map +1 -0
  271. package/script/src/features/admin/index.js +19 -0
  272. package/script/src/features/admin/repository.d.ts +114 -0
  273. package/script/src/features/admin/repository.d.ts.map +1 -0
  274. package/script/src/features/admin/repository.js +252 -0
  275. package/script/src/features/admin/schemas.d.ts +146 -0
  276. package/script/src/features/admin/schemas.d.ts.map +1 -0
  277. package/script/src/features/admin/schemas.js +209 -0
  278. package/script/src/features/auth/access/contract.d.ts +14 -0
  279. package/script/src/features/auth/access/contract.d.ts.map +1 -0
  280. package/script/src/features/auth/access/contract.js +17 -0
  281. package/script/src/features/auth/access/repository.d.ts +11 -0
  282. package/script/src/features/auth/access/repository.d.ts.map +1 -0
  283. package/script/src/features/auth/access/repository.js +29 -0
  284. package/script/src/features/auth/contract.d.ts +112 -0
  285. package/script/src/features/auth/contract.d.ts.map +1 -0
  286. package/script/src/features/auth/contract.js +46 -0
  287. package/script/src/features/auth/identity/contract.d.ts +23 -0
  288. package/script/src/features/auth/identity/contract.d.ts.map +1 -0
  289. package/script/src/features/auth/identity/contract.js +20 -0
  290. package/script/src/features/auth/identity/repository.d.ts +22 -0
  291. package/script/src/features/auth/identity/repository.d.ts.map +1 -0
  292. package/script/src/features/auth/identity/repository.js +34 -0
  293. package/script/src/features/auth/index.d.ts +6 -0
  294. package/script/src/features/auth/index.d.ts.map +1 -0
  295. package/script/src/features/auth/index.js +21 -0
  296. package/script/src/features/auth/manager.d.ts +105 -0
  297. package/script/src/features/auth/manager.d.ts.map +1 -0
  298. package/script/src/features/auth/manager.js +185 -0
  299. package/script/src/features/auth/profile/contract.d.ts +37 -0
  300. package/script/src/features/auth/profile/contract.d.ts.map +1 -0
  301. package/script/src/features/auth/profile/contract.js +17 -0
  302. package/script/src/features/auth/profile/repository.d.ts +11 -0
  303. package/script/src/features/auth/profile/repository.d.ts.map +1 -0
  304. package/script/src/features/auth/profile/repository.js +29 -0
  305. package/script/src/features/auth/repository.d.ts +30 -0
  306. package/script/src/features/auth/repository.d.ts.map +1 -0
  307. package/script/src/features/auth/repository.js +73 -0
  308. package/script/src/features/auth/storage/client_store.d.ts +30 -0
  309. package/script/src/features/auth/storage/client_store.d.ts.map +1 -0
  310. package/script/src/features/auth/storage/client_store.js +51 -0
  311. package/script/src/features/auth/storage/client_token_handler.d.ts +32 -0
  312. package/script/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
  313. package/script/src/features/auth/storage/client_token_handler.js +40 -0
  314. package/script/src/features/auth/storage/server_store.d.ts +24 -0
  315. package/script/src/features/auth/storage/server_store.d.ts.map +1 -0
  316. package/script/src/features/auth/storage/server_store.js +38 -0
  317. package/script/src/features/auth/storage/server_token_handler.d.ts +36 -0
  318. package/script/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
  319. package/script/src/features/auth/storage/server_token_handler.js +119 -0
  320. package/script/src/features/auth/storage/types.d.ts +42 -0
  321. package/script/src/features/auth/storage/types.d.ts.map +1 -0
  322. package/script/src/features/auth/storage/types.js +2 -0
  323. package/script/src/features/contact/contract.d.ts +170 -0
  324. package/script/src/features/contact/contract.d.ts.map +1 -0
  325. package/script/src/features/contact/contract.js +52 -0
  326. package/script/src/features/contact/index.d.ts +2 -0
  327. package/script/src/features/contact/index.d.ts.map +1 -0
  328. package/script/src/features/contact/index.js +17 -0
  329. package/script/src/features/contact/repository.d.ts +58 -0
  330. package/script/src/features/contact/repository.d.ts.map +1 -0
  331. package/script/src/features/contact/repository.js +112 -0
  332. package/script/src/features/payout/contract.d.ts +623 -0
  333. package/script/src/features/payout/contract.d.ts.map +1 -0
  334. package/script/src/features/payout/contract.js +78 -0
  335. package/script/src/features/payout/index.d.ts +2 -0
  336. package/script/src/features/payout/index.d.ts.map +1 -0
  337. package/script/src/features/payout/index.js +17 -0
  338. package/script/src/features/payout/repository.d.ts +67 -0
  339. package/script/src/features/payout/repository.d.ts.map +1 -0
  340. package/script/src/features/payout/repository.js +167 -0
  341. package/script/src/features/wallet/contract.d.ts +137 -0
  342. package/script/src/features/wallet/contract.d.ts.map +1 -0
  343. package/script/src/features/wallet/contract.js +41 -0
  344. package/script/src/features/wallet/index.d.ts +2 -0
  345. package/script/src/features/wallet/index.d.ts.map +1 -0
  346. package/script/src/features/wallet/index.js +17 -0
  347. package/script/src/features/wallet/repository.d.ts +57 -0
  348. package/script/src/features/wallet/repository.d.ts.map +1 -0
  349. package/script/src/features/wallet/repository.js +97 -0
  350. package/script/src/models/contact/derivatives/contact.d.ts +172 -0
  351. package/script/src/models/contact/derivatives/contact.d.ts.map +1 -0
  352. package/script/src/models/contact/derivatives/contact.js +270 -0
  353. package/script/src/models/contact/derivatives/contact.test.d.ts.map +1 -0
  354. package/script/src/models/contact/derivatives/contact_info.d.ts +188 -0
  355. package/script/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
  356. package/script/src/models/contact/derivatives/contact_info.js +260 -0
  357. package/script/src/models/contact/derivatives/contact_info.test.d.ts.map +1 -0
  358. package/script/src/models/contact/index.d.ts +5 -0
  359. package/script/src/models/contact/index.d.ts.map +1 -0
  360. package/script/src/models/contact/index.js +20 -0
  361. package/script/src/models/contact/schemas.d.ts +66 -0
  362. package/script/src/models/contact/schemas.d.ts.map +1 -0
  363. package/script/src/models/contact/schemas.js +67 -0
  364. package/script/src/models/contact/validation.d.ts +37 -0
  365. package/script/src/models/contact/validation.d.ts.map +1 -0
  366. package/script/src/models/contact/validation.js +153 -0
  367. package/script/src/models/contact/validation.test.d.ts.map +1 -0
  368. package/script/src/models/index.d.ts +7 -0
  369. package/script/src/models/index.d.ts.map +1 -0
  370. package/script/src/models/index.js +22 -0
  371. package/script/src/models/payout/api.d.ts +29 -0
  372. package/script/src/models/payout/api.d.ts.map +1 -0
  373. package/script/src/models/payout/api.js +2 -0
  374. package/script/src/models/payout/channel.d.ts +58 -0
  375. package/script/src/models/payout/channel.d.ts.map +1 -0
  376. package/script/src/models/payout/channel.js +56 -0
  377. package/script/src/models/payout/derivatives/payout.d.ts +156 -0
  378. package/script/src/models/payout/derivatives/payout.d.ts.map +1 -0
  379. package/script/src/models/payout/derivatives/payout.js +265 -0
  380. package/script/src/models/payout/derivatives/payout.test.d.ts.map +1 -0
  381. package/script/src/models/payout/index.d.ts +6 -0
  382. package/script/src/models/payout/index.d.ts.map +1 -0
  383. package/script/src/models/payout/index.js +21 -0
  384. package/script/src/models/payout/schemas.d.ts +156 -0
  385. package/script/src/models/payout/schemas.d.ts.map +1 -0
  386. package/script/src/models/payout/schemas.js +108 -0
  387. package/script/src/models/payout/status.d.ts +33 -0
  388. package/script/src/models/payout/status.d.ts.map +1 -0
  389. package/script/src/models/payout/status.js +37 -0
  390. package/script/src/models/permission.d.ts +55 -0
  391. package/script/src/models/permission.d.ts.map +1 -0
  392. package/script/src/models/permission.js +53 -0
  393. package/script/src/models/role.d.ts +21 -0
  394. package/script/src/models/role.d.ts.map +1 -0
  395. package/script/src/models/role.js +77 -0
  396. package/script/src/models/user/authenticated-user.d.ts +77 -0
  397. package/script/src/models/user/authenticated-user.d.ts.map +1 -0
  398. package/script/src/models/user/authenticated-user.js +230 -0
  399. package/script/src/models/user/index.d.ts +4 -0
  400. package/script/src/models/user/index.d.ts.map +1 -0
  401. package/script/src/models/user/index.js +19 -0
  402. package/script/src/models/user/managed-user.d.ts +108 -0
  403. package/script/src/models/user/managed-user.d.ts.map +1 -0
  404. package/script/src/models/user/managed-user.js +260 -0
  405. package/script/src/models/user/profile.d.ts +161 -0
  406. package/script/src/models/user/profile.d.ts.map +1 -0
  407. package/script/src/models/user/profile.js +338 -0
  408. package/script/src/models/wallet/index.d.ts +4 -0
  409. package/script/src/models/wallet/index.d.ts.map +1 -0
  410. package/script/src/models/wallet/index.js +19 -0
  411. package/script/src/models/wallet/schemas.d.ts +95 -0
  412. package/script/src/models/wallet/schemas.d.ts.map +1 -0
  413. package/script/src/models/wallet/schemas.js +38 -0
  414. package/script/src/models/wallet/statement_entry.d.ts +160 -0
  415. package/script/src/models/wallet/statement_entry.d.ts.map +1 -0
  416. package/script/src/models/wallet/statement_entry.js +259 -0
  417. package/script/src/models/wallet/wallet.d.ts +147 -0
  418. package/script/src/models/wallet/wallet.d.ts.map +1 -0
  419. package/script/src/models/wallet/wallet.js +283 -0
  420. package/script/src/shared/base_repository.d.ts +80 -0
  421. package/script/src/shared/base_repository.d.ts.map +1 -0
  422. package/script/src/shared/base_repository.js +157 -0
  423. package/script/src/shared/common_responses.d.ts +13 -0
  424. package/script/src/shared/common_responses.d.ts.map +1 -0
  425. package/script/src/shared/common_responses.js +13 -0
  426. package/script/src/shared/index.d.ts +3 -0
  427. package/script/src/shared/index.d.ts.map +1 -0
  428. package/script/src/shared/index.js +18 -0
  429. package/script/src/shared/token_required_repository.d.ts +78 -0
  430. package/script/src/shared/token_required_repository.d.ts.map +1 -0
  431. package/script/src/shared/token_required_repository.js +132 -0
  432. package/dist/features/admin/admin.repository.d.ts +0 -179
  433. package/dist/features/admin/index.d.ts +0 -2
  434. package/dist/features/auth/access/access.repository.d.ts +0 -55
  435. package/dist/features/auth/auth.manager.d.ts +0 -249
  436. package/dist/features/auth/auth.repository.d.ts +0 -66
  437. package/dist/features/auth/auth.store.d.ts +0 -139
  438. package/dist/features/auth/identity/identity.repository.d.ts +0 -58
  439. package/dist/features/auth/index.d.ts +0 -5
  440. package/dist/features/auth/profile/profile.dtos.d.ts +0 -80
  441. package/dist/features/auth/profile/profile.repository.d.ts +0 -56
  442. package/dist/features/contact/contact-input-handler.d.ts +0 -16
  443. package/dist/features/contact/contact.dtos.d.ts +0 -90
  444. package/dist/features/contact/contact.repository.d.ts +0 -116
  445. package/dist/features/contact/index.d.ts +0 -2
  446. package/dist/features/payout/index.d.ts +0 -3
  447. package/dist/features/payout/payout-channel-handler.d.ts +0 -108
  448. package/dist/features/payout/payout.dtos.d.ts +0 -365
  449. package/dist/features/payout/payout.repository.d.ts +0 -193
  450. package/dist/features/wallet/index.d.ts +0 -4
  451. package/dist/features/wallet/wallet-manager.session.d.ts +0 -143
  452. package/dist/features/wallet/wallet.dtos.d.ts +0 -204
  453. package/dist/features/wallet/wallet.repository.d.ts +0 -120
  454. package/dist/features/wallet/wallet.utils.d.ts +0 -17
  455. package/dist/index.cjs.js +0 -2
  456. package/dist/index.cjs.js.map +0 -1
  457. package/dist/index.d.ts +0 -7
  458. package/dist/index.esm.js +0 -2
  459. package/dist/index.esm.js.map +0 -1
  460. package/dist/lib/api/index.d.ts +0 -2
  461. package/dist/lib/error/error.utils.d.ts +0 -22
  462. package/dist/lib/error/index.d.ts +0 -3
  463. package/dist/models/contact-info.model.d.ts +0 -817
  464. package/dist/models/index.d.ts +0 -10
  465. package/dist/models/statement-entry.model.d.ts +0 -195
@@ -0,0 +1,90 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Custom error class representing API-related errors.
4
+ * Extends the built-in `Error` class to include additional properties such as `statusCode`, `error`, and `details`.
5
+ */
6
+ export class APIError extends Error {
7
+ /**
8
+ * Creates a new `APIError` instance.
9
+ * @param {Object} args - The arguments to initialize the error.
10
+ * @param {string} args.message - The error message.
11
+ * @param {number} args.statusCode - The HTTP status code associated with the error.
12
+ * @param {string} [args.error] - An optional error identifier or code.
13
+ * @param {Record<string, unknown>} [args.details] - Additional details about the error.
14
+ */
15
+ constructor(args) {
16
+ super(args.message);
17
+ /**
18
+ * The HTTP status code associated with the error.
19
+ * @type {number}
20
+ */
21
+ Object.defineProperty(this, "statusCode", {
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true,
25
+ value: void 0
26
+ });
27
+ /**
28
+ * An optional error identifier or code.
29
+ * @type {string | undefined}
30
+ */
31
+ Object.defineProperty(this, "error", {
32
+ enumerable: true,
33
+ configurable: true,
34
+ writable: true,
35
+ value: void 0
36
+ });
37
+ /**
38
+ * Additional details about the error, often used for debugging purposes.
39
+ * @type {Record<string, unknown> | undefined}
40
+ */
41
+ Object.defineProperty(this, "details", {
42
+ enumerable: true,
43
+ configurable: true,
44
+ writable: true,
45
+ value: void 0
46
+ });
47
+ this.name = "ApiError";
48
+ this.statusCode = args.statusCode;
49
+ if (this.error)
50
+ this.error = args.error;
51
+ if (args.details)
52
+ this.details = args.details;
53
+ }
54
+ /**
55
+ * Validates whether an unknown value conforms to the APIError schema.
56
+ * This is more thorough than an instanceof check as it verifies all required properties
57
+ * and their types using the defined schema.
58
+ *
59
+ * @param {unknown} error - Any value to be validated
60
+ * @returns {error is APIError} Type predicate indicating if the value is a valid APIError
61
+ *
62
+ * @example
63
+ * try {
64
+ * throw new Error('Network failed');
65
+ * } catch (err) {
66
+ * if (APIError.is(err)) {
67
+ * // err is typed as APIError here
68
+ * console.log(err.statusCode);
69
+ * }
70
+ * }
71
+ */
72
+ static is(error) {
73
+ const result = APIError.schema.safeParse(error);
74
+ return result.success;
75
+ }
76
+ static unknown(message) {
77
+ return new APIError({
78
+ message: message ?? "An unknown error occurred",
79
+ statusCode: 502,
80
+ });
81
+ }
82
+ static get schema() {
83
+ return z.object({
84
+ message: z.string(),
85
+ statusCode: z.number().int(),
86
+ error: z.string().optional(),
87
+ details: z.object({}).optional(),
88
+ });
89
+ }
90
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./api_error.js";
2
+ export * from "./permission_error.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./api_error.js";
2
+ export * from "./permission_error.js";
@@ -1,4 +1,4 @@
1
- import { Permission } from "@/models/permission";
1
+ import { type Permission } from "../models/permission.js";
2
2
  /**
3
3
  * Custom error class representing an error caused by missing required permissions.
4
4
  * Extends the built-in {@link Error} class to include the `requiredPermissions` property.
@@ -45,3 +45,4 @@ export declare class PermissionError extends Error {
45
45
  */
46
46
  static is(error: unknown): error is PermissionError;
47
47
  }
48
+ //# sourceMappingURL=permission_error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission_error.d.ts","sourceRoot":"","sources":["../../../src/src/errors/permission_error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAC;AAGvE;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC;;;OAGG;IACH,SAAgB,mBAAmB,EAAE,UAAU,EAAE,CAAC;IAElD;;;;;OAKG;gBACS,IAAI,EAAE;QAChB,mBAAmB,EAAE,UAAU,EAAE,CAAC;QAClC,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IASD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;WACW,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe;CAkB3D"}
@@ -0,0 +1,70 @@
1
+ import { Permissions } from "../models/permission.js";
2
+ import { z } from "zod";
3
+ /**
4
+ * Custom error class representing an error caused by missing required permissions.
5
+ * Extends the built-in {@link Error} class to include the `requiredPermissions` property.
6
+ */
7
+ export class PermissionError extends Error {
8
+ /**
9
+ * Creates a new `PermissionError` instance.
10
+ * @param {Object} args - The constructor arguments.
11
+ * @param {Permission[]} args.requiredPermissions - An array of permissions required for the operation.
12
+ * @param {string} [args.message] - An optional custom error message. Defaults to listing the missing permissions.
13
+ */
14
+ constructor(args) {
15
+ super(args.message ??
16
+ `Missing required permissions: ${args.requiredPermissions.join(", ")}`);
17
+ /**
18
+ * The permissions that are required but were not present, causing the error.
19
+ * @type {Permission[]}
20
+ */
21
+ Object.defineProperty(this, "requiredPermissions", {
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true,
25
+ value: void 0
26
+ });
27
+ this.name = "PermissionError";
28
+ this.requiredPermissions = args.requiredPermissions;
29
+ }
30
+ /**
31
+ * Validates if an unknown value is a valid PermissionError instance.
32
+ * Performs structural validation of the error object and its properties.
33
+ *
34
+ * @param {unknown} error - The value to validate.
35
+ * @returns {error is PermissionError} Type predicate indicating if the value is a valid PermissionError.
36
+ *
37
+ * @example
38
+ * try {
39
+ * throw new Error('Access denied');
40
+ * } catch (error) {
41
+ * if (PermissionError.is(error)) {
42
+ * // error is typed as PermissionError with properly typed requiredPermissions
43
+ * console.log(error.requiredPermissions);
44
+ * }
45
+ * }
46
+ *
47
+ * @remarks
48
+ * Validates the following:
49
+ * - Has all required Error properties
50
+ * - Has correct error name
51
+ * - Contains properly structured requiredPermissions array
52
+ * - Maintains proper prototype chain
53
+ */
54
+ static is(error) {
55
+ const permissionSchema = z.union([
56
+ z.enum(Object.values(Permissions.Profile)),
57
+ z.enum(Object.values(Permissions.Contact)),
58
+ z.enum(Object.values(Permissions.Payment)),
59
+ z.enum(Object.values(Permissions.Payout)),
60
+ z.enum(Object.values(Permissions.Transfer)),
61
+ z.enum(Object.values(Permissions.Wallet)),
62
+ ]);
63
+ const errorSchema = z.object({
64
+ name: z.literal("PermissionError"),
65
+ message: z.string(),
66
+ requiredPermissions: z.array(permissionSchema),
67
+ });
68
+ return errorSchema.safeParse(error).success;
69
+ }
70
+ }
@@ -17,9 +17,9 @@ export declare const userManagementContract: {
17
17
  eager: z.ZodOptional<z.ZodString>;
18
18
  }, z.UnknownKeysParam, z.ZodTypeAny, {
19
19
  type?: string | undefined;
20
- name?: string | undefined;
21
20
  id?: string | undefined;
22
21
  resetPassword?: number | undefined;
22
+ name?: string | undefined;
23
23
  identity?: string | undefined;
24
24
  profileId?: string | undefined;
25
25
  createdAt?: string | undefined;
@@ -30,9 +30,9 @@ export declare const userManagementContract: {
30
30
  isArchived?: number | undefined;
31
31
  }, {
32
32
  type?: string | undefined;
33
- name?: string | undefined;
34
33
  id?: string | undefined;
35
34
  resetPassword?: number | undefined;
35
+ name?: string | undefined;
36
36
  identity?: string | undefined;
37
37
  profileId?: string | undefined;
38
38
  createdAt?: string | undefined;
@@ -56,14 +56,21 @@ export declare const userManagementContract: {
56
56
  resetPassword: z.ZodBoolean;
57
57
  isActive: z.ZodBoolean;
58
58
  isArchived: z.ZodBoolean;
59
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
59
+ role: z.ZodOptional<z.ZodType<{
60
+ id: string;
61
+ access: string[];
62
+ name: string;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ description?: string | undefined;
66
+ }>>;
60
67
  createdAt: z.ZodString;
61
68
  updatedAt: z.ZodString;
62
69
  }, z.UnknownKeysParam, z.ZodTypeAny, {
63
70
  type: string;
64
- name: string;
65
71
  id: string;
66
72
  resetPassword: boolean;
73
+ name: string;
67
74
  identity: string;
68
75
  profileId: string;
69
76
  createdAt: string;
@@ -72,18 +79,18 @@ export declare const userManagementContract: {
72
79
  isActive: boolean;
73
80
  isArchived: boolean;
74
81
  role?: {
75
- name: string;
76
82
  id: string;
77
83
  access: string[];
84
+ name: string;
78
85
  createdAt: string;
79
86
  updatedAt: string;
80
87
  description?: string | undefined;
81
88
  } | undefined;
82
89
  }, {
83
90
  type: string;
84
- name: string;
85
91
  id: string;
86
92
  resetPassword: boolean;
93
+ name: string;
87
94
  identity: string;
88
95
  profileId: string;
89
96
  createdAt: string;
@@ -92,9 +99,9 @@ export declare const userManagementContract: {
92
99
  isActive: boolean;
93
100
  isArchived: boolean;
94
101
  role?: {
95
- name: string;
96
102
  id: string;
97
103
  access: string[];
104
+ name: string;
98
105
  createdAt: string;
99
106
  updatedAt: string;
100
107
  description?: string | undefined;
@@ -140,9 +147,9 @@ export declare const userManagementContract: {
140
147
  eager: z.ZodOptional<z.ZodString>;
141
148
  }, z.UnknownKeysParam, z.ZodTypeAny, {
142
149
  type?: string | undefined;
143
- name?: string | undefined;
144
150
  id?: string | undefined;
145
151
  resetPassword?: number | undefined;
152
+ name?: string | undefined;
146
153
  identity?: string | undefined;
147
154
  profileId?: string | undefined;
148
155
  createdAt?: string | undefined;
@@ -153,9 +160,9 @@ export declare const userManagementContract: {
153
160
  isArchived?: number | undefined;
154
161
  }, {
155
162
  type?: string | undefined;
156
- name?: string | undefined;
157
163
  id?: string | undefined;
158
164
  resetPassword?: number | undefined;
165
+ name?: string | undefined;
159
166
  identity?: string | undefined;
160
167
  profileId?: string | undefined;
161
168
  createdAt?: string | undefined;
@@ -179,14 +186,21 @@ export declare const userManagementContract: {
179
186
  resetPassword: z.ZodBoolean;
180
187
  isActive: z.ZodBoolean;
181
188
  isArchived: z.ZodBoolean;
182
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
189
+ role: z.ZodOptional<z.ZodType<{
190
+ id: string;
191
+ access: string[];
192
+ name: string;
193
+ createdAt: string;
194
+ updatedAt: string;
195
+ description?: string | undefined;
196
+ }>>;
183
197
  createdAt: z.ZodString;
184
198
  updatedAt: z.ZodString;
185
199
  }, z.UnknownKeysParam, z.ZodTypeAny, {
186
200
  type: string;
187
- name: string;
188
201
  id: string;
189
202
  resetPassword: boolean;
203
+ name: string;
190
204
  identity: string;
191
205
  profileId: string;
192
206
  createdAt: string;
@@ -195,18 +209,18 @@ export declare const userManagementContract: {
195
209
  isActive: boolean;
196
210
  isArchived: boolean;
197
211
  role?: {
198
- name: string;
199
212
  id: string;
200
213
  access: string[];
214
+ name: string;
201
215
  createdAt: string;
202
216
  updatedAt: string;
203
217
  description?: string | undefined;
204
218
  } | undefined;
205
219
  }, {
206
220
  type: string;
207
- name: string;
208
221
  id: string;
209
222
  resetPassword: boolean;
223
+ name: string;
210
224
  identity: string;
211
225
  profileId: string;
212
226
  createdAt: string;
@@ -215,9 +229,9 @@ export declare const userManagementContract: {
215
229
  isActive: boolean;
216
230
  isArchived: boolean;
217
231
  role?: {
218
- name: string;
219
232
  id: string;
220
233
  access: string[];
234
+ name: string;
221
235
  createdAt: string;
222
236
  updatedAt: string;
223
237
  description?: string | undefined;
@@ -260,14 +274,14 @@ export declare const userManagementContract: {
260
274
  name: string;
261
275
  identity: string;
262
276
  resetPassword?: boolean | undefined;
263
- roleId?: string | undefined;
264
277
  password?: string | undefined;
278
+ roleId?: string | undefined;
265
279
  }, {
266
280
  name: string;
267
281
  identity: string;
268
282
  resetPassword?: boolean | undefined;
269
- roleId?: string | undefined;
270
283
  password?: string | undefined;
284
+ roleId?: string | undefined;
271
285
  }>;
272
286
  path: "/login";
273
287
  responses: {
@@ -283,8 +297,8 @@ export declare const userManagementContract: {
283
297
  createdAt: z.ZodString;
284
298
  }, z.UnknownKeysParam, z.ZodTypeAny, {
285
299
  type: string;
286
- name: string;
287
300
  id: string;
301
+ name: string;
288
302
  identity: string;
289
303
  profileId: string;
290
304
  createdAt: string;
@@ -293,8 +307,8 @@ export declare const userManagementContract: {
293
307
  isArchived: boolean;
294
308
  }, {
295
309
  type: string;
296
- name: string;
297
310
  id: string;
311
+ name: string;
298
312
  identity: string;
299
313
  profileId: string;
300
314
  createdAt: string;
@@ -353,17 +367,17 @@ export declare const userManagementContract: {
353
367
  resetPassword: z.ZodOptional<z.ZodBoolean>;
354
368
  isActive: z.ZodOptional<z.ZodBoolean>;
355
369
  }, z.UnknownKeysParam, z.ZodTypeAny, {
356
- name?: string | undefined;
357
370
  resetPassword?: boolean | undefined;
371
+ name?: string | undefined;
372
+ password?: string | undefined;
358
373
  roleId?: string | undefined;
359
374
  isActive?: boolean | undefined;
360
- password?: string | undefined;
361
375
  }, {
362
- name?: string | undefined;
363
376
  resetPassword?: boolean | undefined;
377
+ name?: string | undefined;
378
+ password?: string | undefined;
364
379
  roleId?: string | undefined;
365
380
  isActive?: boolean | undefined;
366
- password?: string | undefined;
367
381
  }>;
368
382
  path: "/login/:id";
369
383
  responses: {
@@ -377,14 +391,21 @@ export declare const userManagementContract: {
377
391
  resetPassword: z.ZodBoolean;
378
392
  isActive: z.ZodBoolean;
379
393
  isArchived: z.ZodBoolean;
380
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
394
+ role: z.ZodOptional<z.ZodType<{
395
+ id: string;
396
+ access: string[];
397
+ name: string;
398
+ createdAt: string;
399
+ updatedAt: string;
400
+ description?: string | undefined;
401
+ }>>;
381
402
  createdAt: z.ZodString;
382
403
  updatedAt: z.ZodString;
383
404
  }, z.UnknownKeysParam, z.ZodTypeAny, {
384
405
  type: string;
385
- name: string;
386
406
  id: string;
387
407
  resetPassword: boolean;
408
+ name: string;
388
409
  identity: string;
389
410
  profileId: string;
390
411
  createdAt: string;
@@ -393,18 +414,18 @@ export declare const userManagementContract: {
393
414
  isActive: boolean;
394
415
  isArchived: boolean;
395
416
  role?: {
396
- name: string;
397
417
  id: string;
398
418
  access: string[];
419
+ name: string;
399
420
  createdAt: string;
400
421
  updatedAt: string;
401
422
  description?: string | undefined;
402
423
  } | undefined;
403
424
  }, {
404
425
  type: string;
405
- name: string;
406
426
  id: string;
407
427
  resetPassword: boolean;
428
+ name: string;
408
429
  identity: string;
409
430
  profileId: string;
410
431
  createdAt: string;
@@ -413,9 +434,9 @@ export declare const userManagementContract: {
413
434
  isActive: boolean;
414
435
  isArchived: boolean;
415
436
  role?: {
416
- name: string;
417
437
  id: string;
418
438
  access: string[];
439
+ name: string;
419
440
  createdAt: string;
420
441
  updatedAt: string;
421
442
  description?: string | undefined;
@@ -478,14 +499,21 @@ export declare const userManagementContract: {
478
499
  resetPassword: z.ZodBoolean;
479
500
  isActive: z.ZodBoolean;
480
501
  isArchived: z.ZodBoolean;
481
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
502
+ role: z.ZodOptional<z.ZodType<{
503
+ id: string;
504
+ access: string[];
505
+ name: string;
506
+ createdAt: string;
507
+ updatedAt: string;
508
+ description?: string | undefined;
509
+ }>>;
482
510
  createdAt: z.ZodString;
483
511
  updatedAt: z.ZodString;
484
512
  }, z.UnknownKeysParam, z.ZodTypeAny, {
485
513
  type: string;
486
- name: string;
487
514
  id: string;
488
515
  resetPassword: boolean;
516
+ name: string;
489
517
  identity: string;
490
518
  profileId: string;
491
519
  createdAt: string;
@@ -494,18 +522,18 @@ export declare const userManagementContract: {
494
522
  isActive: boolean;
495
523
  isArchived: boolean;
496
524
  role?: {
497
- name: string;
498
525
  id: string;
499
526
  access: string[];
527
+ name: string;
500
528
  createdAt: string;
501
529
  updatedAt: string;
502
530
  description?: string | undefined;
503
531
  } | undefined;
504
532
  }, {
505
533
  type: string;
506
- name: string;
507
534
  id: string;
508
535
  resetPassword: boolean;
536
+ name: string;
509
537
  identity: string;
510
538
  profileId: string;
511
539
  createdAt: string;
@@ -514,9 +542,9 @@ export declare const userManagementContract: {
514
542
  isActive: boolean;
515
543
  isArchived: boolean;
516
544
  role?: {
517
- name: string;
518
545
  id: string;
519
546
  access: string[];
547
+ name: string;
520
548
  createdAt: string;
521
549
  updatedAt: string;
522
550
  description?: string | undefined;
@@ -569,14 +597,21 @@ export declare const userManagementContract: {
569
597
  resetPassword: z.ZodBoolean;
570
598
  isActive: z.ZodBoolean;
571
599
  isArchived: z.ZodBoolean;
572
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
600
+ role: z.ZodOptional<z.ZodType<{
601
+ id: string;
602
+ access: string[];
603
+ name: string;
604
+ createdAt: string;
605
+ updatedAt: string;
606
+ description?: string | undefined;
607
+ }>>;
573
608
  createdAt: z.ZodString;
574
609
  updatedAt: z.ZodString;
575
610
  }, z.UnknownKeysParam, z.ZodTypeAny, {
576
611
  type: string;
577
- name: string;
578
612
  id: string;
579
613
  resetPassword: boolean;
614
+ name: string;
580
615
  identity: string;
581
616
  profileId: string;
582
617
  createdAt: string;
@@ -585,18 +620,18 @@ export declare const userManagementContract: {
585
620
  isActive: boolean;
586
621
  isArchived: boolean;
587
622
  role?: {
588
- name: string;
589
623
  id: string;
590
624
  access: string[];
625
+ name: string;
591
626
  createdAt: string;
592
627
  updatedAt: string;
593
628
  description?: string | undefined;
594
629
  } | undefined;
595
630
  }, {
596
631
  type: string;
597
- name: string;
598
632
  id: string;
599
633
  resetPassword: boolean;
634
+ name: string;
600
635
  identity: string;
601
636
  profileId: string;
602
637
  createdAt: string;
@@ -605,9 +640,9 @@ export declare const userManagementContract: {
605
640
  isActive: boolean;
606
641
  isArchived: boolean;
607
642
  role?: {
608
- name: string;
609
643
  id: string;
610
644
  access: string[];
645
+ name: string;
611
646
  createdAt: string;
612
647
  updatedAt: string;
613
648
  description?: string | undefined;
@@ -710,16 +745,16 @@ export declare const userManagementContract: {
710
745
  createdAt: z.ZodString;
711
746
  updatedAt: z.ZodString;
712
747
  }, z.UnknownKeysParam, z.ZodTypeAny, {
713
- name: string;
714
748
  id: string;
715
749
  access: string[];
750
+ name: string;
716
751
  createdAt: string;
717
752
  updatedAt: string;
718
753
  description?: string | undefined;
719
754
  }, {
720
- name: string;
721
755
  id: string;
722
756
  access: string[];
757
+ name: string;
723
758
  createdAt: string;
724
759
  updatedAt: string;
725
760
  description?: string | undefined;
@@ -761,16 +796,16 @@ export declare const userManagementContract: {
761
796
  createdAt: z.ZodString;
762
797
  updatedAt: z.ZodString;
763
798
  }, z.UnknownKeysParam, z.ZodTypeAny, {
764
- name: string;
765
799
  id: string;
766
800
  access: string[];
801
+ name: string;
767
802
  createdAt: string;
768
803
  updatedAt: string;
769
804
  description?: string | undefined;
770
805
  }, {
771
- name: string;
772
806
  id: string;
773
807
  access: string[];
808
+ name: string;
774
809
  createdAt: string;
775
810
  updatedAt: string;
776
811
  description?: string | undefined;
@@ -804,3 +839,4 @@ export declare const userManagementContract: {
804
839
  * Use this type for strongly typed API client implementations.
805
840
  */
806
841
  export type UserManagementContract = typeof userManagementContract;
842
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/src/features/admin/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsNjC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}