infinity-forge 0.4.1 → 0.4.3

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 (255) hide show
  1. package/dist/system/container/admin/index.d.ts +3 -1
  2. package/dist/system/container/admin/index.js +2 -0
  3. package/dist/system/container/admin/index.js.map +1 -1
  4. package/dist/system/container/admin/menu/container.d.ts +3 -0
  5. package/dist/system/container/admin/menu/container.js +11 -0
  6. package/dist/system/container/admin/menu/container.js.map +1 -0
  7. package/dist/system/container/admin/menu/index.d.ts +2 -0
  8. package/dist/system/container/admin/menu/index.js +19 -0
  9. package/dist/system/container/admin/menu/index.js.map +1 -0
  10. package/dist/system/container/admin/menu/types.d.ts +3 -0
  11. package/dist/system/container/admin/menu/types.js +7 -0
  12. package/dist/system/container/admin/menu/types.js.map +1 -0
  13. package/dist/system/container/admin/users/container.d.ts +3 -0
  14. package/dist/system/container/admin/users/container.js +12 -0
  15. package/dist/system/container/admin/users/container.js.map +1 -0
  16. package/dist/system/container/admin/users/index.d.ts +2 -0
  17. package/dist/system/container/admin/users/index.js +19 -0
  18. package/dist/system/container/admin/users/index.js.map +1 -0
  19. package/dist/system/container/admin/users/types.d.ts +4 -0
  20. package/dist/system/container/admin/users/types.js +8 -0
  21. package/dist/system/container/admin/users/types.js.map +1 -0
  22. package/dist/system/container/main.d.ts +2 -2
  23. package/dist/system/container/main.js +2 -2
  24. package/dist/system/container/main.js.map +1 -1
  25. package/dist/system/container/types.d.ts +3 -0
  26. package/dist/system/container/types.js +1 -1
  27. package/dist/system/container/types.js.map +1 -1
  28. package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +1 -1
  29. package/dist/system/data/use-cases/index.d.ts +3 -1
  30. package/dist/system/data/use-cases/index.js +2 -0
  31. package/dist/system/data/use-cases/index.js.map +1 -1
  32. package/dist/system/data/use-cases/menu/index.d.ts +1 -0
  33. package/dist/system/data/use-cases/menu/index.js +18 -0
  34. package/dist/system/data/use-cases/menu/index.js.map +1 -0
  35. package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +8 -0
  36. package/dist/system/data/use-cases/menu/remote-get-menu.js +109 -0
  37. package/dist/system/data/use-cases/menu/remote-get-menu.js.map +1 -0
  38. package/dist/system/data/use-cases/users/index.d.ts +2 -0
  39. package/dist/system/data/use-cases/users/index.js +19 -0
  40. package/dist/system/data/use-cases/users/index.js.map +1 -0
  41. package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +8 -0
  42. package/dist/system/data/use-cases/users/remote-load-user-admin.js +109 -0
  43. package/dist/system/data/use-cases/users/remote-load-user-admin.js.map +1 -0
  44. package/dist/system/data/use-cases/users/remote-users.d.ts +12 -0
  45. package/dist/system/data/use-cases/users/remote-users.js +177 -0
  46. package/dist/system/data/use-cases/users/remote-users.js.map +1 -0
  47. package/dist/system/domain/generics/index.d.ts +1 -0
  48. package/dist/system/domain/generics/index.js +1 -0
  49. package/dist/system/domain/generics/index.js.map +1 -1
  50. package/dist/system/domain/generics/pagination.d.ts +14 -0
  51. package/dist/system/domain/generics/pagination.js +3 -0
  52. package/dist/system/domain/generics/pagination.js.map +1 -0
  53. package/dist/system/domain/generics/return-type.d.ts +8 -0
  54. package/dist/system/domain/generics/return-type.js +3 -0
  55. package/dist/system/domain/generics/return-type.js.map +1 -0
  56. package/dist/system/domain/index.d.ts +3 -3
  57. package/dist/system/domain/index.js.map +1 -1
  58. package/dist/system/domain/protocols/cache/get-storage.d.ts +1 -1
  59. package/dist/system/domain/protocols/cache/set-storage.d.ts +1 -1
  60. package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.d.ts +8 -0
  61. package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.js +11 -0
  62. package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.js.map +1 -0
  63. package/dist/system/domain/protocols/http/http-client.d.ts +1 -0
  64. package/dist/system/domain/protocols/http/http-client.js +1 -0
  65. package/dist/system/domain/protocols/http/http-client.js.map +1 -1
  66. package/dist/system/domain/use-cases/auth/admin/auth-admin.d.ts +3 -4
  67. package/dist/system/domain/use-cases/index.d.ts +3 -1
  68. package/dist/system/domain/use-cases/index.js +2 -0
  69. package/dist/system/domain/use-cases/index.js.map +1 -1
  70. package/dist/system/domain/use-cases/menu/index.d.ts +1 -0
  71. package/dist/system/{pages → domain/use-cases/menu}/index.js +1 -1
  72. package/dist/system/domain/use-cases/menu/index.js.map +1 -0
  73. package/dist/system/domain/use-cases/menu/load-menu.d.ts +15 -0
  74. package/dist/system/domain/use-cases/menu/load-menu.js +3 -0
  75. package/dist/system/domain/use-cases/menu/load-menu.js.map +1 -0
  76. package/dist/system/domain/use-cases/users/create-user.d.ts +15 -0
  77. package/dist/system/domain/use-cases/users/create-user.js +3 -0
  78. package/dist/system/domain/use-cases/users/create-user.js.map +1 -0
  79. package/dist/system/domain/use-cases/users/delete-user.d.ts +10 -0
  80. package/dist/system/domain/use-cases/users/delete-user.js +3 -0
  81. package/dist/system/domain/use-cases/users/delete-user.js.map +1 -0
  82. package/dist/system/domain/use-cases/users/edit-user.d.ts +8 -0
  83. package/dist/system/domain/use-cases/users/edit-user.js +3 -0
  84. package/dist/system/domain/use-cases/users/edit-user.js.map +1 -0
  85. package/dist/system/domain/use-cases/users/get-detail-user.d.ts +10 -0
  86. package/dist/system/domain/use-cases/users/get-detail-user.js +3 -0
  87. package/dist/system/domain/use-cases/users/get-detail-user.js.map +1 -0
  88. package/dist/system/domain/use-cases/users/index.d.ts +6 -0
  89. package/dist/system/domain/use-cases/users/index.js +23 -0
  90. package/dist/system/domain/use-cases/users/index.js.map +1 -0
  91. package/dist/system/domain/use-cases/users/load-all-users.d.ts +23 -0
  92. package/dist/system/domain/use-cases/users/load-all-users.js +3 -0
  93. package/dist/system/domain/use-cases/users/load-all-users.js.map +1 -0
  94. package/dist/system/domain/use-cases/users/load-user-admin.d.ts +15 -0
  95. package/dist/system/domain/use-cases/users/load-user-admin.js +3 -0
  96. package/dist/system/domain/use-cases/users/load-user-admin.js.map +1 -0
  97. package/dist/system/index.d.ts +0 -1
  98. package/dist/system/index.js +0 -1
  99. package/dist/system/index.js.map +1 -1
  100. package/dist/system/infra/cache/cookie-storage-adapter.d.ts +4 -4
  101. package/dist/system/infra/cache/cookie-storage-adapter.js +6 -50
  102. package/dist/system/infra/cache/cookie-storage-adapter.js.map +1 -1
  103. package/dist/system/infra/http/axios-http-client.js +6 -1
  104. package/dist/system/infra/http/axios-http-client.js.map +1 -1
  105. package/dist/system/presentation/components/index.d.ts +3 -2
  106. package/dist/system/presentation/components/index.js +1 -0
  107. package/dist/system/presentation/components/index.js.map +1 -1
  108. package/dist/system/presentation/components/layout/header/version-01/index.js +1 -1
  109. package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
  110. package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +1 -1
  111. package/dist/system/presentation/components/layout/header/version-01/styles.js +2 -2
  112. package/dist/system/presentation/components/layout/header/version-01/styles.js.map +1 -1
  113. package/dist/system/presentation/components/layout/menu/components/menu/index.js +10 -5
  114. package/dist/system/presentation/components/layout/menu/components/menu/index.js.map +1 -1
  115. package/dist/system/presentation/components/pages/index.d.ts +1 -0
  116. package/dist/system/presentation/components/pages/index.js +18 -0
  117. package/dist/system/presentation/components/pages/index.js.map +1 -0
  118. package/dist/system/presentation/components/pages/users/index.d.ts +1 -0
  119. package/dist/system/presentation/components/pages/users/index.js +18 -0
  120. package/dist/system/presentation/components/pages/users/index.js.map +1 -0
  121. package/dist/system/presentation/components/pages/users/page.d.ts +1 -0
  122. package/dist/system/presentation/components/pages/users/page.js +35 -0
  123. package/dist/system/presentation/components/pages/users/page.js.map +1 -0
  124. package/dist/system/presentation/components/pages/users/table/columns.d.ts +3 -0
  125. package/dist/system/presentation/components/pages/users/table/columns.js +9 -0
  126. package/dist/system/presentation/components/pages/users/table/columns.js.map +1 -0
  127. package/dist/system/presentation/components/pages/users/table/delete.d.ts +3 -0
  128. package/dist/system/presentation/components/pages/users/table/delete.js +74 -0
  129. package/dist/system/presentation/components/pages/users/table/delete.js.map +1 -0
  130. package/dist/system/presentation/components/pages/users/table/edit.d.ts +3 -0
  131. package/dist/system/presentation/components/pages/users/table/edit.js +87 -0
  132. package/dist/system/presentation/components/pages/users/table/edit.js.map +1 -0
  133. package/dist/system/presentation/components/pages/users/table/index.d.ts +3 -0
  134. package/dist/system/presentation/components/pages/users/table/index.js +20 -0
  135. package/dist/system/presentation/components/pages/users/table/index.js.map +1 -0
  136. package/dist/system/presentation/configs/index.d.ts +0 -1
  137. package/dist/system/presentation/configs/index.js +0 -1
  138. package/dist/system/presentation/configs/index.js.map +1 -1
  139. package/dist/system/presentation/context/auth/context.d.ts +1 -6
  140. package/dist/system/presentation/context/auth/context.js +36 -8
  141. package/dist/system/presentation/context/auth/context.js.map +1 -1
  142. package/dist/system/presentation/context/auth/interfaces.d.ts +6 -0
  143. package/dist/system/presentation/context/auth/interfaces.js +3 -0
  144. package/dist/system/presentation/context/auth/interfaces.js.map +1 -0
  145. package/dist/system/presentation/context/auth/private-page/index.js +1 -1
  146. package/dist/system/presentation/context/auth/private-page/index.js.map +1 -1
  147. package/dist/system/presentation/hooks/index.d.ts +2 -1
  148. package/dist/system/presentation/hooks/index.js +1 -0
  149. package/dist/system/presentation/hooks/index.js.map +1 -1
  150. package/dist/system/presentation/hooks/menu/index.d.ts +1 -0
  151. package/dist/system/presentation/hooks/menu/index.js +18 -0
  152. package/dist/system/presentation/hooks/menu/index.js.map +1 -0
  153. package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -0
  154. package/dist/system/presentation/hooks/menu/use-load-menu.js +70 -0
  155. package/dist/system/presentation/hooks/menu/use-load-menu.js.map +1 -0
  156. package/dist/system/presentation/hooks/ui/use-table/component.d.ts +2 -3
  157. package/dist/system/presentation/hooks/ui/use-table/component.js +15 -4
  158. package/dist/system/presentation/hooks/ui/use-table/component.js.map +1 -1
  159. package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +0 -2
  160. package/dist/system/presentation/hooks/ui/use-table/components/index.js +0 -2
  161. package/dist/system/presentation/hooks/ui/use-table/components/index.js.map +1 -1
  162. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +5 -0
  163. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +78 -0
  164. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js.map +1 -0
  165. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
  166. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +29 -29
  167. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js.map +1 -1
  168. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +5 -7
  169. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +2 -0
  170. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +68 -0
  171. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js.map +1 -0
  172. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.d.ts +25 -0
  173. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js +53 -0
  174. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js.map +1 -0
  175. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +2 -0
  176. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.js +14 -0
  177. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.js.map +1 -0
  178. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +1 -2
  179. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js.map +1 -1
  180. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +2 -2
  181. package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -2
  182. package/dist/system/presentation/hooks/ui/use-table/index.js +0 -2
  183. package/dist/system/presentation/hooks/ui/use-table/index.js.map +1 -1
  184. package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +40 -39
  185. package/dist/system/presentation/hooks/ui/use-table/query.d.ts +3 -0
  186. package/dist/system/presentation/hooks/ui/use-table/query.js +68 -0
  187. package/dist/system/presentation/hooks/ui/use-table/query.js.map +1 -0
  188. package/dist/system/presentation/hooks/users/load-all-users.d.ts +1 -0
  189. package/dist/system/presentation/hooks/users/load-all-users.js +9 -0
  190. package/dist/system/presentation/hooks/users/load-all-users.js.map +1 -0
  191. package/dist/system/presentation/index.d.ts +1 -0
  192. package/dist/system/presentation/index.js +1 -0
  193. package/dist/system/presentation/index.js.map +1 -1
  194. package/dist/system/presentation/utils/index.d.ts +1 -0
  195. package/dist/system/presentation/utils/index.js +18 -0
  196. package/dist/system/presentation/utils/index.js.map +1 -0
  197. package/dist/system/presentation/utils/use-query/call-api-one-time.d.ts +5 -0
  198. package/dist/system/presentation/utils/use-query/call-api-one-time.js +9 -0
  199. package/dist/system/presentation/utils/use-query/call-api-one-time.js.map +1 -0
  200. package/dist/system/presentation/utils/use-query/index.d.ts +1 -0
  201. package/dist/system/presentation/utils/use-query/index.js +18 -0
  202. package/dist/system/presentation/utils/use-query/index.js.map +1 -0
  203. package/dist/ui/components/breadcrumb/index.js +22 -22
  204. package/dist/ui/components/breadcrumb/index.js.map +1 -1
  205. package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -0
  206. package/dist/ui/components/form/handler/dynamic_form_handler/index.js +62 -0
  207. package/dist/ui/components/form/handler/dynamic_form_handler/index.js.map +1 -0
  208. package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +21 -0
  209. package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.js +3 -0
  210. package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.js.map +1 -0
  211. package/dist/ui/components/form/handler/form-handler/index.js +5 -0
  212. package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
  213. package/dist/ui/components/form/handler/styles.js +1 -1
  214. package/dist/ui/components/form/handler/styles.js.map +1 -1
  215. package/dist/ui/components/form/interfaces.d.ts +1 -1
  216. package/dist/ui/components/index.d.ts +1 -0
  217. package/dist/ui/components/index.js +1 -0
  218. package/dist/ui/components/index.js.map +1 -1
  219. package/dist/ui/components/loading-screen/index.d.ts +3 -0
  220. package/dist/{system/pages/usuarios → ui/components/loading-screen}/index.js +11 -28
  221. package/dist/ui/components/loading-screen/index.js.map +1 -0
  222. package/dist/ui/components/loading-screen/interfaces.d.ts +4 -0
  223. package/dist/ui/components/loading-screen/interfaces.js +3 -0
  224. package/dist/ui/components/loading-screen/interfaces.js.map +1 -0
  225. package/dist/ui/components/loading-screen/styles.d.ts +4 -0
  226. package/dist/ui/components/loading-screen/styles.js +39 -0
  227. package/dist/ui/components/loading-screen/styles.js.map +1 -0
  228. package/dist/ui/icons/index.d.ts +1 -0
  229. package/dist/ui/icons/index.js +1 -0
  230. package/dist/ui/icons/index.js.map +1 -1
  231. package/dist/ui/icons/render/LongArrowRight.js +1 -1
  232. package/dist/ui/icons/render/LongArrowRight.js.map +1 -1
  233. package/dist/ui/icons/render/Map.js +1 -1
  234. package/dist/ui/icons/render/Map.js.map +1 -1
  235. package/dist/ui/icons/render/loading.d.ts +2 -0
  236. package/dist/ui/icons/render/loading.js +10 -0
  237. package/dist/ui/icons/render/loading.js.map +1 -0
  238. package/dist/ui/icons/render/phone-message.js +1 -1
  239. package/dist/ui/icons/render/phone-message.js.map +1 -1
  240. package/dist/ui/icons/render/user.js +1 -1
  241. package/dist/ui/icons/render/user.js.map +1 -1
  242. package/dist/ui/utils/libs/next/index.d.ts +1 -0
  243. package/dist/ui/utils/libs/next/index.js +1 -0
  244. package/dist/ui/utils/libs/next/index.js.map +1 -1
  245. package/dist/ui/utils/libs/next/update-route.d.ts +6 -0
  246. package/dist/ui/utils/libs/next/update-route.js +31 -0
  247. package/dist/ui/utils/libs/next/update-route.js.map +1 -0
  248. package/package.json +1 -1
  249. package/dist/system/pages/index.d.ts +0 -1
  250. package/dist/system/pages/index.js.map +0 -1
  251. package/dist/system/pages/usuarios/index.d.ts +0 -1
  252. package/dist/system/pages/usuarios/index.js.map +0 -1
  253. package/dist/system/pages/usuarios/styles.d.ts +0 -4
  254. package/dist/system/pages/usuarios/styles.js +0 -14
  255. package/dist/system/pages/usuarios/styles.js.map +0 -1
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || function (mod) {
25
+ if (mod && mod.__esModule) return mod;
26
+ var result = {};
27
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28
+ __setModuleDefault(result, mod);
29
+ return result;
30
+ };
31
+ var __metadata = (this && this.__metadata) || function (k, v) {
32
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
33
+ };
34
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
35
+ return function (target, key) { decorator(target, key, paramIndex); }
36
+ };
37
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
38
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
39
+ return new (P || (P = Promise))(function (resolve, reject) {
40
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
41
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
42
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
43
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
44
+ });
45
+ };
46
+ var __generator = (this && this.__generator) || function (thisArg, body) {
47
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
48
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
49
+ function verb(n) { return function (v) { return step([n, v]); }; }
50
+ function step(op) {
51
+ if (f) throw new TypeError("Generator is already executing.");
52
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
53
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
54
+ if (y = 0, t) op = [op[0] & 2, t.value];
55
+ switch (op[0]) {
56
+ case 0: case 1: t = op; break;
57
+ case 4: _.label++; return { value: op[1], done: false };
58
+ case 5: _.label++; y = op[1]; op = [0]; continue;
59
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
60
+ default:
61
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
62
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
63
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
64
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
65
+ if (t[2]) _.ops.pop();
66
+ _.trys.pop(); continue;
67
+ }
68
+ op = body.call(thisArg, _);
69
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
70
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
71
+ }
72
+ };
73
+ Object.defineProperty(exports, "__esModule", { value: true });
74
+ exports.RemoteUsers = void 0;
75
+ var inversify_1 = require("inversify");
76
+ var domain = __importStar(require("../../../../system/domain/index.js"));
77
+ var types_1 = require("../../../../system/container/infra/types.js");
78
+ var make_api_url_1 = require("../../../../system/container/infra/make-api-url.js");
79
+ var RemoteUsers = /** @class */ (function () {
80
+ function RemoteUsers(makeApiURL, httpClient) {
81
+ this.makeApiURL = makeApiURL;
82
+ this.httpClient = httpClient;
83
+ }
84
+ RemoteUsers.prototype.loadAll = function (params) {
85
+ return __awaiter(this, void 0, void 0, function () {
86
+ var response;
87
+ return __generator(this, function (_a) {
88
+ switch (_a.label) {
89
+ case 0: return [4 /*yield*/, this.httpClient.request({
90
+ url: this.makeApiURL.make('Users'),
91
+ method: 'get',
92
+ body: params,
93
+ })];
94
+ case 1:
95
+ response = _a.sent();
96
+ return [2 /*return*/, response.data];
97
+ }
98
+ });
99
+ });
100
+ };
101
+ RemoteUsers.prototype.create = function (params) {
102
+ return __awaiter(this, void 0, void 0, function () {
103
+ var response;
104
+ return __generator(this, function (_a) {
105
+ switch (_a.label) {
106
+ case 0: return [4 /*yield*/, this.httpClient.request({
107
+ url: this.makeApiURL.make('Users'),
108
+ method: 'post',
109
+ body: params,
110
+ })];
111
+ case 1:
112
+ response = _a.sent();
113
+ return [2 /*return*/, response.data];
114
+ }
115
+ });
116
+ });
117
+ };
118
+ RemoteUsers.prototype.delete = function (params) {
119
+ return __awaiter(this, void 0, void 0, function () {
120
+ var response;
121
+ return __generator(this, function (_a) {
122
+ switch (_a.label) {
123
+ case 0: return [4 /*yield*/, this.httpClient.request({
124
+ url: this.makeApiURL.make("Users"),
125
+ method: "delete",
126
+ body: params
127
+ })];
128
+ case 1:
129
+ response = _a.sent();
130
+ return [2 /*return*/, response];
131
+ }
132
+ });
133
+ });
134
+ };
135
+ RemoteUsers.prototype.edit = function (params) {
136
+ return __awaiter(this, void 0, void 0, function () {
137
+ var response;
138
+ return __generator(this, function (_a) {
139
+ switch (_a.label) {
140
+ case 0: return [4 /*yield*/, this.httpClient.request({
141
+ url: this.makeApiURL.make("Users"),
142
+ method: "put",
143
+ body: params
144
+ })];
145
+ case 1:
146
+ response = _a.sent();
147
+ return [2 /*return*/, response];
148
+ }
149
+ });
150
+ });
151
+ };
152
+ RemoteUsers.prototype.getDetail = function (params) {
153
+ return __awaiter(this, void 0, void 0, function () {
154
+ var response;
155
+ return __generator(this, function (_a) {
156
+ switch (_a.label) {
157
+ case 0: return [4 /*yield*/, this.httpClient.request({
158
+ url: this.makeApiURL.make("Users/".concat(params.id)),
159
+ method: "get"
160
+ })];
161
+ case 1:
162
+ response = _a.sent();
163
+ return [2 /*return*/, response];
164
+ }
165
+ });
166
+ });
167
+ };
168
+ RemoteUsers = __decorate([
169
+ (0, inversify_1.injectable)(),
170
+ __param(0, (0, inversify_1.inject)(types_1.InfraTypes.makeApiURL)),
171
+ __param(1, (0, inversify_1.inject)(types_1.InfraTypes.authorizeAdminHttp)),
172
+ __metadata("design:paramtypes", [make_api_url_1.makeApiURL, Object])
173
+ ], RemoteUsers);
174
+ return RemoteUsers;
175
+ }());
176
+ exports.RemoteUsers = RemoteUsers;
177
+ //# sourceMappingURL=remote-users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-users.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/users/remote-users.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,sDAAyC;AACzC,wDAA2D;AAC3D,sEAAkE;AAGlE;IACE,qBACkD,UAAsB,EACd,UAA6B;QADrC,eAAU,GAAV,UAAU,CAAY;QACd,eAAU,GAAV,UAAU,CAAmB;IACpF,CAAC;IAEE,6BAAO,GAAb,UAAc,MAAkC;;;;;4BAC7B,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;4BAClC,MAAM,EAAE,KAAK;4BACb,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,CAAC,IAAiC,EAAA;;;;KAClD;IAEK,4BAAM,GAAZ,UAAa,MAAgC;;;;;4BAC1B,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;4BAClC,MAAM,EAAE,MAAM;4BACd,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,CAAC,IAA+B,EAAA;;;;KAChD;IAEK,4BAAM,GAAZ,UAAa,MAAgC;;;;;4BAC1B,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;4BAClC,MAAM,EAAE,QAAQ;4BAChB,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,EAAA;;;;KAChB;IAEK,0BAAI,GAAV,UAAW,MAA8B;;;;;4BACtB,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;4BAClC,MAAM,EAAE,KAAK;4BACb,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,EAAA;;;;KAChB;IAEK,+BAAS,GAAf,UAAgB,MAAoC;;;;;4BACjC,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAS,MAAM,CAAC,EAAE,CAAE,CAAC;4BAC/C,MAAM,EAAE,KAAK;yBACd,CAAC,EAAA;;wBAHI,QAAQ,GAAG,SAGf;wBAEF,sBAAO,QAAQ,EAAA;;;;KAChB;IArDU,WAAW;QADvB,IAAA,sBAAU,GAAE;QAGR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,UAAU,CAAC,CAAA;QAC7B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,kBAAkB,CAAC,CAAA;yCADsB,yBAAU;OAF7D,WAAW,CAsDvB;IAAD,kBAAC;CAAA,AAvDD,IAuDC;AAtDY,kCAAW"}
@@ -1 +1,2 @@
1
1
  export * from './list.js';
2
+ export * from "./pagination.js";
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./list.js"), exports);
18
+ __exportStar(require("./pagination.js"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/domain/generics/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/domain/generics/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B"}
@@ -0,0 +1,14 @@
1
+ export type PaginationModel = {
2
+ endPage: number;
3
+ hasNextPage: boolean;
4
+ hasPreviousPage: boolean;
5
+ page: number;
6
+ pageSize: number;
7
+ pages: number[];
8
+ startPage: number;
9
+ totalItems: number;
10
+ totalPages: number;
11
+ };
12
+ export type Pagination = {
13
+ pagination: PaginationModel;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../../src/system/domain/generics/pagination.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { HttpStatusCode, ValidationErrorModel } from "../protocols/index.js";
2
+ export type Response<T = any> = {
3
+ data: T;
4
+ status: HttpStatusCode;
5
+ title: string;
6
+ message?: string | null;
7
+ validationErros?: ValidationErrorModel;
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=return-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"return-type.js","sourceRoot":"","sources":["../../../../src/system/domain/generics/return-type.ts"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
- export * from "./generics/index.js";
2
- export * from "./protocols/index.js";
3
- export * from "./use-cases/index.js";
1
+ export * from './generics/index.js';
2
+ export * from './protocols/index.js';
3
+ export * from './use-cases/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,8CAA2B;AAC3B,8CAA2B"}
@@ -1,4 +1,4 @@
1
1
  import { CacheValues } from "./cache-keys.js";
2
2
  export interface GetStorage {
3
- get: <T extends keyof CacheValues>(key: keyof CacheValues) => Promise<CacheValues[T] | null>;
3
+ get: <T extends keyof CacheValues>(key: keyof CacheValues) => CacheValues[T] | null;
4
4
  }
@@ -1,4 +1,4 @@
1
1
  import { CacheValues } from "./cache-keys.js";
2
2
  export interface SetStorage {
3
- set: <T extends keyof CacheValues>(key: T, value: CacheValues[T]) => Promise<any>;
3
+ set: <T extends keyof CacheValues>(key: T, value: CacheValues[T]) => any;
4
4
  }
@@ -0,0 +1,8 @@
1
+ export interface ConflictErrorModel {
2
+ code: string;
3
+ message: string;
4
+ }
5
+ export declare class ConflictError {
6
+ error: ConflictErrorModel;
7
+ constructor(error: ConflictErrorModel);
8
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConflictError = void 0;
4
+ var ConflictError = /** @class */ (function () {
5
+ function ConflictError(error) {
6
+ this.error = error;
7
+ }
8
+ return ConflictError;
9
+ }());
10
+ exports.ConflictError = ConflictError;
11
+ //# sourceMappingURL=conflict-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conflict-error.js","sourceRoot":"","sources":["../../../../../../../src/system/domain/protocols/http/errors/http-errors/conflict-error.ts"],"names":[],"mappings":";;;AAKA;IAGE,uBAAY,KAAyB;QACnC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IACH,oBAAC;AAAD,CAAC,AAND,IAMC;AANY,sCAAa"}
@@ -16,6 +16,7 @@ export declare enum HttpStatusCode {
16
16
  forbidden = 403,
17
17
  badRequest = 400,
18
18
  serverError = 500,
19
+ conflict = 409,
19
20
  unauthorized = 401,
20
21
  unprocessableEntity = 422
21
22
  }
@@ -12,6 +12,7 @@ var HttpStatusCode;
12
12
  HttpStatusCode[HttpStatusCode["forbidden"] = 403] = "forbidden";
13
13
  HttpStatusCode[HttpStatusCode["badRequest"] = 400] = "badRequest";
14
14
  HttpStatusCode[HttpStatusCode["serverError"] = 500] = "serverError";
15
+ HttpStatusCode[HttpStatusCode["conflict"] = 409] = "conflict";
15
16
  HttpStatusCode[HttpStatusCode["unauthorized"] = 401] = "unauthorized";
16
17
  HttpStatusCode[HttpStatusCode["unprocessableEntity"] = 422] = "unprocessableEntity";
17
18
  })(HttpStatusCode || (exports.HttpStatusCode = HttpStatusCode = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"http-client.js","sourceRoot":"","sources":["../../../../../src/system/domain/protocols/http/http-client.ts"],"names":[],"mappings":";;;AAWA,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB,iDAAQ,CAAA;IACR,+DAAe,CAAA;IACf,yDAAY,CAAA;IACZ,mEAAiB,CAAA;IACjB,6DAAc,CAAA;IACd,+DAAe,CAAA;IACf,+DAAe,CAAA;IACf,iEAAgB,CAAA;IAChB,mEAAiB,CAAA;IACjB,qEAAkB,CAAA;IAClB,mFAAyB,CAAA;AAC3B,CAAC,EAZW,cAAc,8BAAd,cAAc,QAYzB"}
1
+ {"version":3,"file":"http-client.js","sourceRoot":"","sources":["../../../../../src/system/domain/protocols/http/http-client.ts"],"names":[],"mappings":";;;AAWA,IAAY,cAaX;AAbD,WAAY,cAAc;IACxB,iDAAQ,CAAA;IACR,+DAAe,CAAA;IACf,yDAAY,CAAA;IACZ,mEAAiB,CAAA;IACjB,6DAAc,CAAA;IACd,+DAAe,CAAA;IACf,+DAAe,CAAA;IACf,iEAAgB,CAAA;IAChB,mEAAiB,CAAA;IACjB,6DAAc,CAAA;IACd,qEAAkB,CAAA;IAClB,mFAAyB,CAAA;AAC3B,CAAC,EAbW,cAAc,8BAAd,cAAc,QAazB"}
@@ -1,13 +1,12 @@
1
1
  export type AuthAdmin = {
2
2
  auth: (params: AuthAdmin.Params) => Promise<AuthAdmin.Model>;
3
3
  };
4
- export type User = {
5
- token: string;
6
- };
7
4
  export declare namespace AuthAdmin {
8
5
  type Params = {
9
6
  emailAddress: string;
10
7
  password: string;
11
8
  };
12
- type Model = User;
9
+ type Model = {
10
+ token: string;
11
+ };
13
12
  }
@@ -1 +1,3 @@
1
- export * from "./auth/index.js";
1
+ export * from './auth/index.js';
2
+ export * from './menu/index.js';
3
+ export * from './users/index.js';
@@ -15,4 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth/index.js"), exports);
18
+ __exportStar(require("./menu/index.js"), exports);
19
+ __exportStar(require("./users/index.js"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/domain/use-cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/domain/use-cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB"}
@@ -0,0 +1 @@
1
+ export * from './load-menu.js';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./usuarios/index.js"), exports);
17
+ __exportStar(require("./load-menu.js"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/menu/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}
@@ -0,0 +1,15 @@
1
+ import { List } from '../../../../system/index.js';
2
+ import { IconsNames } from '../../../../ui/index.js';
3
+ export type LoadMenu = {
4
+ load: () => Promise<LoadMenu.Model>;
5
+ };
6
+ export type IMenu = {
7
+ order: number;
8
+ title: string;
9
+ icon: IconsNames;
10
+ route?: string;
11
+ items?: IMenu[];
12
+ };
13
+ export declare namespace LoadMenu {
14
+ type Model = List<IMenu>;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=load-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-menu.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/menu/load-menu.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export type CreateUser = {
2
+ create: (params: CreateUser.Params) => Promise<CreateUser.Model>;
3
+ };
4
+ export declare namespace CreateUser {
5
+ type Params = {
6
+ firstName: string;
7
+ lastName: string;
8
+ emailAddress: string;
9
+ password: string;
10
+ avatar: string;
11
+ imagem: string;
12
+ isExternal: boolean;
13
+ };
14
+ type Model = {};
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=create-user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/users/create-user.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { User } from "./load-all-users.js";
2
+ export type DeleteUser = {
3
+ delete: (params: DeleteUser.Params) => Promise<DeleteUser.Model>;
4
+ };
5
+ export declare namespace DeleteUser {
6
+ type Params = {
7
+ id: User["id"];
8
+ };
9
+ type Model = {};
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=delete-user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/users/delete-user.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { User } from './load-all-users.js';
2
+ export type EditUser = {
3
+ edit: (params: EditUser.Params) => Promise<EditUser.Model>;
4
+ };
5
+ export declare namespace EditUser {
6
+ type Params = User;
7
+ type Model = {};
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=edit-user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-user.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/users/edit-user.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { User } from "./load-all-users.js";
2
+ export type LoadDetailUser = {
3
+ load: (params: LoadDetailUser.Params) => Promise<LoadDetailUser.Model>;
4
+ };
5
+ export declare namespace LoadDetailUser {
6
+ type Params = {
7
+ id: User["id"];
8
+ };
9
+ type Model = User;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-detail-user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-detail-user.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/users/get-detail-user.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export * from './edit-user.js';
2
+ export * from './create-user.js';
3
+ export * from './delete-user.js';
4
+ export * from './load-all-users.js';
5
+ export * from './load-user-admin.js';
6
+ export * from "./get-detail-user.js";
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./edit-user.js"), exports);
18
+ __exportStar(require("./create-user.js"), exports);
19
+ __exportStar(require("./delete-user.js"), exports);
20
+ __exportStar(require("./load-all-users.js"), exports);
21
+ __exportStar(require("./load-user-admin.js"), exports);
22
+ __exportStar(require("./get-detail-user.js"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,gDAA6B;AAC7B,gDAA6B;AAC7B,mDAAgC;AAChC,oDAAiC;AACjC,oDAAiC"}
@@ -0,0 +1,23 @@
1
+ import { List, Pagination } from '../../generics/index.js';
2
+ export type LoadAllUsers = {
3
+ loadAll: (params: LoadAllUsers.Params) => Promise<LoadAllUsers.Model>;
4
+ };
5
+ export type User = {
6
+ id: number;
7
+ fullName: string;
8
+ emailAddress: string;
9
+ lastName: string;
10
+ password: string;
11
+ roleGate: string;
12
+ avatar: string;
13
+ imagem: string;
14
+ isExternal: true;
15
+ firstName: string;
16
+ };
17
+ export declare namespace LoadAllUsers {
18
+ type Params = {
19
+ pageSize: number;
20
+ pageNumber: number;
21
+ };
22
+ type Model = Pagination & List<User>;
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=load-all-users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-all-users.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/users/load-all-users.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export type LoadUserAdmin = {
2
+ load: () => Promise<LoadUserAdmin.Model>;
3
+ };
4
+ export type UserAdmin = {
5
+ avatar: string;
6
+ emailAddress: string;
7
+ firstName: string;
8
+ id: number;
9
+ imagem: null;
10
+ isExternal: boolean;
11
+ lastName: string;
12
+ };
13
+ export declare namespace LoadUserAdmin {
14
+ type Model = UserAdmin;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=load-user-admin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-user-admin.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/users/load-user-admin.ts"],"names":[],"mappings":""}
@@ -1,5 +1,4 @@
1
1
  export * from './data/index.js';
2
- export * from './pages/index.js';
3
2
  export * from './infra/index.js';
4
3
  export * from './domain/index.js';
5
4
  export * from './container/index.js';
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./data/index.js"), exports);
18
- __exportStar(require("./pages/index.js"), exports);
19
18
  __exportStar(require("./infra/index.js"), exports);
20
19
  __exportStar(require("./domain/index.js"), exports);
21
20
  __exportStar(require("./container/index.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,0CAAuB;AACvB,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,iDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,iDAA8B"}
@@ -1,6 +1,6 @@
1
- import { Storage } from "../../../system/infra/index.js";
2
- import { CacheValues } from "../../../system/domain/index.js";
1
+ import { Storage } from '../../../system/infra/index.js';
2
+ import { CacheValues } from '../../../system/domain/index.js';
3
3
  export declare class CookieStorageAdapter implements Storage {
4
- set<T extends keyof CacheValues>(key: T, value: CacheValues[T]): Promise<any>;
5
- get<T extends keyof CacheValues>(key: keyof CacheValues): Promise<CacheValues[T]>;
4
+ set<T extends keyof CacheValues>(key: T, value: CacheValues[T]): any;
5
+ get<T extends keyof CacheValues>(key: keyof CacheValues): CacheValues[T];
6
6
  }