@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
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Luis
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # @zuq/core
2
+
3
+ ZUQ core components and features common to all apps
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install @zuq/core react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-keyboard-controller react-native-permissions @notifee/react-native react-native-mmkv @react-native-community/netinfo react-native-uuid react-native-currency-input react-native-blob-util react-native-worklets
9
+ ```
10
+
11
+ ## Libraries setup
12
+
13
+ ### react-native-reanimated
14
+
15
+ Add react-native-reanimated/plugin plugin to your babel.config.js.
16
+
17
+ ```
18
+ module.exports = {
19
+ presets: [
20
+ ... // don't add it here :)
21
+ ],
22
+ plugins: [
23
+ ...
24
+ 'react-native-worklets/plugin',
25
+ ],
26
+ };
27
+ ```
28
+
29
+ ### react-native-permissions
30
+
31
+ #### iOS
32
+
33
+ 1. By default, no permissions are available. First, require the setup script in your Podfile:
34
+
35
+ ```
36
+ def node_require(script)
37
+ # Resolve script with node to allow for hoisting
38
+ require Pod::Executable.execute_command('node', ['-p',
39
+ "require.resolve(
40
+ '#{script}',
41
+ {paths: [process.argv[1]]},
42
+ )", __dir__]).strip
43
+ end
44
+
45
+ node_require('react-native/scripts/react_native_pods.rb')
46
+ node_require('react-native-permissions/scripts/setup.rb')
47
+ ```
48
+
49
+ 2. In the same Podfile, call setup_permissions with the permissions you need. Only the permissions specified here will be added:
50
+
51
+ ```ruby
52
+ platform :ios, min_ios_version_supported
53
+ prepare_react_native_project!
54
+
55
+ setup_permissions([
56
+ 'Camera',
57
+ 'Notifications',
58
+ ])
59
+ ```
60
+
61
+ 3. Then execute pod install in your ios directory (📌 Note that it must be re-executed each time you update this config).
62
+ 4. Finally, add the corresponding permissions usage descriptions to your Info.plist. For example:
63
+
64
+ ```xml
65
+ <?xml version="1.0" encoding="UTF-8"?>
66
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
67
+ <plist version="1.0">
68
+ <dict>
69
+
70
+ <!-- 🚨 Keep only the permissions specified in `setup_permissions` 🚨 -->
71
+
72
+ <key>NSCameraUsageDescription</key>
73
+ <string>[REASON]</string>
74
+ <key>NSRemindersFullAccessUsageDescription</key>
75
+ <string>[REASON]</string>
76
+
77
+ <!-- … -->
78
+
79
+ </dict>
80
+ </plist>
81
+ ```
82
+
83
+ #### Android
84
+
85
+ 1. Add all wanted permissions to your app android/app/src/main/AndroidManifest.xml file:
86
+
87
+ ```xml
88
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
89
+
90
+ <uses-permission android:name="android.permission.CAMERA" />
91
+ <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
92
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
93
+
94
+ </manifest>
95
+ ```
96
+
97
+ ## License
98
+
99
+ MIT
Binary file
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ export class HttpClientError extends Error {
4
+ name = 'HttpClientError';
5
+ constructor(error) {
6
+ super(`[HttpClient]: error on ${error.method} with url: ${error.url}`);
7
+ this.url = error.url;
8
+ this.method = error.method;
9
+ this.body = error.body;
10
+ this.response = error.response;
11
+ this.config = error.config;
12
+ }
13
+ }
14
+ //# sourceMappingURL=http-client-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HttpClientError","Error","name","constructor","error","method","url","body","response","config"],"sourceRoot":"../../../../src","sources":["data/errors/http-client-error.ts"],"mappings":";;AAEA,OAAO,MAAMA,eAAe,SAAYC,KAAK,CAAC;EAC5BC,IAAI,GAAG,iBAAiB;EAWxCC,WAAWA,CAACC,KAA0B,EAAE;IACtC,KAAK,CAAC,0BAA0BA,KAAK,CAACC,MAAM,cAAcD,KAAK,CAACE,GAAG,EAAE,CAAC;IACtE,IAAI,CAACA,GAAG,GAAGF,KAAK,CAACE,GAAG;IACpB,IAAI,CAACD,MAAM,GAAGD,KAAK,CAACC,MAAM;IAC1B,IAAI,CAACE,IAAI,GAAGH,KAAK,CAACG,IAAI;IACtB,IAAI,CAACC,QAAQ,GAAGJ,KAAK,CAACI,QAAQ;IAC9B,IAAI,CAACC,MAAM,GAAGL,KAAK,CAACK,MAAM;EAC5B;AACF","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export * from "./unsupported-platform.js";
4
+ export * from "./http-client-error.js";
5
+ export * from "./save-file-error.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["data/errors/index.ts"],"mappings":";;AAAA,cAAc,2BAAwB;AACtC,cAAc,wBAAqB;AACnC,cAAc,sBAAmB","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export class SaveFileError extends Error {
4
+ constructor(message) {
5
+ super(message);
6
+ this.name = 'SaveFileError';
7
+ }
8
+ }
9
+ //# sourceMappingURL=save-file-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SaveFileError","Error","constructor","message","name"],"sourceRoot":"../../../../src","sources":["data/errors/save-file-error.ts"],"mappings":";;AAAA,OAAO,MAAMA,aAAa,SAASC,KAAK,CAAC;EACvCC,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAACA,OAAO,CAAC;IACd,IAAI,CAACC,IAAI,GAAG,eAAe;EAC7B;AACF","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export class UnsupportedPlatform extends Error {
4
+ constructor() {
5
+ super('Plataforma não suportada');
6
+ this.name = 'UnsupportedPlatform';
7
+ }
8
+ }
9
+ //# sourceMappingURL=unsupported-platform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["UnsupportedPlatform","Error","constructor","name"],"sourceRoot":"../../../../src","sources":["data/errors/unsupported-platform.ts"],"mappings":";;AAAA,OAAO,MAAMA,mBAAmB,SAASC,KAAK,CAAC;EAC7CC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,0BAA0B,CAAC;IACjC,IAAI,CAACC,IAAI,GAAG,qBAAqB;EACnC;AACF","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export * from "./remote-user-model.js";
4
+ export * from "./remote-get-image-list-model.js";
5
+ export * from "./remote-get-comment-list-model.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["data/models/index.ts"],"mappings":";;AAAA,cAAc,wBAAqB;AACnC,cAAc,kCAA+B;AAC7C,cAAc,oCAAiC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=remote-get-comment-list-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["data/models/remote-get-comment-list-model.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=remote-get-image-list-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["data/models/remote-get-image-list-model.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=remote-user-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["data/models/remote-user-model.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=cookie-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["data/protocols/cookie-manager.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let DownloadManager;
4
+ //# sourceMappingURL=download-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DownloadManager"],"sourceRoot":"../../../../src","sources":["data/protocols/download-manager.ts"],"mappings":";;WAIiBA,eAAe","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ export let HttpClient;
4
+ (function (_HttpClient) {
5
+ let Method = /*#__PURE__*/function (Method) {
6
+ Method["get"] = "get";
7
+ Method["post"] = "post";
8
+ Method["put"] = "put";
9
+ Method["patch"] = "patch";
10
+ Method["delete"] = "delete";
11
+ return Method;
12
+ }({});
13
+ _HttpClient.Method = Method;
14
+ let StatusCode = /*#__PURE__*/function (StatusCode) {
15
+ StatusCode[StatusCode["ok"] = 200] = "ok";
16
+ StatusCode[StatusCode["noContent"] = 204] = "noContent";
17
+ StatusCode[StatusCode["badRequest"] = 400] = "badRequest";
18
+ StatusCode[StatusCode["unauthorized"] = 401] = "unauthorized";
19
+ StatusCode[StatusCode["forbidden"] = 403] = "forbidden";
20
+ StatusCode[StatusCode["notFound"] = 404] = "notFound";
21
+ StatusCode[StatusCode["serverError"] = 500] = "serverError";
22
+ return StatusCode;
23
+ }({});
24
+ _HttpClient.StatusCode = StatusCode;
25
+ })(HttpClient || (HttpClient = {}));
26
+ //# sourceMappingURL=http-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HttpClient","_HttpClient","Method","StatusCode"],"sourceRoot":"../../../../src","sources":["data/protocols/http-client.ts"],"mappings":";;WA+BiBA,UAAU;AAAA,WAAAC,WAAA;EAAA,IACbC,MAAM,0BAANA,MAAM;IAANA,MAAM;IAANA,MAAM;IAANA,MAAM;IAANA,MAAM;IAANA,MAAM;IAAA,OAANA,MAAM;EAAA;EAAAD,WAAA,CAAAC,MAAA,GAAAA,MAAA;EAAA,IAiBNC,UAAU,0BAAVA,UAAU;IAAVA,UAAU,CAAVA,UAAU;IAAVA,UAAU,CAAVA,UAAU;IAAVA,UAAU,CAAVA,UAAU;IAAVA,UAAU,CAAVA,UAAU;IAAVA,UAAU,CAAVA,UAAU;IAAVA,UAAU,CAAVA,UAAU;IAAVA,UAAU,CAAVA,UAAU;IAAA,OAAVA,UAAU;EAAA;EAAAF,WAAA,CAAAE,UAAA,GAAAA,UAAA;AAAA,GAlBPH,UAAU,KAAVA,UAAU","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export * from "./permission-manager.js";
4
+ export * from "./notification-manager.js";
5
+ export * from "./http-client.js";
6
+ export * from "./storage.js";
7
+ export * from "./download-manager.js";
8
+ export * from "./cookie-manager.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["data/protocols/index.ts"],"mappings":";;AAAA,cAAc,yBAAsB;AACpC,cAAc,2BAAwB;AACtC,cAAc,kBAAe;AAC7B,cAAc,cAAW;AACzB,cAAc,uBAAoB;AAClC,cAAc,qBAAkB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let NotificationManager;
4
+ //# sourceMappingURL=notification-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NotificationManager"],"sourceRoot":"../../../../src","sources":["data/protocols/notification-manager.ts"],"mappings":";;WAMiBA,mBAAmB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let PermissionManager;
4
+ //# sourceMappingURL=permission-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["PermissionManager"],"sourceRoot":"../../../../src","sources":["data/protocols/permission-manager.ts"],"mappings":";;WAwBiBA,iBAAiB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let Storage;
4
+ //# sourceMappingURL=storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Storage"],"sourceRoot":"../../../../src","sources":["data/protocols/storage.ts"],"mappings":";;WASiBA,OAAO","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export * from "./remote-get-comment-list.js";
4
+ export * from "./remote-get-image-list.js";
5
+ export * from "./remote-send-diagnostics.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["data/use-cases/index.ts"],"mappings":";;AAAA,cAAc,8BAA2B;AACzC,cAAc,4BAAyB;AACvC,cAAc,8BAA2B","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ export class RemoteGetCommentList {
4
+ constructor(url, httpClient) {
5
+ this.url = url;
6
+ this.httpClient = httpClient;
7
+ }
8
+ async get(params) {
9
+ const response = await this.httpClient.get(this.url, {
10
+ params: {
11
+ ...params,
12
+ type: 'COMMENT'
13
+ }
14
+ });
15
+ if (!response.data) return [];
16
+ return response.data.map(value => {
17
+ return {
18
+ id: value.id,
19
+ comment: value.comment ?? '',
20
+ date: value.date,
21
+ user: {
22
+ id: value.userId,
23
+ name: value.userName
24
+ }
25
+ };
26
+ });
27
+ }
28
+ }
29
+ //# sourceMappingURL=remote-get-comment-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RemoteGetCommentList","constructor","url","httpClient","get","params","response","type","data","map","value","id","comment","date","user","userId","name","userName"],"sourceRoot":"../../../../src","sources":["data/use-cases/remote-get-comment-list.ts"],"mappings":";;AAIA,OAAO,MAAMA,oBAAoB,CAA2B;EAC1DC,WAAWA,CACQC,GAAW,EACXC,UAAsB,EACvC;IAAA,KAFiBD,GAAW,GAAXA,GAAW;IAAA,KACXC,UAAsB,GAAtBA,UAAsB;EACtC;EAEH,MAAMC,GAAGA,CAACC,MAA6B,EAAyB;IAC9D,MAAMC,QAAQ,GAAG,MAAM,IAAI,CAACH,UAAU,CAACC,GAAG,CACxC,IAAI,CAACF,GAAG,EACR;MACEG,MAAM,EAAE;QACN,GAAGA,MAAM;QACTE,IAAI,EAAE;MACR;IACF,CACF,CAAC;IACD,IAAI,CAACD,QAAQ,CAACE,IAAI,EAAE,OAAO,EAAE;IAC7B,OAAOF,QAAQ,CAACE,IAAI,CAACC,GAAG,CAAEC,KAAK,IAAK;MAClC,OAAO;QACLC,EAAE,EAAED,KAAK,CAACC,EAAE;QACZC,OAAO,EAAEF,KAAK,CAACE,OAAO,IAAI,EAAE;QAC5BC,IAAI,EAAEH,KAAK,CAACG,IAAI;QAChBC,IAAI,EAAE;UACJH,EAAE,EAAED,KAAK,CAACK,MAAM;UAChBC,IAAI,EAAEN,KAAK,CAACO;QACd;MACF,CAAC;IACH,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ export class RemoteGetImageList {
4
+ constructor(url, httpClient) {
5
+ this.url = url;
6
+ this.httpClient = httpClient;
7
+ }
8
+ getImageExtension = filename => {
9
+ const parts = filename.split('.');
10
+ return parts[parts.length - 1] ?? 'png';
11
+ };
12
+ async get(params) {
13
+ const response = await this.httpClient.get(this.url, {
14
+ params: {
15
+ ...params,
16
+ type: 'PHOTO'
17
+ }
18
+ });
19
+ if (!response.data) return [];
20
+ const valid = response.data.filter(image => image.fileName && image.fileName.split('.').length > 0);
21
+ return valid.map(image => {
22
+ return {
23
+ id: image.id,
24
+ name: image.fileName,
25
+ type: `image/${this.getImageExtension(image.fileName)}`,
26
+ main: image.main,
27
+ date: image.date
28
+ };
29
+ });
30
+ }
31
+ }
32
+ //# sourceMappingURL=remote-get-image-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RemoteGetImageList","constructor","url","httpClient","getImageExtension","filename","parts","split","length","get","params","response","type","data","valid","filter","image","fileName","map","id","name","main","date"],"sourceRoot":"../../../../src","sources":["data/use-cases/remote-get-image-list.ts"],"mappings":";;AAIA,OAAO,MAAMA,kBAAkB,CAAyB;EACtDC,WAAWA,CACQC,GAAW,EACXC,UAAsB,EACvC;IAAA,KAFiBD,GAAW,GAAXA,GAAW;IAAA,KACXC,UAAsB,GAAtBA,UAAsB;EACtC;EAEKC,iBAAiB,GAAIC,QAAgB,IAAK;IAChD,MAAMC,KAAK,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IACjC,OAAOD,KAAK,CAACA,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC,IAAI,KAAK;EACzC,CAAC;EAED,MAAMC,GAAGA,CAACC,MAA2B,EAAuB;IAC1D,MAAMC,QAAQ,GAAG,MAAM,IAAI,CAACR,UAAU,CAACM,GAAG,CACxC,IAAI,CAACP,GAAG,EACR;MACEQ,MAAM,EAAE;QACN,GAAGA,MAAM;QACTE,IAAI,EAAE;MACR;IACF,CACF,CAAC;IACD,IAAI,CAACD,QAAQ,CAACE,IAAI,EAAE,OAAO,EAAE;IAC7B,MAAMC,KAAK,GAAGH,QAAQ,CAACE,IAAI,CAACE,MAAM,CAC/BC,KAAK,IAAKA,KAAK,CAACC,QAAQ,IAAID,KAAK,CAACC,QAAQ,CAACV,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,GAAG,CAClE,CAAC;IACD,OAAOM,KAAK,CAACI,GAAG,CAAEF,KAAK,IAAK;MAC1B,OAAO;QACLG,EAAE,EAAEH,KAAK,CAACG,EAAE;QACZC,IAAI,EAAEJ,KAAK,CAACC,QAAQ;QACpBL,IAAI,EAAE,SAAS,IAAI,CAACR,iBAAiB,CAACY,KAAK,CAACC,QAAQ,CAAC,EAAE;QACvDI,IAAI,EAAEL,KAAK,CAACK,IAAI;QAChBC,IAAI,EAAEN,KAAK,CAACM;MACd,CAAC;IACH,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ export class RemoteSendDiagnostics {
4
+ constructor(url, httpClient, storage) {
5
+ this.url = url;
6
+ this.httpClient = httpClient;
7
+ this.storage = storage;
8
+ }
9
+ async send(params) {
10
+ const storage = this.storage.get({
11
+ exclude: ['__auth', 'OfflineQueue']
12
+ });
13
+ const data = {
14
+ storage: JSON.stringify(storage),
15
+ ...params
16
+ };
17
+ return await this.httpClient.post(this.url, data);
18
+ }
19
+ }
20
+ //# sourceMappingURL=remote-send-diagnostics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RemoteSendDiagnostics","constructor","url","httpClient","storage","send","params","get","exclude","data","JSON","stringify","post"],"sourceRoot":"../../../../src","sources":["data/use-cases/remote-send-diagnostics.ts"],"mappings":";;AAIA,OAAO,MAAMA,qBAAqB,CAA4B;EAC5DC,WAAWA,CACQC,GAAW,EACXC,UAAsB,EACtBC,OAAgB,EACjC;IAAA,KAHiBF,GAAW,GAAXA,GAAW;IAAA,KACXC,UAAsB,GAAtBA,UAAsB;IAAA,KACtBC,OAAgB,GAAhBA,OAAgB;EAChC;EAEH,MAAMC,IAAIA,CAACC,MAA8B,EAAgB;IACvD,MAAMF,OAAO,GAAG,IAAI,CAACA,OAAO,CAACG,GAAG,CAAC;MAAEC,OAAO,EAAE,CAAC,QAAQ,EAAE,cAAc;IAAE,CAAC,CAAC;IACzE,MAAMC,IAAI,GAAG;MACXL,OAAO,EAAEM,IAAI,CAACC,SAAS,CAACP,OAAO,CAAC;MAChC,GAAGE;IACL,CAAC;IACD,OAAO,MAAM,IAAI,CAACH,UAAU,CAACS,IAAI,CAAC,IAAI,CAACV,GAAG,EAAEO,IAAI,CAAC;EACnD;AACF","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export class AuthenticationExpiredError extends Error {
4
+ constructor() {
5
+ super('Sessão expirada. Faça login novamente.');
6
+ this.name = 'AuthenticationExpiredError';
7
+ }
8
+ }
9
+ //# sourceMappingURL=authentication-expired-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AuthenticationExpiredError","Error","constructor","name"],"sourceRoot":"../../../../src","sources":["domain/errors/authentication-expired-error.ts"],"mappings":";;AAAA,OAAO,MAAMA,0BAA0B,SAASC,KAAK,CAAC;EACpDC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,wCAAwC,CAAC;IAC/C,IAAI,CAACC,IAAI,GAAG,4BAA4B;EAC1C;AACF","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ export * from "./internal-server-error.js";
4
+ export * from "./invalid-credentials-error.js";
5
+ export * from "./no-app-permission-error.js";
6
+ export * from "./authentication-expired-error.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["domain/errors/index.ts"],"mappings":";;AAAA,cAAc,4BAAyB;AACvC,cAAc,gCAA6B;AAC3C,cAAc,8BAA2B;AACzC,cAAc,mCAAgC","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export class InternalServerError extends Error {
4
+ constructor() {
5
+ super('Erro inesperado no servidor.');
6
+ this.name = 'InternalServerError';
7
+ }
8
+ }
9
+ //# sourceMappingURL=internal-server-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["InternalServerError","Error","constructor","name"],"sourceRoot":"../../../../src","sources":["domain/errors/internal-server-error.ts"],"mappings":";;AAAA,OAAO,MAAMA,mBAAmB,SAASC,KAAK,CAAC;EAC7CC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,8BAA8B,CAAC;IACrC,IAAI,CAACC,IAAI,GAAG,qBAAqB;EACnC;AACF","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export class InvalidCredentialsError extends Error {
4
+ constructor() {
5
+ super('Usuário ou senha incorretos.');
6
+ this.name = 'InvalidCredentialsError';
7
+ }
8
+ }
9
+ //# sourceMappingURL=invalid-credentials-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["InvalidCredentialsError","Error","constructor","name"],"sourceRoot":"../../../../src","sources":["domain/errors/invalid-credentials-error.ts"],"mappings":";;AAAA,OAAO,MAAMA,uBAAuB,SAASC,KAAK,CAAC;EACjDC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,8BAA8B,CAAC;IACrC,IAAI,CAACC,IAAI,GAAG,yBAAyB;EACvC;AACF","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export class NoAppPermissionError extends Error {
4
+ constructor() {
5
+ super('O usuário não tem permissão de usar o app');
6
+ this.name = 'NoAppPermissionError';
7
+ }
8
+ }
9
+ //# sourceMappingURL=no-app-permission-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NoAppPermissionError","Error","constructor","name"],"sourceRoot":"../../../../src","sources":["domain/errors/no-app-permission-error.ts"],"mappings":";;AAAA,OAAO,MAAMA,oBAAoB,SAASC,KAAK,CAAC;EAC9CC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,2CAA2C,CAAC;IAClD,IAAI,CAACC,IAAI,GAAG,sBAAsB;EACpC;AACF","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=get-comment-list-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["domain/models/get-comment-list-model.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=get-image-list-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["domain/models/get-image-list-model.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export * from "./user-model.js";
4
+ export * from "./get-image-list-model.js";
5
+ export * from "./get-comment-list-model.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["domain/models/index.ts"],"mappings":";;AAAA,cAAc,iBAAc;AAC5B,cAAc,2BAAwB;AACtC,cAAc,6BAA0B","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=user-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["domain/models/user-model.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let GetCommentList;
4
+ //# sourceMappingURL=get-comment-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetCommentList"],"sourceRoot":"../../../../src","sources":["domain/use-cases/get-comment-list.ts"],"mappings":";;WAMiBA,cAAc","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let GetImageList;
4
+ //# sourceMappingURL=get-image-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetImageList"],"sourceRoot":"../../../../src","sources":["domain/use-cases/get-image-list.ts"],"mappings":";;WAMiBA,YAAY","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export * from "./user-authentication.js";
4
+ export * from "./user-logout.js";
5
+ export * from "./get-image-list.js";
6
+ export * from "./get-comment-list.js";
7
+ export * from "./record-request.js";
8
+ export * from "./send-diagnostics.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["domain/use-cases/index.ts"],"mappings":";;AAAA,cAAc,0BAAuB;AACrC,cAAc,kBAAe;AAC7B,cAAc,qBAAkB;AAChC,cAAc,uBAAoB;AAClC,cAAc,qBAAkB;AAChC,cAAc,uBAAoB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let RecordRequest;
4
+ //# sourceMappingURL=record-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RecordRequest"],"sourceRoot":"../../../../src","sources":["domain/use-cases/record-request.ts"],"mappings":";;WAIiBA,aAAa","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let SendDiagnostics;
4
+ //# sourceMappingURL=send-diagnostics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SendDiagnostics"],"sourceRoot":"../../../../src","sources":["domain/use-cases/send-diagnostics.ts"],"mappings":";;WAIiBA,eAAe","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let UserAuthentication;
4
+ //# sourceMappingURL=user-authentication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["UserAuthentication"],"sourceRoot":"../../../../src","sources":["domain/use-cases/user-authentication.ts"],"mappings":";;WAQiBA,kBAAkB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export let UserLogout;
4
+ //# sourceMappingURL=user-logout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["UserLogout"],"sourceRoot":"../../../../src","sources":["domain/use-cases/user-logout.ts"],"mappings":";;WAIiBA,UAAU","ignoreList":[]}