@webiny/app-trash-bin 6.0.0-alpha.5 → 6.0.0-rc.0

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 (384) hide show
  1. package/Domain/Models/TrashBinItem/ITrashBinItemMapper.d.ts +1 -1
  2. package/Domain/Models/TrashBinItem/ITrashBinItemMapper.js.map +1 -1
  3. package/Domain/Models/TrashBinItem/TrashBinItem.d.ts +1 -1
  4. package/Domain/Models/TrashBinItem/TrashBinItem.js.map +1 -1
  5. package/Domain/Models/TrashBinItem/index.d.ts +2 -2
  6. package/Domain/Models/TrashBinItem/index.js +1 -2
  7. package/Domain/Models/TrashBinItem/index.js.map +1 -1
  8. package/Domain/Models/index.d.ts +1 -1
  9. package/Domain/Models/index.js +1 -1
  10. package/Domain/Models/index.js.map +1 -1
  11. package/Domain/Repositories/Search/SearchRepository.d.ts +1 -1
  12. package/Domain/Repositories/Search/SearchRepository.js.map +1 -1
  13. package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +1 -1
  14. package/Domain/Repositories/Search/SearchRepositoryFactory.js +1 -1
  15. package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -1
  16. package/Domain/Repositories/Search/index.d.ts +3 -3
  17. package/Domain/Repositories/Search/index.js +2 -3
  18. package/Domain/Repositories/Search/index.js.map +1 -1
  19. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +1 -1
  20. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +1 -1
  21. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +2 -2
  22. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -1
  23. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +1 -1
  24. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +1 -1
  25. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -1
  26. package/Domain/Repositories/SelectedItems/index.d.ts +3 -3
  27. package/Domain/Repositories/SelectedItems/index.js +2 -3
  28. package/Domain/Repositories/SelectedItems/index.js.map +1 -1
  29. package/Domain/Repositories/Sorting/index.d.ts +1 -1
  30. package/Domain/Repositories/Sorting/index.js +1 -1
  31. package/Domain/Repositories/Sorting/index.js.map +1 -1
  32. package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.d.ts +2 -2
  33. package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.js.map +1 -1
  34. package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.d.ts +1 -1
  35. package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.js.map +1 -1
  36. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.d.ts +5 -5
  37. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js +2 -2
  38. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js.map +1 -1
  39. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.d.ts +3 -3
  40. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js +1 -1
  41. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js.map +1 -1
  42. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.d.ts +4 -4
  43. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.js +1 -1
  44. package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.js.map +1 -1
  45. package/Domain/Repositories/TrashBinItems/index.d.ts +5 -5
  46. package/Domain/Repositories/TrashBinItems/index.js +4 -5
  47. package/Domain/Repositories/TrashBinItems/index.js.map +1 -1
  48. package/Domain/Repositories/index.d.ts +5 -5
  49. package/Domain/Repositories/index.js +5 -5
  50. package/Domain/Repositories/index.js.map +1 -1
  51. package/Domain/index.d.ts +2 -2
  52. package/Domain/index.js +2 -2
  53. package/Domain/index.js.map +1 -1
  54. package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.d.ts +1 -1
  55. package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.js.map +1 -1
  56. package/Gateways/TrashBinBulkActions/index.d.ts +1 -1
  57. package/Gateways/TrashBinBulkActions/index.js +1 -1
  58. package/Gateways/TrashBinBulkActions/index.js.map +1 -1
  59. package/Gateways/TrashBinDeleteItem/index.d.ts +1 -1
  60. package/Gateways/TrashBinDeleteItem/index.js +1 -1
  61. package/Gateways/TrashBinDeleteItem/index.js.map +1 -1
  62. package/Gateways/TrashBinListItems/ITrashBinListGateway.d.ts +1 -1
  63. package/Gateways/TrashBinListItems/ITrashBinListGateway.js.map +1 -1
  64. package/Gateways/TrashBinListItems/index.d.ts +1 -1
  65. package/Gateways/TrashBinListItems/index.js +1 -1
  66. package/Gateways/TrashBinListItems/index.js.map +1 -1
  67. package/Gateways/TrashBinRestoreItem/index.d.ts +1 -1
  68. package/Gateways/TrashBinRestoreItem/index.js +1 -1
  69. package/Gateways/TrashBinRestoreItem/index.js.map +1 -1
  70. package/Gateways/index.d.ts +4 -4
  71. package/Gateways/index.js +1 -4
  72. package/Gateways/index.js.map +1 -1
  73. package/Presentation/TrashBin/TrashBin.d.ts +2 -2
  74. package/Presentation/TrashBin/TrashBin.js +5 -5
  75. package/Presentation/TrashBin/TrashBin.js.map +1 -1
  76. package/Presentation/TrashBin/TrashBin.test.js +18 -46
  77. package/Presentation/TrashBin/TrashBin.test.js.map +1 -1
  78. package/Presentation/TrashBin/TrashBinControllers.d.ts +2 -2
  79. package/Presentation/TrashBin/TrashBinControllers.js +2 -2
  80. package/Presentation/TrashBin/TrashBinControllers.js.map +1 -1
  81. package/Presentation/TrashBin/TrashBinPresenter.d.ts +4 -4
  82. package/Presentation/TrashBin/TrashBinPresenter.js +2 -2
  83. package/Presentation/TrashBin/TrashBinPresenter.js.map +1 -1
  84. package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.d.ts +3 -3
  85. package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.js.map +1 -1
  86. package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.d.ts +1 -1
  87. package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.js.map +1 -1
  88. package/Presentation/TrashBin/controllers/BulkAction/index.d.ts +2 -2
  89. package/Presentation/TrashBin/controllers/BulkAction/index.js +1 -2
  90. package/Presentation/TrashBin/controllers/BulkAction/index.js.map +1 -1
  91. package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.d.ts +2 -2
  92. package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.js.map +1 -1
  93. package/Presentation/TrashBin/controllers/DeleteItem/index.d.ts +2 -2
  94. package/Presentation/TrashBin/controllers/DeleteItem/index.js +1 -2
  95. package/Presentation/TrashBin/controllers/DeleteItem/index.js.map +1 -1
  96. package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.d.ts +4 -4
  97. package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.js +1 -1
  98. package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.js.map +1 -1
  99. package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.d.ts +1 -1
  100. package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.js.map +1 -1
  101. package/Presentation/TrashBin/controllers/GetRestoredItemById/index.d.ts +2 -2
  102. package/Presentation/TrashBin/controllers/GetRestoredItemById/index.js +1 -2
  103. package/Presentation/TrashBin/controllers/GetRestoredItemById/index.js.map +1 -1
  104. package/Presentation/TrashBin/controllers/ListItems/ListItemsController.d.ts +2 -2
  105. package/Presentation/TrashBin/controllers/ListItems/ListItemsController.js.map +1 -1
  106. package/Presentation/TrashBin/controllers/ListItems/index.d.ts +2 -2
  107. package/Presentation/TrashBin/controllers/ListItems/index.js +1 -2
  108. package/Presentation/TrashBin/controllers/ListItems/index.js.map +1 -1
  109. package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.d.ts +2 -2
  110. package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -1
  111. package/Presentation/TrashBin/controllers/ListMoreItems/index.d.ts +2 -2
  112. package/Presentation/TrashBin/controllers/ListMoreItems/index.js +1 -2
  113. package/Presentation/TrashBin/controllers/ListMoreItems/index.js.map +1 -1
  114. package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.d.ts +2 -2
  115. package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.js.map +1 -1
  116. package/Presentation/TrashBin/controllers/RestoreItem/index.d.ts +2 -2
  117. package/Presentation/TrashBin/controllers/RestoreItem/index.js +1 -2
  118. package/Presentation/TrashBin/controllers/RestoreItem/index.js.map +1 -1
  119. package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.d.ts +2 -2
  120. package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.js.map +1 -1
  121. package/Presentation/TrashBin/controllers/SearchItems/index.d.ts +2 -2
  122. package/Presentation/TrashBin/controllers/SearchItems/index.js +1 -2
  123. package/Presentation/TrashBin/controllers/SearchItems/index.js.map +1 -1
  124. package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.d.ts +2 -2
  125. package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -1
  126. package/Presentation/TrashBin/controllers/SelectAllItems/index.d.ts +2 -2
  127. package/Presentation/TrashBin/controllers/SelectAllItems/index.js +1 -2
  128. package/Presentation/TrashBin/controllers/SelectAllItems/index.js.map +1 -1
  129. package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.d.ts +1 -1
  130. package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.js.map +1 -1
  131. package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.d.ts +3 -3
  132. package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.js +1 -1
  133. package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.js.map +1 -1
  134. package/Presentation/TrashBin/controllers/SelectItems/index.d.ts +2 -2
  135. package/Presentation/TrashBin/controllers/SelectItems/index.js +1 -2
  136. package/Presentation/TrashBin/controllers/SelectItems/index.js.map +1 -1
  137. package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.d.ts +1 -1
  138. package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.js.map +1 -1
  139. package/Presentation/TrashBin/controllers/SortItems/SortItemsController.d.ts +3 -3
  140. package/Presentation/TrashBin/controllers/SortItems/SortItemsController.js.map +1 -1
  141. package/Presentation/TrashBin/controllers/SortItems/index.d.ts +2 -2
  142. package/Presentation/TrashBin/controllers/SortItems/index.js +1 -2
  143. package/Presentation/TrashBin/controllers/SortItems/index.js.map +1 -1
  144. package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +2 -2
  145. package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -1
  146. package/Presentation/TrashBin/controllers/UnselectAllItems/index.d.ts +2 -2
  147. package/Presentation/TrashBin/controllers/UnselectAllItems/index.js +1 -2
  148. package/Presentation/TrashBin/controllers/UnselectAllItems/index.js.map +1 -1
  149. package/Presentation/TrashBin/controllers/index.d.ts +11 -11
  150. package/Presentation/TrashBin/controllers/index.js +11 -11
  151. package/Presentation/TrashBin/controllers/index.js.map +1 -1
  152. package/Presentation/TrashBin/index.d.ts +1 -1
  153. package/Presentation/TrashBin/index.js +1 -1
  154. package/Presentation/TrashBin/index.js.map +1 -1
  155. package/Presentation/TrashBinConfigs/TrashBinConfigs.js +5 -5
  156. package/Presentation/TrashBinConfigs/TrashBinConfigs.js.map +1 -1
  157. package/Presentation/TrashBinConfigs/index.d.ts +1 -1
  158. package/Presentation/TrashBinConfigs/index.js +1 -1
  159. package/Presentation/TrashBinConfigs/index.js.map +1 -1
  160. package/Presentation/TrashBinRenderer/TrashBinRenderer.d.ts +2 -2
  161. package/Presentation/TrashBinRenderer/TrashBinRenderer.js +6 -6
  162. package/Presentation/TrashBinRenderer/TrashBinRenderer.js.map +1 -1
  163. package/Presentation/TrashBinRenderer/index.d.ts +1 -1
  164. package/Presentation/TrashBinRenderer/index.js +1 -1
  165. package/Presentation/TrashBinRenderer/index.js.map +1 -1
  166. package/Presentation/abstractions/ITrashBinControllers.d.ts +1 -1
  167. package/Presentation/abstractions/ITrashBinControllers.js.map +1 -1
  168. package/Presentation/abstractions/ITrashBinPresenter.d.ts +2 -2
  169. package/Presentation/abstractions/ITrashBinPresenter.js.map +1 -1
  170. package/Presentation/abstractions/index.d.ts +2 -2
  171. package/Presentation/abstractions/index.js +1 -2
  172. package/Presentation/abstractions/index.js.map +1 -1
  173. package/Presentation/components/Actions/DeleteItem/DeleteItem.js +3 -3
  174. package/Presentation/components/Actions/DeleteItem/DeleteItem.js.map +1 -1
  175. package/Presentation/components/Actions/DeleteItem/index.d.ts +1 -1
  176. package/Presentation/components/Actions/DeleteItem/index.js +1 -1
  177. package/Presentation/components/Actions/DeleteItem/index.js.map +1 -1
  178. package/Presentation/components/Actions/RestoreItem/RestoreItem.js +2 -2
  179. package/Presentation/components/Actions/RestoreItem/RestoreItem.js.map +1 -1
  180. package/Presentation/components/Actions/RestoreItem/index.d.ts +1 -1
  181. package/Presentation/components/Actions/RestoreItem/index.js +1 -1
  182. package/Presentation/components/Actions/RestoreItem/index.js.map +1 -1
  183. package/Presentation/components/Actions/index.d.ts +2 -2
  184. package/Presentation/components/Actions/index.js +2 -2
  185. package/Presentation/components/Actions/index.js.map +1 -1
  186. package/Presentation/components/BottomInfoBar/BottomInfoBar.js +6 -6
  187. package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
  188. package/Presentation/components/BottomInfoBar/ListMeta.js +1 -1
  189. package/Presentation/components/BottomInfoBar/ListMeta.js.map +1 -1
  190. package/Presentation/components/BottomInfoBar/ListStatus.js +2 -2
  191. package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -1
  192. package/Presentation/components/BottomInfoBar/index.d.ts +1 -1
  193. package/Presentation/components/BottomInfoBar/index.js +1 -1
  194. package/Presentation/components/BottomInfoBar/index.js.map +1 -1
  195. package/Presentation/components/BulkActions/BulkActions/BulkActions.js +7 -7
  196. package/Presentation/components/BulkActions/BulkActions/BulkActions.js.map +1 -1
  197. package/Presentation/components/BulkActions/BulkActions/index.d.ts +1 -1
  198. package/Presentation/components/BulkActions/BulkActions/index.js +1 -1
  199. package/Presentation/components/BulkActions/BulkActions/index.js.map +1 -1
  200. package/Presentation/components/BulkActions/DeleteItems/DeleteItems.js +3 -3
  201. package/Presentation/components/BulkActions/DeleteItems/DeleteItems.js.map +1 -1
  202. package/Presentation/components/BulkActions/DeleteItems/index.d.ts +1 -1
  203. package/Presentation/components/BulkActions/DeleteItems/index.js +1 -1
  204. package/Presentation/components/BulkActions/DeleteItems/index.js.map +1 -1
  205. package/Presentation/components/BulkActions/RestoreItems/RestoreItems.js +4 -4
  206. package/Presentation/components/BulkActions/RestoreItems/RestoreItems.js.map +1 -1
  207. package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.js +2 -2
  208. package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.js.map +1 -1
  209. package/Presentation/components/BulkActions/RestoreItems/index.d.ts +1 -1
  210. package/Presentation/components/BulkActions/RestoreItems/index.js +1 -1
  211. package/Presentation/components/BulkActions/RestoreItems/index.js.map +1 -1
  212. package/Presentation/components/BulkActions/index.d.ts +3 -3
  213. package/Presentation/components/BulkActions/index.js +3 -3
  214. package/Presentation/components/BulkActions/index.js.map +1 -1
  215. package/Presentation/components/Cells/CellActions/CellActions.js +5 -6
  216. package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -1
  217. package/Presentation/components/Cells/CellActions/index.d.ts +1 -1
  218. package/Presentation/components/Cells/CellActions/index.js +1 -1
  219. package/Presentation/components/Cells/CellActions/index.js.map +1 -1
  220. package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.js +4 -1
  221. package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.js.map +1 -1
  222. package/Presentation/components/Cells/CellCreatedBy/index.d.ts +1 -1
  223. package/Presentation/components/Cells/CellCreatedBy/index.js +1 -1
  224. package/Presentation/components/Cells/CellCreatedBy/index.js.map +1 -1
  225. package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.js +4 -1
  226. package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.js.map +1 -1
  227. package/Presentation/components/Cells/CellDeletedBy/index.d.ts +1 -1
  228. package/Presentation/components/Cells/CellDeletedBy/index.js +1 -1
  229. package/Presentation/components/Cells/CellDeletedBy/index.js.map +1 -1
  230. package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.js +5 -2
  231. package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.js.map +1 -1
  232. package/Presentation/components/Cells/CellDeletedOn/index.d.ts +1 -1
  233. package/Presentation/components/Cells/CellDeletedOn/index.js +1 -1
  234. package/Presentation/components/Cells/CellDeletedOn/index.js.map +1 -1
  235. package/Presentation/components/Cells/CellTitle/CellTitle.js +3 -3
  236. package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -1
  237. package/Presentation/components/Cells/CellTitle/index.d.ts +1 -1
  238. package/Presentation/components/Cells/CellTitle/index.js +1 -1
  239. package/Presentation/components/Cells/CellTitle/index.js.map +1 -1
  240. package/Presentation/components/Cells/index.d.ts +5 -5
  241. package/Presentation/components/Cells/index.js +5 -5
  242. package/Presentation/components/Cells/index.js.map +1 -1
  243. package/Presentation/components/Empty/Empty.js +4 -4
  244. package/Presentation/components/Empty/Empty.js.map +1 -1
  245. package/Presentation/components/Empty/index.d.ts +1 -1
  246. package/Presentation/components/Empty/index.js +1 -1
  247. package/Presentation/components/Empty/index.js.map +1 -1
  248. package/Presentation/components/SearchInput/SearchInput.js +1 -1
  249. package/Presentation/components/SearchInput/SearchInput.js.map +1 -1
  250. package/Presentation/components/SearchInput/index.d.ts +1 -1
  251. package/Presentation/components/SearchInput/index.js +1 -1
  252. package/Presentation/components/SearchInput/index.js.map +1 -1
  253. package/Presentation/components/Table/Table.js +8 -3
  254. package/Presentation/components/Table/Table.js.map +1 -1
  255. package/Presentation/components/Table/index.d.ts +1 -1
  256. package/Presentation/components/Table/index.js +1 -1
  257. package/Presentation/components/Table/index.js.map +1 -1
  258. package/Presentation/components/Title/Title.js +1 -1
  259. package/Presentation/components/Title/Title.js.map +1 -1
  260. package/Presentation/components/Title/index.d.ts +1 -1
  261. package/Presentation/components/Title/index.js +1 -1
  262. package/Presentation/components/Title/index.js.map +1 -1
  263. package/Presentation/components/TrashBinOverlay/TrashBinOverlay.js +8 -8
  264. package/Presentation/components/TrashBinOverlay/TrashBinOverlay.js.map +1 -1
  265. package/Presentation/components/TrashBinOverlay/index.d.ts +1 -1
  266. package/Presentation/components/TrashBinOverlay/index.js +1 -1
  267. package/Presentation/components/TrashBinOverlay/index.js.map +1 -1
  268. package/Presentation/configs/index.d.ts +1 -1
  269. package/Presentation/configs/index.js +1 -1
  270. package/Presentation/configs/index.js.map +1 -1
  271. package/Presentation/configs/list/Browser/BulkAction.d.ts +2 -2
  272. package/Presentation/configs/list/Browser/BulkAction.js +2 -2
  273. package/Presentation/configs/list/Browser/BulkAction.js.map +1 -1
  274. package/Presentation/configs/list/Browser/EntryAction.d.ts +1 -1
  275. package/Presentation/configs/list/Browser/EntryAction.js +1 -1
  276. package/Presentation/configs/list/Browser/EntryAction.js.map +1 -1
  277. package/Presentation/configs/list/Browser/Table/Column.d.ts +2 -2
  278. package/Presentation/configs/list/Browser/Table/Column.js +1 -1
  279. package/Presentation/configs/list/Browser/Table/Column.js.map +1 -1
  280. package/Presentation/configs/list/Browser/Table/Sorting.js +1 -1
  281. package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -1
  282. package/Presentation/configs/list/Browser/Table/index.d.ts +7 -8
  283. package/Presentation/configs/list/Browser/Table/index.js +2 -2
  284. package/Presentation/configs/list/Browser/Table/index.js.map +1 -1
  285. package/Presentation/configs/list/Browser/index.d.ts +18 -19
  286. package/Presentation/configs/list/Browser/index.js +3 -3
  287. package/Presentation/configs/list/Browser/index.js.map +1 -1
  288. package/Presentation/configs/list/TrashBinListConfig.d.ts +17 -17
  289. package/Presentation/configs/list/TrashBinListConfig.js +5 -1
  290. package/Presentation/configs/list/TrashBinListConfig.js.map +1 -1
  291. package/Presentation/configs/list/index.d.ts +1 -1
  292. package/Presentation/configs/list/index.js +1 -1
  293. package/Presentation/configs/list/index.js.map +1 -1
  294. package/Presentation/hooks/index.d.ts +4 -4
  295. package/Presentation/hooks/index.js +4 -4
  296. package/Presentation/hooks/index.js.map +1 -1
  297. package/Presentation/hooks/useDeleteTrashBinItem.d.ts +1 -1
  298. package/Presentation/hooks/useDeleteTrashBinItem.js +1 -1
  299. package/Presentation/hooks/useDeleteTrashBinItem.js.map +1 -1
  300. package/Presentation/hooks/useRestoreTrashBinItem.d.ts +1 -1
  301. package/Presentation/hooks/useRestoreTrashBinItem.js +2 -2
  302. package/Presentation/hooks/useRestoreTrashBinItem.js.map +1 -1
  303. package/Presentation/hooks/useTrashBin.d.ts +7 -8
  304. package/Presentation/hooks/useTrashBin.js.map +1 -1
  305. package/Presentation/hooks/useTrashBinItem.d.ts +3 -4
  306. package/Presentation/hooks/useTrashBinItem.js.map +1 -1
  307. package/Presentation/index.d.ts +3 -3
  308. package/Presentation/index.js +5 -6
  309. package/Presentation/index.js.map +1 -1
  310. package/README.md +7 -13
  311. package/UseCases/BulkAction/BulkActionUseCase.d.ts +3 -3
  312. package/UseCases/BulkAction/BulkActionUseCase.js.map +1 -1
  313. package/UseCases/BulkAction/IBulkActionUseCase.d.ts +1 -1
  314. package/UseCases/BulkAction/IBulkActionUseCase.js.map +1 -1
  315. package/UseCases/BulkAction/index.d.ts +2 -2
  316. package/UseCases/BulkAction/index.js +1 -2
  317. package/UseCases/BulkAction/index.js.map +1 -1
  318. package/UseCases/DeleteItem/DeleteItemUseCase.d.ts +2 -2
  319. package/UseCases/DeleteItem/DeleteItemUseCase.js.map +1 -1
  320. package/UseCases/DeleteItem/index.d.ts +2 -2
  321. package/UseCases/DeleteItem/index.js +1 -2
  322. package/UseCases/DeleteItem/index.js.map +1 -1
  323. package/UseCases/GetRestoredItem/GetRestoredItemUseCase.d.ts +3 -3
  324. package/UseCases/GetRestoredItem/GetRestoredItemUseCase.js.map +1 -1
  325. package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.d.ts +1 -1
  326. package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.js.map +1 -1
  327. package/UseCases/GetRestoredItem/index.d.ts +2 -2
  328. package/UseCases/GetRestoredItem/index.js +1 -2
  329. package/UseCases/GetRestoredItem/index.js.map +1 -1
  330. package/UseCases/ListItems/IListItemsUseCase.d.ts +1 -1
  331. package/UseCases/ListItems/IListItemsUseCase.js.map +1 -1
  332. package/UseCases/ListItems/ListItemsUseCase.d.ts +3 -3
  333. package/UseCases/ListItems/ListItemsUseCase.js.map +1 -1
  334. package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +3 -3
  335. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -1
  336. package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +2 -2
  337. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -1
  338. package/UseCases/ListItems/index.d.ts +4 -4
  339. package/UseCases/ListItems/index.js +3 -4
  340. package/UseCases/ListItems/index.js.map +1 -1
  341. package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +2 -2
  342. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -1
  343. package/UseCases/ListMoreItems/index.d.ts +2 -2
  344. package/UseCases/ListMoreItems/index.js +1 -2
  345. package/UseCases/ListMoreItems/index.js.map +1 -1
  346. package/UseCases/RestoreItem/RestoreItemUseCase.d.ts +2 -2
  347. package/UseCases/RestoreItem/RestoreItemUseCase.js.map +1 -1
  348. package/UseCases/RestoreItem/index.d.ts +2 -2
  349. package/UseCases/RestoreItem/index.js +1 -2
  350. package/UseCases/RestoreItem/index.js.map +1 -1
  351. package/UseCases/SearchItems/SearchItemsUseCase.d.ts +2 -2
  352. package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -1
  353. package/UseCases/SearchItems/index.d.ts +2 -2
  354. package/UseCases/SearchItems/index.js +1 -2
  355. package/UseCases/SearchItems/index.js.map +1 -1
  356. package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +2 -2
  357. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -1
  358. package/UseCases/SelectAllItems/index.d.ts +2 -2
  359. package/UseCases/SelectAllItems/index.js +1 -2
  360. package/UseCases/SelectAllItems/index.js.map +1 -1
  361. package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +1 -1
  362. package/UseCases/SelectItems/ISelectItemsUseCase.js.map +1 -1
  363. package/UseCases/SelectItems/SelectItemsUseCase.d.ts +2 -2
  364. package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -1
  365. package/UseCases/SelectItems/index.d.ts +2 -2
  366. package/UseCases/SelectItems/index.js +1 -2
  367. package/UseCases/SelectItems/index.js.map +1 -1
  368. package/UseCases/SortItems/SortItemsUseCase.d.ts +1 -1
  369. package/UseCases/SortItems/SortItemsUseCase.js.map +1 -1
  370. package/UseCases/SortItems/index.d.ts +2 -2
  371. package/UseCases/SortItems/index.js +1 -2
  372. package/UseCases/SortItems/index.js.map +1 -1
  373. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +2 -2
  374. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -1
  375. package/UseCases/UnSelectAllItems/index.d.ts +2 -2
  376. package/UseCases/UnSelectAllItems/index.js +1 -2
  377. package/UseCases/UnSelectAllItems/index.js.map +1 -1
  378. package/UseCases/index.d.ts +11 -11
  379. package/UseCases/index.js +11 -11
  380. package/UseCases/index.js.map +1 -1
  381. package/index.d.ts +3 -3
  382. package/index.js +2 -3
  383. package/index.js.map +1 -1
  384. package/package.json +19 -21
@@ -1,4 +1,4 @@
1
- import type { TrashBinItemDTO } from "./TrashBinItem";
1
+ import type { TrashBinItemDTO } from "./TrashBinItem.js";
2
2
  export interface ITrashBinItemMapper<TItem extends Record<string, any>> {
3
3
  toDTO: (data: TItem) => TrashBinItemDTO;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ITrashBinItemMapper.ts"],"sourcesContent":["import type { TrashBinItemDTO } from \"./TrashBinItem\";\n\nexport interface ITrashBinItemMapper<TItem extends Record<string, any>> {\n toDTO: (data: TItem) => TrashBinItemDTO;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["ITrashBinItemMapper.ts"],"sourcesContent":["import type { TrashBinItemDTO } from \"./TrashBinItem.js\";\n\nexport interface ITrashBinItemMapper<TItem extends Record<string, any>> {\n toDTO: (data: TItem) => TrashBinItemDTO;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { TrashBinIdentity, TrashBinLocation } from "../../../types";
1
+ import type { TrashBinIdentity, TrashBinLocation } from "../../../types.js";
2
2
  import type { TableRow } from "@webiny/app-aco";
3
3
  export interface TrashBinItemDTO {
4
4
  id: string;
@@ -1 +1 @@
1
- {"version":3,"names":["TrashBinItem","constructor","item","id","title","location","createdBy","deletedOn","deletedBy","create"],"sources":["TrashBinItem.ts"],"sourcesContent":["import type { TrashBinIdentity, TrashBinLocation } from \"~/types\";\nimport type { TableRow } from \"@webiny/app-aco\";\n\nexport interface TrashBinItemDTO {\n id: string;\n title: string;\n createdBy: TrashBinIdentity;\n deletedBy: TrashBinIdentity;\n deletedOn: string;\n location: TrashBinLocation;\n [key: string]: any;\n}\n\nexport type TrashBinTableRow = TableRow<TrashBinItemDTO>;\n\nexport class TrashBinItem {\n public id: string;\n public title: string;\n public location: TrashBinLocation;\n public createdBy: TrashBinIdentity;\n public deletedOn: string;\n public deletedBy: TrashBinIdentity;\n\n protected constructor(item: TrashBinItemDTO) {\n this.id = item.id;\n this.title = item.title;\n this.location = item.location;\n this.createdBy = item.createdBy;\n this.deletedOn = item.deletedOn;\n this.deletedBy = item.deletedBy;\n }\n\n static create(item: TrashBinItemDTO) {\n return new TrashBinItem(item);\n }\n}\n"],"mappings":"AAeA,OAAO,MAAMA,YAAY,CAAC;EAQZC,WAAWA,CAACC,IAAqB,EAAE;IACzC,IAAI,CAACC,EAAE,GAAGD,IAAI,CAACC,EAAE;IACjB,IAAI,CAACC,KAAK,GAAGF,IAAI,CAACE,KAAK;IACvB,IAAI,CAACC,QAAQ,GAAGH,IAAI,CAACG,QAAQ;IAC7B,IAAI,CAACC,SAAS,GAAGJ,IAAI,CAACI,SAAS;IAC/B,IAAI,CAACC,SAAS,GAAGL,IAAI,CAACK,SAAS;IAC/B,IAAI,CAACC,SAAS,GAAGN,IAAI,CAACM,SAAS;EACnC;EAEA,OAAOC,MAAMA,CAACP,IAAqB,EAAE;IACjC,OAAO,IAAIF,YAAY,CAACE,IAAI,CAAC;EACjC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["TrashBinItem","constructor","item","id","title","location","createdBy","deletedOn","deletedBy","create"],"sources":["TrashBinItem.ts"],"sourcesContent":["import type { TrashBinIdentity, TrashBinLocation } from \"~/types.js\";\nimport type { TableRow } from \"@webiny/app-aco\";\n\nexport interface TrashBinItemDTO {\n id: string;\n title: string;\n createdBy: TrashBinIdentity;\n deletedBy: TrashBinIdentity;\n deletedOn: string;\n location: TrashBinLocation;\n [key: string]: any;\n}\n\nexport type TrashBinTableRow = TableRow<TrashBinItemDTO>;\n\nexport class TrashBinItem {\n public id: string;\n public title: string;\n public location: TrashBinLocation;\n public createdBy: TrashBinIdentity;\n public deletedOn: string;\n public deletedBy: TrashBinIdentity;\n\n protected constructor(item: TrashBinItemDTO) {\n this.id = item.id;\n this.title = item.title;\n this.location = item.location;\n this.createdBy = item.createdBy;\n this.deletedOn = item.deletedOn;\n this.deletedBy = item.deletedBy;\n }\n\n static create(item: TrashBinItemDTO) {\n return new TrashBinItem(item);\n }\n}\n"],"mappings":"AAeA,OAAO,MAAMA,YAAY,CAAC;EAQZC,WAAWA,CAACC,IAAqB,EAAE;IACzC,IAAI,CAACC,EAAE,GAAGD,IAAI,CAACC,EAAE;IACjB,IAAI,CAACC,KAAK,GAAGF,IAAI,CAACE,KAAK;IACvB,IAAI,CAACC,QAAQ,GAAGH,IAAI,CAACG,QAAQ;IAC7B,IAAI,CAACC,SAAS,GAAGJ,IAAI,CAACI,SAAS;IAC/B,IAAI,CAACC,SAAS,GAAGL,IAAI,CAACK,SAAS;IAC/B,IAAI,CAACC,SAAS,GAAGN,IAAI,CAACM,SAAS;EACnC;EAEA,OAAOC,MAAMA,CAACP,IAAqB,EAAE;IACjC,OAAO,IAAIF,YAAY,CAACE,IAAI,CAAC;EACjC;AACJ","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export * from "./ITrashBinItemMapper";
2
- export * from "./TrashBinItem";
1
+ export type * from "./ITrashBinItemMapper.js";
2
+ export * from "./TrashBinItem.js";
@@ -1,4 +1,3 @@
1
- export * from "./ITrashBinItemMapper";
2
- export * from "./TrashBinItem";
1
+ export * from "./TrashBinItem.js";
3
2
 
4
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ITrashBinItemMapper\";\nexport * from \"./TrashBinItem\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ITrashBinItemMapper.js\";\nexport * from \"./TrashBinItem.js\";\n"],"mappings":"AACA","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./TrashBinItem";
1
+ export * from "./TrashBinItem/index.js";
@@ -1,3 +1,3 @@
1
- export * from "./TrashBinItem";
1
+ export * from "./TrashBinItem/index.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TrashBinItem\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TrashBinItem/index.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { ISearchRepository } from "./ISearchRepository";
1
+ import type { ISearchRepository } from "./ISearchRepository.js";
2
2
  export declare class SearchRepository implements ISearchRepository {
3
3
  private query;
4
4
  constructor();
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","SearchRepository","query","constructor","get","set"],"sources":["SearchRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISearchRepository } from \"./ISearchRepository\";\n\nexport class SearchRepository implements ISearchRepository {\n private query = \"\";\n\n constructor() {\n makeAutoObservable(this);\n }\n\n get() {\n return this.query;\n }\n\n async set(query: string) {\n this.query = query;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAGzC,OAAO,MAAMC,gBAAgB,CAA8B;EAC/CC,KAAK,GAAG,EAAE;EAElBC,WAAWA,CAAA,EAAG;IACVH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAI,GAAGA,CAAA,EAAG;IACF,OAAO,IAAI,CAACF,KAAK;EACrB;EAEA,MAAMG,GAAGA,CAACH,KAAa,EAAE;IACrB,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","SearchRepository","query","constructor","get","set"],"sources":["SearchRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISearchRepository } from \"./ISearchRepository.js\";\n\nexport class SearchRepository implements ISearchRepository {\n private query = \"\";\n\n constructor() {\n makeAutoObservable(this);\n }\n\n get() {\n return this.query;\n }\n\n async set(query: string) {\n this.query = query;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAGzC,OAAO,MAAMC,gBAAgB,CAA8B;EAC/CC,KAAK,GAAG,EAAE;EAElBC,WAAWA,CAAA,EAAG;IACVH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAI,GAAGA,CAAA,EAAG;IACF,OAAO,IAAI,CAACF,KAAK;EACrB;EAEA,MAAMG,GAAGA,CAACH,KAAa,EAAE;IACrB,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { SearchRepository } from "./SearchRepository";
1
+ import { SearchRepository } from "./SearchRepository.js";
2
2
  export declare class SearchRepositoryFactory {
3
3
  private cache;
4
4
  getRepository(): SearchRepository;
@@ -1,4 +1,4 @@
1
- import { SearchRepository } from "./SearchRepository";
1
+ import { SearchRepository } from "./SearchRepository.js";
2
2
  export class SearchRepositoryFactory {
3
3
  cache = new Map();
4
4
  getRepository() {
@@ -1 +1 @@
1
- {"version":3,"names":["SearchRepository","SearchRepositoryFactory","cache","Map","getRepository","cacheKey","getCacheKey","has","set","get","Date","now","toString","searchRepositoryFactory"],"sources":["SearchRepositoryFactory.ts"],"sourcesContent":["import { SearchRepository } from \"./SearchRepository\";\n\nexport class SearchRepositoryFactory {\n private cache: Map<string, SearchRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SearchRepository());\n }\n\n return this.cache.get(cacheKey) as SearchRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const searchRepositoryFactory = new SearchRepositoryFactory();\n"],"mappings":"AAAA,SAASA,gBAAgB;AAEzB,OAAO,MAAMC,uBAAuB,CAAC;EACzBC,KAAK,GAAkC,IAAIC,GAAG,CAAC,CAAC;EAExDC,aAAaA,CAAA,EAAG;IACZ,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACH,KAAK,CAACM,GAAG,CAACH,QAAQ,EAAE,IAAIL,gBAAgB,CAAC,CAAC,CAAC;IACpD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACO,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,uBAAuB,GAAG,IAAIZ,uBAAuB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["SearchRepository","SearchRepositoryFactory","cache","Map","getRepository","cacheKey","getCacheKey","has","set","get","Date","now","toString","searchRepositoryFactory"],"sources":["SearchRepositoryFactory.ts"],"sourcesContent":["import { SearchRepository } from \"./SearchRepository.js\";\n\nexport class SearchRepositoryFactory {\n private cache: Map<string, SearchRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SearchRepository());\n }\n\n return this.cache.get(cacheKey) as SearchRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const searchRepositoryFactory = new SearchRepositoryFactory();\n"],"mappings":"AAAA,SAASA,gBAAgB;AAEzB,OAAO,MAAMC,uBAAuB,CAAC;EACzBC,KAAK,GAAkC,IAAIC,GAAG,CAAC,CAAC;EAExDC,aAAaA,CAAA,EAAG;IACZ,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACH,KAAK,CAACM,GAAG,CAACH,QAAQ,EAAE,IAAIL,gBAAgB,CAAC,CAAC,CAAC;IACpD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACO,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,uBAAuB,GAAG,IAAIZ,uBAAuB,CAAC,CAAC","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- export * from "./ISearchRepository";
2
- export * from "./SearchRepository";
3
- export * from "./SearchRepositoryFactory";
1
+ export type * from "./ISearchRepository.js";
2
+ export * from "./SearchRepository.js";
3
+ export * from "./SearchRepositoryFactory.js";
@@ -1,5 +1,4 @@
1
- export * from "./ISearchRepository";
2
- export * from "./SearchRepository";
3
- export * from "./SearchRepositoryFactory";
1
+ export * from "./SearchRepository.js";
2
+ export * from "./SearchRepositoryFactory.js";
4
3
 
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ISearchRepository\";\nexport * from \"./SearchRepository\";\nexport * from \"./SearchRepositoryFactory\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ISearchRepository.js\";\nexport * from \"./SearchRepository.js\";\nexport * from \"./SearchRepositoryFactory.js\";\n"],"mappings":"AACA;AACA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { TrashBinItem } from "../..";
1
+ import type { TrashBinItem } from "../../../Domain/index.js";
2
2
  export interface ISelectedItemsRepository {
3
3
  selectItems: (items: TrashBinItem[]) => Promise<void>;
4
4
  selectAllItems: () => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ISelectedItemsRepository.ts"],"sourcesContent":["import type { TrashBinItem } from \"~/Domain\";\n\nexport interface ISelectedItemsRepository {\n selectItems: (items: TrashBinItem[]) => Promise<void>;\n selectAllItems: () => Promise<void>;\n unselectAllItems: () => Promise<void>;\n getSelectedItems: () => TrashBinItem[];\n getSelectedAllItems: () => boolean;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["ISelectedItemsRepository.ts"],"sourcesContent":["import type { TrashBinItem } from \"~/Domain/index.js\";\n\nexport interface ISelectedItemsRepository {\n selectItems: (items: TrashBinItem[]) => Promise<void>;\n selectAllItems: () => Promise<void>;\n unselectAllItems: () => Promise<void>;\n getSelectedItems: () => TrashBinItem[];\n getSelectedAllItems: () => boolean;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import type { TrashBinItem } from "../..";
2
- import type { ISelectedItemsRepository } from "./ISelectedItemsRepository";
1
+ import type { TrashBinItem } from "../../../Domain/index.js";
2
+ import type { ISelectedItemsRepository } from "./ISelectedItemsRepository.js";
3
3
  export declare class SelectedItemsRepository implements ISelectedItemsRepository {
4
4
  private items;
5
5
  private selectedAll;
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","SelectedItemsRepository","items","selectedAll","constructor","getSelectedItems","getSelectedAllItems","selectItems","selectAllItems","unselectAllItems"],"sources":["SelectedItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { TrashBinItem } from \"~/Domain\";\nimport type { ISelectedItemsRepository } from \"./ISelectedItemsRepository\";\n\nexport class SelectedItemsRepository implements ISelectedItemsRepository {\n private items: TrashBinItem[] = [];\n private selectedAll = false;\n\n constructor() {\n makeAutoObservable(this);\n }\n\n getSelectedItems() {\n return this.items;\n }\n\n getSelectedAllItems() {\n return this.selectedAll;\n }\n\n async selectItems(items: TrashBinItem[]) {\n this.items = items;\n this.selectedAll = false;\n }\n\n async selectAllItems() {\n this.selectedAll = true;\n }\n\n async unselectAllItems() {\n this.items = [];\n this.selectedAll = false;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,uBAAuB,CAAqC;EAC7DC,KAAK,GAAmB,EAAE;EAC1BC,WAAW,GAAG,KAAK;EAE3BC,WAAWA,CAAA,EAAG;IACVJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAK,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACH,KAAK;EACrB;EAEAI,mBAAmBA,CAAA,EAAG;IAClB,OAAO,IAAI,CAACH,WAAW;EAC3B;EAEA,MAAMI,WAAWA,CAACL,KAAqB,EAAE;IACrC,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;EAEA,MAAMK,cAAcA,CAAA,EAAG;IACnB,IAAI,CAACL,WAAW,GAAG,IAAI;EAC3B;EAEA,MAAMM,gBAAgBA,CAAA,EAAG;IACrB,IAAI,CAACP,KAAK,GAAG,EAAE;IACf,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","SelectedItemsRepository","items","selectedAll","constructor","getSelectedItems","getSelectedAllItems","selectItems","selectAllItems","unselectAllItems"],"sources":["SelectedItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { TrashBinItem } from \"~/Domain/index.js\";\nimport type { ISelectedItemsRepository } from \"./ISelectedItemsRepository.js\";\n\nexport class SelectedItemsRepository implements ISelectedItemsRepository {\n private items: TrashBinItem[] = [];\n private selectedAll = false;\n\n constructor() {\n makeAutoObservable(this);\n }\n\n getSelectedItems() {\n return this.items;\n }\n\n getSelectedAllItems() {\n return this.selectedAll;\n }\n\n async selectItems(items: TrashBinItem[]) {\n this.items = items;\n this.selectedAll = false;\n }\n\n async selectAllItems() {\n this.selectedAll = true;\n }\n\n async unselectAllItems() {\n this.items = [];\n this.selectedAll = false;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,uBAAuB,CAAqC;EAC7DC,KAAK,GAAmB,EAAE;EAC1BC,WAAW,GAAG,KAAK;EAE3BC,WAAWA,CAAA,EAAG;IACVJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAK,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACH,KAAK;EACrB;EAEAI,mBAAmBA,CAAA,EAAG;IAClB,OAAO,IAAI,CAACH,WAAW;EAC3B;EAEA,MAAMI,WAAWA,CAACL,KAAqB,EAAE;IACrC,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;EAEA,MAAMK,cAAcA,CAAA,EAAG;IACnB,IAAI,CAACL,WAAW,GAAG,IAAI;EAC3B;EAEA,MAAMM,gBAAgBA,CAAA,EAAG;IACrB,IAAI,CAACP,KAAK,GAAG,EAAE;IACf,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;AACJ","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { SelectedItemsRepository } from "./SelectedItemsRepository";
1
+ import { SelectedItemsRepository } from "./SelectedItemsRepository.js";
2
2
  export declare class SelectedItemsRepositoryFactory {
3
3
  private cache;
4
4
  getRepository(): SelectedItemsRepository;
@@ -1,4 +1,4 @@
1
- import { SelectedItemsRepository } from "./SelectedItemsRepository";
1
+ import { SelectedItemsRepository } from "./SelectedItemsRepository.js";
2
2
  export class SelectedItemsRepositoryFactory {
3
3
  cache = new Map();
4
4
  getRepository() {
@@ -1 +1 @@
1
- {"version":3,"names":["SelectedItemsRepository","SelectedItemsRepositoryFactory","cache","Map","getRepository","cacheKey","getCacheKey","has","set","get","Date","now","toString","selectedItemsRepositoryFactory"],"sources":["SelectedItemsRepositoryFactory.ts"],"sourcesContent":["import { SelectedItemsRepository } from \"./SelectedItemsRepository\";\n\nexport class SelectedItemsRepositoryFactory {\n private cache: Map<string, SelectedItemsRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SelectedItemsRepository());\n }\n\n return this.cache.get(cacheKey) as SelectedItemsRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const selectedItemsRepositoryFactory = new SelectedItemsRepositoryFactory();\n"],"mappings":"AAAA,SAASA,uBAAuB;AAEhC,OAAO,MAAMC,8BAA8B,CAAC;EAChCC,KAAK,GAAyC,IAAIC,GAAG,CAAC,CAAC;EAE/DC,aAAaA,CAAA,EAAG;IACZ,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACH,KAAK,CAACM,GAAG,CAACH,QAAQ,EAAE,IAAIL,uBAAuB,CAAC,CAAC,CAAC;IAC3D;IAEA,OAAO,IAAI,CAACE,KAAK,CAACO,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,8BAA8B,GAAG,IAAIZ,8BAA8B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["SelectedItemsRepository","SelectedItemsRepositoryFactory","cache","Map","getRepository","cacheKey","getCacheKey","has","set","get","Date","now","toString","selectedItemsRepositoryFactory"],"sources":["SelectedItemsRepositoryFactory.ts"],"sourcesContent":["import { SelectedItemsRepository } from \"./SelectedItemsRepository.js\";\n\nexport class SelectedItemsRepositoryFactory {\n private cache: Map<string, SelectedItemsRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SelectedItemsRepository());\n }\n\n return this.cache.get(cacheKey) as SelectedItemsRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const selectedItemsRepositoryFactory = new SelectedItemsRepositoryFactory();\n"],"mappings":"AAAA,SAASA,uBAAuB;AAEhC,OAAO,MAAMC,8BAA8B,CAAC;EAChCC,KAAK,GAAyC,IAAIC,GAAG,CAAC,CAAC;EAE/DC,aAAaA,CAAA,EAAG;IACZ,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACH,KAAK,CAACM,GAAG,CAACH,QAAQ,EAAE,IAAIL,uBAAuB,CAAC,CAAC,CAAC;IAC3D;IAEA,OAAO,IAAI,CAACE,KAAK,CAACO,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,8BAA8B,GAAG,IAAIZ,8BAA8B,CAAC,CAAC","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- export * from "./ISelectedItemsRepository";
2
- export * from "./SelectedItemsRepository";
3
- export * from "./SelectedItemsRepositoryFactory";
1
+ export type * from "./ISelectedItemsRepository.js";
2
+ export * from "./SelectedItemsRepository.js";
3
+ export * from "./SelectedItemsRepositoryFactory.js";
@@ -1,5 +1,4 @@
1
- export * from "./ISelectedItemsRepository";
2
- export * from "./SelectedItemsRepository";
3
- export * from "./SelectedItemsRepositoryFactory";
1
+ export * from "./SelectedItemsRepository.js";
2
+ export * from "./SelectedItemsRepositoryFactory.js";
4
3
 
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ISelectedItemsRepository\";\nexport * from \"./SelectedItemsRepository\";\nexport * from \"./SelectedItemsRepositoryFactory\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ISelectedItemsRepository.js\";\nexport * from \"./SelectedItemsRepository.js\";\nexport * from \"./SelectedItemsRepositoryFactory.js\";\n"],"mappings":"AACA;AACA","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./SortingRepositoryWithDefaults";
1
+ export * from "./SortingRepositoryWithDefaults.js";
@@ -1,3 +1,3 @@
1
- export * from "./SortingRepositoryWithDefaults";
1
+ export * from "./SortingRepositoryWithDefaults.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SortingRepositoryWithDefaults\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SortingRepositoryWithDefaults.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import type { Meta } from "@webiny/app-utils";
2
- import type { TrashBinItem } from "../..";
3
- import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types";
2
+ import type { TrashBinItem } from "../../../Domain/index.js";
3
+ import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types.js";
4
4
  export interface ITrashBinItemsRepository {
5
5
  listItems: (params?: TrashBinListQueryVariables) => Promise<void>;
6
6
  listMoreItems: () => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ITrashBinItemsRepository.ts"],"sourcesContent":["import type { Meta } from \"@webiny/app-utils\";\nimport type { TrashBinItem } from \"~/Domain\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types\";\n\nexport interface ITrashBinItemsRepository {\n listItems: (params?: TrashBinListQueryVariables) => Promise<void>;\n listMoreItems: () => Promise<void>;\n deleteItem: (id: string) => Promise<void>;\n restoreItem: (id: string) => Promise<void>;\n bulkAction: (action: string, params: TrashBinBulkActionsParams) => Promise<void>;\n getItems: () => TrashBinItem[];\n getRestoredItems: () => TrashBinItem[];\n getMeta: () => Meta;\n getLoading: () => Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["ITrashBinItemsRepository.ts"],"sourcesContent":["import type { Meta } from \"@webiny/app-utils\";\nimport type { TrashBinItem } from \"~/Domain/index.js\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types.js\";\n\nexport interface ITrashBinItemsRepository {\n listItems: (params?: TrashBinListQueryVariables) => Promise<void>;\n listMoreItems: () => Promise<void>;\n deleteItem: (id: string) => Promise<void>;\n restoreItem: (id: string) => Promise<void>;\n bulkAction: (action: string, params: TrashBinBulkActionsParams) => Promise<void>;\n getItems: () => TrashBinItem[];\n getRestoredItems: () => TrashBinItem[];\n getMeta: () => Meta;\n getLoading: () => Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { ITrashBinItemMapper, TrashBinItem } from "../..";
1
+ import type { ITrashBinItemMapper, TrashBinItem } from "../../../Domain/index.js";
2
2
  export declare class TrashBinItemMapper implements ITrashBinItemMapper<TrashBinItem> {
3
3
  toDTO(data: TrashBinItem): {
4
4
  id: string;
@@ -1 +1 @@
1
- {"version":3,"names":["TrashBinItemMapper","toDTO","data","id","title","location","createdBy","deletedBy","displayName","type","deletedOn"],"sources":["TrashBinItemMapper.ts"],"sourcesContent":["import type { ITrashBinItemMapper, TrashBinItem } from \"~/Domain\";\n\nexport class TrashBinItemMapper implements ITrashBinItemMapper<TrashBinItem> {\n toDTO(data: TrashBinItem) {\n return {\n id: data.id,\n title: data.title,\n location: data.location,\n createdBy: data.createdBy,\n deletedBy: {\n id: data.deletedBy?.id || \"\",\n displayName: data.deletedBy?.displayName || \"\",\n type: data.deletedBy?.type || \"\"\n },\n deletedOn: data.deletedOn || \"\"\n };\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAkB,CAA8C;EACzEC,KAAKA,CAACC,IAAkB,EAAE;IACtB,OAAO;MACHC,EAAE,EAAED,IAAI,CAACC,EAAE;MACXC,KAAK,EAAEF,IAAI,CAACE,KAAK;MACjBC,QAAQ,EAAEH,IAAI,CAACG,QAAQ;MACvBC,SAAS,EAAEJ,IAAI,CAACI,SAAS;MACzBC,SAAS,EAAE;QACPJ,EAAE,EAAED,IAAI,CAACK,SAAS,EAAEJ,EAAE,IAAI,EAAE;QAC5BK,WAAW,EAAEN,IAAI,CAACK,SAAS,EAAEC,WAAW,IAAI,EAAE;QAC9CC,IAAI,EAAEP,IAAI,CAACK,SAAS,EAAEE,IAAI,IAAI;MAClC,CAAC;MACDC,SAAS,EAAER,IAAI,CAACQ,SAAS,IAAI;IACjC,CAAC;EACL;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["TrashBinItemMapper","toDTO","data","id","title","location","createdBy","deletedBy","displayName","type","deletedOn"],"sources":["TrashBinItemMapper.ts"],"sourcesContent":["import type { ITrashBinItemMapper, TrashBinItem } from \"~/Domain/index.js\";\n\nexport class TrashBinItemMapper implements ITrashBinItemMapper<TrashBinItem> {\n toDTO(data: TrashBinItem) {\n return {\n id: data.id,\n title: data.title,\n location: data.location,\n createdBy: data.createdBy,\n deletedBy: {\n id: data.deletedBy?.id || \"\",\n displayName: data.deletedBy?.displayName || \"\",\n type: data.deletedBy?.type || \"\"\n },\n deletedOn: data.deletedOn || \"\"\n };\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAkB,CAA8C;EACzEC,KAAKA,CAACC,IAAkB,EAAE;IACtB,OAAO;MACHC,EAAE,EAAED,IAAI,CAACC,EAAE;MACXC,KAAK,EAAEF,IAAI,CAACE,KAAK;MACjBC,QAAQ,EAAEH,IAAI,CAACG,QAAQ;MACvBC,SAAS,EAAEJ,IAAI,CAACI,SAAS;MACzBC,SAAS,EAAE;QACPJ,EAAE,EAAED,IAAI,CAACK,SAAS,EAAEJ,EAAE,IAAI,EAAE;QAC5BK,WAAW,EAAEN,IAAI,CAACK,SAAS,EAAEC,WAAW,IAAI,EAAE;QAC9CC,IAAI,EAAEP,IAAI,CAACK,SAAS,EAAEE,IAAI,IAAI;MAClC,CAAC;MACDC,SAAS,EAAER,IAAI,CAACQ,SAAS,IAAI;IACjC,CAAC;EACL;AACJ","ignoreList":[]}
@@ -1,10 +1,10 @@
1
- import type { ITrashBinItemMapper } from "../..";
2
- import { TrashBinItem } from "../..";
3
- import type { ITrashBinListGateway, ITrashBinDeleteItemGateway, ITrashBinRestoreItemGateway, ITrashBinBulkActionsGateway } from "../../../Gateways";
1
+ import type { ITrashBinItemMapper } from "../../../Domain/index.js";
2
+ import { TrashBinItem } from "../../../Domain/index.js";
3
+ import type { ITrashBinListGateway, ITrashBinDeleteItemGateway, ITrashBinRestoreItemGateway, ITrashBinBulkActionsGateway } from "../../../Gateways/index.js";
4
4
  import type { IMetaRepository } from "@webiny/app-utils";
5
5
  import { Meta } from "@webiny/app-utils";
6
- import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types";
7
- import type { ITrashBinItemsRepository } from "./ITrashBinItemsRepository";
6
+ import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types.js";
7
+ import type { ITrashBinItemsRepository } from "./ITrashBinItemsRepository.js";
8
8
  export declare class TrashBinItemsRepository<TItem extends Record<string, any>> implements ITrashBinItemsRepository {
9
9
  private metaRepository;
10
10
  private listGateway;
@@ -1,6 +1,6 @@
1
1
  import { makeAutoObservable, runInAction } from "mobx";
2
- import uniqBy from "lodash/uniqBy";
3
- import { TrashBinItem } from "../..";
2
+ import uniqBy from "lodash/uniqBy.js";
3
+ import { TrashBinItem } from "../../index.js";
4
4
  import { Meta } from "@webiny/app-utils";
5
5
  export class TrashBinItemsRepository {
6
6
  items = [];
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","runInAction","uniqBy","TrashBinItem","Meta","TrashBinItemsRepository","items","restoredItems","params","constructor","metaRepository","listGateway","deleteGateway","restoreGateway","bulkActionsGateway","entryMapper","itemMapper","getItems","getRestoredItems","getMeta","get","getLoading","listItems","response","execute","meta","map","entry","create","toDTO","set","listMoreItems","cursor","after","itemsDTO","deleteItem","id","filter","item","decreaseTotalCount","restoreItem","bulkAction","action","where","search","data"],"sources":["TrashBinItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport uniqBy from \"lodash/uniqBy\";\nimport type { ITrashBinItemMapper } from \"~/Domain\";\nimport { TrashBinItem } from \"~/Domain\";\nimport type {\n ITrashBinListGateway,\n ITrashBinDeleteItemGateway,\n ITrashBinRestoreItemGateway,\n ITrashBinBulkActionsGateway\n} from \"~/Gateways\";\nimport type { IMetaRepository } from \"@webiny/app-utils\";\nimport { Meta } from \"@webiny/app-utils\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types\";\nimport type { ITrashBinItemsRepository } from \"./ITrashBinItemsRepository\";\n\nexport class TrashBinItemsRepository<TItem extends Record<string, any>>\n implements ITrashBinItemsRepository\n{\n private metaRepository: IMetaRepository;\n private listGateway: ITrashBinListGateway<TItem>;\n private deleteGateway: ITrashBinDeleteItemGateway;\n private restoreGateway: ITrashBinRestoreItemGateway<TItem>;\n private bulkActionsGateway: ITrashBinBulkActionsGateway;\n private itemMapper: ITrashBinItemMapper<TItem>;\n private items: TrashBinItem[] = [];\n private restoredItems: TrashBinItem[] = [];\n private params: TrashBinListQueryVariables = {};\n\n constructor(\n metaRepository: IMetaRepository,\n listGateway: ITrashBinListGateway<TItem>,\n deleteGateway: ITrashBinDeleteItemGateway,\n restoreGateway: ITrashBinRestoreItemGateway<TItem>,\n bulkActionsGateway: ITrashBinBulkActionsGateway,\n entryMapper: ITrashBinItemMapper<TItem>\n ) {\n this.metaRepository = metaRepository;\n this.listGateway = listGateway;\n this.deleteGateway = deleteGateway;\n this.restoreGateway = restoreGateway;\n this.bulkActionsGateway = bulkActionsGateway;\n this.itemMapper = entryMapper;\n this.params = {};\n makeAutoObservable(this);\n }\n\n getItems() {\n return this.items;\n }\n\n getRestoredItems() {\n return this.restoredItems;\n }\n\n getMeta() {\n return this.metaRepository.get();\n }\n\n getLoading() {\n return {};\n }\n\n async listItems(params?: TrashBinListQueryVariables) {\n this.params = params || {};\n\n const response = await this.listGateway.execute({ ...params });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n const [items, meta] = response;\n this.items = items.map(entry => TrashBinItem.create(this.itemMapper.toDTO(entry)));\n this.metaRepository.set(Meta.create(meta));\n });\n }\n\n async listMoreItems() {\n const { cursor } = this.metaRepository.get();\n\n if (!cursor) {\n return;\n }\n\n const response = await this.listGateway.execute({ ...this.params, after: cursor });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n const [items, meta] = response;\n const itemsDTO = items.map(entry => TrashBinItem.create(this.itemMapper.toDTO(entry)));\n this.items = uniqBy([...this.items, ...itemsDTO], \"id\");\n this.metaRepository.set(Meta.create(meta));\n });\n }\n\n async deleteItem(id: string) {\n const response = await this.deleteGateway.execute(id);\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n async restoreItem(id: string) {\n const item = await this.restoreGateway.execute(id);\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.restoredItems = [\n ...this.restoredItems,\n TrashBinItem.create(this.itemMapper.toDTO(item))\n ];\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n async bulkAction(action: string, params: TrashBinBulkActionsParams) {\n const { where, search, data } = params;\n await this.bulkActionsGateway.execute({ action, where, search, data });\n }\n}\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","runInAction","uniqBy","TrashBinItem","Meta","TrashBinItemsRepository","items","restoredItems","params","constructor","metaRepository","listGateway","deleteGateway","restoreGateway","bulkActionsGateway","entryMapper","itemMapper","getItems","getRestoredItems","getMeta","get","getLoading","listItems","response","execute","meta","map","entry","create","toDTO","set","listMoreItems","cursor","after","itemsDTO","deleteItem","id","filter","item","decreaseTotalCount","restoreItem","bulkAction","action","where","search","data"],"sources":["TrashBinItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport uniqBy from \"lodash/uniqBy.js\";\nimport type { ITrashBinItemMapper } from \"~/Domain/index.js\";\nimport { TrashBinItem } from \"~/Domain/index.js\";\nimport type {\n ITrashBinListGateway,\n ITrashBinDeleteItemGateway,\n ITrashBinRestoreItemGateway,\n ITrashBinBulkActionsGateway\n} from \"~/Gateways/index.js\";\nimport type { IMetaRepository } from \"@webiny/app-utils\";\nimport { Meta } from \"@webiny/app-utils\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types.js\";\nimport type { ITrashBinItemsRepository } from \"./ITrashBinItemsRepository.js\";\n\nexport class TrashBinItemsRepository<TItem extends Record<string, any>>\n implements ITrashBinItemsRepository\n{\n private metaRepository: IMetaRepository;\n private listGateway: ITrashBinListGateway<TItem>;\n private deleteGateway: ITrashBinDeleteItemGateway;\n private restoreGateway: ITrashBinRestoreItemGateway<TItem>;\n private bulkActionsGateway: ITrashBinBulkActionsGateway;\n private itemMapper: ITrashBinItemMapper<TItem>;\n private items: TrashBinItem[] = [];\n private restoredItems: TrashBinItem[] = [];\n private params: TrashBinListQueryVariables = {};\n\n constructor(\n metaRepository: IMetaRepository,\n listGateway: ITrashBinListGateway<TItem>,\n deleteGateway: ITrashBinDeleteItemGateway,\n restoreGateway: ITrashBinRestoreItemGateway<TItem>,\n bulkActionsGateway: ITrashBinBulkActionsGateway,\n entryMapper: ITrashBinItemMapper<TItem>\n ) {\n this.metaRepository = metaRepository;\n this.listGateway = listGateway;\n this.deleteGateway = deleteGateway;\n this.restoreGateway = restoreGateway;\n this.bulkActionsGateway = bulkActionsGateway;\n this.itemMapper = entryMapper;\n this.params = {};\n makeAutoObservable(this);\n }\n\n getItems() {\n return this.items;\n }\n\n getRestoredItems() {\n return this.restoredItems;\n }\n\n getMeta() {\n return this.metaRepository.get();\n }\n\n getLoading() {\n return {};\n }\n\n async listItems(params?: TrashBinListQueryVariables) {\n this.params = params || {};\n\n const response = await this.listGateway.execute({ ...params });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n const [items, meta] = response;\n this.items = items.map(entry => TrashBinItem.create(this.itemMapper.toDTO(entry)));\n this.metaRepository.set(Meta.create(meta));\n });\n }\n\n async listMoreItems() {\n const { cursor } = this.metaRepository.get();\n\n if (!cursor) {\n return;\n }\n\n const response = await this.listGateway.execute({ ...this.params, after: cursor });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n const [items, meta] = response;\n const itemsDTO = items.map(entry => TrashBinItem.create(this.itemMapper.toDTO(entry)));\n this.items = uniqBy([...this.items, ...itemsDTO], \"id\");\n this.metaRepository.set(Meta.create(meta));\n });\n }\n\n async deleteItem(id: string) {\n const response = await this.deleteGateway.execute(id);\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n async restoreItem(id: string) {\n const item = await this.restoreGateway.execute(id);\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.restoredItems = [\n ...this.restoredItems,\n TrashBinItem.create(this.itemMapper.toDTO(item))\n ];\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n async bulkAction(action: string, params: TrashBinBulkActionsParams) {\n const { where, search, data } = params;\n await this.bulkActionsGateway.execute({ action, where, search, data });\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  import type { IMetaRepository } from "@webiny/app-utils";
2
- import type { ITrashBinItemMapper } from "../..";
3
- import type { ITrashBinBulkActionsGateway, ITrashBinDeleteItemGateway, ITrashBinListGateway, ITrashBinRestoreItemGateway } from "../../../Gateways";
4
- import { TrashBinItemsRepository } from "./TrashBinItemsRepository";
2
+ import type { ITrashBinItemMapper } from "../../../Domain/index.js";
3
+ import type { ITrashBinBulkActionsGateway, ITrashBinDeleteItemGateway, ITrashBinListGateway, ITrashBinRestoreItemGateway } from "../../../Gateways/index.js";
4
+ import { TrashBinItemsRepository } from "./TrashBinItemsRepository.js";
5
5
  export declare class TrashBinItemsRepositoryFactory<TEntry extends Record<string, any>> {
6
6
  private cache;
7
7
  getRepository(metaRepository: IMetaRepository, listGateway: ITrashBinListGateway<TEntry>, deleteGateway: ITrashBinDeleteItemGateway, restoreGateway: ITrashBinRestoreItemGateway<TEntry>, bulkActionsGateway: ITrashBinBulkActionsGateway, itemMapper: ITrashBinItemMapper<TEntry>): TrashBinItemsRepository<TEntry>;
@@ -1,4 +1,4 @@
1
- import { TrashBinItemsRepository } from "./TrashBinItemsRepository";
1
+ import { TrashBinItemsRepository } from "./TrashBinItemsRepository.js";
2
2
  export class TrashBinItemsRepositoryFactory {
3
3
  cache = new Map();
4
4
  getRepository(metaRepository, listGateway, deleteGateway, restoreGateway, bulkActionsGateway, itemMapper) {
@@ -1 +1 @@
1
- {"version":3,"names":["TrashBinItemsRepository","TrashBinItemsRepositoryFactory","cache","Map","getRepository","metaRepository","listGateway","deleteGateway","restoreGateway","bulkActionsGateway","itemMapper","cacheKey","getCacheKey","has","set","get","Date","now","toString","trashBinItemsRepositoryFactory"],"sources":["TrashBinItemsRepositoryFactory.ts"],"sourcesContent":["import type { IMetaRepository } from \"@webiny/app-utils\";\nimport type { ITrashBinItemMapper } from \"~/Domain\";\nimport type {\n ITrashBinBulkActionsGateway,\n ITrashBinDeleteItemGateway,\n ITrashBinListGateway,\n ITrashBinRestoreItemGateway\n} from \"~/Gateways\";\nimport { TrashBinItemsRepository } from \"./TrashBinItemsRepository\";\n\nexport class TrashBinItemsRepositoryFactory<TEntry extends Record<string, any>> {\n private cache: Map<string, TrashBinItemsRepository<TEntry>> = new Map();\n\n getRepository(\n metaRepository: IMetaRepository,\n listGateway: ITrashBinListGateway<TEntry>,\n deleteGateway: ITrashBinDeleteItemGateway,\n restoreGateway: ITrashBinRestoreItemGateway<TEntry>,\n bulkActionsGateway: ITrashBinBulkActionsGateway,\n itemMapper: ITrashBinItemMapper<TEntry>\n ) {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(\n cacheKey,\n new TrashBinItemsRepository(\n metaRepository,\n listGateway,\n deleteGateway,\n restoreGateway,\n bulkActionsGateway,\n itemMapper\n )\n );\n }\n\n return this.cache.get(cacheKey) as TrashBinItemsRepository<TEntry>;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const trashBinItemsRepositoryFactory = new TrashBinItemsRepositoryFactory();\n"],"mappings":"AAQA,SAASA,uBAAuB;AAEhC,OAAO,MAAMC,8BAA8B,CAAqC;EACpEC,KAAK,GAAiD,IAAIC,GAAG,CAAC,CAAC;EAEvEC,aAAaA,CACTC,cAA+B,EAC/BC,WAAyC,EACzCC,aAAyC,EACzCC,cAAmD,EACnDC,kBAA+C,EAC/CC,UAAuC,EACzC;IACE,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACV,KAAK,CAACW,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACT,KAAK,CAACY,GAAG,CACVH,QAAQ,EACR,IAAIX,uBAAuB,CACvBK,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,kBAAkB,EAClBC,UACJ,CACJ,CAAC;IACL;IAEA,OAAO,IAAI,CAACR,KAAK,CAACa,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,8BAA8B,GAAG,IAAIlB,8BAA8B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TrashBinItemsRepository","TrashBinItemsRepositoryFactory","cache","Map","getRepository","metaRepository","listGateway","deleteGateway","restoreGateway","bulkActionsGateway","itemMapper","cacheKey","getCacheKey","has","set","get","Date","now","toString","trashBinItemsRepositoryFactory"],"sources":["TrashBinItemsRepositoryFactory.ts"],"sourcesContent":["import type { IMetaRepository } from \"@webiny/app-utils\";\nimport type { ITrashBinItemMapper } from \"~/Domain/index.js\";\nimport type {\n ITrashBinBulkActionsGateway,\n ITrashBinDeleteItemGateway,\n ITrashBinListGateway,\n ITrashBinRestoreItemGateway\n} from \"~/Gateways/index.js\";\nimport { TrashBinItemsRepository } from \"./TrashBinItemsRepository.js\";\n\nexport class TrashBinItemsRepositoryFactory<TEntry extends Record<string, any>> {\n private cache: Map<string, TrashBinItemsRepository<TEntry>> = new Map();\n\n getRepository(\n metaRepository: IMetaRepository,\n listGateway: ITrashBinListGateway<TEntry>,\n deleteGateway: ITrashBinDeleteItemGateway,\n restoreGateway: ITrashBinRestoreItemGateway<TEntry>,\n bulkActionsGateway: ITrashBinBulkActionsGateway,\n itemMapper: ITrashBinItemMapper<TEntry>\n ) {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(\n cacheKey,\n new TrashBinItemsRepository(\n metaRepository,\n listGateway,\n deleteGateway,\n restoreGateway,\n bulkActionsGateway,\n itemMapper\n )\n );\n }\n\n return this.cache.get(cacheKey) as TrashBinItemsRepository<TEntry>;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const trashBinItemsRepositoryFactory = new TrashBinItemsRepositoryFactory();\n"],"mappings":"AAQA,SAASA,uBAAuB;AAEhC,OAAO,MAAMC,8BAA8B,CAAqC;EACpEC,KAAK,GAAiD,IAAIC,GAAG,CAAC,CAAC;EAEvEC,aAAaA,CACTC,cAA+B,EAC/BC,WAAyC,EACzCC,aAAyC,EACzCC,cAAmD,EACnDC,kBAA+C,EAC/CC,UAAuC,EACzC;IACE,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACV,KAAK,CAACW,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACT,KAAK,CAACY,GAAG,CACVH,QAAQ,EACR,IAAIX,uBAAuB,CACvBK,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,kBAAkB,EAClBC,UACJ,CACJ,CAAC;IACL;IAEA,OAAO,IAAI,CAACR,KAAK,CAACa,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,8BAA8B,GAAG,IAAIlB,8BAA8B,CAAC,CAAC","ignoreList":[]}
@@ -1,12 +1,12 @@
1
1
  import type { ILoadingRepository } from "@webiny/app-utils";
2
- import type { ITrashBinItemsRepository } from "./ITrashBinItemsRepository";
3
- import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types";
2
+ import type { ITrashBinItemsRepository } from "./ITrashBinItemsRepository.js";
3
+ import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types.js";
4
4
  export declare class TrashBinItemsRepositoryWithLoading implements ITrashBinItemsRepository {
5
5
  private loadingRepository;
6
6
  private trashBinItemsRepository;
7
7
  constructor(loadingRepository: ILoadingRepository, trashBinItemsRepository: ITrashBinItemsRepository);
8
- getItems(): import("../..").TrashBinItem[];
9
- getRestoredItems(): import("../..").TrashBinItem[];
8
+ getItems(): import("../../index.js").TrashBinItem[];
9
+ getRestoredItems(): import("../../index.js").TrashBinItem[];
10
10
  getMeta(): import("@webiny/app-utils").Meta;
11
11
  getLoading(): Record<string, boolean>;
12
12
  listItems(params?: TrashBinListQueryVariables): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { makeAutoObservable } from "mobx";
2
- import { LoadingActions } from "../../../types";
2
+ import { LoadingActions } from "../../../types.js";
3
3
  export class TrashBinItemsRepositoryWithLoading {
4
4
  constructor(loadingRepository, trashBinItemsRepository) {
5
5
  this.loadingRepository = loadingRepository;
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","LoadingActions","TrashBinItemsRepositoryWithLoading","constructor","loadingRepository","trashBinItemsRepository","getItems","getRestoredItems","getMeta","getLoading","get","listItems","params","runCallBack","list","listMoreItems","listMore","deleteItem","id","delete","restoreItem","restore","bulkAction","action"],"sources":["TrashBinItemsRepositoryWithLoading.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ILoadingRepository } from \"@webiny/app-utils\";\nimport type { ITrashBinItemsRepository } from \"./ITrashBinItemsRepository\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types\";\nimport { LoadingActions } from \"~/types\";\n\nexport class TrashBinItemsRepositoryWithLoading implements ITrashBinItemsRepository {\n private loadingRepository: ILoadingRepository;\n private trashBinItemsRepository: ITrashBinItemsRepository;\n\n constructor(\n loadingRepository: ILoadingRepository,\n trashBinItemsRepository: ITrashBinItemsRepository\n ) {\n this.loadingRepository = loadingRepository;\n this.trashBinItemsRepository = trashBinItemsRepository;\n makeAutoObservable(this);\n }\n\n getItems() {\n return this.trashBinItemsRepository.getItems();\n }\n\n getRestoredItems() {\n return this.trashBinItemsRepository.getRestoredItems();\n }\n\n getMeta() {\n return this.trashBinItemsRepository.getMeta();\n }\n\n getLoading() {\n return this.loadingRepository.get();\n }\n\n async listItems(params?: TrashBinListQueryVariables) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.listItems(params),\n LoadingActions.list\n );\n }\n\n async listMoreItems() {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.listMoreItems(),\n LoadingActions.listMore\n );\n }\n\n async deleteItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.deleteItem(id),\n LoadingActions.delete\n );\n }\n\n async restoreItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.restoreItem(id),\n LoadingActions.restore\n );\n }\n\n async bulkAction(action: string, params: TrashBinBulkActionsParams) {\n await this.trashBinItemsRepository.bulkAction(action, params);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,SAASC,cAAc;AAEvB,OAAO,MAAMC,kCAAkC,CAAqC;EAIhFC,WAAWA,CACPC,iBAAqC,EACrCC,uBAAiD,EACnD;IACE,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,uBAAuB,GAAGA,uBAAuB;IACtDL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAM,QAAQA,CAAA,EAAG;IACP,OAAO,IAAI,CAACD,uBAAuB,CAACC,QAAQ,CAAC,CAAC;EAClD;EAEAC,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACF,uBAAuB,CAACE,gBAAgB,CAAC,CAAC;EAC1D;EAEAC,OAAOA,CAAA,EAAG;IACN,OAAO,IAAI,CAACH,uBAAuB,CAACG,OAAO,CAAC,CAAC;EACjD;EAEAC,UAAUA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,iBAAiB,CAACM,GAAG,CAAC,CAAC;EACvC;EAEA,MAAMC,SAASA,CAACC,MAAmC,EAAE;IACjD,MAAM,IAAI,CAACR,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACM,SAAS,CAACC,MAAM,CAAC,EAC9CX,cAAc,CAACa,IACnB,CAAC;EACL;EAEA,MAAMC,aAAaA,CAAA,EAAG;IAClB,MAAM,IAAI,CAACX,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACU,aAAa,CAAC,CAAC,EAC5Cd,cAAc,CAACe,QACnB,CAAC;EACL;EAEA,MAAMC,UAAUA,CAACC,EAAU,EAAE;IACzB,MAAM,IAAI,CAACd,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACY,UAAU,CAACC,EAAE,CAAC,EAC3CjB,cAAc,CAACkB,MACnB,CAAC;EACL;EAEA,MAAMC,WAAWA,CAACF,EAAU,EAAE;IAC1B,MAAM,IAAI,CAACd,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACe,WAAW,CAACF,EAAE,CAAC,EAC5CjB,cAAc,CAACoB,OACnB,CAAC;EACL;EAEA,MAAMC,UAAUA,CAACC,MAAc,EAAEX,MAAiC,EAAE;IAChE,MAAM,IAAI,CAACP,uBAAuB,CAACiB,UAAU,CAACC,MAAM,EAAEX,MAAM,CAAC;EACjE;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","LoadingActions","TrashBinItemsRepositoryWithLoading","constructor","loadingRepository","trashBinItemsRepository","getItems","getRestoredItems","getMeta","getLoading","get","listItems","params","runCallBack","list","listMoreItems","listMore","deleteItem","id","delete","restoreItem","restore","bulkAction","action"],"sources":["TrashBinItemsRepositoryWithLoading.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ILoadingRepository } from \"@webiny/app-utils\";\nimport type { ITrashBinItemsRepository } from \"./ITrashBinItemsRepository.js\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types.js\";\nimport { LoadingActions } from \"~/types.js\";\n\nexport class TrashBinItemsRepositoryWithLoading implements ITrashBinItemsRepository {\n private loadingRepository: ILoadingRepository;\n private trashBinItemsRepository: ITrashBinItemsRepository;\n\n constructor(\n loadingRepository: ILoadingRepository,\n trashBinItemsRepository: ITrashBinItemsRepository\n ) {\n this.loadingRepository = loadingRepository;\n this.trashBinItemsRepository = trashBinItemsRepository;\n makeAutoObservable(this);\n }\n\n getItems() {\n return this.trashBinItemsRepository.getItems();\n }\n\n getRestoredItems() {\n return this.trashBinItemsRepository.getRestoredItems();\n }\n\n getMeta() {\n return this.trashBinItemsRepository.getMeta();\n }\n\n getLoading() {\n return this.loadingRepository.get();\n }\n\n async listItems(params?: TrashBinListQueryVariables) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.listItems(params),\n LoadingActions.list\n );\n }\n\n async listMoreItems() {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.listMoreItems(),\n LoadingActions.listMore\n );\n }\n\n async deleteItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.deleteItem(id),\n LoadingActions.delete\n );\n }\n\n async restoreItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.restoreItem(id),\n LoadingActions.restore\n );\n }\n\n async bulkAction(action: string, params: TrashBinBulkActionsParams) {\n await this.trashBinItemsRepository.bulkAction(action, params);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,SAASC,cAAc;AAEvB,OAAO,MAAMC,kCAAkC,CAAqC;EAIhFC,WAAWA,CACPC,iBAAqC,EACrCC,uBAAiD,EACnD;IACE,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,uBAAuB,GAAGA,uBAAuB;IACtDL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAM,QAAQA,CAAA,EAAG;IACP,OAAO,IAAI,CAACD,uBAAuB,CAACC,QAAQ,CAAC,CAAC;EAClD;EAEAC,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACF,uBAAuB,CAACE,gBAAgB,CAAC,CAAC;EAC1D;EAEAC,OAAOA,CAAA,EAAG;IACN,OAAO,IAAI,CAACH,uBAAuB,CAACG,OAAO,CAAC,CAAC;EACjD;EAEAC,UAAUA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,iBAAiB,CAACM,GAAG,CAAC,CAAC;EACvC;EAEA,MAAMC,SAASA,CAACC,MAAmC,EAAE;IACjD,MAAM,IAAI,CAACR,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACM,SAAS,CAACC,MAAM,CAAC,EAC9CX,cAAc,CAACa,IACnB,CAAC;EACL;EAEA,MAAMC,aAAaA,CAAA,EAAG;IAClB,MAAM,IAAI,CAACX,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACU,aAAa,CAAC,CAAC,EAC5Cd,cAAc,CAACe,QACnB,CAAC;EACL;EAEA,MAAMC,UAAUA,CAACC,EAAU,EAAE;IACzB,MAAM,IAAI,CAACd,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACY,UAAU,CAACC,EAAE,CAAC,EAC3CjB,cAAc,CAACkB,MACnB,CAAC;EACL;EAEA,MAAMC,WAAWA,CAACF,EAAU,EAAE;IAC1B,MAAM,IAAI,CAACd,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACe,WAAW,CAACF,EAAE,CAAC,EAC5CjB,cAAc,CAACoB,OACnB,CAAC;EACL;EAEA,MAAMC,UAAUA,CAACC,MAAc,EAAEX,MAAiC,EAAE;IAChE,MAAM,IAAI,CAACP,uBAAuB,CAACiB,UAAU,CAACC,MAAM,EAAEX,MAAM,CAAC;EACjE;AACJ","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- export * from "./ITrashBinItemsRepository";
2
- export * from "./TrashBinItemMapper";
3
- export * from "./TrashBinItemsRepository";
4
- export * from "./TrashBinItemsRepositoryFactory";
5
- export * from "./TrashBinItemsRepositoryWithLoading";
1
+ export type * from "./ITrashBinItemsRepository.js";
2
+ export * from "./TrashBinItemMapper.js";
3
+ export * from "./TrashBinItemsRepository.js";
4
+ export * from "./TrashBinItemsRepositoryFactory.js";
5
+ export * from "./TrashBinItemsRepositoryWithLoading.js";
@@ -1,7 +1,6 @@
1
- export * from "./ITrashBinItemsRepository";
2
- export * from "./TrashBinItemMapper";
3
- export * from "./TrashBinItemsRepository";
4
- export * from "./TrashBinItemsRepositoryFactory";
5
- export * from "./TrashBinItemsRepositoryWithLoading";
1
+ export * from "./TrashBinItemMapper.js";
2
+ export * from "./TrashBinItemsRepository.js";
3
+ export * from "./TrashBinItemsRepositoryFactory.js";
4
+ export * from "./TrashBinItemsRepositoryWithLoading.js";
6
5
 
7
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ITrashBinItemsRepository\";\nexport * from \"./TrashBinItemMapper\";\nexport * from \"./TrashBinItemsRepository\";\nexport * from \"./TrashBinItemsRepositoryFactory\";\nexport * from \"./TrashBinItemsRepositoryWithLoading\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ITrashBinItemsRepository.js\";\nexport * from \"./TrashBinItemMapper.js\";\nexport * from \"./TrashBinItemsRepository.js\";\nexport * from \"./TrashBinItemsRepositoryFactory.js\";\nexport * from \"./TrashBinItemsRepositoryWithLoading.js\";\n"],"mappings":"AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- export * from "./Search";
2
- export * from "./SelectedItems";
3
- export * from "./Search";
4
- export * from "./Sorting";
5
- export * from "./TrashBinItems";
1
+ export * from "./Search/index.js";
2
+ export * from "./SelectedItems/index.js";
3
+ export * from "./Search/index.js";
4
+ export * from "./Sorting/index.js";
5
+ export * from "./TrashBinItems/index.js";
@@ -1,7 +1,7 @@
1
- export * from "./Search";
2
- export * from "./SelectedItems";
3
- export * from "./Search";
4
- export * from "./Sorting";
5
- export * from "./TrashBinItems";
1
+ export * from "./Search/index.js";
2
+ export * from "./SelectedItems/index.js";
3
+ export * from "./Search/index.js";
4
+ export * from "./Sorting/index.js";
5
+ export * from "./TrashBinItems/index.js";
6
6
 
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Search\";\nexport * from \"./SelectedItems\";\nexport * from \"./Search\";\nexport * from \"./Sorting\";\nexport * from \"./TrashBinItems\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Search/index.js\";\nexport * from \"./SelectedItems/index.js\";\nexport * from \"./Search/index.js\";\nexport * from \"./Sorting/index.js\";\nexport * from \"./TrashBinItems/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA","ignoreList":[]}
package/Domain/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Models";
2
- export * from "./Repositories";
1
+ export * from "./Models/index.js";
2
+ export * from "./Repositories/index.js";
package/Domain/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./Models";
2
- export * from "./Repositories";
1
+ export * from "./Models/index.js";
2
+ export * from "./Repositories/index.js";
3
3
 
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Models\";\nexport * from \"./Repositories\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Models/index.js\";\nexport * from \"./Repositories/index.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { TrashBinBulkActionsGatewayParams, TrashBinBulkActionsResponse } from "../../types";
1
+ import type { TrashBinBulkActionsGatewayParams, TrashBinBulkActionsResponse } from "../../types.js";
2
2
  export interface ITrashBinBulkActionsGateway {
3
3
  execute: (params: TrashBinBulkActionsGatewayParams) => Promise<TrashBinBulkActionsResponse>;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ITrashBinBulkActionsGateway.ts"],"sourcesContent":["import type { TrashBinBulkActionsGatewayParams, TrashBinBulkActionsResponse } from \"~/types\";\n\nexport interface ITrashBinBulkActionsGateway {\n execute: (params: TrashBinBulkActionsGatewayParams) => Promise<TrashBinBulkActionsResponse>;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["ITrashBinBulkActionsGateway.ts"],"sourcesContent":["import type { TrashBinBulkActionsGatewayParams, TrashBinBulkActionsResponse } from \"~/types.js\";\n\nexport interface ITrashBinBulkActionsGateway {\n execute: (params: TrashBinBulkActionsGatewayParams) => Promise<TrashBinBulkActionsResponse>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./ITrashBinBulkActionsGateway";
1
+ export type { ITrashBinBulkActionsGateway } from "./ITrashBinBulkActionsGateway.js";
@@ -1,3 +1,3 @@
1
- export * from "./ITrashBinBulkActionsGateway";
1
+ export {};
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ITrashBinBulkActionsGateway\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type { ITrashBinBulkActionsGateway } from \"./ITrashBinBulkActionsGateway.js\";\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./ITrashBinDeleteItemGateway";
1
+ export type { ITrashBinDeleteItemGateway } from "./ITrashBinDeleteItemGateway.js";
@@ -1,3 +1,3 @@
1
- export * from "./ITrashBinDeleteItemGateway";
1
+ export {};
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ITrashBinDeleteItemGateway\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type { ITrashBinDeleteItemGateway } from \"./ITrashBinDeleteItemGateway.js\";\n"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { TrashBinListQueryVariables, TrashBinMetaResponse } from "../../types";
1
+ import type { TrashBinListQueryVariables, TrashBinMetaResponse } from "../../types.js";
2
2
  export interface ITrashBinListGateway<TItem> {
3
3
  execute: (params: TrashBinListQueryVariables) => Promise<[TItem[], TrashBinMetaResponse]>;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ITrashBinListGateway.ts"],"sourcesContent":["import type { TrashBinListQueryVariables, TrashBinMetaResponse } from \"~/types\";\n\nexport interface ITrashBinListGateway<TItem> {\n execute: (params: TrashBinListQueryVariables) => Promise<[TItem[], TrashBinMetaResponse]>;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["ITrashBinListGateway.ts"],"sourcesContent":["import type { TrashBinListQueryVariables, TrashBinMetaResponse } from \"~/types.js\";\n\nexport interface ITrashBinListGateway<TItem> {\n execute: (params: TrashBinListQueryVariables) => Promise<[TItem[], TrashBinMetaResponse]>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./ITrashBinListGateway";
1
+ export type { ITrashBinListGateway } from "./ITrashBinListGateway.js";
@@ -1,3 +1,3 @@
1
- export * from "./ITrashBinListGateway";
1
+ export {};
2
2
 
3
3
  //# sourceMappingURL=index.js.map