@opengis/fcore 0.0.1-beta.1 → 0.0.1-beta.10

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 (243) hide show
  1. package/dist/config.d.ts +2 -10
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js +1 -1
  4. package/dist/context.js +1 -1
  5. package/dist/errors.js +1 -1
  6. package/dist/fastify.d.ts +5 -5
  7. package/dist/fastify.d.ts.map +1 -1
  8. package/dist/fastify.js +1 -1
  9. package/dist/fcore.js +1 -1
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/migrations/cli.js +1 -1
  14. package/dist/migrations/runner.js +1 -1
  15. package/dist/modules/auth/adduser-cli.d.ts +3 -0
  16. package/dist/modules/auth/adduser-cli.d.ts.map +1 -0
  17. package/dist/modules/auth/adduser-cli.js +2 -0
  18. package/dist/modules/auth/passwd-cli.d.ts +3 -0
  19. package/dist/modules/auth/passwd-cli.d.ts.map +1 -0
  20. package/dist/modules/auth/passwd-cli.js +2 -0
  21. package/dist/modules/auth/permission-cli.d.ts +3 -0
  22. package/dist/modules/auth/permission-cli.d.ts.map +1 -0
  23. package/dist/modules/auth/permission-cli.js +2 -0
  24. package/dist/modules/auth/route.d.ts.map +1 -1
  25. package/dist/modules/auth/route.js +1 -1
  26. package/dist/modules/auth/schema.d.ts +10 -1
  27. package/dist/modules/auth/schema.d.ts.map +1 -1
  28. package/dist/modules/auth/schema.js +1 -1
  29. package/dist/modules/auth/services/change-password.d.ts +9 -0
  30. package/dist/modules/auth/services/change-password.d.ts.map +1 -0
  31. package/dist/modules/auth/services/change-password.js +1 -0
  32. package/dist/modules/auth/services/get-current-user.d.ts +1 -0
  33. package/dist/modules/auth/services/get-current-user.d.ts.map +1 -1
  34. package/dist/modules/auth/services/get-current-user.js +1 -1
  35. package/dist/modules/auth/services/registration.d.ts +14 -0
  36. package/dist/modules/auth/services/registration.d.ts.map +1 -0
  37. package/dist/modules/auth/services/registration.js +1 -0
  38. package/dist/modules/auth/services/verify-two-factor.js +1 -1
  39. package/dist/modules/file/mime.d.ts +3 -0
  40. package/dist/modules/file/mime.d.ts.map +1 -0
  41. package/dist/modules/file/mime.js +1 -0
  42. package/dist/modules/file/route.d.ts.map +1 -1
  43. package/dist/modules/file/route.js +1 -1
  44. package/dist/modules/file/schema.d.ts +3 -0
  45. package/dist/modules/file/schema.d.ts.map +1 -1
  46. package/dist/modules/file/schema.js +1 -1
  47. package/dist/modules/file/services/get-file.js +1 -1
  48. package/dist/modules/file/services/resize-file.d.ts.map +1 -1
  49. package/dist/modules/file/services/resize-file.js +1 -1
  50. package/dist/modules/file/services/upload-file.d.ts +4 -6
  51. package/dist/modules/file/services/upload-file.d.ts.map +1 -1
  52. package/dist/modules/file/services/upload-file.js +1 -1
  53. package/dist/modules/resource/route.d.ts +0 -3
  54. package/dist/modules/resource/route.d.ts.map +1 -1
  55. package/dist/modules/resource/route.js +1 -1
  56. package/dist/modules/resource/schema.d.ts +3 -0
  57. package/dist/modules/resource/schema.d.ts.map +1 -1
  58. package/dist/modules/resource/schema.js +1 -1
  59. package/dist/modules/resource/services/add-note.js +1 -1
  60. package/dist/modules/resource/services/add-resource-file.js +1 -1
  61. package/dist/modules/resource/services/create-resource-relation.d.ts +8 -2
  62. package/dist/modules/resource/services/create-resource-relation.d.ts.map +1 -1
  63. package/dist/modules/resource/services/create-resource-relation.js +1 -1
  64. package/dist/modules/resource/services/create-resource.js +1 -1
  65. package/dist/modules/resource/services/delete-resource-relation.d.ts +8 -1
  66. package/dist/modules/resource/services/delete-resource-relation.d.ts.map +1 -1
  67. package/dist/modules/resource/services/delete-resource-relation.js +1 -1
  68. package/dist/modules/resource/services/delete-resource.js +1 -1
  69. package/dist/modules/resource/services/export-resource.d.ts.map +1 -1
  70. package/dist/modules/resource/services/export-resource.js +1 -1
  71. package/dist/modules/resource/services/get-resource.d.ts.map +1 -1
  72. package/dist/modules/resource/services/get-resource.js +1 -1
  73. package/dist/modules/resource/services/list-resource-relation.d.ts +9 -2
  74. package/dist/modules/resource/services/list-resource-relation.d.ts.map +1 -1
  75. package/dist/modules/resource/services/list-resource-relation.js +1 -1
  76. package/dist/modules/resource/services/list-resources.d.ts.map +1 -1
  77. package/dist/modules/resource/services/list-resources.js +1 -1
  78. package/dist/modules/resource/services/search-resource.d.ts.map +1 -1
  79. package/dist/modules/resource/services/search-resource.js +1 -1
  80. package/dist/modules/resource/services/suggest-resource.d.ts +10 -4
  81. package/dist/modules/resource/services/suggest-resource.d.ts.map +1 -1
  82. package/dist/modules/resource/services/suggest-resource.js +1 -1
  83. package/dist/modules/resource/services/update-resource-relation.d.ts +10 -0
  84. package/dist/modules/resource/services/update-resource-relation.d.ts.map +1 -0
  85. package/dist/modules/resource/services/update-resource-relation.js +1 -0
  86. package/dist/modules/resource/services/update-resource.js +1 -1
  87. package/dist/modules/resource/services/upload-resource-file.js +1 -1
  88. package/dist/modules/system/route.d.ts +2 -1
  89. package/dist/modules/system/route.d.ts.map +1 -1
  90. package/dist/modules/system/route.js +1 -1
  91. package/dist/modules/system/schema.d.ts +22 -1
  92. package/dist/modules/system/schema.d.ts.map +1 -1
  93. package/dist/modules/system/schema.js +1 -1
  94. package/dist/modules/system/services/check-system.d.ts.map +1 -1
  95. package/dist/modules/system/services/check-system.js +1 -1
  96. package/dist/modules/system/services/get-access.d.ts +14 -0
  97. package/dist/modules/system/services/get-access.d.ts.map +1 -0
  98. package/dist/modules/system/services/get-access.js +1 -0
  99. package/dist/modules/system/services/get-api-list.d.ts +4 -1
  100. package/dist/modules/system/services/get-api-list.d.ts.map +1 -1
  101. package/dist/modules/system/services/get-api-list.js +1 -1
  102. package/dist/modules/system/services/get-audit-log.d.ts.map +1 -1
  103. package/dist/modules/system/services/get-audit-log.js +1 -1
  104. package/dist/modules/system/services/get-dictionary.js +1 -1
  105. package/dist/modules/system/services/get-system-log.d.ts +9 -5
  106. package/dist/modules/system/services/get-system-log.d.ts.map +1 -1
  107. package/dist/modules/system/services/get-system-log.js +1 -1
  108. package/dist/modules/system/services/get-system-settings.d.ts.map +1 -1
  109. package/dist/modules/system/services/get-system-settings.js +1 -1
  110. package/dist/modules/system/services/list-dictionaries.js +1 -1
  111. package/dist/modules/system/services/set-access.d.ts +16 -0
  112. package/dist/modules/system/services/set-access.d.ts.map +1 -0
  113. package/dist/modules/system/services/set-access.js +1 -0
  114. package/dist/modules/system/services/update-dictionary.d.ts +13 -0
  115. package/dist/modules/system/services/update-dictionary.d.ts.map +1 -0
  116. package/dist/modules/system/services/update-dictionary.js +1 -0
  117. package/dist/modules/system/services/update-system-settings.d.ts.map +1 -1
  118. package/dist/modules/system/services/update-system-settings.js +1 -1
  119. package/dist/modules/utils/require-admin.js +1 -1
  120. package/dist/modules/utils/safe-user.js +1 -1
  121. package/dist/modules/utils/unsupported.js +1 -1
  122. package/dist/plugins/audit/audit.js +1 -1
  123. package/dist/plugins/audit/index.js +1 -1
  124. package/dist/plugins/audit/services/write-audit.js +1 -1
  125. package/dist/plugins/auth/get-user-permissions.d.ts +3 -0
  126. package/dist/plugins/auth/get-user-permissions.d.ts.map +1 -0
  127. package/dist/plugins/auth/get-user-permissions.js +1 -0
  128. package/dist/plugins/auth/index.d.ts +4 -0
  129. package/dist/plugins/auth/index.d.ts.map +1 -1
  130. package/dist/plugins/auth/index.js +1 -1
  131. package/dist/plugins/auth/verifyUser.d.ts +9 -0
  132. package/dist/plugins/auth/verifyUser.d.ts.map +1 -0
  133. package/dist/plugins/auth/verifyUser.js +1 -0
  134. package/dist/plugins/dictionary.d.ts +3 -0
  135. package/dist/plugins/dictionary.d.ts.map +1 -1
  136. package/dist/plugins/dictionary.js +1 -1
  137. package/dist/plugins/file.d.ts +3 -6
  138. package/dist/plugins/file.d.ts.map +1 -1
  139. package/dist/plugins/file.js +1 -1
  140. package/dist/plugins/index.d.ts +2 -0
  141. package/dist/plugins/index.d.ts.map +1 -1
  142. package/dist/plugins/index.js +1 -1
  143. package/dist/plugins/jwt.d.ts +4 -0
  144. package/dist/plugins/jwt.d.ts.map +1 -0
  145. package/dist/plugins/jwt.js +1 -0
  146. package/dist/plugins/logger/index.js +1 -1
  147. package/dist/plugins/logger/transport.d.ts +3 -0
  148. package/dist/plugins/logger/transport.d.ts.map +1 -0
  149. package/dist/plugins/logger/transport.js +1 -0
  150. package/dist/plugins/pg.d.ts +4 -2
  151. package/dist/plugins/pg.d.ts.map +1 -1
  152. package/dist/plugins/pg.js +1 -1
  153. package/dist/plugins/redis.js +1 -1
  154. package/dist/plugins/resource/index.js +1 -1
  155. package/dist/plugins/resource/resource.d.ts.map +1 -1
  156. package/dist/plugins/resource/resource.js +1 -1
  157. package/dist/plugins/resource/resource.registry.js +1 -1
  158. package/dist/plugins/resource/resource.types.d.ts +60 -6
  159. package/dist/plugins/resource/resource.types.d.ts.map +1 -1
  160. package/dist/plugins/resource/services/add-dictionary-lookup-data.d.ts +3 -0
  161. package/dist/plugins/resource/services/add-dictionary-lookup-data.d.ts.map +1 -0
  162. package/dist/plugins/resource/services/add-dictionary-lookup-data.js +1 -0
  163. package/dist/plugins/resource/services/add-file-token.d.ts +3 -0
  164. package/dist/plugins/resource/services/add-file-token.d.ts.map +1 -0
  165. package/dist/plugins/resource/services/add-file-token.js +1 -0
  166. package/dist/plugins/resource/services/add-table-lookup-data.d.ts +4 -0
  167. package/dist/plugins/resource/services/add-table-lookup-data.d.ts.map +1 -0
  168. package/dist/plugins/resource/services/add-table-lookup-data.js +1 -0
  169. package/dist/plugins/resource/services/create-relation.d.ts +16 -0
  170. package/dist/plugins/resource/services/create-relation.d.ts.map +1 -0
  171. package/dist/plugins/resource/services/create-relation.js +1 -0
  172. package/dist/plugins/resource/services/create.d.ts +5 -2
  173. package/dist/plugins/resource/services/create.d.ts.map +1 -1
  174. package/dist/plugins/resource/services/create.js +1 -1
  175. package/dist/plugins/resource/services/delete-relation.d.ts +18 -0
  176. package/dist/plugins/resource/services/delete-relation.d.ts.map +1 -0
  177. package/dist/plugins/resource/services/delete-relation.js +1 -0
  178. package/dist/plugins/resource/services/delete.d.ts +5 -2
  179. package/dist/plugins/resource/services/delete.d.ts.map +1 -1
  180. package/dist/plugins/resource/services/delete.js +1 -1
  181. package/dist/plugins/resource/services/find-one.d.ts +3 -2
  182. package/dist/plugins/resource/services/find-one.d.ts.map +1 -1
  183. package/dist/plugins/resource/services/find-one.js +1 -1
  184. package/dist/plugins/resource/services/find-relation.d.ts +13 -0
  185. package/dist/plugins/resource/services/find-relation.d.ts.map +1 -0
  186. package/dist/plugins/resource/services/find-relation.js +1 -0
  187. package/dist/plugins/resource/services/find.d.ts.map +1 -1
  188. package/dist/plugins/resource/services/find.js +1 -1
  189. package/dist/plugins/resource/services/update-relation.d.ts +14 -0
  190. package/dist/plugins/resource/services/update-relation.d.ts.map +1 -0
  191. package/dist/plugins/resource/services/update-relation.js +1 -0
  192. package/dist/plugins/resource/services/update.d.ts +5 -2
  193. package/dist/plugins/resource/services/update.d.ts.map +1 -1
  194. package/dist/plugins/resource/services/update.js +1 -1
  195. package/dist/plugins/resource/utils/auto-index.d.ts +4 -0
  196. package/dist/plugins/resource/utils/auto-index.d.ts.map +1 -0
  197. package/dist/plugins/resource/utils/auto-index.js +1 -0
  198. package/dist/plugins/resource/utils/fields.d.ts +8 -1
  199. package/dist/plugins/resource/utils/fields.d.ts.map +1 -1
  200. package/dist/plugins/resource/utils/fields.js +1 -1
  201. package/dist/plugins/resource/utils/filters.d.ts +3 -2
  202. package/dist/plugins/resource/utils/filters.d.ts.map +1 -1
  203. package/dist/plugins/resource/utils/filters.js +1 -1
  204. package/dist/plugins/resource/utils/permissions.d.ts.map +1 -1
  205. package/dist/plugins/resource/utils/permissions.js +1 -1
  206. package/dist/plugins/resource/utils/sort.d.ts.map +1 -1
  207. package/dist/plugins/resource/utils/sort.js +1 -1
  208. package/dist/plugins/resource/utils/sql.js +1 -1
  209. package/dist/shared/getIP.js +1 -1
  210. package/dist/type.d.ts +37 -0
  211. package/dist/type.d.ts.map +1 -0
  212. package/dist/type.js +1 -0
  213. package/migrations/20260903120000_core_schema.sql +22 -19
  214. package/migrations/20260905120000_add_user_foreign_keys.sql +43 -0
  215. package/migrations/20260907090000_core_schema.sql +32 -0
  216. package/package.json +13 -8
  217. package/dist/modules/auth/index.d.ts +0 -9
  218. package/dist/modules/auth/index.d.ts.map +0 -1
  219. package/dist/modules/auth/index.js +0 -1
  220. package/dist/modules/auth/services/login.d.ts +0 -10
  221. package/dist/modules/auth/services/login.d.ts.map +0 -1
  222. package/dist/modules/auth/services/login.js +0 -1
  223. package/dist/modules/auth/services/logout.d.ts +0 -9
  224. package/dist/modules/auth/services/logout.d.ts.map +0 -1
  225. package/dist/modules/auth/services/logout.js +0 -1
  226. package/dist/modules/auth/services/verifyPassword.d.ts +0 -11
  227. package/dist/modules/auth/services/verifyPassword.d.ts.map +0 -1
  228. package/dist/modules/auth/services/verifyPassword.js +0 -1
  229. package/dist/modules/file/index.d.ts +0 -8
  230. package/dist/modules/file/index.d.ts.map +0 -1
  231. package/dist/modules/file/index.js +0 -1
  232. package/dist/modules/resource/index.d.ts +0 -20
  233. package/dist/modules/resource/index.d.ts.map +0 -1
  234. package/dist/modules/resource/index.js +0 -1
  235. package/dist/modules/resource/services/list-children.d.ts +0 -6
  236. package/dist/modules/resource/services/list-children.d.ts.map +0 -1
  237. package/dist/modules/resource/services/list-children.js +0 -1
  238. package/dist/modules/system/index.d.ts +0 -13
  239. package/dist/modules/system/index.d.ts.map +0 -1
  240. package/dist/modules/system/index.js +0 -1
  241. package/dist/modules/utils/get-user-permissions.d.ts +0 -3
  242. package/dist/modules/utils/get-user-permissions.d.ts.map +0 -1
  243. package/dist/modules/utils/get-user-permissions.js +0 -1
@@ -1 +0,0 @@
1
- function m(){var q=['FmpwT','66834MjJIOF','11043FuCqYI','action','session','lVfMo','user','userId','write','200dbvWoo','68712PdUsZh','audit','869189VaHkkc','1562fhBpvz','3790LZpkWk','348704DRDEji','resourceId','8953WIPQjN','1559168OMfcji','15bRHjjR','resource','auth','1208PmXvzx','sessionId','module','logout'];m=function(){return q;};return m();}(function(D,L){var r=p,s=D();while(!![]){try{var X=-parseInt(r(0x178))/0x1+parseInt(r(0x17e))/0x2+-parseInt(r(0x165))/0x3*(-parseInt(r(0x17b))/0x4)+-parseInt(r(0x175))/0x5*(parseInt(r(0x16d))/0x6)+-parseInt(r(0x17d))/0x7*(-parseInt(r(0x168))/0x8)+-parseInt(r(0x16e))/0x9*(parseInt(r(0x17a))/0xa)+parseInt(r(0x179))/0xb*(parseInt(r(0x176))/0xc);if(X===L)break;else s['push'](s['shift']());}catch(M){s['push'](s['shift']());}}}(m,0x6be2f));function p(D,L){D=D-0x165;var s=m();var X=s[D];return X;}export default async function logout(s,X){var i=p,M={};M[i(0x16c)]=i(0x167),M[i(0x171)]=i(0x170);var u=M,o={};o[i(0x16a)]=u[i(0x16c)],o[i(0x166)]=u[i(0x171)],o[i(0x17c)]=s[i(0x169)],o[i(0x16f)]=i(0x16b),o[i(0x173)]=s[i(0x172)]?.['id'],await X[i(0x177)]?.[i(0x174)]?.(o);}
@@ -1,11 +0,0 @@
1
- import { ContextDependencies } from "../../../context.js";
2
- export declare function hashPassword(password: string): string;
3
- export declare function verifyPasswordWithoutSalt(password: string, stored: string): boolean;
4
- export default function verifyPassword({ login, password, ip, }: {
5
- login: string;
6
- password: string;
7
- ip: string;
8
- }, { pg, logger }: Pick<ContextDependencies, "pg" | "logger">): Promise<{
9
- user: any;
10
- }>;
11
- //# sourceMappingURL=verifyPassword.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"verifyPassword.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/services/verifyPassword.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAQ,MAAM,qBAAqB,CAAC;AAOhE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAIrD;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAST;AAED,wBAA8B,cAAc,CAC1C,EACE,KAAK,EACL,QAAQ,EACR,EAAE,GACH,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ,EACD,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,QAAQ,CAAC;;GAmE3D"}
@@ -1 +0,0 @@
1
- (function(D,L){const G=p,s=D();while(!![]){try{const X=-parseInt(G(0x11e))/0x1+parseInt(G(0x112))/0x2+parseInt(G(0x126))/0x3*(parseInt(G(0x105))/0x4)+parseInt(G(0x117))/0x5*(-parseInt(G(0x11a))/0x6)+-parseInt(G(0x10e))/0x7*(parseInt(G(0x12a))/0x8)+-parseInt(G(0x123))/0x9+-parseInt(G(0x138))/0xa*(-parseInt(G(0x142))/0xb);if(X===L)break;else s['push'](s['shift']());}catch(M){s['push'](s['shift']());}}}(m,0x38c28));function p(D,L){D=D-0x100;const s=m();let X=s[D];return X;}import a from'apache-crypt';import F from'node:crypto';import{BadRequestError}from'../../../errors.js';function md5(L){const j=p,s={};s[j(0x135)]=j(0x128),s[j(0x144)]=j(0x141);const X=s;return F[j(0x100)](X[j(0x135)])[j(0x13e)](L)[j(0x127)](X[j(0x144)]);}export function hashPassword(L){const e=p,s={};s[e(0x101)]=e(0x141);const X=s,M=F[e(0x130)](0x10)[e(0x109)](X[e(0x101)]),u=F[e(0x133)](L,M,0x40)[e(0x109)](X[e(0x101)]);return e(0x103)+M+'$'+u;}export function verifyPasswordWithoutSalt(L,s){const Y=p,X={};X[Y(0x145)]=function(R,B){return R!==B;},X[Y(0x119)]=Y(0x147);const M=X,[u,o,r]=s[Y(0x107)]('$');if(M[Y(0x145)](u,M[Y(0x119)])||!o||!r)return![];const i=F[Y(0x133)](L,o,0x40),q=Buffer[Y(0x13d)](r,Y(0x141));return q[Y(0x125)]===i[Y(0x125)]&&F[Y(0x118)](q,i);}export default async function verifyPassword({login:B,password:O,ip:h},{pg:g,logger:J}){const I=p,S={'nJFHE':function(c,H,A){return c(H,A);},'ayzzv':I(0x132),'bcniS':I(0x11d),'wKBvD':I(0x12e),'JeXtc':function(c,H){return c===H;},'IxsuJ':I(0x10d),'rdnmJ':function(c,H){return c!==H;},'NYGqX':I(0x146),'uvopy':I(0x14a),'UFSnk':I(0x129),'iTpYK':function(c,H){return c===H;},'NgjFH':I(0x114),'qbiKi':I(0x10a),'xWdkz':I(0x137),'ZHXuI':function(c,H){return c===H;},'pfouZ':function(c,H){return c<H;},'KMsXA':function(c,H){return c(H);},'yKsbP':function(c,H){return c+H;},'AlnFe':function(c,H){return c===H;},'aNLOV':I(0x110)};if(!g){if(S[I(0x13a)](S[I(0x136)],S[I(0x136)]))throw new Error(S[I(0x102)]);else{const H=S[I(0x134)](E,B,O[I(0x12f)]);if(!H){const P=S[I(0x104)],v={};v[I(0x140)]=S[I(0x143)],v[I(0x149)]=P,v[I(0x13c)]=E,v['ip']=c,y[I(0x121)](v);throw new H(P);}const w={...z};w[I(0x12f)]=l,w[I(0x11b)]=t;const W={};return W[I(0x12c)]=w,W;}}if(!B||S[I(0x13a)](B,'')){if(S[I(0x13b)](S[I(0x139)],S[I(0x148)]))throw new BadRequestError(S[I(0x115)]);else throw new L(S[I(0x102)]);}if(!O||S[I(0x13a)](O,'')){if(S[I(0x113)](S[I(0x13f)],S[I(0x120)])){const V=S[I(0x104)],w={};w[I(0x140)]=S[I(0x143)],w[I(0x149)]=V,w[I(0x13c)]=u,w['ip']=o,M[I(0x121)](w);throw new r(V);}else throw new BadRequestError(S[I(0x116)]);}const z=I(0x111),l=await g[I(0x10f)](z,[B])[I(0x122)](V=>V[I(0x11c)]?.[0x0]);if(!l){const V=I(0x11f),w={};w[I(0x140)]=S[I(0x143)],w[I(0x149)]=V,w[I(0x13c)]=B,w['ip']=h,J[I(0x121)](w);throw new BadRequestError(V);}if(!l[I(0x11b)]){const W=S[I(0x134)](verifyPasswordWithoutSalt,O,l[I(0x12f)]);if(!W){const n=S[I(0x104)],Z={};Z[I(0x140)]=S[I(0x143)],Z[I(0x149)]=n,Z[I(0x13c)]=B,Z['ip']=h,J[I(0x121)](Z);throw new BadRequestError(n);}const P={...l};P[I(0x12f)]=undefined,P[I(0x11b)]=undefined;const v={};return v[I(0x12c)]=P,v;}if(S[I(0x131)](l[I(0x14b)],!![])){const x=await g[I(0x10f)](I(0x108),[O,l[I(0x11b)]])[I(0x122)](b=>b[I(0x11c)]?.[0x0]?.[I(0x10b)]);if(S[I(0x13a)](l[I(0x12f)],x)){const b={...l};b[I(0x12f)]=undefined,b[I(0x11b)]=undefined;const f={};return f[I(0x12c)]=b,f;}const N=I(0x132),U={};U[I(0x140)]=I(0x11d),U[I(0x149)]=N,U[I(0x13c)]=B,U['ip']=h,J[I(0x121)](U);throw new BadRequestError(N);}let t='';for(let Q=0x0;S[I(0x124)](Q,0xa);Q+=0x1){t=S[I(0x12b)](md5,S[I(0x106)](O+t,l[I(0x11b)]));}t=S[I(0x134)](a,t,l[I(0x11b)]);if(S[I(0x13a)](l[I(0x12f)],t)){if(S[I(0x10c)](I(0x110),S[I(0x12d)])){const d={...l};d[I(0x12f)]=undefined,d[I(0x11b)]=undefined;const T={};return T[I(0x12c)]=d,T;}else{const C={...X};C[I(0x12f)]=M,C[I(0x11b)]=u;const k={};return k[I(0x12c)]=C,k;}}const y=S[I(0x104)],E={};E[I(0x140)]=S[I(0x143)],E[I(0x149)]=y,E[I(0x13c)]=B,E['ip']=h,J[I(0x121)](E);throw new BadRequestError(y);}function m(){const m0=['ayzzv','500jLwbCm','yKsbP','split','SELECT\x20public.crypt($1,\x20$2)','toString','KcnrR','crypt','AlnFe','iuzdQ','2065wRSMyX','query','TPUqq','select\x20uid\x20as\x20id,\x20user_type\x20as\x20type,\x20password,\x20salt\x20from\x20admin.users\x20where\x20$1\x20in\x20(login,email,phone)\x20and\x20enabled\x20limit\x201','636838uYNwAh','iTpYK','lzVBu','UFSnk','xWdkz','59315bXixKl','timingSafeEqual','ZhVTo','174XtfpHP','salt','rows','auth/warn','261799Fatgjq','user\x20not\x20found','qbiKi','info','then','1232010hEyKYv','pfouZ','length','8934wpVaci','digest','md5','not\x20enough\x20params:\x20login','11728lJnsqL','KMsXA','user','aNLOV','empty\x20pg','password','randomBytes','ZHXuI','Wrong\x20password','scryptSync','nJFHE','kDKsV','IxsuJ','not\x20enough\x20params:\x20password','1434010YmAgor','NYGqX','JeXtc','rdnmJ','login','from','update','NgjFH','file','hex','55hVbrYr','bcniS','YsFli','XbwgK','zwfmM','scrypt','uvopy','error','dFzYi','password_new_hash_algorithm','createHash','xogWP','wKBvD','scrypt$'];m=function(){return m0;};return m();}
@@ -1,8 +0,0 @@
1
- /**
2
- * Exports the public surface of this FCore module.
3
- */
4
- export * from './route.js';
5
- export * from './services/upload-file.js';
6
- export * from './services/get-file.js';
7
- export * from './services/resize-file.js';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/file/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC"}
@@ -1 +0,0 @@
1
- (function(D,L){var u=p,s=D();while(!![]){try{var X=-parseInt(u(0x82))/0x1*(parseInt(u(0x7c))/0x2)+parseInt(u(0x7e))/0x3*(-parseInt(u(0x7d))/0x4)+-parseInt(u(0x78))/0x5+parseInt(u(0x7a))/0x6+parseInt(u(0x79))/0x7*(-parseInt(u(0x7f))/0x8)+-parseInt(u(0x80))/0x9*(-parseInt(u(0x81))/0xa)+-parseInt(u(0x7b))/0xb*(-parseInt(u(0x77))/0xc);if(X===L)break;else s['push'](s['shift']());}catch(M){s['push'](s['shift']());}}}(m,0x3f059));export*from'./route.js';export*from'./services/upload-file.js';function p(D,L){D=D-0x77;var s=m();var X=s[D];return X;}function m(){var o=['68770vEOcUL','98981UodPVv','101652KcSsGn','862055jrJVLP','5257qJHsLv','2284674dvLPnI','913BIwUAa','2hKkELq','16tZApbx','245559UeGDkN','3736uHYQrt','162zkJFnG'];m=function(){return o;};return m();}export*from'./services/get-file.js';export*from'./services/resize-file.js';
@@ -1,20 +0,0 @@
1
- /**
2
- * Exports the public surface of this FCore module.
3
- */
4
- export * from './route.js';
5
- export * from './services/list-resources.js';
6
- export * from './services/get-resource.js';
7
- export * from './services/create-resource.js';
8
- export * from './services/update-resource.js';
9
- export * from './services/delete-resource.js';
10
- export * from './services/list-resource-relation.js';
11
- export * from './services/create-resource-relation.js';
12
- export * from './services/delete-resource-relation.js';
13
- export * from './services/list-children.js';
14
- export * from './services/search-resource.js';
15
- export * from './services/export-resource.js';
16
- export * from './services/suggest-resource.js';
17
- export * from './services/add-note.js';
18
- export * from './services/add-resource-file.js';
19
- export * from './services/upload-resource-file.js';
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/resource/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC"}
@@ -1 +0,0 @@
1
- (function(D,L){var u=p,s=D();while(!![]){try{var X=parseInt(u(0xf1))/0x1+-parseInt(u(0xea))/0x2*(parseInt(u(0xee))/0x3)+-parseInt(u(0xed))/0x4*(parseInt(u(0xeb))/0x5)+parseInt(u(0xf0))/0x6+parseInt(u(0xec))/0x7*(-parseInt(u(0xf2))/0x8)+parseInt(u(0xf4))/0x9*(-parseInt(u(0xef))/0xa)+parseInt(u(0xf3))/0xb;if(X===L)break;else s['push'](s['shift']());}catch(M){s['push'](s['shift']());}}}(m,0x7d585));function p(D,L){D=D-0xea;var s=m();var X=s[D];return X;}export*from'./route.js';export*from'./services/list-resources.js';export*from'./services/get-resource.js';export*from'./services/create-resource.js';export*from'./services/update-resource.js';export*from'./services/delete-resource.js';export*from'./services/list-resource-relation.js';export*from'./services/create-resource-relation.js';export*from'./services/delete-resource-relation.js';export*from'./services/list-children.js';export*from'./services/search-resource.js';export*from'./services/export-resource.js';export*from'./services/suggest-resource.js';export*from'./services/add-note.js';function m(){var o=['3969810eonhcR','77477neahDt','136KsqiUr','18295134jtCYfk','179865KmgiFG','2pEFRJJ','5oTLLpx','408380TQlbZV','2846820IcdSvI','196494QwZVLV','60xPuczI'];m=function(){return o;};return m();}export*from'./services/add-resource-file.js';export*from'./services/upload-resource-file.js';
@@ -1,6 +0,0 @@
1
- /**
2
- * Implements the list children application service for its module.
3
- */
4
- import type { AppContext } from '../../../context.js';
5
- export declare function listChildren(params: any, ctx: AppContext): Promise<never>;
6
- //# sourceMappingURL=list-children.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-children.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/list-children.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,wBAAsB,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,CAE/E"}
@@ -1 +0,0 @@
1
- (function(D,L){var u=p,s=D();while(!![]){try{var X=-parseInt(u(0x10a))/0x1+-parseInt(u(0x110))/0x2*(parseInt(u(0x10d))/0x3)+-parseInt(u(0x113))/0x4*(parseInt(u(0x10b))/0x5)+parseInt(u(0x115))/0x6+parseInt(u(0x117))/0x7+-parseInt(u(0x116))/0x8*(parseInt(u(0x10c))/0x9)+parseInt(u(0x111))/0xa*(parseInt(u(0x10f))/0xb);if(X===L)break;else s['push'](s['shift']());}catch(M){s['push'](s['shift']());}}}(m,0x7f2e5));function m(){var r=['11ZiCcRG','4weRoIY','16082410xVQNPC','PJaLV','24nypdjb','Generic\x20Resource\x20children','1465206ktRojM','6639944GhVgDH','562674nptMzC','176428byTMGt','278310sYuGLB','9YkIYhn','107247fHJZjz','cDuKO'];m=function(){return r;};return m();}import{unsupported}from'../../utils/unsupported.js';function p(D,L){D=D-0x10a;var s=m();var X=s[D];return X;}export async function listChildren(D,L){var o=p,s={'cDuKO':function(X,M){return X(M);},'PJaLV':o(0x114)};return s[o(0x10e)](unsupported,s[o(0x112)]);}
@@ -1,13 +0,0 @@
1
- /**
2
- * Exports the public surface of this FCore module.
3
- */
4
- export * from './route.js';
5
- export * from './services/get-system-settings.js';
6
- export * from './services/update-system-settings.js';
7
- export * from './services/get-system-log.js';
8
- export * from './services/get-audit-log.js';
9
- export * from './services/check-system.js';
10
- export * from './services/get-api-list.js';
11
- export * from './services/list-dictionaries.js';
12
- export * from './services/get-dictionary.js';
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/system/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC"}
@@ -1 +0,0 @@
1
- (function(D,L){var u=p,s=D();while(!![]){try{var X=-parseInt(u(0x17a))/0x1+-parseInt(u(0x17b))/0x2*(-parseInt(u(0x17c))/0x3)+parseInt(u(0x182))/0x4+-parseInt(u(0x183))/0x5+parseInt(u(0x17f))/0x6*(-parseInt(u(0x17e))/0x7)+-parseInt(u(0x181))/0x8*(parseInt(u(0x179))/0x9)+parseInt(u(0x180))/0xa*(parseInt(u(0x17d))/0xb);if(X===L)break;else s['push'](s['shift']());}catch(M){s['push'](s['shift']());}}}(m,0xc4706));export*from'./route.js';export*from'./services/get-system-settings.js';export*from'./services/update-system-settings.js';export*from'./services/get-system-log.js';function p(D,L){D=D-0x179;var s=m();var X=s[D];return X;}export*from'./services/get-audit-log.js';export*from'./services/check-system.js';export*from'./services/get-api-list.js';export*from'./services/list-dictionaries.js';function m(){var o=['381782bHzXff','3txKePV','165CsvYpo','22687Hsycxw','966sBqJoT','1882500fFpjpm','2333192rRiLnL','2163168YfkKkC','6129410eqfHkQ','9DTOcFy','711487gpmEwz'];m=function(){return o;};return m();}export*from'./services/get-dictionary.js';
@@ -1,3 +0,0 @@
1
- import type { AppContext } from "../../context.js";
2
- export declare function getUserPermissions(ctx: AppContext, userId: string): Promise<string[]>;
3
- //# sourceMappingURL=get-user-permissions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-user-permissions.d.ts","sourceRoot":"","sources":["../../../src/modules/utils/get-user-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,EAAE,CAAC,CAcnB"}
@@ -1 +0,0 @@
1
- function p(D,L){D=D-0xa5;const s=m();let X=s[D];return X;}(function(D,L){const u=p,s=D();while(!![]){try{const X=parseInt(u(0xaf))/0x1+parseInt(u(0xb1))/0x2*(-parseInt(u(0xb0))/0x3)+parseInt(u(0xa9))/0x4+parseInt(u(0xb2))/0x5*(parseInt(u(0xa5))/0x6)+-parseInt(u(0xad))/0x7*(-parseInt(u(0xaa))/0x8)+-parseInt(u(0xae))/0x9+parseInt(u(0xac))/0xa*(-parseInt(u(0xa8))/0xb);if(X===L)break;else s['push'](s['shift']());}catch(M){s['push'](s['shift']());}}}(m,0x67256));function m(){const r=['2jgzDBF','2685UDaotF','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20ra.actions\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.role_access\x20ra\x0a\x20\x20\x20\x20\x20\x20LEFT\x20JOIN\x20admin.user_roles\x20ur\x20ON\x20ur.role_id\x20=\x20ra.role_id\x0a\x20\x20\x20\x20\x20\x20WHERE\x20ra.user_uid\x20=\x20$1\x20OR\x20ur.user_uid\x20=\x20$1\x0a\x20\x20\x20\x20','actions','1446QRWPVC','rows','flatMap','374KPEtEJ','1251228VEOZVO','112ZAdgvV','query','90550izjGPi','2968hlhyoQ','887274RRaBIx','840163wUsWSJ','1378143NvbOAU'];m=function(){return r;};return m();}export async function getUserPermissions(D,L){const o=p,s=await D['pg'][o(0xab)](o(0xb3),[L]);return[...new Set(s[o(0xa6)][o(0xa7)](X=>X[o(0xb4)]??[]))];}