@edge-zuq/core 1.2.7

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 (702) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +99 -0
  3. package/lib/module/assets/logo.png +0 -0
  4. package/lib/module/data/errors/http-client-error.js +14 -0
  5. package/lib/module/data/errors/http-client-error.js.map +1 -0
  6. package/lib/module/data/errors/index.js +6 -0
  7. package/lib/module/data/errors/index.js.map +1 -0
  8. package/lib/module/data/errors/save-file-error.js +9 -0
  9. package/lib/module/data/errors/save-file-error.js.map +1 -0
  10. package/lib/module/data/errors/unsupported-platform.js +9 -0
  11. package/lib/module/data/errors/unsupported-platform.js.map +1 -0
  12. package/lib/module/data/models/index.js +6 -0
  13. package/lib/module/data/models/index.js.map +1 -0
  14. package/lib/module/data/models/remote-get-comment-list-model.js +2 -0
  15. package/lib/module/data/models/remote-get-comment-list-model.js.map +1 -0
  16. package/lib/module/data/models/remote-get-image-list-model.js +2 -0
  17. package/lib/module/data/models/remote-get-image-list-model.js.map +1 -0
  18. package/lib/module/data/models/remote-user-model.js +2 -0
  19. package/lib/module/data/models/remote-user-model.js.map +1 -0
  20. package/lib/module/data/protocols/cookie-manager.js +2 -0
  21. package/lib/module/data/protocols/cookie-manager.js.map +1 -0
  22. package/lib/module/data/protocols/download-manager.js +4 -0
  23. package/lib/module/data/protocols/download-manager.js.map +1 -0
  24. package/lib/module/data/protocols/http-client.js +26 -0
  25. package/lib/module/data/protocols/http-client.js.map +1 -0
  26. package/lib/module/data/protocols/index.js +9 -0
  27. package/lib/module/data/protocols/index.js.map +1 -0
  28. package/lib/module/data/protocols/notification-manager.js +4 -0
  29. package/lib/module/data/protocols/notification-manager.js.map +1 -0
  30. package/lib/module/data/protocols/permission-manager.js +4 -0
  31. package/lib/module/data/protocols/permission-manager.js.map +1 -0
  32. package/lib/module/data/protocols/storage.js +4 -0
  33. package/lib/module/data/protocols/storage.js.map +1 -0
  34. package/lib/module/data/use-cases/index.js +6 -0
  35. package/lib/module/data/use-cases/index.js.map +1 -0
  36. package/lib/module/data/use-cases/remote-get-comment-list.js +29 -0
  37. package/lib/module/data/use-cases/remote-get-comment-list.js.map +1 -0
  38. package/lib/module/data/use-cases/remote-get-image-list.js +32 -0
  39. package/lib/module/data/use-cases/remote-get-image-list.js.map +1 -0
  40. package/lib/module/data/use-cases/remote-send-diagnostics.js +20 -0
  41. package/lib/module/data/use-cases/remote-send-diagnostics.js.map +1 -0
  42. package/lib/module/domain/errors/authentication-expired-error.js +9 -0
  43. package/lib/module/domain/errors/authentication-expired-error.js.map +1 -0
  44. package/lib/module/domain/errors/index.js +7 -0
  45. package/lib/module/domain/errors/index.js.map +1 -0
  46. package/lib/module/domain/errors/internal-server-error.js +9 -0
  47. package/lib/module/domain/errors/internal-server-error.js.map +1 -0
  48. package/lib/module/domain/errors/invalid-credentials-error.js +9 -0
  49. package/lib/module/domain/errors/invalid-credentials-error.js.map +1 -0
  50. package/lib/module/domain/errors/no-app-permission-error.js +9 -0
  51. package/lib/module/domain/errors/no-app-permission-error.js.map +1 -0
  52. package/lib/module/domain/models/get-comment-list-model.js +2 -0
  53. package/lib/module/domain/models/get-comment-list-model.js.map +1 -0
  54. package/lib/module/domain/models/get-image-list-model.js +2 -0
  55. package/lib/module/domain/models/get-image-list-model.js.map +1 -0
  56. package/lib/module/domain/models/index.js +6 -0
  57. package/lib/module/domain/models/index.js.map +1 -0
  58. package/lib/module/domain/models/user-model.js +2 -0
  59. package/lib/module/domain/models/user-model.js.map +1 -0
  60. package/lib/module/domain/use-cases/get-comment-list.js +4 -0
  61. package/lib/module/domain/use-cases/get-comment-list.js.map +1 -0
  62. package/lib/module/domain/use-cases/get-image-list.js +4 -0
  63. package/lib/module/domain/use-cases/get-image-list.js.map +1 -0
  64. package/lib/module/domain/use-cases/index.js +9 -0
  65. package/lib/module/domain/use-cases/index.js.map +1 -0
  66. package/lib/module/domain/use-cases/record-request.js +4 -0
  67. package/lib/module/domain/use-cases/record-request.js.map +1 -0
  68. package/lib/module/domain/use-cases/send-diagnostics.js +4 -0
  69. package/lib/module/domain/use-cases/send-diagnostics.js.map +1 -0
  70. package/lib/module/domain/use-cases/user-authentication.js +4 -0
  71. package/lib/module/domain/use-cases/user-authentication.js.map +1 -0
  72. package/lib/module/domain/use-cases/user-logout.js +4 -0
  73. package/lib/module/domain/use-cases/user-logout.js.map +1 -0
  74. package/lib/module/index.js +16 -0
  75. package/lib/module/index.js.map +1 -0
  76. package/lib/module/infra/axios-http-client-adapter.js +199 -0
  77. package/lib/module/infra/axios-http-client-adapter.js.map +1 -0
  78. package/lib/module/infra/index.js +10 -0
  79. package/lib/module/infra/index.js.map +1 -0
  80. package/lib/module/infra/isomorphic-id-manager.js +83 -0
  81. package/lib/module/infra/isomorphic-id-manager.js.map +1 -0
  82. package/lib/module/infra/mmkv-storage-adapter.js +62 -0
  83. package/lib/module/infra/mmkv-storage-adapter.js.map +1 -0
  84. package/lib/module/infra/notifee-notification-manager-adapter.js +69 -0
  85. package/lib/module/infra/notifee-notification-manager-adapter.js.map +1 -0
  86. package/lib/module/infra/offline-mutation-queue.js +210 -0
  87. package/lib/module/infra/offline-mutation-queue.js.map +1 -0
  88. package/lib/module/infra/rnbu-download-manager-adapter.js +31 -0
  89. package/lib/module/infra/rnbu-download-manager-adapter.js.map +1 -0
  90. package/lib/module/infra/rnp-permission-manager-adapter.js +117 -0
  91. package/lib/module/infra/rnp-permission-manager-adapter.js.map +1 -0
  92. package/lib/module/infra/storage-cookie-manager-adapter.js +24 -0
  93. package/lib/module/infra/storage-cookie-manager-adapter.js.map +1 -0
  94. package/lib/module/main/components/index.js +7 -0
  95. package/lib/module/main/components/index.js.map +1 -0
  96. package/lib/module/main/components/request-permissions.js +14 -0
  97. package/lib/module/main/components/request-permissions.js.map +1 -0
  98. package/lib/module/main/factories/infra/download-manager-factory.js +7 -0
  99. package/lib/module/main/factories/infra/download-manager-factory.js.map +1 -0
  100. package/lib/module/main/factories/infra/http-client-factory.js +7 -0
  101. package/lib/module/main/factories/infra/http-client-factory.js.map +1 -0
  102. package/lib/module/main/factories/infra/index.js +10 -0
  103. package/lib/module/main/factories/infra/index.js.map +1 -0
  104. package/lib/module/main/factories/infra/isomorphic-id-manager-factory.js +7 -0
  105. package/lib/module/main/factories/infra/isomorphic-id-manager-factory.js.map +1 -0
  106. package/lib/module/main/factories/infra/notification-manager-factory.js +7 -0
  107. package/lib/module/main/factories/infra/notification-manager-factory.js.map +1 -0
  108. package/lib/module/main/factories/infra/offline-mutation-queue-factory.js +7 -0
  109. package/lib/module/main/factories/infra/offline-mutation-queue-factory.js.map +1 -0
  110. package/lib/module/main/factories/infra/permission-manager-factory.js +7 -0
  111. package/lib/module/main/factories/infra/permission-manager-factory.js.map +1 -0
  112. package/lib/module/main/factories/infra/storage-factory.js +10 -0
  113. package/lib/module/main/factories/infra/storage-factory.js.map +1 -0
  114. package/lib/module/main/factories/use-cases/index.js +6 -0
  115. package/lib/module/main/factories/use-cases/index.js.map +1 -0
  116. package/lib/module/main/factories/use-cases/remote-get-comment-list-factory.js +7 -0
  117. package/lib/module/main/factories/use-cases/remote-get-comment-list-factory.js.map +1 -0
  118. package/lib/module/main/factories/use-cases/remote-get-image-list-factory.js +7 -0
  119. package/lib/module/main/factories/use-cases/remote-get-image-list-factory.js.map +1 -0
  120. package/lib/module/main/factories/use-cases/remote-send-diagnostics-factory.js +7 -0
  121. package/lib/module/main/factories/use-cases/remote-send-diagnostics-factory.js.map +1 -0
  122. package/lib/module/package.json +1 -0
  123. package/lib/module/presentation/components/atoms/UIBackdrop.js +31 -0
  124. package/lib/module/presentation/components/atoms/UIBackdrop.js.map +1 -0
  125. package/lib/module/presentation/components/atoms/UICheckbox.js +47 -0
  126. package/lib/module/presentation/components/atoms/UICheckbox.js.map +1 -0
  127. package/lib/module/presentation/components/atoms/UIDot.js +33 -0
  128. package/lib/module/presentation/components/atoms/UIDot.js.map +1 -0
  129. package/lib/module/presentation/components/atoms/UIIcon.js +1072 -0
  130. package/lib/module/presentation/components/atoms/UIIcon.js.map +1 -0
  131. package/lib/module/presentation/components/atoms/UILoading.js +19 -0
  132. package/lib/module/presentation/components/atoms/UILoading.js.map +1 -0
  133. package/lib/module/presentation/components/atoms/UIPage.js +70 -0
  134. package/lib/module/presentation/components/atoms/UIPage.js.map +1 -0
  135. package/lib/module/presentation/components/atoms/UIProgress.js +54 -0
  136. package/lib/module/presentation/components/atoms/UIProgress.js.map +1 -0
  137. package/lib/module/presentation/components/atoms/UIScrollPage.js +72 -0
  138. package/lib/module/presentation/components/atoms/UIScrollPage.js.map +1 -0
  139. package/lib/module/presentation/components/atoms/UISeparator.js +30 -0
  140. package/lib/module/presentation/components/atoms/UISeparator.js.map +1 -0
  141. package/lib/module/presentation/components/atoms/UISpacer.js +19 -0
  142. package/lib/module/presentation/components/atoms/UISpacer.js.map +1 -0
  143. package/lib/module/presentation/components/atoms/UIStack.js +31 -0
  144. package/lib/module/presentation/components/atoms/UIStack.js.map +1 -0
  145. package/lib/module/presentation/components/atoms/UIText.js +48 -0
  146. package/lib/module/presentation/components/atoms/UIText.js.map +1 -0
  147. package/lib/module/presentation/components/atoms/index.js +15 -0
  148. package/lib/module/presentation/components/atoms/index.js.map +1 -0
  149. package/lib/module/presentation/components/index.js +4 -0
  150. package/lib/module/presentation/components/index.js.map +1 -0
  151. package/lib/module/presentation/components/molecules/UIActionSheet.js +199 -0
  152. package/lib/module/presentation/components/molecules/UIActionSheet.js.map +1 -0
  153. package/lib/module/presentation/components/molecules/UIButton.js +173 -0
  154. package/lib/module/presentation/components/molecules/UIButton.js.map +1 -0
  155. package/lib/module/presentation/components/molecules/UIButtonCTA.js +31 -0
  156. package/lib/module/presentation/components/molecules/UIButtonCTA.js.map +1 -0
  157. package/lib/module/presentation/components/molecules/UICheckboxInput.js +84 -0
  158. package/lib/module/presentation/components/molecules/UICheckboxInput.js.map +1 -0
  159. package/lib/module/presentation/components/molecules/UIChip.js +49 -0
  160. package/lib/module/presentation/components/molecules/UIChip.js.map +1 -0
  161. package/lib/module/presentation/components/molecules/UICurrencyInput.js +32 -0
  162. package/lib/module/presentation/components/molecules/UICurrencyInput.js.map +1 -0
  163. package/lib/module/presentation/components/molecules/UIDataList.js +26 -0
  164. package/lib/module/presentation/components/molecules/UIDataList.js.map +1 -0
  165. package/lib/module/presentation/components/molecules/UIDataSectionList.js +26 -0
  166. package/lib/module/presentation/components/molecules/UIDataSectionList.js.map +1 -0
  167. package/lib/module/presentation/components/molecules/UIDatetimeInput.js +202 -0
  168. package/lib/module/presentation/components/molecules/UIDatetimeInput.js.map +1 -0
  169. package/lib/module/presentation/components/molecules/UIError.js +32 -0
  170. package/lib/module/presentation/components/molecules/UIError.js.map +1 -0
  171. package/lib/module/presentation/components/molecules/UIImage.js +87 -0
  172. package/lib/module/presentation/components/molecules/UIImage.js.map +1 -0
  173. package/lib/module/presentation/components/molecules/UIInlineDatePicker.js +245 -0
  174. package/lib/module/presentation/components/molecules/UIInlineDatePicker.js.map +1 -0
  175. package/lib/module/presentation/components/molecules/UIInputIcon.js +38 -0
  176. package/lib/module/presentation/components/molecules/UIInputIcon.js.map +1 -0
  177. package/lib/module/presentation/components/molecules/UIList.js +16 -0
  178. package/lib/module/presentation/components/molecules/UIList.js.map +1 -0
  179. package/lib/module/presentation/components/molecules/UIRadioInput.js +78 -0
  180. package/lib/module/presentation/components/molecules/UIRadioInput.js.map +1 -0
  181. package/lib/module/presentation/components/molecules/UISectionList.js +16 -0
  182. package/lib/module/presentation/components/molecules/UISectionList.js.map +1 -0
  183. package/lib/module/presentation/components/molecules/UISkeleton.js +54 -0
  184. package/lib/module/presentation/components/molecules/UISkeleton.js.map +1 -0
  185. package/lib/module/presentation/components/molecules/UISwitch.js +65 -0
  186. package/lib/module/presentation/components/molecules/UISwitch.js.map +1 -0
  187. package/lib/module/presentation/components/molecules/UITextInput.js +132 -0
  188. package/lib/module/presentation/components/molecules/UITextInput.js.map +1 -0
  189. package/lib/module/presentation/components/molecules/UITextInputMask.js +133 -0
  190. package/lib/module/presentation/components/molecules/UITextInputMask.js.map +1 -0
  191. package/lib/module/presentation/components/molecules/index.js +23 -0
  192. package/lib/module/presentation/components/molecules/index.js.map +1 -0
  193. package/lib/module/presentation/components/organisms/UIAppBar.js +102 -0
  194. package/lib/module/presentation/components/organisms/UIAppBar.js.map +1 -0
  195. package/lib/module/presentation/components/organisms/UIAppBarAction.js +21 -0
  196. package/lib/module/presentation/components/organisms/UIAppBarAction.js.map +1 -0
  197. package/lib/module/presentation/components/organisms/UICard.js +43 -0
  198. package/lib/module/presentation/components/organisms/UICard.js.map +1 -0
  199. package/lib/module/presentation/components/organisms/UIComment.js +73 -0
  200. package/lib/module/presentation/components/organisms/UIComment.js.map +1 -0
  201. package/lib/module/presentation/components/organisms/UIErrorBoundary.js +68 -0
  202. package/lib/module/presentation/components/organisms/UIErrorBoundary.js.map +1 -0
  203. package/lib/module/presentation/components/organisms/UIForm.js +83 -0
  204. package/lib/module/presentation/components/organisms/UIForm.js.map +1 -0
  205. package/lib/module/presentation/components/organisms/UIFormButton.js +43 -0
  206. package/lib/module/presentation/components/organisms/UIFormButton.js.map +1 -0
  207. package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js +39 -0
  208. package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js.map +1 -0
  209. package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js +65 -0
  210. package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js.map +1 -0
  211. package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js +54 -0
  212. package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js.map +1 -0
  213. package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js +212 -0
  214. package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js.map +1 -0
  215. package/lib/module/presentation/components/organisms/UIFormRadioInput.js +36 -0
  216. package/lib/module/presentation/components/organisms/UIFormRadioInput.js.map +1 -0
  217. package/lib/module/presentation/components/organisms/UIFormSelectInput.js +259 -0
  218. package/lib/module/presentation/components/organisms/UIFormSelectInput.js.map +1 -0
  219. package/lib/module/presentation/components/organisms/UIFormTextInput.js +64 -0
  220. package/lib/module/presentation/components/organisms/UIFormTextInput.js.map +1 -0
  221. package/lib/module/presentation/components/organisms/UIFormTextInputMask.js +69 -0
  222. package/lib/module/presentation/components/organisms/UIFormTextInputMask.js.map +1 -0
  223. package/lib/module/presentation/components/organisms/UIRow.js +55 -0
  224. package/lib/module/presentation/components/organisms/UIRow.js.map +1 -0
  225. package/lib/module/presentation/components/organisms/UISearchInput.js +33 -0
  226. package/lib/module/presentation/components/organisms/UISearchInput.js.map +1 -0
  227. package/lib/module/presentation/components/organisms/UISelectChip.js +94 -0
  228. package/lib/module/presentation/components/organisms/UISelectChip.js.map +1 -0
  229. package/lib/module/presentation/components/organisms/UISignature.js +159 -0
  230. package/lib/module/presentation/components/organisms/UISignature.js.map +1 -0
  231. package/lib/module/presentation/components/organisms/UISlideButton.js +90 -0
  232. package/lib/module/presentation/components/organisms/UISlideButton.js.map +1 -0
  233. package/lib/module/presentation/components/organisms/index.js +24 -0
  234. package/lib/module/presentation/components/organisms/index.js.map +1 -0
  235. package/lib/module/presentation/components/permissions/index.js +4 -0
  236. package/lib/module/presentation/components/permissions/index.js.map +1 -0
  237. package/lib/module/presentation/components/permissions/request-permissions.js +96 -0
  238. package/lib/module/presentation/components/permissions/request-permissions.js.map +1 -0
  239. package/lib/module/presentation/domain/metadata/index.js +5 -0
  240. package/lib/module/presentation/domain/metadata/index.js.map +1 -0
  241. package/lib/module/presentation/domain/metadata/use-comments.js +26 -0
  242. package/lib/module/presentation/domain/metadata/use-comments.js.map +1 -0
  243. package/lib/module/presentation/domain/metadata/use-images.js +26 -0
  244. package/lib/module/presentation/domain/metadata/use-images.js.map +1 -0
  245. package/lib/module/presentation/domain/offline/index.js +12 -0
  246. package/lib/module/presentation/domain/offline/index.js.map +1 -0
  247. package/lib/module/presentation/domain/offline/offline-mutation-queue-provider.js +69 -0
  248. package/lib/module/presentation/domain/offline/offline-mutation-queue-provider.js.map +1 -0
  249. package/lib/module/presentation/domain/offline/types.js +4 -0
  250. package/lib/module/presentation/domain/offline/types.js.map +1 -0
  251. package/lib/module/presentation/domain/offline/use-infinite-offline-query.js +69 -0
  252. package/lib/module/presentation/domain/offline/use-infinite-offline-query.js.map +1 -0
  253. package/lib/module/presentation/domain/offline/use-offline-id-v2.js +22 -0
  254. package/lib/module/presentation/domain/offline/use-offline-id-v2.js.map +1 -0
  255. package/lib/module/presentation/domain/offline/use-offline-id.js +11 -0
  256. package/lib/module/presentation/domain/offline/use-offline-id.js.map +1 -0
  257. package/lib/module/presentation/domain/offline/use-offline-mutation.js +115 -0
  258. package/lib/module/presentation/domain/offline/use-offline-mutation.js.map +1 -0
  259. package/lib/module/presentation/domain/offline/use-offline-query.js +33 -0
  260. package/lib/module/presentation/domain/offline/use-offline-query.js.map +1 -0
  261. package/lib/module/presentation/domain/offline/use-offline-queue.js +8 -0
  262. package/lib/module/presentation/domain/offline/use-offline-queue.js.map +1 -0
  263. package/lib/module/presentation/domain/offline/utils.js +110 -0
  264. package/lib/module/presentation/domain/offline/utils.js.map +1 -0
  265. package/lib/module/presentation/domain/provider/index.js +4 -0
  266. package/lib/module/presentation/domain/provider/index.js.map +1 -0
  267. package/lib/module/presentation/domain/provider/zuq-core-provider.js +51 -0
  268. package/lib/module/presentation/domain/provider/zuq-core-provider.js.map +1 -0
  269. package/lib/module/presentation/domain/utils/exists.js +6 -0
  270. package/lib/module/presentation/domain/utils/exists.js.map +1 -0
  271. package/lib/module/presentation/domain/utils/index.js +8 -0
  272. package/lib/module/presentation/domain/utils/index.js.map +1 -0
  273. package/lib/module/presentation/domain/utils/react-query.js +10 -0
  274. package/lib/module/presentation/domain/utils/react-query.js.map +1 -0
  275. package/lib/module/presentation/domain/utils/use-action-sheet.js +20 -0
  276. package/lib/module/presentation/domain/utils/use-action-sheet.js.map +1 -0
  277. package/lib/module/presentation/domain/utils/use-signature-ref.js +8 -0
  278. package/lib/module/presentation/domain/utils/use-signature-ref.js.map +1 -0
  279. package/lib/module/presentation/domain/utils/yup.js +5 -0
  280. package/lib/module/presentation/domain/utils/yup.js.map +1 -0
  281. package/lib/module/theme.js +211 -0
  282. package/lib/module/theme.js.map +1 -0
  283. package/lib/typescript/package.json +1 -0
  284. package/lib/typescript/src/data/errors/http-client-error.d.ts +13 -0
  285. package/lib/typescript/src/data/errors/http-client-error.d.ts.map +1 -0
  286. package/lib/typescript/src/data/errors/index.d.ts +4 -0
  287. package/lib/typescript/src/data/errors/index.d.ts.map +1 -0
  288. package/lib/typescript/src/data/errors/save-file-error.d.ts +4 -0
  289. package/lib/typescript/src/data/errors/save-file-error.d.ts.map +1 -0
  290. package/lib/typescript/src/data/errors/unsupported-platform.d.ts +4 -0
  291. package/lib/typescript/src/data/errors/unsupported-platform.d.ts.map +1 -0
  292. package/lib/typescript/src/data/models/index.d.ts +4 -0
  293. package/lib/typescript/src/data/models/index.d.ts.map +1 -0
  294. package/lib/typescript/src/data/models/remote-get-comment-list-model.d.ts +16 -0
  295. package/lib/typescript/src/data/models/remote-get-comment-list-model.d.ts.map +1 -0
  296. package/lib/typescript/src/data/models/remote-get-image-list-model.d.ts +16 -0
  297. package/lib/typescript/src/data/models/remote-get-image-list-model.d.ts.map +1 -0
  298. package/lib/typescript/src/data/models/remote-user-model.d.ts +14 -0
  299. package/lib/typescript/src/data/models/remote-user-model.d.ts.map +1 -0
  300. package/lib/typescript/src/data/protocols/cookie-manager.d.ts +7 -0
  301. package/lib/typescript/src/data/protocols/cookie-manager.d.ts.map +1 -0
  302. package/lib/typescript/src/data/protocols/download-manager.d.ts +12 -0
  303. package/lib/typescript/src/data/protocols/download-manager.d.ts.map +1 -0
  304. package/lib/typescript/src/data/protocols/http-client.d.ts +52 -0
  305. package/lib/typescript/src/data/protocols/http-client.d.ts.map +1 -0
  306. package/lib/typescript/src/data/protocols/index.d.ts +7 -0
  307. package/lib/typescript/src/data/protocols/index.d.ts.map +1 -0
  308. package/lib/typescript/src/data/protocols/notification-manager.d.ts +17 -0
  309. package/lib/typescript/src/data/protocols/notification-manager.d.ts.map +1 -0
  310. package/lib/typescript/src/data/protocols/permission-manager.d.ts +23 -0
  311. package/lib/typescript/src/data/protocols/permission-manager.d.ts.map +1 -0
  312. package/lib/typescript/src/data/protocols/storage.d.ts +17 -0
  313. package/lib/typescript/src/data/protocols/storage.d.ts.map +1 -0
  314. package/lib/typescript/src/data/use-cases/index.d.ts +4 -0
  315. package/lib/typescript/src/data/use-cases/index.d.ts.map +1 -0
  316. package/lib/typescript/src/data/use-cases/remote-get-comment-list.d.ts +9 -0
  317. package/lib/typescript/src/data/use-cases/remote-get-comment-list.d.ts.map +1 -0
  318. package/lib/typescript/src/data/use-cases/remote-get-image-list.d.ts +10 -0
  319. package/lib/typescript/src/data/use-cases/remote-get-image-list.d.ts.map +1 -0
  320. package/lib/typescript/src/data/use-cases/remote-send-diagnostics.d.ts +11 -0
  321. package/lib/typescript/src/data/use-cases/remote-send-diagnostics.d.ts.map +1 -0
  322. package/lib/typescript/src/domain/errors/authentication-expired-error.d.ts +4 -0
  323. package/lib/typescript/src/domain/errors/authentication-expired-error.d.ts.map +1 -0
  324. package/lib/typescript/src/domain/errors/index.d.ts +5 -0
  325. package/lib/typescript/src/domain/errors/index.d.ts.map +1 -0
  326. package/lib/typescript/src/domain/errors/internal-server-error.d.ts +4 -0
  327. package/lib/typescript/src/domain/errors/internal-server-error.d.ts.map +1 -0
  328. package/lib/typescript/src/domain/errors/invalid-credentials-error.d.ts +4 -0
  329. package/lib/typescript/src/domain/errors/invalid-credentials-error.d.ts.map +1 -0
  330. package/lib/typescript/src/domain/errors/no-app-permission-error.d.ts +4 -0
  331. package/lib/typescript/src/domain/errors/no-app-permission-error.d.ts.map +1 -0
  332. package/lib/typescript/src/domain/models/get-comment-list-model.d.ts +10 -0
  333. package/lib/typescript/src/domain/models/get-comment-list-model.d.ts.map +1 -0
  334. package/lib/typescript/src/domain/models/get-image-list-model.d.ts +8 -0
  335. package/lib/typescript/src/domain/models/get-image-list-model.d.ts.map +1 -0
  336. package/lib/typescript/src/domain/models/index.d.ts +4 -0
  337. package/lib/typescript/src/domain/models/index.d.ts.map +1 -0
  338. package/lib/typescript/src/domain/models/user-model.d.ts +16 -0
  339. package/lib/typescript/src/domain/models/user-model.d.ts.map +1 -0
  340. package/lib/typescript/src/domain/use-cases/get-comment-list.d.ts +12 -0
  341. package/lib/typescript/src/domain/use-cases/get-comment-list.d.ts.map +1 -0
  342. package/lib/typescript/src/domain/use-cases/get-image-list.d.ts +12 -0
  343. package/lib/typescript/src/domain/use-cases/get-image-list.d.ts.map +1 -0
  344. package/lib/typescript/src/domain/use-cases/index.d.ts +7 -0
  345. package/lib/typescript/src/domain/use-cases/index.d.ts.map +1 -0
  346. package/lib/typescript/src/domain/use-cases/record-request.d.ts +14 -0
  347. package/lib/typescript/src/domain/use-cases/record-request.d.ts.map +1 -0
  348. package/lib/typescript/src/domain/use-cases/send-diagnostics.d.ts +15 -0
  349. package/lib/typescript/src/domain/use-cases/send-diagnostics.d.ts.map +1 -0
  350. package/lib/typescript/src/domain/use-cases/user-authentication.d.ts +12 -0
  351. package/lib/typescript/src/domain/use-cases/user-authentication.d.ts.map +1 -0
  352. package/lib/typescript/src/domain/use-cases/user-logout.d.ts +10 -0
  353. package/lib/typescript/src/domain/use-cases/user-logout.d.ts.map +1 -0
  354. package/lib/typescript/src/index.d.ts +15 -0
  355. package/lib/typescript/src/index.d.ts.map +1 -0
  356. package/lib/typescript/src/infra/axios-http-client-adapter.d.ts +33 -0
  357. package/lib/typescript/src/infra/axios-http-client-adapter.d.ts.map +1 -0
  358. package/lib/typescript/src/infra/index.d.ts +8 -0
  359. package/lib/typescript/src/infra/index.d.ts.map +1 -0
  360. package/lib/typescript/src/infra/isomorphic-id-manager.d.ts +29 -0
  361. package/lib/typescript/src/infra/isomorphic-id-manager.d.ts.map +1 -0
  362. package/lib/typescript/src/infra/mmkv-storage-adapter.d.ts +18 -0
  363. package/lib/typescript/src/infra/mmkv-storage-adapter.d.ts.map +1 -0
  364. package/lib/typescript/src/infra/notifee-notification-manager-adapter.d.ts +17 -0
  365. package/lib/typescript/src/infra/notifee-notification-manager-adapter.d.ts.map +1 -0
  366. package/lib/typescript/src/infra/offline-mutation-queue.d.ts +56 -0
  367. package/lib/typescript/src/infra/offline-mutation-queue.d.ts.map +1 -0
  368. package/lib/typescript/src/infra/rnbu-download-manager-adapter.d.ts +7 -0
  369. package/lib/typescript/src/infra/rnbu-download-manager-adapter.d.ts.map +1 -0
  370. package/lib/typescript/src/infra/rnp-permission-manager-adapter.d.ts +20 -0
  371. package/lib/typescript/src/infra/rnp-permission-manager-adapter.d.ts.map +1 -0
  372. package/lib/typescript/src/infra/storage-cookie-manager-adapter.d.ts +12 -0
  373. package/lib/typescript/src/infra/storage-cookie-manager-adapter.d.ts.map +1 -0
  374. package/lib/typescript/src/main/components/index.d.ts +5 -0
  375. package/lib/typescript/src/main/components/index.d.ts.map +1 -0
  376. package/lib/typescript/src/main/components/request-permissions.d.ts +6 -0
  377. package/lib/typescript/src/main/components/request-permissions.d.ts.map +1 -0
  378. package/lib/typescript/src/main/factories/infra/download-manager-factory.d.ts +3 -0
  379. package/lib/typescript/src/main/factories/infra/download-manager-factory.d.ts.map +1 -0
  380. package/lib/typescript/src/main/factories/infra/http-client-factory.d.ts +4 -0
  381. package/lib/typescript/src/main/factories/infra/http-client-factory.d.ts.map +1 -0
  382. package/lib/typescript/src/main/factories/infra/index.d.ts +8 -0
  383. package/lib/typescript/src/main/factories/infra/index.d.ts.map +1 -0
  384. package/lib/typescript/src/main/factories/infra/isomorphic-id-manager-factory.d.ts +4 -0
  385. package/lib/typescript/src/main/factories/infra/isomorphic-id-manager-factory.d.ts.map +1 -0
  386. package/lib/typescript/src/main/factories/infra/notification-manager-factory.d.ts +4 -0
  387. package/lib/typescript/src/main/factories/infra/notification-manager-factory.d.ts.map +1 -0
  388. package/lib/typescript/src/main/factories/infra/offline-mutation-queue-factory.d.ts +5 -0
  389. package/lib/typescript/src/main/factories/infra/offline-mutation-queue-factory.d.ts.map +1 -0
  390. package/lib/typescript/src/main/factories/infra/permission-manager-factory.d.ts +3 -0
  391. package/lib/typescript/src/main/factories/infra/permission-manager-factory.d.ts.map +1 -0
  392. package/lib/typescript/src/main/factories/infra/storage-factory.d.ts +4 -0
  393. package/lib/typescript/src/main/factories/infra/storage-factory.d.ts.map +1 -0
  394. package/lib/typescript/src/main/factories/use-cases/index.d.ts +4 -0
  395. package/lib/typescript/src/main/factories/use-cases/index.d.ts.map +1 -0
  396. package/lib/typescript/src/main/factories/use-cases/remote-get-comment-list-factory.d.ts +4 -0
  397. package/lib/typescript/src/main/factories/use-cases/remote-get-comment-list-factory.d.ts.map +1 -0
  398. package/lib/typescript/src/main/factories/use-cases/remote-get-image-list-factory.d.ts +4 -0
  399. package/lib/typescript/src/main/factories/use-cases/remote-get-image-list-factory.d.ts.map +1 -0
  400. package/lib/typescript/src/main/factories/use-cases/remote-send-diagnostics-factory.d.ts +4 -0
  401. package/lib/typescript/src/main/factories/use-cases/remote-send-diagnostics-factory.d.ts.map +1 -0
  402. package/lib/typescript/src/presentation/components/atoms/UIBackdrop.d.ts +10 -0
  403. package/lib/typescript/src/presentation/components/atoms/UIBackdrop.d.ts.map +1 -0
  404. package/lib/typescript/src/presentation/components/atoms/UICheckbox.d.ts +11 -0
  405. package/lib/typescript/src/presentation/components/atoms/UICheckbox.d.ts.map +1 -0
  406. package/lib/typescript/src/presentation/components/atoms/UIDot.d.ts +10 -0
  407. package/lib/typescript/src/presentation/components/atoms/UIDot.d.ts.map +1 -0
  408. package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts +133 -0
  409. package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts.map +1 -0
  410. package/lib/typescript/src/presentation/components/atoms/UILoading.d.ts +9 -0
  411. package/lib/typescript/src/presentation/components/atoms/UILoading.d.ts.map +1 -0
  412. package/lib/typescript/src/presentation/components/atoms/UIPage.d.ts +20 -0
  413. package/lib/typescript/src/presentation/components/atoms/UIPage.d.ts.map +1 -0
  414. package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts +10 -0
  415. package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts.map +1 -0
  416. package/lib/typescript/src/presentation/components/atoms/UIScrollPage.d.ts +17 -0
  417. package/lib/typescript/src/presentation/components/atoms/UIScrollPage.d.ts.map +1 -0
  418. package/lib/typescript/src/presentation/components/atoms/UISeparator.d.ts +10 -0
  419. package/lib/typescript/src/presentation/components/atoms/UISeparator.d.ts.map +1 -0
  420. package/lib/typescript/src/presentation/components/atoms/UISpacer.d.ts +9 -0
  421. package/lib/typescript/src/presentation/components/atoms/UISpacer.d.ts.map +1 -0
  422. package/lib/typescript/src/presentation/components/atoms/UIStack.d.ts +14 -0
  423. package/lib/typescript/src/presentation/components/atoms/UIStack.d.ts.map +1 -0
  424. package/lib/typescript/src/presentation/components/atoms/UIText.d.ts +14 -0
  425. package/lib/typescript/src/presentation/components/atoms/UIText.d.ts.map +1 -0
  426. package/lib/typescript/src/presentation/components/atoms/index.d.ts +13 -0
  427. package/lib/typescript/src/presentation/components/atoms/index.d.ts.map +1 -0
  428. package/lib/typescript/src/presentation/components/index.d.ts +2 -0
  429. package/lib/typescript/src/presentation/components/index.d.ts.map +1 -0
  430. package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts +17 -0
  431. package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts.map +1 -0
  432. package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts +18 -0
  433. package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts.map +1 -0
  434. package/lib/typescript/src/presentation/components/molecules/UIButtonCTA.d.ts +8 -0
  435. package/lib/typescript/src/presentation/components/molecules/UIButtonCTA.d.ts.map +1 -0
  436. package/lib/typescript/src/presentation/components/molecules/UICheckboxInput.d.ts +16 -0
  437. package/lib/typescript/src/presentation/components/molecules/UICheckboxInput.d.ts.map +1 -0
  438. package/lib/typescript/src/presentation/components/molecules/UIChip.d.ts +17 -0
  439. package/lib/typescript/src/presentation/components/molecules/UIChip.d.ts.map +1 -0
  440. package/lib/typescript/src/presentation/components/molecules/UICurrencyInput.d.ts +11 -0
  441. package/lib/typescript/src/presentation/components/molecules/UICurrencyInput.d.ts.map +1 -0
  442. package/lib/typescript/src/presentation/components/molecules/UIDataList.d.ts +9 -0
  443. package/lib/typescript/src/presentation/components/molecules/UIDataList.d.ts.map +1 -0
  444. package/lib/typescript/src/presentation/components/molecules/UIDataSectionList.d.ts +9 -0
  445. package/lib/typescript/src/presentation/components/molecules/UIDataSectionList.d.ts.map +1 -0
  446. package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts +10 -0
  447. package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts.map +1 -0
  448. package/lib/typescript/src/presentation/components/molecules/UIError.d.ts +8 -0
  449. package/lib/typescript/src/presentation/components/molecules/UIError.d.ts.map +1 -0
  450. package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts +11 -0
  451. package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts.map +1 -0
  452. package/lib/typescript/src/presentation/components/molecules/UIInlineDatePicker.d.ts +15 -0
  453. package/lib/typescript/src/presentation/components/molecules/UIInlineDatePicker.d.ts.map +1 -0
  454. package/lib/typescript/src/presentation/components/molecules/UIInputIcon.d.ts +9 -0
  455. package/lib/typescript/src/presentation/components/molecules/UIInputIcon.d.ts.map +1 -0
  456. package/lib/typescript/src/presentation/components/molecules/UIList.d.ts +5 -0
  457. package/lib/typescript/src/presentation/components/molecules/UIList.d.ts.map +1 -0
  458. package/lib/typescript/src/presentation/components/molecules/UIRadioInput.d.ts +12 -0
  459. package/lib/typescript/src/presentation/components/molecules/UIRadioInput.d.ts.map +1 -0
  460. package/lib/typescript/src/presentation/components/molecules/UISectionList.d.ts +5 -0
  461. package/lib/typescript/src/presentation/components/molecules/UISectionList.d.ts.map +1 -0
  462. package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts +8 -0
  463. package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts.map +1 -0
  464. package/lib/typescript/src/presentation/components/molecules/UISwitch.d.ts +10 -0
  465. package/lib/typescript/src/presentation/components/molecules/UISwitch.d.ts.map +1 -0
  466. package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts +13 -0
  467. package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts.map +1 -0
  468. package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts +16 -0
  469. package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts.map +1 -0
  470. package/lib/typescript/src/presentation/components/molecules/index.d.ts +21 -0
  471. package/lib/typescript/src/presentation/components/molecules/index.d.ts.map +1 -0
  472. package/lib/typescript/src/presentation/components/organisms/UIAppBar.d.ts +13 -0
  473. package/lib/typescript/src/presentation/components/organisms/UIAppBar.d.ts.map +1 -0
  474. package/lib/typescript/src/presentation/components/organisms/UIAppBarAction.d.ts +6 -0
  475. package/lib/typescript/src/presentation/components/organisms/UIAppBarAction.d.ts.map +1 -0
  476. package/lib/typescript/src/presentation/components/organisms/UICard.d.ts +9 -0
  477. package/lib/typescript/src/presentation/components/organisms/UICard.d.ts.map +1 -0
  478. package/lib/typescript/src/presentation/components/organisms/UIComment.d.ts +9 -0
  479. package/lib/typescript/src/presentation/components/organisms/UIComment.d.ts.map +1 -0
  480. package/lib/typescript/src/presentation/components/organisms/UIErrorBoundary.d.ts +9 -0
  481. package/lib/typescript/src/presentation/components/organisms/UIErrorBoundary.d.ts.map +1 -0
  482. package/lib/typescript/src/presentation/components/organisms/UIForm.d.ts +13 -0
  483. package/lib/typescript/src/presentation/components/organisms/UIForm.d.ts.map +1 -0
  484. package/lib/typescript/src/presentation/components/organisms/UIFormButton.d.ts +11 -0
  485. package/lib/typescript/src/presentation/components/organisms/UIFormButton.d.ts.map +1 -0
  486. package/lib/typescript/src/presentation/components/organisms/UIFormCheckboxInput.d.ts +9 -0
  487. package/lib/typescript/src/presentation/components/organisms/UIFormCheckboxInput.d.ts.map +1 -0
  488. package/lib/typescript/src/presentation/components/organisms/UIFormCurrencyInput.d.ts +11 -0
  489. package/lib/typescript/src/presentation/components/organisms/UIFormCurrencyInput.d.ts.map +1 -0
  490. package/lib/typescript/src/presentation/components/organisms/UIFormDatetimeInput.d.ts +10 -0
  491. package/lib/typescript/src/presentation/components/organisms/UIFormDatetimeInput.d.ts.map +1 -0
  492. package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts +30 -0
  493. package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts.map +1 -0
  494. package/lib/typescript/src/presentation/components/organisms/UIFormRadioInput.d.ts +9 -0
  495. package/lib/typescript/src/presentation/components/organisms/UIFormRadioInput.d.ts.map +1 -0
  496. package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts +44 -0
  497. package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts.map +1 -0
  498. package/lib/typescript/src/presentation/components/organisms/UIFormTextInput.d.ts +11 -0
  499. package/lib/typescript/src/presentation/components/organisms/UIFormTextInput.d.ts.map +1 -0
  500. package/lib/typescript/src/presentation/components/organisms/UIFormTextInputMask.d.ts +11 -0
  501. package/lib/typescript/src/presentation/components/organisms/UIFormTextInputMask.d.ts.map +1 -0
  502. package/lib/typescript/src/presentation/components/organisms/UIRow.d.ts +14 -0
  503. package/lib/typescript/src/presentation/components/organisms/UIRow.d.ts.map +1 -0
  504. package/lib/typescript/src/presentation/components/organisms/UISearchInput.d.ts +6 -0
  505. package/lib/typescript/src/presentation/components/organisms/UISearchInput.d.ts.map +1 -0
  506. package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts +13 -0
  507. package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts.map +1 -0
  508. package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts +26 -0
  509. package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts.map +1 -0
  510. package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts +8 -0
  511. package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts.map +1 -0
  512. package/lib/typescript/src/presentation/components/organisms/index.d.ts +22 -0
  513. package/lib/typescript/src/presentation/components/organisms/index.d.ts.map +1 -0
  514. package/lib/typescript/src/presentation/components/permissions/index.d.ts +2 -0
  515. package/lib/typescript/src/presentation/components/permissions/index.d.ts.map +1 -0
  516. package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts +15 -0
  517. package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts.map +1 -0
  518. package/lib/typescript/src/presentation/domain/metadata/index.d.ts +3 -0
  519. package/lib/typescript/src/presentation/domain/metadata/index.d.ts.map +1 -0
  520. package/lib/typescript/src/presentation/domain/metadata/use-comments.d.ts +11 -0
  521. package/lib/typescript/src/presentation/domain/metadata/use-comments.d.ts.map +1 -0
  522. package/lib/typescript/src/presentation/domain/metadata/use-images.d.ts +11 -0
  523. package/lib/typescript/src/presentation/domain/metadata/use-images.d.ts.map +1 -0
  524. package/lib/typescript/src/presentation/domain/offline/index.d.ts +10 -0
  525. package/lib/typescript/src/presentation/domain/offline/index.d.ts.map +1 -0
  526. package/lib/typescript/src/presentation/domain/offline/offline-mutation-queue-provider.d.ts +18 -0
  527. package/lib/typescript/src/presentation/domain/offline/offline-mutation-queue-provider.d.ts.map +1 -0
  528. package/lib/typescript/src/presentation/domain/offline/types.d.ts +18 -0
  529. package/lib/typescript/src/presentation/domain/offline/types.d.ts.map +1 -0
  530. package/lib/typescript/src/presentation/domain/offline/use-infinite-offline-query.d.ts +78 -0
  531. package/lib/typescript/src/presentation/domain/offline/use-infinite-offline-query.d.ts.map +1 -0
  532. package/lib/typescript/src/presentation/domain/offline/use-offline-id-v2.d.ts +9 -0
  533. package/lib/typescript/src/presentation/domain/offline/use-offline-id-v2.d.ts.map +1 -0
  534. package/lib/typescript/src/presentation/domain/offline/use-offline-id.d.ts +3 -0
  535. package/lib/typescript/src/presentation/domain/offline/use-offline-id.d.ts.map +1 -0
  536. package/lib/typescript/src/presentation/domain/offline/use-offline-mutation.d.ts +88 -0
  537. package/lib/typescript/src/presentation/domain/offline/use-offline-mutation.d.ts.map +1 -0
  538. package/lib/typescript/src/presentation/domain/offline/use-offline-query.d.ts +8 -0
  539. package/lib/typescript/src/presentation/domain/offline/use-offline-query.d.ts.map +1 -0
  540. package/lib/typescript/src/presentation/domain/offline/use-offline-queue.d.ts +10 -0
  541. package/lib/typescript/src/presentation/domain/offline/use-offline-queue.d.ts.map +1 -0
  542. package/lib/typescript/src/presentation/domain/offline/utils.d.ts +18 -0
  543. package/lib/typescript/src/presentation/domain/offline/utils.d.ts.map +1 -0
  544. package/lib/typescript/src/presentation/domain/provider/index.d.ts +2 -0
  545. package/lib/typescript/src/presentation/domain/provider/index.d.ts.map +1 -0
  546. package/lib/typescript/src/presentation/domain/provider/zuq-core-provider.d.ts +13 -0
  547. package/lib/typescript/src/presentation/domain/provider/zuq-core-provider.d.ts.map +1 -0
  548. package/lib/typescript/src/presentation/domain/utils/exists.d.ts +2 -0
  549. package/lib/typescript/src/presentation/domain/utils/exists.d.ts.map +1 -0
  550. package/lib/typescript/src/presentation/domain/utils/index.d.ts +6 -0
  551. package/lib/typescript/src/presentation/domain/utils/index.d.ts.map +1 -0
  552. package/lib/typescript/src/presentation/domain/utils/react-query.d.ts +5 -0
  553. package/lib/typescript/src/presentation/domain/utils/react-query.d.ts.map +1 -0
  554. package/lib/typescript/src/presentation/domain/utils/use-action-sheet.d.ts +6 -0
  555. package/lib/typescript/src/presentation/domain/utils/use-action-sheet.d.ts.map +1 -0
  556. package/lib/typescript/src/presentation/domain/utils/use-signature-ref.d.ts +15 -0
  557. package/lib/typescript/src/presentation/domain/utils/use-signature-ref.d.ts.map +1 -0
  558. package/lib/typescript/src/presentation/domain/utils/yup.d.ts +3 -0
  559. package/lib/typescript/src/presentation/domain/utils/yup.d.ts.map +1 -0
  560. package/lib/typescript/src/theme.d.ts +214 -0
  561. package/lib/typescript/src/theme.d.ts.map +1 -0
  562. package/package.json +210 -0
  563. package/src/assets/logo.png +0 -0
  564. package/src/data/errors/http-client-error.ts +23 -0
  565. package/src/data/errors/index.ts +3 -0
  566. package/src/data/errors/save-file-error.ts +6 -0
  567. package/src/data/errors/unsupported-platform.ts +6 -0
  568. package/src/data/models/index.ts +3 -0
  569. package/src/data/models/remote-get-comment-list-model.ts +15 -0
  570. package/src/data/models/remote-get-image-list-model.ts +15 -0
  571. package/src/data/models/remote-user-model.ts +13 -0
  572. package/src/data/protocols/cookie-manager.ts +6 -0
  573. package/src/data/protocols/download-manager.ts +13 -0
  574. package/src/data/protocols/http-client.ts +75 -0
  575. package/src/data/protocols/index.ts +6 -0
  576. package/src/data/protocols/notification-manager.ts +17 -0
  577. package/src/data/protocols/permission-manager.ts +46 -0
  578. package/src/data/protocols/storage.ts +18 -0
  579. package/src/data/use-cases/index.ts +3 -0
  580. package/src/data/use-cases/remote-get-comment-list.ts +34 -0
  581. package/src/data/use-cases/remote-get-image-list.ts +40 -0
  582. package/src/data/use-cases/remote-send-diagnostics.ts +20 -0
  583. package/src/domain/errors/authentication-expired-error.ts +6 -0
  584. package/src/domain/errors/index.ts +4 -0
  585. package/src/domain/errors/internal-server-error.ts +6 -0
  586. package/src/domain/errors/invalid-credentials-error.ts +6 -0
  587. package/src/domain/errors/no-app-permission-error.ts +6 -0
  588. package/src/domain/models/get-comment-list-model.ts +9 -0
  589. package/src/domain/models/get-image-list-model.ts +7 -0
  590. package/src/domain/models/index.ts +3 -0
  591. package/src/domain/models/user-model.ts +15 -0
  592. package/src/domain/use-cases/get-comment-list.ts +14 -0
  593. package/src/domain/use-cases/get-image-list.ts +14 -0
  594. package/src/domain/use-cases/index.ts +6 -0
  595. package/src/domain/use-cases/record-request.ts +15 -0
  596. package/src/domain/use-cases/send-diagnostics.ts +15 -0
  597. package/src/domain/use-cases/user-authentication.ts +16 -0
  598. package/src/domain/use-cases/user-logout.ts +10 -0
  599. package/src/index.tsx +29 -0
  600. package/src/infra/axios-http-client-adapter.ts +271 -0
  601. package/src/infra/index.ts +7 -0
  602. package/src/infra/isomorphic-id-manager.ts +107 -0
  603. package/src/infra/mmkv-storage-adapter.ts +73 -0
  604. package/src/infra/notifee-notification-manager-adapter.ts +87 -0
  605. package/src/infra/offline-mutation-queue.ts +280 -0
  606. package/src/infra/rnbu-download-manager-adapter.ts +29 -0
  607. package/src/infra/rnp-permission-manager-adapter.ts +147 -0
  608. package/src/infra/storage-cookie-manager-adapter.ts +29 -0
  609. package/src/main/components/index.ts +4 -0
  610. package/src/main/components/request-permissions.tsx +17 -0
  611. package/src/main/factories/infra/download-manager-factory.ts +6 -0
  612. package/src/main/factories/infra/http-client-factory.ts +9 -0
  613. package/src/main/factories/infra/index.ts +7 -0
  614. package/src/main/factories/infra/isomorphic-id-manager-factory.ts +6 -0
  615. package/src/main/factories/infra/notification-manager-factory.ts +8 -0
  616. package/src/main/factories/infra/offline-mutation-queue-factory.ts +22 -0
  617. package/src/main/factories/infra/permission-manager-factory.ts +6 -0
  618. package/src/main/factories/infra/storage-factory.ts +11 -0
  619. package/src/main/factories/use-cases/index.ts +3 -0
  620. package/src/main/factories/use-cases/remote-get-comment-list-factory.ts +6 -0
  621. package/src/main/factories/use-cases/remote-get-image-list-factory.ts +6 -0
  622. package/src/main/factories/use-cases/remote-send-diagnostics-factory.ts +10 -0
  623. package/src/presentation/components/atoms/UIBackdrop.tsx +35 -0
  624. package/src/presentation/components/atoms/UICheckbox.tsx +58 -0
  625. package/src/presentation/components/atoms/UIDot.tsx +40 -0
  626. package/src/presentation/components/atoms/UIIcon.tsx +1091 -0
  627. package/src/presentation/components/atoms/UILoading.tsx +17 -0
  628. package/src/presentation/components/atoms/UIPage.tsx +92 -0
  629. package/src/presentation/components/atoms/UIProgress.tsx +60 -0
  630. package/src/presentation/components/atoms/UIScrollPage.tsx +87 -0
  631. package/src/presentation/components/atoms/UISeparator.tsx +41 -0
  632. package/src/presentation/components/atoms/UISpacer.tsx +21 -0
  633. package/src/presentation/components/atoms/UIStack.tsx +44 -0
  634. package/src/presentation/components/atoms/UIText.tsx +59 -0
  635. package/src/presentation/components/atoms/index.ts +12 -0
  636. package/src/presentation/components/index.ts +1 -0
  637. package/src/presentation/components/molecules/UIActionSheet.tsx +230 -0
  638. package/src/presentation/components/molecules/UIButton.tsx +192 -0
  639. package/src/presentation/components/molecules/UIButtonCTA.tsx +38 -0
  640. package/src/presentation/components/molecules/UICheckboxInput.tsx +106 -0
  641. package/src/presentation/components/molecules/UIChip.tsx +69 -0
  642. package/src/presentation/components/molecules/UICurrencyInput.tsx +43 -0
  643. package/src/presentation/components/molecules/UIDataList.tsx +30 -0
  644. package/src/presentation/components/molecules/UIDataSectionList.tsx +30 -0
  645. package/src/presentation/components/molecules/UIDatetimeInput.tsx +205 -0
  646. package/src/presentation/components/molecules/UIError.tsx +24 -0
  647. package/src/presentation/components/molecules/UIImage.tsx +85 -0
  648. package/src/presentation/components/molecules/UIInlineDatePicker.tsx +244 -0
  649. package/src/presentation/components/molecules/UIInputIcon.tsx +39 -0
  650. package/src/presentation/components/molecules/UIList.tsx +17 -0
  651. package/src/presentation/components/molecules/UIRadioInput.tsx +97 -0
  652. package/src/presentation/components/molecules/UISectionList.tsx +17 -0
  653. package/src/presentation/components/molecules/UISkeleton.tsx +66 -0
  654. package/src/presentation/components/molecules/UISwitch.tsx +72 -0
  655. package/src/presentation/components/molecules/UITextInput.tsx +160 -0
  656. package/src/presentation/components/molecules/UITextInputMask.tsx +160 -0
  657. package/src/presentation/components/molecules/index.ts +20 -0
  658. package/src/presentation/components/organisms/UIAppBar.tsx +103 -0
  659. package/src/presentation/components/organisms/UIAppBarAction.tsx +13 -0
  660. package/src/presentation/components/organisms/UICard.tsx +48 -0
  661. package/src/presentation/components/organisms/UIComment.tsx +64 -0
  662. package/src/presentation/components/organisms/UIErrorBoundary.tsx +72 -0
  663. package/src/presentation/components/organisms/UIForm.tsx +81 -0
  664. package/src/presentation/components/organisms/UIFormButton.tsx +38 -0
  665. package/src/presentation/components/organisms/UIFormCheckboxInput.tsx +35 -0
  666. package/src/presentation/components/organisms/UIFormCurrencyInput.tsx +65 -0
  667. package/src/presentation/components/organisms/UIFormDatetimeInput.tsx +51 -0
  668. package/src/presentation/components/organisms/UIFormMultiselectInput.tsx +251 -0
  669. package/src/presentation/components/organisms/UIFormRadioInput.tsx +32 -0
  670. package/src/presentation/components/organisms/UIFormSelectInput.tsx +316 -0
  671. package/src/presentation/components/organisms/UIFormTextInput.tsx +62 -0
  672. package/src/presentation/components/organisms/UIFormTextInputMask.tsx +79 -0
  673. package/src/presentation/components/organisms/UIRow.tsx +61 -0
  674. package/src/presentation/components/organisms/UISearchInput.tsx +40 -0
  675. package/src/presentation/components/organisms/UISelectChip.tsx +104 -0
  676. package/src/presentation/components/organisms/UISignature.tsx +194 -0
  677. package/src/presentation/components/organisms/UISlideButton.tsx +112 -0
  678. package/src/presentation/components/organisms/index.ts +21 -0
  679. package/src/presentation/components/permissions/index.ts +1 -0
  680. package/src/presentation/components/permissions/request-permissions.tsx +115 -0
  681. package/src/presentation/domain/metadata/index.ts +2 -0
  682. package/src/presentation/domain/metadata/use-comments.ts +27 -0
  683. package/src/presentation/domain/metadata/use-images.ts +27 -0
  684. package/src/presentation/domain/offline/index.ts +9 -0
  685. package/src/presentation/domain/offline/offline-mutation-queue-provider.tsx +95 -0
  686. package/src/presentation/domain/offline/types.ts +21 -0
  687. package/src/presentation/domain/offline/use-infinite-offline-query.tsx +89 -0
  688. package/src/presentation/domain/offline/use-offline-id-v2.ts +29 -0
  689. package/src/presentation/domain/offline/use-offline-id.ts +12 -0
  690. package/src/presentation/domain/offline/use-offline-mutation.ts +150 -0
  691. package/src/presentation/domain/offline/use-offline-query.ts +55 -0
  692. package/src/presentation/domain/offline/use-offline-queue.ts +6 -0
  693. package/src/presentation/domain/offline/utils.ts +139 -0
  694. package/src/presentation/domain/provider/index.ts +1 -0
  695. package/src/presentation/domain/provider/zuq-core-provider.tsx +52 -0
  696. package/src/presentation/domain/utils/exists.ts +3 -0
  697. package/src/presentation/domain/utils/index.ts +5 -0
  698. package/src/presentation/domain/utils/react-query.ts +10 -0
  699. package/src/presentation/domain/utils/use-action-sheet.ts +21 -0
  700. package/src/presentation/domain/utils/use-signature-ref.ts +19 -0
  701. package/src/presentation/domain/utils/yup.ts +3 -0
  702. package/src/theme.ts +240 -0
@@ -0,0 +1,210 @@
1
+ "use strict";
2
+
3
+ import { handleQuerySuccess } from "../presentation/domain/offline/index.js";
4
+ import { IsomorphicIdManager } from "./isomorphic-id-manager.js";
5
+ export let OfflineMutationStatus = /*#__PURE__*/function (OfflineMutationStatus) {
6
+ OfflineMutationStatus["PENDING"] = "pending";
7
+ OfflineMutationStatus["EXECUTING"] = "executing";
8
+ OfflineMutationStatus["ERROR"] = "error";
9
+ OfflineMutationStatus["SUCCESS"] = "success";
10
+ return OfflineMutationStatus;
11
+ }({});
12
+ export class OfflineMutationQueue {
13
+ STORAGE_KEY = '__offline_queue';
14
+ queue = new Map();
15
+ constructor(actions, storage, queryClient, isomorphicIdManager) {
16
+ this.actions = actions;
17
+ this.storage = storage;
18
+ this.queryClient = queryClient;
19
+ this.isomorphicIdManager = isomorphicIdManager;
20
+ const storedQueue = storage.getItem(this.STORAGE_KEY);
21
+ if (storedQueue) {
22
+ this.queue = new Map(Object.entries(storedQueue));
23
+ }
24
+ }
25
+ update() {
26
+ const currentQueue = Object.fromEntries(this.queue);
27
+ this.storage.setItem(this.STORAGE_KEY, currentQueue);
28
+ }
29
+ remove(key) {
30
+ this.queue.delete(key);
31
+ this.update();
32
+ }
33
+ areDependenciesExecuted(offlineMutation) {
34
+ return offlineMutation.dependencies.every(key => {
35
+ let currentKey;
36
+ if (key instanceof IsomorphicIdManager.IsomorphicId) {
37
+ const isomorphicId = this.isomorphicIdManager?.get(key.getOfflineId());
38
+ if (!isomorphicId || !isomorphicId.isOffline()) return true;
39
+ currentKey = String(isomorphicId.getOfflineId());
40
+ } else {
41
+ currentKey = key;
42
+ }
43
+ const dependency = this.queue.get(currentKey);
44
+ if (!dependency) return true;
45
+ return dependency.status === OfflineMutationStatus.SUCCESS;
46
+ });
47
+ }
48
+ updateStatus(key, status) {
49
+ const offlineMutation = this.queue.get(key);
50
+ if (!offlineMutation) {
51
+ console.warn('[OFFLINE]: Invalid key detected. Update will be discarded.');
52
+ return;
53
+ }
54
+ offlineMutation.status = status;
55
+ this.queue.set(key, offlineMutation);
56
+ this.update();
57
+ }
58
+ updateResponse(key, response) {
59
+ const offlineMutation = this.queue.get(key);
60
+ if (!offlineMutation) {
61
+ console.warn('[OFFLINE]: Invalid key detected. Update will be discarded.');
62
+ return;
63
+ }
64
+ offlineMutation.response = response;
65
+ offlineMutation.status = OfflineMutationStatus.SUCCESS;
66
+ this.queue.set(key, offlineMutation);
67
+ if (response.id) {
68
+ this.isomorphicIdManager?.update(Number(key), response.id);
69
+ }
70
+ this.update();
71
+ }
72
+ updateError(key, error) {
73
+ const offlineMutation = this.queue.get(key);
74
+ if (!offlineMutation) {
75
+ console.warn('[OFFLINE]: Invalid key detected. Update will be discarded.');
76
+ return;
77
+ }
78
+ offlineMutation.error = error;
79
+ offlineMutation.status = OfflineMutationStatus.ERROR;
80
+ this.queue.set(key, offlineMutation);
81
+ this.update();
82
+ }
83
+ async invalidateQueries(offlineMutation) {
84
+ const {
85
+ queryKeysToInvalidate = []
86
+ } = offlineMutation;
87
+ for (const queryKey of queryKeysToInvalidate) {
88
+ this.queryClient.invalidateQueries({
89
+ queryKey
90
+ });
91
+ }
92
+ }
93
+ isExecuting(offlineMutation) {
94
+ return offlineMutation.status === OfflineMutationStatus.EXECUTING;
95
+ }
96
+ async executeRequest(key, offlineMutation) {
97
+ this.updateStatus(key, OfflineMutationStatus.EXECUTING);
98
+ const dependencies = offlineMutation.dependencies.map(dependency => dependency instanceof IsomorphicIdManager.IsomorphicId ? this.queue.get(String(dependency.getOfflineId())) : this.queue.get(dependency));
99
+ const action = this.actions[offlineMutation.type];
100
+ if (!action) {
101
+ console.warn(`[OFFLINE]: No action registered for this offline mutation with type ${offlineMutation.type}. It will be ignored.`);
102
+ return;
103
+ }
104
+ const response = await action(offlineMutation, dependencies);
105
+ this.updateResponse(key, response.data);
106
+ }
107
+ async executeAllDependencies(offlineMutation) {
108
+ const {
109
+ dependencies
110
+ } = offlineMutation;
111
+ let allDependenciesExecutedSuccessfully = true;
112
+ for (const key of dependencies) {
113
+ let currentKey;
114
+ if (key instanceof IsomorphicIdManager.IsomorphicId) {
115
+ const isomorphicId = this.isomorphicIdManager?.get(key.getOfflineId());
116
+ if (!isomorphicId || !isomorphicId.isOffline()) continue;
117
+ currentKey = String(isomorphicId.getOfflineId());
118
+ } else {
119
+ currentKey = key;
120
+ }
121
+ const dependency = this.queue.get(currentKey);
122
+ if (!dependency || this.isAlreadyExecuted(dependency)) continue;
123
+ try {
124
+ if (!this.areDependenciesExecuted(dependency)) {
125
+ await this.executeAllDependencies(dependency);
126
+ }
127
+ await this.executeRequest(currentKey, dependency);
128
+ await this.invalidateQueries(dependency);
129
+ } catch (err) {
130
+ allDependenciesExecutedSuccessfully = false;
131
+ this.updateError(currentKey, err);
132
+ }
133
+ }
134
+ return allDependenciesExecutedSuccessfully;
135
+ }
136
+ assertOfflineMutation(key, offlineMutation) {
137
+ const isValid = offlineMutation.dependencies.every(dependencyKey => {
138
+ let dependency;
139
+ if (dependencyKey instanceof IsomorphicIdManager.IsomorphicId) {
140
+ const isomorphicId = this.isomorphicIdManager?.get(dependencyKey.getOfflineId());
141
+ if (!isomorphicId) return false;
142
+ if (isomorphicId.isOffline()) {
143
+ dependency = this.queue.get(String(dependencyKey.getOfflineId()));
144
+ } else {
145
+ return true;
146
+ }
147
+ } else {
148
+ dependency = this.queue.get(dependencyKey);
149
+ }
150
+ if (dependency) {
151
+ const existsDependencyLoop = dependency.dependencies.some(innerKey => innerKey === key);
152
+ return !existsDependencyLoop;
153
+ } else {
154
+ return false;
155
+ }
156
+ });
157
+ if (!isValid) {
158
+ throw new Error('[OFFLINE]: A dependency loop or invalid dependency was detected. This offline mutation will be discarded.');
159
+ }
160
+ }
161
+ isAlreadyExecuted(offlineMutation) {
162
+ if (!offlineMutation) return true;
163
+ return offlineMutation.status === OfflineMutationStatus.SUCCESS || offlineMutation.status === OfflineMutationStatus.ERROR;
164
+ }
165
+ size() {
166
+ return this.queue.size;
167
+ }
168
+ list() {
169
+ return [...this.queue.values()];
170
+ }
171
+ clear() {
172
+ [...this.queue.entries()].forEach(([key]) => {
173
+ this.remove(key);
174
+ });
175
+ this.isomorphicIdManager?.clear();
176
+ }
177
+ push(key, offlineMutation) {
178
+ try {
179
+ this.assertOfflineMutation(key, offlineMutation);
180
+ console.info('[OFFLINE]: Pushing to offline queue!');
181
+ this.queue.set(key, offlineMutation);
182
+ this.update();
183
+ } catch (err) {
184
+ console.error(err);
185
+ }
186
+ }
187
+ async execute() {
188
+ for (const [key, offlineMutation] of this.queue) {
189
+ if (this.isAlreadyExecuted(offlineMutation) || this.isExecuting(offlineMutation)) {
190
+ continue;
191
+ }
192
+ const allDependenciesExecuted = this.executeAllDependencies(offlineMutation);
193
+ if (!allDependenciesExecuted) continue;
194
+ try {
195
+ await this.executeRequest(key, offlineMutation);
196
+ await this.invalidateQueries(offlineMutation);
197
+ for (const queryKey of offlineMutation.queryKeysToInvalidate) {
198
+ handleQuerySuccess({
199
+ queryClient: this.queryClient,
200
+ queryKey
201
+ });
202
+ }
203
+ } catch (err) {
204
+ if (err) this.updateError(key, err);
205
+ console.error(`[OFFLINE]: error on mutation with type ${offlineMutation.type} and key: ${key}`);
206
+ }
207
+ }
208
+ }
209
+ }
210
+ //# sourceMappingURL=offline-mutation-queue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["handleQuerySuccess","IsomorphicIdManager","OfflineMutationStatus","OfflineMutationQueue","STORAGE_KEY","queue","Map","constructor","actions","storage","queryClient","isomorphicIdManager","storedQueue","getItem","Object","entries","update","currentQueue","fromEntries","setItem","remove","key","delete","areDependenciesExecuted","offlineMutation","dependencies","every","currentKey","IsomorphicId","isomorphicId","get","getOfflineId","isOffline","String","dependency","status","SUCCESS","updateStatus","console","warn","set","updateResponse","response","id","Number","updateError","error","ERROR","invalidateQueries","queryKeysToInvalidate","queryKey","isExecuting","EXECUTING","executeRequest","map","action","type","data","executeAllDependencies","allDependenciesExecutedSuccessfully","isAlreadyExecuted","err","assertOfflineMutation","isValid","dependencyKey","existsDependencyLoop","some","innerKey","Error","size","list","values","clear","forEach","push","info","execute","allDependenciesExecuted"],"sourceRoot":"../../../src","sources":["infra/offline-mutation-queue.ts"],"mappings":";;AAGA,SAASA,kBAAkB,QAAQ,yCAAgC;AACnE,SAASC,mBAAmB,QAAQ,4BAAyB;AAI7D,WAAYC,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AA4BjC,OAAO,MAAMC,oBAAoB,CAAC;EACfC,WAAW,GAAG,iBAAiB;EACxCC,KAAK,GAAiC,IAAIC,GAAG,CAAC,CAAC;EAEvDC,WAAWA,CACQC,OAAuB,EACvBC,OAAgB,EAChBC,WAAwB,EACxBC,mBAAyC,EAC1D;IAAA,KAJiBH,OAAuB,GAAvBA,OAAuB;IAAA,KACvBC,OAAgB,GAAhBA,OAAgB;IAAA,KAChBC,WAAwB,GAAxBA,WAAwB;IAAA,KACxBC,mBAAyC,GAAzCA,mBAAyC;IAE1D,MAAMC,WAAW,GAAGH,OAAO,CAACI,OAAO,CACjC,IAAI,CAACT,WACP,CAAC;IACD,IAAIQ,WAAW,EAAE;MACf,IAAI,CAACP,KAAK,GAAG,IAAIC,GAAG,CAClBQ,MAAM,CAACC,OAAO,CAACH,WAAW,CAC5B,CAAC;IACH;EACF;EAEQI,MAAMA,CAAA,EAAG;IACf,MAAMC,YAAY,GAAGH,MAAM,CAACI,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NativeBlobUtil from 'react-native-blob-util';
4
+ import { Buffer } from 'buffer';
5
+ import { SaveFileError } from "../data/errors/index.js";
6
+ import { Platform } from 'react-native';
7
+ export class RNBUDownloadManagerAdapter {
8
+ constructor(httpClient) {
9
+ this.httpClient = httpClient;
10
+ }
11
+ async save(params) {
12
+ const defaultDir = Platform.OS === 'android' ? ReactNativeBlobUtil.fs.dirs.LegacyDownloadDir : ReactNativeBlobUtil.fs.dirs.DocumentDir;
13
+ const {
14
+ url,
15
+ fileName,
16
+ directory = defaultDir
17
+ } = params;
18
+ const response = await this.httpClient.get(url, {
19
+ responseType: 'arraybuffer'
20
+ });
21
+ try {
22
+ const base64Data = Buffer.from(response.data).toString('base64');
23
+ const filePath = `${directory}/${fileName}`;
24
+ await ReactNativeBlobUtil.fs.writeFile(filePath, base64Data, 'base64');
25
+ return filePath;
26
+ } catch (err) {
27
+ throw new SaveFileError('Falha ao salvar o arquivo.');
28
+ }
29
+ }
30
+ }
31
+ //# sourceMappingURL=rnbu-download-manager-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ReactNativeBlobUtil","Buffer","SaveFileError","Platform","RNBUDownloadManagerAdapter","constructor","httpClient","save","params","defaultDir","OS","fs","dirs","LegacyDownloadDir","DocumentDir","url","fileName","directory","response","get","responseType","base64Data","from","data","toString","filePath","writeFile","err"],"sourceRoot":"../../../src","sources":["infra/rnbu-download-manager-adapter.ts"],"mappings":";;AACA,OAAOA,mBAAmB,MAAM,wBAAwB;AACxD,SAASC,MAAM,QAAQ,QAAQ;AAC/B,SAASC,aAAa,QAAQ,yBAAgB;AAC9C,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,0BAA0B,CAA4B;EACjEC,WAAWA,CAAkBC,UAAsB,EAAE;IAAA,KAAxBA,UAAsB,GAAtBA,UAAsB;EAAG;EACtD,MAAMC,IAAIA,CAACC,MAAkC,EAA8B;IACzE,MAAMC,UAAU,GACdN,QAAQ,CAACO,EAAE,KAAK,SAAS,GACrBV,mBAAmB,CAACW,EAAE,CAACC,IAAI,CAACC,iBAAiB,GAC7Cb,mBAAmB,CAACW,EAAE,CAACC,IAAI,CAACE,WAAW;IAE7C,MAAM;MAAEC,GAAG;MAAEC,QAAQ;MAAEC,SAAS,GAAGR;IAAW,CAAC,GAAGD,MAAM;IACxD,MAAMU,QAAQ,GAAG,MAAM,IAAI,CAACZ,UAAU,CAACa,GAAG,CAACJ,GAAG,EAAE;MAC9CK,YAAY,EAAE;IAChB,CAAC,CAAC;IAEF,IAAI;MACF,MAAMC,UAAU,GAAGpB,MAAM,CAACqB,IAAI,CAACJ,QAAQ,CAACK,IAAI,CAAC,CAACC,QAAQ,CAAC,QAAQ,CAAC;MAChE,MAAMC,QAAQ,GAAG,GAAGR,SAAS,IAAID,QAAQ,EAAE;MAC3C,MAAMhB,mBAAmB,CAACW,EAAE,CAACe,SAAS,CAACD,QAAQ,EAAEJ,UAAU,EAAE,QAAQ,CAAC;MACtE,OAAOI,QAAQ;IACjB,CAAC,CAAC,OAAOE,GAAG,EAAE;MACZ,MAAM,IAAIzB,aAAa,CAAC,4BAA4B,CAAC;IACvD;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ import RNPermissions, { PERMISSIONS } from 'react-native-permissions';
4
+ import { Platform } from 'react-native';
5
+ import { UnsupportedPlatform } from "../data/errors/index.js";
6
+ export class RNPPermissionManagerAdapter {
7
+ os = Platform.OS;
8
+ map = {
9
+ NOTIFICATIONS: {
10
+ android: null,
11
+ ios: null
12
+ },
13
+ CAMERA: {
14
+ android: PERMISSIONS.ANDROID.CAMERA,
15
+ ios: PERMISSIONS.IOS.CAMERA
16
+ },
17
+ COARSE_LOCATION: {
18
+ android: PERMISSIONS.ANDROID.ACCESS_COARSE_LOCATION,
19
+ ios: PERMISSIONS.IOS.LOCATION_WHEN_IN_USE
20
+ },
21
+ FINE_LOCATION: {
22
+ android: PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION,
23
+ ios: PERMISSIONS.IOS.LOCATION_WHEN_IN_USE
24
+ },
25
+ BACKGROUND_LOCATION: {
26
+ android: PERMISSIONS.ANDROID.ACCESS_BACKGROUND_LOCATION,
27
+ ios: PERMISSIONS.IOS.LOCATION_ALWAYS
28
+ },
29
+ WRITE_EXTERNAL_STORAGE: {
30
+ android: PERMISSIONS.ANDROID.WRITE_EXTERNAL_STORAGE,
31
+ ios: null
32
+ },
33
+ DATA_COLLECTION: {
34
+ android: null,
35
+ ios: PERMISSIONS.IOS.APP_TRACKING_TRANSPARENCY
36
+ }
37
+ };
38
+ checkOS() {
39
+ if (!['android', 'ios'].includes(this.os)) throw new UnsupportedPlatform();
40
+ }
41
+ getCurrentOSPermission(permission) {
42
+ return this.map[permission][this.os];
43
+ }
44
+ async get(permission) {
45
+ this.checkOS();
46
+ if (permission === 'NOTIFICATIONS') return this.hasNotifications();
47
+ const currentOSPermission = this.getCurrentOSPermission(permission);
48
+ if (!currentOSPermission) return 'unavailable';
49
+ return RNPermissions.check(currentOSPermission);
50
+ }
51
+ async getAll(permissions) {
52
+ return await Promise.all(permissions.map(permission => this.get(permission)));
53
+ }
54
+ async checkNoop(permission) {
55
+ if (permission === PERMISSIONS.ANDROID.WRITE_EXTERNAL_STORAGE && this.os === 'android' && Number(Platform.Version) >= 33) return 'granted';
56
+ return;
57
+ }
58
+ async request(permission, options) {
59
+ this.checkOS();
60
+ if (permission === 'NOTIFICATIONS') return this.requestNotifications(options);
61
+ const currentOSPermission = this.getCurrentOSPermission(permission);
62
+ if (!currentOSPermission) return 'unavailable';
63
+ const isNoop = await this.checkNoop(currentOSPermission);
64
+ if (isNoop) return isNoop;
65
+ const {
66
+ title,
67
+ message,
68
+ allow = 'Permitir',
69
+ deny = 'Recusar'
70
+ } = options;
71
+ return RNPermissions.request(currentOSPermission, {
72
+ title,
73
+ message,
74
+ buttonPositive: allow,
75
+ buttonNegative: deny
76
+ });
77
+ }
78
+ async requestAll(data) {
79
+ return await Promise.all(data.map(item => this.request(item.permission, item.options)));
80
+ }
81
+ async hasNotifications() {
82
+ const result = await RNPermissions.checkNotifications();
83
+ return result.status;
84
+ }
85
+ async requestNotifications(options) {
86
+ this.checkOS();
87
+ const {
88
+ title,
89
+ message,
90
+ allow = 'Permitir',
91
+ deny = 'Recusar'
92
+ } = options;
93
+ const {
94
+ status
95
+ } = await RNPermissions.requestNotifications(['alert', 'sound'], {
96
+ title,
97
+ message,
98
+ buttonPositive: allow,
99
+ buttonNegative: deny
100
+ });
101
+ return status;
102
+ }
103
+ async has(permission) {
104
+ this.checkOS();
105
+ const currentOSPermission = this.getCurrentOSPermission(permission);
106
+ if (!currentOSPermission) return true;
107
+ const isNoop = await this.checkNoop(currentOSPermission);
108
+ if (isNoop) return true;
109
+ const currentPermissionStatus = await RNPermissions.check(currentOSPermission);
110
+ return ['granted', 'limited', 'unavailable'].includes(currentPermissionStatus);
111
+ }
112
+ async hasEvery(permissions) {
113
+ const result = await Promise.all(permissions.map(async permission => this.has(permission)));
114
+ return result.every(item => Boolean(item));
115
+ }
116
+ }
117
+ //# sourceMappingURL=rnp-permission-manager-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNPermissions","PERMISSIONS","Platform","UnsupportedPlatform","RNPPermissionManagerAdapter","os","OS","map","NOTIFICATIONS","android","ios","CAMERA","ANDROID","IOS","COARSE_LOCATION","ACCESS_COARSE_LOCATION","LOCATION_WHEN_IN_USE","FINE_LOCATION","ACCESS_FINE_LOCATION","BACKGROUND_LOCATION","ACCESS_BACKGROUND_LOCATION","LOCATION_ALWAYS","WRITE_EXTERNAL_STORAGE","DATA_COLLECTION","APP_TRACKING_TRANSPARENCY","checkOS","includes","getCurrentOSPermission","permission","get","hasNotifications","currentOSPermission","check","getAll","permissions","Promise","all","checkNoop","Number","Version","request","options","requestNotifications","isNoop","title","message","allow","deny","buttonPositive","buttonNegative","requestAll","data","item","result","checkNotifications","status","has","currentPermissionStatus","hasEvery","every","Boolean"],"sourceRoot":"../../../src","sources":["infra/rnp-permission-manager-adapter.ts"],"mappings":";;AACA,OAAOA,aAAa,IAAIC,WAAW,QAAQ,0BAA0B;AACrE,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,mBAAmB,QAAQ,yBAAgB;AAEpD,OAAO,MAAMC,2BAA2B,CAA8B;EACnDC,EAAE,GAAGH,QAAQ,CAACI,EAAE;EAChBC,GAAG,GAAG;IACrBC,aAAa,EAAE;MACbC,OAAO,EAAE,IAAI;MACbC,GAAG,EAAE;IACP,CAAC;IACDC,MAAM,EAAE;MACNF,OAAO,EAAER,WAAW,CAACW,OAAO,CAACD,MAAM;MACnCD,GAAG,EAAET,WAAW,CAACY,GAAG,CAACF;IACvB,CAAC;IACDG,eAAe,EAAE;MACfL,OAAO,EAAER,WAAW,CAACW,OAAO,CAACG,sBAAsB;MACnDL,GAAG,EAAET,WAAW,CAACY,GAAG,CAACG;IACvB,CAAC;IACDC,aAAa,EAAE;MACbR,OAAO,EAAER,WAAW,CAACW,OAAO,CAACM,oBAAoB;MACjDR,GAAG,EAAET,WAAW,CAACY,GAAG,CAACG;IACvB,CAAC;IACDG,mBAAmB,EAAE;MACnBV,OAAO,EAAER,WAAW,CAACW,OAAO,CAACQ,0BAA0B;MACvDV,GAAG,EAAET,WAAW,CAACY,GAAG,CAACQ;IACvB,CAAC;IACDC,sBAAsB,EAAE;MACtBb,OAAO,EAAER,WAAW,CAACW,OAAO,CAACU,sBAAsB;MACnDZ,GAAG,EAAE;IACP,CAAC;IACDa,eAAe,EAAE;MACfd,OAAO,EAAE,IAAI;MACbC,GAAG,EAAET,WAAW,CAACY,GAAG,CAACW;IACvB;EACF,CAAC;EAEOC,OAAOA,CAAA,EAAG;IAChB,IAAI,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAACC,QAAQ,CAAC,IAAI,CAACrB,EAAE,CAAC,EAAE,MAAM,IAAIF,mBAAmB,CAAC,CAAC;EAC5E;EAEQwB,sBAAsBA,CAACC,UAAw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M,IAAI,CAACN,SAAS,CAACN,mBAAmB,CAAC;IACxD,IAAIY,MAAM,EAAE,OAAO,IAAI;IACvB,MAAMc,uBAAuB,GAC3B,MAAMzD,aAAa,CAACgC,KAAK,CAACD,mBAAmB,CAAC;IAChD,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,CAACL,QAAQ,CACnD+B,uBACF,CAAC;EACH;EAEA,MAAMC,QAAQA,CACZxB,WAA2C,EACzB;IAClB,MAAMmB,MAAM,GAAG,MAAMlB,OAAO,CAACC,GAAG,CAC9BF,WAAW,CAAC3B,GAAG,CAAC,MAAOqB,UAAU,IAAK,IAAI,CAAC4B,GAAG,CAAC5B,UAAU,CAAC,CAC5D,CAAC;IACD,OAAOyB,MAAM,CAACM,KAAK,CAAEP,IAAI,IAAKQ,OAAO,CAACR,IAAI,CAAC,CAAC;EAC9C;AACF","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ export class StorageCookieManagerAdapter {
4
+ cookies = {};
5
+ constructor(storage, cookiesKey) {
6
+ this.storage = storage;
7
+ this.cookiesKey = cookiesKey;
8
+ this.cookies = this.storage.getItem(this.cookiesKey) ?? {};
9
+ }
10
+ get(key) {
11
+ return this.cookies[key];
12
+ }
13
+ set(key, value) {
14
+ this.cookies[key] = value;
15
+ return this.storage.setItem(this.cookiesKey, this.cookies);
16
+ }
17
+ remove(key) {
18
+ return this.set(key, undefined);
19
+ }
20
+ clear() {
21
+ return this.storage.removeItem(this.cookiesKey);
22
+ }
23
+ }
24
+ //# sourceMappingURL=storage-cookie-manager-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StorageCookieManagerAdapter","cookies","constructor","storage","cookiesKey","getItem","get","key","set","value","setItem","remove","undefined","clear","removeItem"],"sourceRoot":"../../../src","sources":["infra/storage-cookie-manager-adapter.ts"],"mappings":";;AAEA,OAAO,MAAMA,2BAA2B,CAA0B;EACxDC,OAAO,GAAuC,CAAC,CAAC;EAExDC,WAAWA,CACQC,OAAgB,EAChBC,UAAkB,EACnC;IAAA,KAFiBD,OAAgB,GAAhBA,OAAgB;IAAA,KAChBC,UAAkB,GAAlBA,UAAkB;IAEnC,IAAI,CAACH,OAAO,GAAG,IAAI,CAACE,OAAO,CAACE,OAAO,CAAC,IAAI,CAACD,UAAU,CAAC,IAAI,CAAC,CAAC;EAC5D;EAEOE,GAAGA,CAACC,GAAW,EAAE;IACtB,OAAO,IAAI,CAACN,OAAO,CAACM,GAAG,CAAC;EAC1B;EAEOC,GAAGA,CAACD,GAAW,EAAEE,KAAyB,EAAE;IACjD,IAAI,CAACR,OAAO,CAACM,GAAG,CAAC,GAAGE,KAAK;IACzB,OAAO,IAAI,CAACN,OAAO,CAACO,OAAO,CAAC,IAAI,CAACN,UAAU,EAAE,IAAI,CAACH,OAAO,CAAC;EAC5D;EAEOU,MAAMA,CAACJ,GAAW,EAAE;IACzB,OAAO,IAAI,CAACC,GAAG,CAACD,GAAG,EAAEK,SAAS,CAAC;EACjC;EAEOC,KAAKA,CAAA,EAAG;IACb,OAAO,IAAI,CAACV,OAAO,CAACW,UAAU,CAAC,IAAI,CAACV,UAAU,CAAC;EACjD;AACF","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ export * from "./request-permissions.js";
4
+ export * from "../../presentation/components/atoms/index.js";
5
+ export * from "../../presentation/components/molecules/index.js";
6
+ export * from "../../presentation/components/organisms/index.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["main/components/index.ts"],"mappings":";;AAAA,cAAc,0BAAuB;AACrC,cAAc,8CAAqC;AACnD,cAAc,kDAAyC;AACvD,cAAc,kDAAyC","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { RequestPermissions as BaseRequestPermissions } from "../../presentation/components/index.js";
5
+ import { makePermissionManager } from "../factories/infra/index.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const RequestPermissions = props => {
8
+ const permissionManager = React.useMemo(() => makePermissionManager(), []);
9
+ return /*#__PURE__*/_jsx(BaseRequestPermissions, {
10
+ permissionManager: permissionManager,
11
+ ...props
12
+ });
13
+ };
14
+ //# sourceMappingURL=request-permissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","RequestPermissions","BaseRequestPermissions","makePermissionManager","jsx","_jsx","props","permissionManager","useMemo"],"sourceRoot":"../../../../src","sources":["main/components/request-permissions.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,kBAAkB,IAAIC,sBAAsB,QAAQ,wCAA+B;AAC5F,SAASC,qBAAqB,QAAQ,6BAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO3D,OAAO,MAAMJ,kBAAkB,GAAIK,KAAY,IAAK;EAClD,MAAMC,iBAAiB,GAAGP,KAAK,CAACQ,OAAO,CAAC,MAAML,qBAAqB,CAAC,CAAC,EAAE,EAAE,CAAC;EAE1E,oBACEE,IAAA,CAACH,sBAAsB;IAACK,iBAAiB,EAAEA,iBAAkB;IAAA,GAAKD;EAAK,CAAG,CAAC;AAE/E,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { RNBUDownloadManagerAdapter } from "../../../infra/index.js";
4
+ export const makeDownloadManager = client => {
5
+ return new RNBUDownloadManagerAdapter(client);
6
+ };
7
+ //# sourceMappingURL=download-manager-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNBUDownloadManagerAdapter","makeDownloadManager","client"],"sourceRoot":"../../../../../src","sources":["main/factories/infra/download-manager-factory.ts"],"mappings":";;AACA,SAASA,0BAA0B,QAAQ,yBAAgB;AAE3D,OAAO,MAAMC,mBAAmB,GAAIC,MAAkB,IAAsB;EAC1E,OAAO,IAAIF,0BAA0B,CAACE,MAAM,CAAC;AAC/C,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { AxiosHttpClientAdapter } from "../../../infra/index.js";
4
+ export const makeHttpClient = (url, options) => {
5
+ return new AxiosHttpClientAdapter(url, options);
6
+ };
7
+ //# sourceMappingURL=http-client-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AxiosHttpClientAdapter","makeHttpClient","url","options"],"sourceRoot":"../../../../../src","sources":["main/factories/infra/http-client-factory.ts"],"mappings":";;AACA,SAASA,sBAAsB,QAAQ,yBAAgB;AAEvD,OAAO,MAAMC,cAAc,GAAGA,CAC5BC,GAAW,EACXC,OAAuC,KACxB;EACf,OAAO,IAAIH,sBAAsB,CAACE,GAAG,EAAEC,OAAO,CAAC;AACjD,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ export * from "./permission-manager-factory.js";
4
+ export * from "./notification-manager-factory.js";
5
+ export * from "./storage-factory.js";
6
+ export * from "./http-client-factory.js";
7
+ export * from "./offline-mutation-queue-factory.js";
8
+ export * from "./download-manager-factory.js";
9
+ export * from "./isomorphic-id-manager-factory.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["main/factories/infra/index.ts"],"mappings":";;AAAA,cAAc,iCAA8B;AAC5C,cAAc,mCAAgC;AAC9C,cAAc,sBAAmB;AACjC,cAAc,0BAAuB;AACrC,cAAc,qCAAkC;AAChD,cAAc,+BAA4B;AAC1C,cAAc,oCAAiC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { IsomorphicIdManager } from "../../../infra/index.js";
4
+ export const makeIsomorphicIdManager = storage => {
5
+ return new IsomorphicIdManager(storage);
6
+ };
7
+ //# sourceMappingURL=isomorphic-id-manager-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["IsomorphicIdManager","makeIsomorphicIdManager","storage"],"sourceRoot":"../../../../../src","sources":["main/factories/infra/isomorphic-id-manager-factory.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAgB;AAGpD,OAAO,MAAMC,uBAAuB,GAAIC,OAAgB,IAAK;EAC3D,OAAO,IAAIF,mBAAmB,CAACE,OAAO,CAAC;AACzC,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { NotifeeNotificationManagerAdapter } from "../../../infra/notifee-notification-manager-adapter.js";
4
+ export const makeNotificationManager = options => {
5
+ return new NotifeeNotificationManagerAdapter(options);
6
+ };
7
+ //# sourceMappingURL=notification-manager-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NotifeeNotificationManagerAdapter","makeNotificationManager","options"],"sourceRoot":"../../../../../src","sources":["main/factories/infra/notification-manager-factory.ts"],"mappings":";;AACA,SAASA,iCAAiC,QAAQ,wDAAqD;AAEvG,OAAO,MAAMC,uBAAuB,GAClCC,OAAkD,IAC1B;EACxB,OAAO,IAAIF,iCAAiC,CAACE,OAAO,CAAC;AACvD,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { OfflineMutationQueue } from "../../../infra/index.js";
4
+ export const makeOfflineMutationQueue = (actions, storage, queryClient, isomorphicIdManager) => {
5
+ return new OfflineMutationQueue(actions, storage, queryClient, isomorphicIdManager);
6
+ };
7
+ //# sourceMappingURL=offline-mutation-queue-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["OfflineMutationQueue","makeOfflineMutationQueue","actions","storage","queryClient","isomorphicIdManager"],"sourceRoot":"../../../../../src","sources":["main/factories/infra/offline-mutation-queue-factory.ts"],"mappings":";;AAGA,SAEEA,oBAAoB,QAEf,yBAAgB;AAEvB,OAAO,MAAMC,wBAAwB,GAAGA,CACtCC,OAAuB,EACvBC,OAAgB,EAChBC,WAAwB,EACxBC,mBAAyC,KACtC;EACH,OAAO,IAAIL,oBAAoB,CAC7BE,OAAO,EACPC,OAAO,EACPC,WAAW,EACXC,mBACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { RNPPermissionManagerAdapter } from "../../../infra/index.js";
4
+ export const makePermissionManager = () => {
5
+ return new RNPPermissionManagerAdapter();
6
+ };
7
+ //# sourceMappingURL=permission-manager-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNPPermissionManagerAdapter","makePermissionManager"],"sourceRoot":"../../../../../src","sources":["main/factories/infra/permission-manager-factory.ts"],"mappings":";;AACA,SAASA,2BAA2B,QAAQ,yBAAgB;AAE5D,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAyB;EAC5D,OAAO,IAAID,2BAA2B,CAAC,CAAC;AAC1C,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ import { MMKVStorageAdapter } from "../../../infra/index.js";
4
+ export const makeStorage = (params = {
5
+ id: 'zuq',
6
+ encryptionKey: 'zuq-encryption-key'
7
+ }) => {
8
+ return new MMKVStorageAdapter(params);
9
+ };
10
+ //# sourceMappingURL=storage-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MMKVStorageAdapter","makeStorage","params","id","encryptionKey"],"sourceRoot":"../../../../../src","sources":["main/factories/infra/storage-factory.ts"],"mappings":";;AACA,SAASA,kBAAkB,QAAQ,yBAAgB;AAEnD,OAAO,MAAMC,WAAW,GAAGA,CACzBC,MAAiC,GAAG;EAClCC,EAAE,EAAE,KAAK;EACTC,aAAa,EAAE;AACjB,CAAC,KACW;EACZ,OAAO,IAAIJ,kBAAkB,CAACE,MAAM,CAAC;AACvC,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export * from "./remote-get-image-list-factory.js";
4
+ export * from "./remote-get-comment-list-factory.js";
5
+ export * from "./remote-send-diagnostics-factory.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["main/factories/use-cases/index.ts"],"mappings":";;AAAA,cAAc,oCAAiC;AAC/C,cAAc,sCAAmC;AACjD,cAAc,sCAAmC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { RemoteGetCommentList } from "../../../data/use-cases/index.js";
4
+ export const makeGetCommentList = (url, httpClient) => {
5
+ return new RemoteGetCommentList(url, httpClient);
6
+ };
7
+ //# sourceMappingURL=remote-get-comment-list-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RemoteGetCommentList","makeGetCommentList","url","httpClient"],"sourceRoot":"../../../../../src","sources":["main/factories/use-cases/remote-get-comment-list-factory.ts"],"mappings":";;AACA,SAASA,oBAAoB,QAAQ,kCAAyB;AAE9D,OAAO,MAAMC,kBAAkB,GAAGA,CAACC,GAAW,EAAEC,UAAsB,KAAK;EACzE,OAAO,IAAIH,oBAAoB,CAACE,GAAG,EAAEC,UAAU,CAAC;AAClD,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { RemoteGetImageList } from "../../../data/use-cases/index.js";
4
+ export const makeGetImageList = (url, httpClient) => {
5
+ return new RemoteGetImageList(url, httpClient);
6
+ };
7
+ //# sourceMappingURL=remote-get-image-list-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RemoteGetImageList","makeGetImageList","url","httpClient"],"sourceRoot":"../../../../../src","sources":["main/factories/use-cases/remote-get-image-list-factory.ts"],"mappings":";;AACA,SAASA,kBAAkB,QAAQ,kCAAyB;AAE5D,OAAO,MAAMC,gBAAgB,GAAGA,CAACC,GAAW,EAAEC,UAAsB,KAAK;EACvE,OAAO,IAAIH,kBAAkB,CAACE,GAAG,EAAEC,UAAU,CAAC;AAChD,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { RemoteSendDiagnostics } from "../../../data/use-cases/index.js";
4
+ export const makeRemoteSendDiagnostics = (url, httpClient, storage) => {
5
+ return new RemoteSendDiagnostics(url, httpClient, storage);
6
+ };
7
+ //# sourceMappingURL=remote-send-diagnostics-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RemoteSendDiagnostics","makeRemoteSendDiagnostics","url","httpClient","storage"],"sourceRoot":"../../../../../src","sources":["main/factories/use-cases/remote-send-diagnostics-factory.ts"],"mappings":";;AACA,SAASA,qBAAqB,QAAQ,kCAAyB;AAE/D,OAAO,MAAMC,yBAAyB,GAAGA,CACvCC,GAAW,EACXC,UAAsB,EACtBC,OAAgB,KACb;EACH,OAAO,IAAIJ,qBAAqB,CAACE,GAAG,EAAEC,UAAU,EAAEC,OAAO,CAAC;AAC5D,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}