gemi 0.4.97 → 0.4.98

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 (57) hide show
  1. package/dist/chunk-078b5ca64822d227.js +4 -0
  2. package/dist/{chunk-ebe083591d3f0e78.js.map → chunk-078b5ca64822d227.js.map} +5 -5
  3. package/dist/chunk-0f8949935ef3c862.js +4 -0
  4. package/dist/{chunk-e78cce2c4522cf91.js.map → chunk-0f8949935ef3c862.js.map} +2 -2
  5. package/dist/chunk-2214ecbc4b85c724.js +3 -0
  6. package/dist/chunk-2214ecbc4b85c724.js.map +15 -0
  7. package/dist/chunk-22c02fbb1a96d282.js +4 -0
  8. package/dist/{chunk-31e1d73a34421a5b.js.map → chunk-22c02fbb1a96d282.js.map} +2 -2
  9. package/dist/chunk-3507a0044b99a2cc.js +4 -0
  10. package/dist/{chunk-72261e13831ada52.js.map → chunk-3507a0044b99a2cc.js.map} +2 -2
  11. package/dist/chunk-3c0b9555ac26f279.js +4 -0
  12. package/dist/{chunk-860a94f3e2c4139f.js.map → chunk-3c0b9555ac26f279.js.map} +2 -2
  13. package/dist/chunk-5a217af54dd6ae53.js +5 -0
  14. package/dist/chunk-5a217af54dd6ae53.js.map +64 -0
  15. package/dist/chunk-6177d9eb9e7bf615.js +4 -0
  16. package/dist/{chunk-2e57c40ceaac60c2.js.map → chunk-6177d9eb9e7bf615.js.map} +5 -5
  17. package/dist/chunk-6477d7e9d0a3c143.js +20 -0
  18. package/dist/{chunk-ae350f23e76a92c8.js.map → chunk-6477d7e9d0a3c143.js.map} +33 -11
  19. package/dist/chunk-7afadccff63d6a14.js +4 -0
  20. package/dist/{chunk-16e332f85eb5447c.js.map → chunk-7afadccff63d6a14.js.map} +6 -6
  21. package/dist/chunk-7b222caedbdd07ff.js +4 -0
  22. package/dist/{chunk-8cdd9673266b7058.js.map → chunk-7b222caedbdd07ff.js.map} +2 -2
  23. package/dist/chunk-8660ff1b3cc94b99.js +3 -0
  24. package/dist/{chunk-53884af8a953deb7.js.map → chunk-8660ff1b3cc94b99.js.map} +6 -6
  25. package/dist/chunk-8fb697a1aeea8f96.js +4 -0
  26. package/dist/{chunk-a0c7eacf736f38e3.js.map → chunk-8fb697a1aeea8f96.js.map} +2 -2
  27. package/dist/{chunk-2b057d120d3e2288.js → chunk-961bb9fd54d10bbe.js} +2 -2
  28. package/dist/{chunk-2b057d120d3e2288.js.map → chunk-961bb9fd54d10bbe.js.map} +1 -1
  29. package/dist/{chunk-a0a73bf4d58b0b0b.js → chunk-9b1d4127b8980a77.js} +2 -2
  30. package/dist/{chunk-a0a73bf4d58b0b0b.js.map → chunk-9b1d4127b8980a77.js.map} +1 -1
  31. package/dist/chunk-ae14a8d462938b8e.js +8 -0
  32. package/dist/{chunk-d437e2b6b4671cbb.js.map → chunk-ae14a8d462938b8e.js.map} +2 -2
  33. package/dist/chunk-f4faa3f602dc49fa.js +11 -0
  34. package/dist/{chunk-1fa979880960fe7a.js.map → chunk-f4faa3f602dc49fa.js.map} +5 -5
  35. package/dist/client/index.js +1 -0
  36. package/dist/client/index.js.map +1 -0
  37. package/dist/kernel/index.js +1 -1
  38. package/dist/services/index.js +5 -5
  39. package/dist/services/index.js.map +3 -4
  40. package/package.json +1 -1
  41. package/dist/chunk-16e332f85eb5447c.js +0 -4
  42. package/dist/chunk-1fa979880960fe7a.js +0 -11
  43. package/dist/chunk-23556f614d648677.js +0 -7
  44. package/dist/chunk-23556f614d648677.js.map +0 -65
  45. package/dist/chunk-2e57c40ceaac60c2.js +0 -4
  46. package/dist/chunk-31e1d73a34421a5b.js +0 -4
  47. package/dist/chunk-53884af8a953deb7.js +0 -3
  48. package/dist/chunk-72261e13831ada52.js +0 -4
  49. package/dist/chunk-860a94f3e2c4139f.js +0 -4
  50. package/dist/chunk-8cdd9673266b7058.js +0 -4
  51. package/dist/chunk-a0c7eacf736f38e3.js +0 -4
  52. package/dist/chunk-ae350f23e76a92c8.js +0 -18
  53. package/dist/chunk-b451a72475db69ef.js +0 -4
  54. package/dist/chunk-b451a72475db69ef.js.map +0 -10
  55. package/dist/chunk-d437e2b6b4671cbb.js +0 -8
  56. package/dist/chunk-e78cce2c4522cf91.js +0 -4
  57. package/dist/chunk-ebe083591d3f0e78.js +0 -4
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{j as W,m as q,n as y,o as Y} from"../http/index.js";import{p as z,r as G,s as H,u as U,v as J,w as K} from"../facades/index.js";import{A as D,B as T,C as O,x as Z,y as _,z as $} from"../services/index.js";import"../chunk-8cdd9673266b7058.js";import{G as X} from"../chunk-a32dc07245e51d1d.js";import"../chunk-99c32e4d937131e0.js";import"../chunk-0d97333b6af9fc45.js";import{L as N} from"../chunk-b9c722a5cdfab5dd.js";import"../chunk-643529c2ad120db7.js";import"../chunk-2f8cf8372320b622.js";import{O as Q} from"../chunk-797989fd6dd03d3e.js";import"../chunk-23d3df5f8342ecc6.js";import"../chunk-28ec4c2b20e69deb.js";import"../chunk-ae350f23e76a92c8.js";import"../chunk-23556f614d648677.js";import"../chunk-a0a73bf4d58b0b0b.js";import"../chunk-53884af8a953deb7.js";import"../chunk-b451a72475db69ef.js";import"../chunk-1fa979880960fe7a.js";import"../chunk-2b057d120d3e2288.js";class b{emailServiceProvider=D;authenticationServiceProvider=U;middlewareServiceProvider=W;i18nServiceProvider=Y;fileStorageServiceProvider=Z;apiRouterServiceProvider=_;viewRouterServiceProvider=O;rateLimiterServiceProvider=$;broadcastingsServiceProvider=T;services={};boot(){this.services={[Q._name]:new Q(new this.emailServiceProvider),[q._name]:new q(new this.authenticationServiceProvider),[J._name]:new J(new this.middlewareServiceProvider),[G._name]:new G(new this.i18nServiceProvider),[H._name]:new H(new this.fileStorageServiceProvider),[K._name]:new K(new this.apiRouterServiceProvider),[N._name]:new N(new this.viewRouterServiceProvider),[y._name]:new y(new this.rateLimiterServiceProvider),[z._name]:new z(new this.broadcastingsServiceProvider)}}run(f){const j=this.services;return X.run(j,f)}}class k{f;constructor(f){this.prisma=f}async createSession(f){return await this.prisma.session.create({data:f,include:{user:!0}})}async createUser(f){return await this.prisma.user.create({data:f})}async deleteSession(f){return await this.prisma.session.deleteMany({where:{token:f.token}})}async findUserByEmailAddress(f){return await this.prisma.user.findUnique({where:{email:f}})}async findSession(f){if(!f.token)return null;try{return await this.prisma.session.findUnique({where:{token:f.token,userAgent:"local"},include:{user:{select:{password:!1,id:!0,email:!0,globalRole:!0,name:!0,publicId:!0,accounts:{select:{id:!0,publicId:!0,organization:!0,organizationRole:!0}}}}}})}catch(j){return console.log(j),null}}async updateSession(f){return await this.prisma.session.update({where:{token:f.token},data:{expiresAt:f.expiresAt},include:{user:{select:{password:!1,email:!0,globalRole:!0,name:!0,publicId:!0,accounts:{select:{id:!0,publicId:!0,organization:!0,organizationRole:!0}},organization:!0}}}})}async updateUserPassword(f){return await this.prisma.user.update({where:{id:f.id},data:{password:f.password}})}async createPasswordResetToken(f){return await this.prisma.passwordResetToken.create({data:{user:{connect:{id:f.user.id}},token:f.token}})}async findPasswordResetToken(f){const{token:j}=f;return await this.prisma.passwordResetToken.findUnique({where:{token:j},include:{user:!0}})}async deleteAllUserSessions(f){return await this.prisma.session.deleteMany({where:{userId:f}})}async deletePasswordResetToken(f){const{token:j}=f;return await this.prisma.passwordResetToken.delete({where:{token:j}})}}export{k as PrismaAuthenticationAdapter,b as Kernel,U as AuthenticationServiceProvider};
2
+ import{j as W,m as q,n as y,o as Y} from"../http/index.js";import{p as z,r as G,s as H,u as U,v as J,w as K} from"../facades/index.js";import{A as D,B as T,C as O,x as Z,y as _,z as $} from"../services/index.js";import"../chunk-7b222caedbdd07ff.js";import{G as X} from"../chunk-a32dc07245e51d1d.js";import"../chunk-99c32e4d937131e0.js";import"../chunk-0d97333b6af9fc45.js";import{L as N} from"../chunk-b9c722a5cdfab5dd.js";import"../chunk-643529c2ad120db7.js";import"../chunk-2f8cf8372320b622.js";import{O as Q} from"../chunk-797989fd6dd03d3e.js";import"../chunk-23d3df5f8342ecc6.js";import"../chunk-28ec4c2b20e69deb.js";import"../chunk-6477d7e9d0a3c143.js";import"../chunk-5a217af54dd6ae53.js";import"../chunk-8660ff1b3cc94b99.js";import"../chunk-9b1d4127b8980a77.js";import"../chunk-f4faa3f602dc49fa.js";import"../chunk-961bb9fd54d10bbe.js";import"../chunk-2214ecbc4b85c724.js";class b{emailServiceProvider=D;authenticationServiceProvider=U;middlewareServiceProvider=W;i18nServiceProvider=Y;fileStorageServiceProvider=Z;apiRouterServiceProvider=_;viewRouterServiceProvider=O;rateLimiterServiceProvider=$;broadcastingsServiceProvider=T;services={};boot(){this.services={[Q._name]:new Q(new this.emailServiceProvider),[q._name]:new q(new this.authenticationServiceProvider),[J._name]:new J(new this.middlewareServiceProvider),[G._name]:new G(new this.i18nServiceProvider),[H._name]:new H(new this.fileStorageServiceProvider),[K._name]:new K(new this.apiRouterServiceProvider),[N._name]:new N(new this.viewRouterServiceProvider),[y._name]:new y(new this.rateLimiterServiceProvider),[z._name]:new z(new this.broadcastingsServiceProvider)}}run(f){const j=this.services;return X.run(j,f)}}class k{f;constructor(f){this.prisma=f}async createSession(f){return await this.prisma.session.create({data:f,include:{user:!0}})}async createUser(f){return await this.prisma.user.create({data:f})}async deleteSession(f){return await this.prisma.session.deleteMany({where:{token:f.token}})}async findUserByEmailAddress(f){return await this.prisma.user.findUnique({where:{email:f}})}async findSession(f){if(!f.token)return null;try{return await this.prisma.session.findUnique({where:{token:f.token,userAgent:"local"},include:{user:{select:{password:!1,id:!0,email:!0,globalRole:!0,name:!0,publicId:!0,accounts:{select:{id:!0,publicId:!0,organization:!0,organizationRole:!0}}}}}})}catch(j){return console.log(j),null}}async updateSession(f){return await this.prisma.session.update({where:{token:f.token},data:{expiresAt:f.expiresAt},include:{user:{select:{password:!1,email:!0,globalRole:!0,name:!0,publicId:!0,accounts:{select:{id:!0,publicId:!0,organization:!0,organizationRole:!0}},organization:!0}}}})}async updateUserPassword(f){return await this.prisma.user.update({where:{id:f.id},data:{password:f.password}})}async createPasswordResetToken(f){return await this.prisma.passwordResetToken.create({data:{user:{connect:{id:f.user.id}},token:f.token}})}async findPasswordResetToken(f){const{token:j}=f;return await this.prisma.passwordResetToken.findUnique({where:{token:j},include:{user:!0}})}async deleteAllUserSessions(f){return await this.prisma.session.deleteMany({where:{userId:f}})}async deletePasswordResetToken(f){const{token:j}=f;return await this.prisma.passwordResetToken.delete({where:{token:j}})}}export{k as PrismaAuthenticationAdapter,b as Kernel,U as AuthenticationServiceProvider};
3
3
 
4
4
  //# debugId=4822B0793E71D37D64756e2164756e21