@temboplus/afloat 0.1.78 → 0.1.79

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 (269) hide show
  1. package/esm/src/features/admin/contract.d.ts +46 -46
  2. package/esm/src/features/contact/contract.d.ts +1 -1
  3. package/esm/src/features/payout/contract.d.ts +2 -2
  4. package/esm/src/features/wallet/contract.d.ts +5 -5
  5. package/esm/src/models/contact/derivatives/contact.js +1 -1
  6. package/esm/src/models/contact/derivatives/contact_info.d.ts +1 -1
  7. package/esm/src/models/contact/derivatives/contact_info.d.ts.map +1 -1
  8. package/esm/src/models/contact/derivatives/contact_info.js +1 -1
  9. package/esm/src/models/payout/channel.d.ts +1 -1
  10. package/esm/src/models/payout/channel.d.ts.map +1 -1
  11. package/esm/src/models/payout/channel.js +1 -1
  12. package/esm/src/models/payout/derivatives/payout.d.ts +1 -1
  13. package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -1
  14. package/esm/src/models/payout/derivatives/payout.js +1 -1
  15. package/esm/src/models/payout/narration.js +1 -1
  16. package/esm/src/models/user/profile.d.ts +1 -1
  17. package/esm/src/models/user/profile.d.ts.map +1 -1
  18. package/esm/src/models/user/profile.js +1 -1
  19. package/esm/src/models/wallet/schemas.d.ts +3 -3
  20. package/esm/src/models/wallet/schemas.js +1 -1
  21. package/esm/src/models/wallet/wallet.d.ts +2 -2
  22. package/esm/src/models/wallet/wallet.d.ts.map +1 -1
  23. package/esm/src/models/wallet/wallet.js +1 -1
  24. package/package.json +3 -4
  25. package/script/npm/src/src/features/admin/contract.d.ts +46 -46
  26. package/script/npm/src/src/features/contact/contract.d.ts +1 -1
  27. package/script/npm/src/src/features/payout/contract.d.ts +2 -2
  28. package/script/npm/src/src/features/wallet/contract.d.ts +5 -5
  29. package/script/npm/src/src/models/contact/derivatives/contact.js +3 -3
  30. package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts +1 -1
  31. package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts.map +1 -1
  32. package/script/npm/src/src/models/contact/derivatives/contact_info.js +6 -6
  33. package/script/npm/src/src/models/payout/channel.d.ts +1 -1
  34. package/script/npm/src/src/models/payout/channel.d.ts.map +1 -1
  35. package/script/npm/src/src/models/payout/channel.js +3 -3
  36. package/script/npm/src/src/models/payout/derivatives/payout.d.ts +1 -1
  37. package/script/npm/src/src/models/payout/derivatives/payout.d.ts.map +1 -1
  38. package/script/npm/src/src/models/payout/derivatives/payout.js +4 -4
  39. package/script/npm/src/src/models/payout/narration.js +5 -5
  40. package/script/npm/src/src/models/user/profile.d.ts +1 -1
  41. package/script/npm/src/src/models/user/profile.d.ts.map +1 -1
  42. package/script/npm/src/src/models/user/profile.js +3 -3
  43. package/script/npm/src/src/models/wallet/schemas.d.ts +3 -3
  44. package/script/npm/src/src/models/wallet/schemas.js +4 -4
  45. package/script/npm/src/src/models/wallet/wallet.d.ts +2 -2
  46. package/script/npm/src/src/models/wallet/wallet.d.ts.map +1 -1
  47. package/script/npm/src/src/models/wallet/wallet.js +6 -6
  48. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts +0 -5
  49. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts.map +0 -1
  50. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.js +0 -4
  51. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts +0 -11
  52. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts.map +0 -1
  53. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.js +0 -19
  54. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts +0 -2
  55. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts.map +0 -1
  56. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.js +0 -1
  57. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts +0 -7
  58. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts.map +0 -1
  59. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.js +0 -197
  60. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts +0 -39
  61. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts.map +0 -1
  62. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.js +0 -2475
  63. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts +0 -1901
  64. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts.map +0 -1
  65. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.js +0 -1073
  66. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts +0 -3809
  67. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts.map +0 -1
  68. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.js +0 -2325
  69. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts +0 -53
  70. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts.map +0 -1
  71. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.js +0 -190
  72. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts +0 -40
  73. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts.map +0 -1
  74. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.js +0 -58
  75. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts +0 -3
  76. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts.map +0 -1
  77. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.js +0 -2
  78. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts +0 -11
  79. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts.map +0 -1
  80. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.js +0 -26
  81. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts +0 -257
  82. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts.map +0 -1
  83. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.js +0 -450
  84. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts +0 -5
  85. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts.map +0 -1
  86. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.js +0 -4
  87. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts +0 -7
  88. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts.map +0 -1
  89. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.js +0 -45
  90. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts +0 -8
  91. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts.map +0 -1
  92. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.js +0 -9
  93. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts +0 -822
  94. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts.map +0 -1
  95. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.js +0 -737
  96. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts +0 -4
  97. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts.map +0 -1
  98. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.js +0 -3
  99. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts +0 -63
  100. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts.map +0 -1
  101. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.js +0 -105
  102. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts +0 -21
  103. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts.map +0 -1
  104. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.js +0 -25
  105. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts +0 -465
  106. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts.map +0 -1
  107. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.js +0 -471
  108. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts +0 -4
  109. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts.map +0 -1
  110. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.js +0 -3
  111. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts +0 -21
  112. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts.map +0 -1
  113. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.js +0 -28
  114. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts +0 -8
  115. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts.map +0 -1
  116. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.js +0 -9
  117. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts +0 -6
  118. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts.map +0 -1
  119. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.js +0 -5
  120. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts +0 -13
  121. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts.map +0 -1
  122. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.js +0 -13
  123. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts +0 -162
  124. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts.map +0 -1
  125. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.js +0 -459
  126. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts +0 -267
  127. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts.map +0 -1
  128. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.js +0 -498
  129. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts +0 -6
  130. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts.map +0 -1
  131. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.js +0 -5
  132. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts +0 -77
  133. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts.map +0 -1
  134. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.js +0 -90
  135. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts +0 -30
  136. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts.map +0 -1
  137. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.js +0 -47
  138. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts +0 -141
  139. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts.map +0 -1
  140. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.js +0 -290
  141. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts +0 -2
  142. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts.map +0 -1
  143. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.js +0 -1
  144. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts +0 -144
  145. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts.map +0 -1
  146. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.js +0 -318
  147. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts +0 -12
  148. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts.map +0 -1
  149. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.js +0 -19
  150. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts +0 -4
  151. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts.map +0 -1
  152. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.js +0 -3
  153. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts +0 -32
  154. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts.map +0 -1
  155. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.js +0 -68
  156. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts +0 -21
  157. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts.map +0 -1
  158. package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.js +0 -34
  159. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts +0 -5
  160. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts.map +0 -1
  161. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.js +0 -20
  162. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts +0 -11
  163. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts.map +0 -1
  164. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.js +0 -23
  165. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts +0 -2
  166. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts.map +0 -1
  167. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.js +0 -17
  168. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts +0 -7
  169. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts.map +0 -1
  170. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.js +0 -199
  171. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts +0 -39
  172. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts.map +0 -1
  173. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.js +0 -2477
  174. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts +0 -1901
  175. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts.map +0 -1
  176. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.js +0 -1075
  177. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts +0 -3809
  178. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts.map +0 -1
  179. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.js +0 -2327
  180. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts +0 -53
  181. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts.map +0 -1
  182. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.js +0 -194
  183. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts +0 -40
  184. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts.map +0 -1
  185. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.js +0 -62
  186. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts +0 -3
  187. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts.map +0 -1
  188. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.js +0 -18
  189. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts +0 -11
  190. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts.map +0 -1
  191. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.js +0 -30
  192. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts +0 -257
  193. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts.map +0 -1
  194. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.js +0 -458
  195. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts +0 -5
  196. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts.map +0 -1
  197. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.js +0 -20
  198. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts +0 -7
  199. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts.map +0 -1
  200. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.js +0 -48
  201. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts +0 -8
  202. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts.map +0 -1
  203. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.js +0 -12
  204. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts +0 -822
  205. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts.map +0 -1
  206. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.js +0 -745
  207. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts +0 -4
  208. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts.map +0 -1
  209. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.js +0 -19
  210. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts +0 -63
  211. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts.map +0 -1
  212. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.js +0 -108
  213. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts +0 -21
  214. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts.map +0 -1
  215. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.js +0 -30
  216. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts +0 -465
  217. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts.map +0 -1
  218. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.js +0 -479
  219. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts +0 -4
  220. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts.map +0 -1
  221. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.js +0 -19
  222. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts +0 -21
  223. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts.map +0 -1
  224. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.js +0 -31
  225. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts +0 -8
  226. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts.map +0 -1
  227. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.js +0 -12
  228. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts +0 -6
  229. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts.map +0 -1
  230. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.js +0 -21
  231. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts +0 -13
  232. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts.map +0 -1
  233. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.js +0 -16
  234. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts +0 -162
  235. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts.map +0 -1
  236. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.js +0 -463
  237. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts +0 -267
  238. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts.map +0 -1
  239. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.js +0 -506
  240. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts +0 -6
  241. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts.map +0 -1
  242. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.js +0 -21
  243. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts +0 -77
  244. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts.map +0 -1
  245. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.js +0 -94
  246. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts +0 -30
  247. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts.map +0 -1
  248. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.js +0 -50
  249. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts +0 -141
  250. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts.map +0 -1
  251. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.js +0 -294
  252. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts +0 -2
  253. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts.map +0 -1
  254. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.js +0 -17
  255. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts +0 -144
  256. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts.map +0 -1
  257. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.js +0 -328
  258. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts +0 -12
  259. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts.map +0 -1
  260. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.js +0 -23
  261. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts +0 -4
  262. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts.map +0 -1
  263. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.js +0 -19
  264. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts +0 -32
  265. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts.map +0 -1
  266. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.js +0 -75
  267. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts +0 -21
  268. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts.map +0 -1
  269. package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.js +0 -39
@@ -1,471 +0,0 @@
1
- /**
2
- * @fileoverview This file contains both the Currency class and CurrencyService class.
3
- *
4
- * ARCHITECTURE NOTE: Currency and CurrencyService Classes
5
- * ======================================================
6
- *
7
- * These two classes have been intentionally placed in the same file to resolve
8
- * a circular dependency issue. The original implementation had these in separate files:
9
- *
10
- * - Currency class: Defines currency properties and static accessors
11
- * - CurrencyService class: Loads currency data and provides instance methods
12
- *
13
- * The circular dependency occurred because:
14
- * 1. Currency needed CurrencyService to initialize its static properties
15
- * 2. CurrencyService needed Currency to create Currency instances
16
- *
17
- * Previous attempts to solve this used setTimeout(0) to defer static initialization,
18
- * but this created race conditions where static properties weren't immediately available
19
- * after import (Currency.AFN would be undefined on first access).
20
- *
21
- * By combining both classes in a single file:
22
- * - We ensure proper initialization order
23
- * - All static properties are immediately available after import
24
- * - The public API remains unchanged
25
- *
26
- * This approach follows the principle that closely related classes with circular
27
- * dependencies are best managed in a unified module.
28
- */
29
- import file from "../../data/currencies.js";
30
- import { isCurrencyCode } from "./utils.js";
31
- /**
32
- * Represents a currency with essential details.
33
- * @class Currency
34
- */
35
- export class Currency {
36
- /**
37
- * Creates a new Currency instance.
38
- * @param {string} _symbol - The international symbol of the currency
39
- * @param {string} _name - The full name of the currency
40
- * @param {string} _symbolNative - The native symbol of the currency
41
- * @param {number} _decimalDigits - Number of decimal places typically used with this currency
42
- * @param {number} _rounding - Rounding increment used for this currency
43
- * @param {CurrencyCode} _code - The ISO 4217 currency code
44
- * @param {string} _namePlural - The plural form of the currency name
45
- */
46
- constructor(_symbol, _name, _symbolNative, _decimalDigits, _rounding, _code, _namePlural) {
47
- Object.defineProperty(this, "_symbol", {
48
- enumerable: true,
49
- configurable: true,
50
- writable: true,
51
- value: _symbol
52
- });
53
- Object.defineProperty(this, "_name", {
54
- enumerable: true,
55
- configurable: true,
56
- writable: true,
57
- value: _name
58
- });
59
- Object.defineProperty(this, "_symbolNative", {
60
- enumerable: true,
61
- configurable: true,
62
- writable: true,
63
- value: _symbolNative
64
- });
65
- Object.defineProperty(this, "_decimalDigits", {
66
- enumerable: true,
67
- configurable: true,
68
- writable: true,
69
- value: _decimalDigits
70
- });
71
- Object.defineProperty(this, "_rounding", {
72
- enumerable: true,
73
- configurable: true,
74
- writable: true,
75
- value: _rounding
76
- });
77
- Object.defineProperty(this, "_code", {
78
- enumerable: true,
79
- configurable: true,
80
- writable: true,
81
- value: _code
82
- });
83
- Object.defineProperty(this, "_namePlural", {
84
- enumerable: true,
85
- configurable: true,
86
- writable: true,
87
- value: _namePlural
88
- });
89
- }
90
- /**
91
- * Gets the international symbol of the currency.
92
- * @returns {string} The international symbol of the currency
93
- */
94
- get symbol() {
95
- return this._symbol;
96
- }
97
- /**
98
- * Gets the full name of the currency.
99
- * @returns {string} The full name of the currency
100
- */
101
- get name() {
102
- return this._name;
103
- }
104
- /**
105
- * Gets the native symbol of the currency.
106
- * @returns {string} The native symbol of the currency
107
- */
108
- get symbolNative() {
109
- return this._symbolNative;
110
- }
111
- /**
112
- * Gets the number of decimal places typically used with this currency.
113
- * @returns {number} The number of decimal places
114
- */
115
- get decimalDigits() {
116
- return this._decimalDigits;
117
- }
118
- /**
119
- * Gets the rounding increment used for this currency.
120
- * @returns {number} The rounding increment
121
- */
122
- get rounding() {
123
- return this._rounding;
124
- }
125
- /**
126
- * Gets the ISO 4217 currency code.
127
- * @returns {string} The ISO 4217 currency code
128
- */
129
- get code() {
130
- return this._code;
131
- }
132
- /**
133
- * Gets the plural form of the currency name.
134
- * @returns {string} The plural form of the currency name
135
- */
136
- get namePlural() {
137
- return this._namePlural;
138
- }
139
- /**
140
- * Creates a string representation of the currency.
141
- * @returns {string} String representation of the currency
142
- */
143
- toString() {
144
- return `${this.name} (${this.code})`;
145
- }
146
- /**
147
- * Retrieves a currency by its ISO code.
148
- * @param {CurrencyCode} code The ISO code of the currency.
149
- * @returns {Currency | undefined} The currency corresponding to the ISO code or `undefined` if not found.
150
- */
151
- static fromCode(code) {
152
- return CurrencyService.getInstance().fromCode(code);
153
- }
154
- /**
155
- * Retrieves a currency by its name.
156
- * @param {string} currencyName The name of the currency.
157
- * @returns {Currency | undefined} The currency corresponding to the name or `undefined` if not found.
158
- */
159
- static fromName(currencyName) {
160
- return CurrencyService.getInstance().fromName(currencyName);
161
- }
162
- /**
163
- * Returns all available currencies.
164
- * @returns {Currency[]} Array of all currencies
165
- */
166
- static getAll() {
167
- return CurrencyService.getInstance().getAll();
168
- }
169
- /**
170
- * Validates if a given currency code is valid
171
- * @param code The currency code to validate
172
- * @returns True if the currency code is valid
173
- */
174
- static isValidCode(code) {
175
- if (!code)
176
- return false;
177
- const currency = Currency.fromCode(code);
178
- return !!currency;
179
- }
180
- /**
181
- * Validates if a given currency name is valid
182
- * @param currencyName The currency name to validate
183
- * @returns True if the currency name is valid
184
- */
185
- static isValidName(currencyName) {
186
- if (!currencyName)
187
- return false;
188
- const currency = Currency.fromName(currencyName);
189
- return !!currency;
190
- }
191
- /**
192
- * Attempts to create a Currency instance from a currency name or ISO code string.
193
- * The `CurrencyCode` type provides type hints for valid ISO codes but resolves to `string`.
194
- * @param input The currency name or ISO code string.
195
- * @returns A Currency instance if valid input, undefined otherwise.
196
- */
197
- static from(input) {
198
- // Handle null or undefined input explicitly
199
- if (!input || typeof input === "object") {
200
- return undefined;
201
- }
202
- // Input is guaranteed to be a string here. Trim whitespace.
203
- const text = input.trim();
204
- // Check for empty string after trimming
205
- if (text.length === 0) {
206
- return undefined;
207
- }
208
- // Check if the input string matches a known CurrencyCode
209
- if (isCurrencyCode(text)) {
210
- // If it's a valid code format, try creating from code.
211
- // 'text' is now known to be of type CurrencyCode within this block.
212
- const currency = Currency.fromCode(text);
213
- // Return if successful. Note: fromCode itself might return undefined
214
- // even for a valid code if it's e.g., not supported/enabled.
215
- if (currency) {
216
- return currency;
217
- }
218
- }
219
- // If input wasn't a valid CurrencyCode recognized by the type guard,
220
- // OR if isCurrencyCode returned true but Currency.fromCode(text) returned undefined,
221
- // then try interpreting the original input string as a name.
222
- const currencyFromName = Currency.fromName(text);
223
- if (currencyFromName) {
224
- return currencyFromName;
225
- }
226
- // If neither code nor name interpretation worked
227
- return undefined;
228
- }
229
- /**
230
- * Checks if an unknown value is a Currency instance
231
- * @param obj The value to validate
232
- * @returns Type predicate indicating if the value is a valid Currency
233
- */
234
- static is(obj) {
235
- if (!obj || typeof obj !== "object")
236
- return false;
237
- const maybeCurrency = obj;
238
- // Check required properties exist with correct types
239
- if (typeof maybeCurrency._code !== "string")
240
- return false;
241
- if (typeof maybeCurrency._name !== "string")
242
- return false;
243
- if (typeof maybeCurrency._symbol !== "string")
244
- return false;
245
- if (typeof maybeCurrency._symbolNative !== "string")
246
- return false;
247
- if (typeof maybeCurrency._decimalDigits !== "number")
248
- return false;
249
- if (typeof maybeCurrency._rounding !== "number")
250
- return false;
251
- if (typeof maybeCurrency._namePlural !== "string")
252
- return false;
253
- // Validate against known currencies
254
- const currencyFromCode = Currency.fromCode(maybeCurrency._code);
255
- return Boolean(currencyFromCode);
256
- }
257
- }
258
- /**
259
- * Service for managing currency data.
260
- * @class CurrencyService
261
- */
262
- export class CurrencyService {
263
- constructor() {
264
- Object.defineProperty(this, "currencyList", {
265
- enumerable: true,
266
- configurable: true,
267
- writable: true,
268
- value: []
269
- });
270
- Object.defineProperty(this, "currencyRecord", {
271
- enumerable: true,
272
- configurable: true,
273
- writable: true,
274
- value: {}
275
- });
276
- Object.defineProperty(this, "nameRecord", {
277
- enumerable: true,
278
- configurable: true,
279
- writable: true,
280
- value: {}
281
- });
282
- // Static references for direct access through Currency class
283
- Object.defineProperty(this, "staticReferences", {
284
- enumerable: true,
285
- configurable: true,
286
- writable: true,
287
- value: new Map()
288
- });
289
- }
290
- /**
291
- * Gets the singleton instance of CurrencyService.
292
- * Creates the instance if it doesn't exist.
293
- * @static
294
- * @returns {CurrencyService} The singleton instance
295
- */
296
- static getInstance() {
297
- if (!CurrencyService.instance) {
298
- CurrencyService.instance = new CurrencyService();
299
- CurrencyService.instance.initialize();
300
- }
301
- return CurrencyService.instance;
302
- }
303
- /**
304
- * Initializes the service with currency data.
305
- * Should be called once when your application starts.
306
- */
307
- initialize() {
308
- try {
309
- const data = JSON.parse(JSON.stringify(file));
310
- const currencies = Object.values(data).map(function (c) {
311
- let code;
312
- if (isCurrencyCode(c.code)) {
313
- code = c.code;
314
- }
315
- else {
316
- throw new Error(`Unknown currency code: ${c.code}`);
317
- }
318
- return new Currency(c.symbol, c.name, c.symbol_native, c.decimal_digits, c.rounding, code, c.name_plural);
319
- });
320
- const codeRecord = {};
321
- const nameRecord = {};
322
- currencies.forEach((currency) => {
323
- // Populate code record
324
- codeRecord[currency.code] = currency;
325
- // Add to record by name
326
- nameRecord[currency.name.toUpperCase()] = currency;
327
- const upperCode = currency.code.toUpperCase();
328
- // Add to static references for uppercase code
329
- this.staticReferences.set(upperCode, currency);
330
- // Add formatted full name static reference based on name property
331
- // Transform from "US Dollar" to "US_DOLLAR"
332
- const nameKey = currency.name
333
- .toUpperCase()
334
- .replace(/\s+/g, "_")
335
- .replace(/[-(),.']/g, "")
336
- .replace(/&/g, "AND");
337
- this.staticReferences.set(nameKey, currency);
338
- });
339
- this.currencyRecord = codeRecord;
340
- this.nameRecord = nameRecord;
341
- this.currencyList = currencies;
342
- }
343
- catch (error) {
344
- console.error("Failed to initialize CurrencyService:", error);
345
- }
346
- }
347
- /**
348
- * Gets all currencies.
349
- * @returns {Currency[]} Array of all currencies
350
- */
351
- getAll() {
352
- return this.currencyList;
353
- }
354
- /**
355
- * Gets all currencies as a record.
356
- * @returns {Record<string, Currency>} Record of currency codes and currency objects
357
- */
358
- getAllAsRecord() {
359
- return this.currencyRecord;
360
- }
361
- /**
362
- * Gets static currency references to be used by the Currency class.
363
- * @returns {Map<string, Currency>} Map of static references
364
- */
365
- getStaticReferences() {
366
- return this.staticReferences;
367
- }
368
- /**
369
- * Retrieves a currency by its ISO code.
370
- * @param {string} code The ISO code of the currency.
371
- * @returns {Currency | undefined} The currency corresponding to the ISO code or `undefined` if not found.
372
- */
373
- fromCode(code) {
374
- return this.currencyRecord[code.trim().toUpperCase()];
375
- }
376
- /**
377
- * Retrieves a currency by its name.
378
- * @param {string} currencyName The name of the currency.
379
- * @returns {Currency | undefined} The currency corresponding to the name or `undefined` if not found.
380
- */
381
- fromName(currencyName) {
382
- const input = currencyName.trim().toUpperCase();
383
- // First try direct lookup in name record
384
- const directMatch = this.nameRecord[input];
385
- if (directMatch)
386
- return directMatch;
387
- // If not found, try more lenient matching
388
- for (const [name, currObj] of Object.entries(this.nameRecord)) {
389
- if (name.toUpperCase() === input) {
390
- return currObj;
391
- }
392
- }
393
- // Finally, try case-insensitive exact match
394
- return this.currencyList.find((currency) => currency.name.toUpperCase() === input);
395
- }
396
- /**
397
- * Validates if a given ISO currency code is valid
398
- *
399
- * @param {string | null | undefined} code - The currency code to validate.
400
- * Should be a three-letter ISO currency code (e.g., 'USD', 'EUR').
401
- *
402
- * @returns {boolean} Returns true if:
403
- * - The currency code is not null/undefined
404
- * - The currency code successfully resolves to a valid Currency instance
405
- * Returns false otherwise.
406
- */
407
- isValidCode(code) {
408
- if (!code)
409
- return false;
410
- const currency = this.fromCode(code);
411
- return !!currency;
412
- }
413
- /**
414
- * Validates if a given currency name is valid
415
- *
416
- * @param {string | null | undefined} currencyName - The currency name to validate.
417
- *
418
- * @returns {boolean} Returns true if:
419
- * - The currency name is not null/undefined
420
- * - The currency name successfully resolves to a valid Currency instance
421
- * Returns false otherwise.
422
- */
423
- isValidName(currencyName) {
424
- if (!currencyName)
425
- return false;
426
- const currency = this.fromName(currencyName);
427
- return !!currency;
428
- }
429
- /**
430
- * Gets a regex-ready pattern matching all currency symbols
431
- * Pattern is memoized for performance
432
- * @returns {string} Pipe-separated pattern of escaped currency symbols
433
- *
434
- * @example
435
- * const pattern = currencyService.getCurrencySymbolPattern();
436
- * // Returns something like: "\$|€|\£|¥"
437
- */
438
- getCurrencySymbolPattern() {
439
- const symbols = new Set();
440
- Object.values(this.currencyList).forEach((currency) => {
441
- symbols.add(this.escapeRegExp(currency.symbol));
442
- symbols.add(this.escapeRegExp(currency.symbolNative));
443
- });
444
- return Array.from(symbols).join("|");
445
- }
446
- /**
447
- * Escapes special characters in a string for use in regular expressions
448
- * @private
449
- * @param {string} string - The string to escape
450
- * @returns {string} The escaped string
451
- *
452
- * @example
453
- * private escapeRegExp("$") // Returns "\$"
454
- */
455
- escapeRegExp(string) {
456
- return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
457
- }
458
- }
459
- // Initialize static properties by applying the references from CurrencyService.
460
- (function setupStaticReferences() {
461
- try {
462
- const refs = CurrencyService.getInstance().getStaticReferences();
463
- refs.forEach((country, key) => {
464
- // deno-lint-ignore no-explicit-any
465
- Currency[key] = country;
466
- });
467
- }
468
- catch (error) {
469
- console.log("Failed to set up static references: ", error);
470
- }
471
- })();
@@ -1,4 +0,0 @@
1
- export * from "./currency.js";
2
- export * from "./types.js";
3
- export * from "./utils.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from "./currency.js";
2
- export * from "./types.js";
3
- export * from "./utils.js";
@@ -1,21 +0,0 @@
1
- /**
2
- * @fileoverview Type definitions for ISO currency codes
3
- *
4
- * These types provide type-safe representations of standard ISO codes:
5
- * - CurrencyCode: ISO 4217 currency codes
6
- *
7
- * Benefits:
8
- * - Type-safety at compile time
9
- * - Zero runtime overhead (compile away to strings)
10
- * - Autocompletion in modern IDEs
11
- * - Protection against typos and invalid values
12
- */
13
- /**
14
- * ISO 4217 currency codes
15
- *
16
- * These three-letter codes represent currencies based on the ISO 4217 standard.
17
- * Example: "USD" for US Dollar, "EUR" for Euro, "JPY" for Japanese Yen
18
- */
19
- export type CurrencyCode = "USD" | "CAD" | "EUR" | "AED" | "AFN" | "ALL" | "AMD" | "ARS" | "AUD" | "AZN" | "BAM" | "BDT" | "BGN" | "BHD" | "BIF" | "BND" | "BOB" | "BRL" | "BWP" | "BYN" | "BZD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "GBP" | "GEL" | "GHS" | "GNF" | "GTQ" | "HKD" | "HNL" | "HRK" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KHR" | "KMF" | "KRW" | "KWD" | "KZT" | "LBP" | "LKR" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MOP" | "MUR" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SDG" | "SEK" | "SGD" | "SOS" | "SSP" | "SYP" | "THB" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VES" | "VND" | "XAF" | "XOF" | "YER" | "ZAR" | "ZMW" | "STN" | "MRU" | "ZWG";
20
- export declare const ValidCurrencyCodesSet: Set<CurrencyCode>;
21
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACpB,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GACrE,KAAK,GAAG,KAAK,CAAC;AAElB,eAAO,MAAM,qBAAqB,mBAehC,CAAC"}
@@ -1,28 +0,0 @@
1
- /**
2
- * @fileoverview Type definitions for ISO currency codes
3
- *
4
- * These types provide type-safe representations of standard ISO codes:
5
- * - CurrencyCode: ISO 4217 currency codes
6
- *
7
- * Benefits:
8
- * - Type-safety at compile time
9
- * - Zero runtime overhead (compile away to strings)
10
- * - Autocompletion in modern IDEs
11
- * - Protection against typos and invalid values
12
- */
13
- export const ValidCurrencyCodesSet = new Set([
14
- "USD", "CAD", "EUR", "AED", "AFN", "ALL", "AMD", "ARS", "AUD",
15
- "AZN", "BAM", "BDT", "BGN", "BHD", "BIF", "BND", "BOB", "BRL",
16
- "BWP", "BYN", "BZD", "CDF", "CHF", "CLP", "CNY", "COP", "CRC",
17
- "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB",
18
- "GBP", "GEL", "GHS", "GNF", "GTQ", "HKD", "HNL", "HRK", "HUF",
19
- "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY",
20
- "KES", "KHR", "KMF", "KRW", "KWD", "KZT", "LBP", "LKR", "LYD",
21
- "MAD", "MDL", "MGA", "MKD", "MMK", "MOP", "MUR", "MXN", "MYR",
22
- "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB",
23
- "PEN", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB",
24
- "RWF", "SAR", "SDG", "SEK", "SGD", "SOS", "SSP", "SYP", "THB",
25
- "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "UYU",
26
- "UZS", "VES", "VND", "XAF", "XOF", "YER", "ZAR", "ZMW", "STN",
27
- "MRU", "ZWG"
28
- ]);
@@ -1,8 +0,0 @@
1
- import type { CurrencyCode } from "./types.js";
2
- /**
3
- * Type guard to check if a string is a valid CurrencyCode.
4
- * @param code The string to check.
5
- * @returns True if the string is a member of the CurrencyCode union type, false otherwise.
6
- */
7
- export declare function isCurrencyCode(code: string): code is CurrencyCode;
8
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEjE"}
@@ -1,9 +0,0 @@
1
- import { ValidCurrencyCodesSet } from "./index.js";
2
- /**
3
- * Type guard to check if a string is a valid CurrencyCode.
4
- * @param code The string to check.
5
- * @returns True if the string is a member of the CurrencyCode union type, false otherwise.
6
- */
7
- export function isCurrencyCode(code) {
8
- return ValidCurrencyCodesSet.has(code);
9
- }
@@ -1,6 +0,0 @@
1
- export * from "./amount/index.js";
2
- export * from "./bank/index.js";
3
- export * from "./phone_number/index.js";
4
- export * from "./country/index.js";
5
- export * from "./currency/index.js";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from "./amount/index.js";
2
- export * from "./bank/index.js";
3
- export * from "./phone_number/index.js";
4
- export * from "./country/index.js";
5
- export * from "./currency/index.js";
@@ -1,13 +0,0 @@
1
- export declare enum PhoneNumberFormat {
2
- /** E.164 format with plus sign, no spaces (e.g., +255612345678) */
3
- E164 = "E164",
4
- /** International human-readable format with spaces (e.g., +255 612 345 678) */
5
- INTERNATIONAL = "INTERNATIONAL",
6
- /** National human-readable format (e.g., 0612 345 678) */
7
- NATIONAL = "NATIONAL",
8
- /** Raw digits of the national number (e.g., 612345678) */
9
- COMPACT = "COMPACT",
10
- /** RFC3966 URI format (e.g., tel:+255612345678) */
11
- RFC3966 = "RFC3966"
12
- }
13
- //# sourceMappingURL=format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,mEAAmE;IACnE,IAAI,SAAS;IAEb,+EAA+E;IAC/E,aAAa,kBAAkB;IAE/B,0DAA0D;IAC1D,QAAQ,aAAa;IAErB,0DAA0D;IAC1D,OAAO,YAAY;IAEnB,mDAAmD;IACnD,OAAO,YAAY;CACpB"}
@@ -1,13 +0,0 @@
1
- export var PhoneNumberFormat;
2
- (function (PhoneNumberFormat) {
3
- /** E.164 format with plus sign, no spaces (e.g., +255612345678) */
4
- PhoneNumberFormat["E164"] = "E164";
5
- /** International human-readable format with spaces (e.g., +255 612 345 678) */
6
- PhoneNumberFormat["INTERNATIONAL"] = "INTERNATIONAL";
7
- /** National human-readable format (e.g., 0612 345 678) */
8
- PhoneNumberFormat["NATIONAL"] = "NATIONAL";
9
- /** Raw digits of the national number (e.g., 612345678) */
10
- PhoneNumberFormat["COMPACT"] = "COMPACT";
11
- /** RFC3966 URI format (e.g., tel:+255612345678) */
12
- PhoneNumberFormat["RFC3966"] = "RFC3966";
13
- })(PhoneNumberFormat || (PhoneNumberFormat = {}));