@tinyrack/issuary-server 0.31.0 → 0.32.2
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.
- package/dist/entities/auth-budget.entity.d.ts +20 -0
- package/dist/entities/auth-budget.entity.d.ts.map +1 -0
- package/dist/entities/auth-budget.entity.js +11 -0
- package/dist/entities/auth-budget.entity.js.map +1 -0
- package/dist/entities/browser-session.entity.d.ts +32 -0
- package/dist/entities/browser-session.entity.d.ts.map +1 -0
- package/dist/entities/browser-session.entity.js +12 -0
- package/dist/entities/browser-session.entity.js.map +1 -0
- package/dist/entities/email-verification.entity.d.ts +18 -0
- package/dist/entities/email-verification.entity.d.ts.map +1 -1
- package/dist/entities/email-verification.entity.js +2 -0
- package/dist/entities/email-verification.entity.js.map +1 -1
- package/dist/entities/oauth-client.entity.d.ts +120 -0
- package/dist/entities/oauth-client.entity.d.ts.map +1 -1
- package/dist/entities/oauth-code.entity.d.ts +120 -0
- package/dist/entities/oauth-code.entity.d.ts.map +1 -1
- package/dist/entities/oauth-code.entity.js +3 -0
- package/dist/entities/oauth-code.entity.js.map +1 -1
- package/dist/entities/oauth-device-code.entity.d.ts +120 -0
- package/dist/entities/oauth-device-code.entity.d.ts.map +1 -1
- package/dist/entities/oauth-device-code.entity.js +3 -0
- package/dist/entities/oauth-device-code.entity.js.map +1 -1
- package/dist/entities/oauth-grant.entity.d.ts +52 -0
- package/dist/entities/oauth-grant.entity.d.ts.map +1 -0
- package/dist/entities/oauth-grant.entity.js +19 -0
- package/dist/entities/oauth-grant.entity.js.map +1 -0
- package/dist/entities/password-reset.entity.d.ts +18 -0
- package/dist/entities/password-reset.entity.d.ts.map +1 -1
- package/dist/entities/password-reset.entity.js +2 -0
- package/dist/entities/password-reset.entity.js.map +1 -1
- package/dist/entities/pending-oauth-registration.entity.d.ts +9 -0
- package/dist/entities/pending-oauth-registration.entity.d.ts.map +1 -1
- package/dist/entities/pending-oauth-registration.entity.js +1 -0
- package/dist/entities/pending-oauth-registration.entity.js.map +1 -1
- package/dist/entities/revoked-token.entity.d.ts +120 -0
- package/dist/entities/revoked-token.entity.d.ts.map +1 -1
- package/dist/entities/terms-content.entity.d.ts +36 -0
- package/dist/entities/terms-content.entity.d.ts.map +1 -1
- package/dist/entities/terms.entity.d.ts +36 -0
- package/dist/entities/terms.entity.d.ts.map +1 -1
- package/dist/entities/user-consent.entity.d.ts +120 -0
- package/dist/entities/user-consent.entity.d.ts.map +1 -1
- package/dist/entities/user-terms-consent.entity.d.ts +36 -0
- package/dist/entities/user-terms-consent.entity.d.ts.map +1 -1
- package/dist/entities/user-totp-recovery-code.entity.d.ts +36 -0
- package/dist/entities/user-totp-recovery-code.entity.d.ts.map +1 -1
- package/dist/entities/user-totp.entity.d.ts +36 -0
- package/dist/entities/user-totp.entity.d.ts.map +1 -1
- package/dist/entities/user-totp.entity.js +1 -0
- package/dist/entities/user-totp.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +36 -0
- package/dist/entities/user.entity.d.ts.map +1 -1
- package/dist/entities/user.entity.js +3 -0
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entrypoints/app.d.ts +448 -437
- package/dist/entrypoints/app.d.ts.map +1 -1
- package/dist/entrypoints/app.js +78 -6
- package/dist/entrypoints/app.js.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.d.ts +326 -200
- package/dist/entrypoints/database/postgres/compiled-functions.js +1849 -518
- package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.d.ts +326 -200
- package/dist/entrypoints/database/sqlite/compiled-functions.js +1849 -518
- package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/sqlite/sqlite.d.ts.map +1 -1
- package/dist/entrypoints/database/sqlite/sqlite.js +1 -0
- package/dist/entrypoints/database/sqlite/sqlite.js.map +1 -1
- package/dist/entrypoints/scheduler/database.d.ts +3 -1
- package/dist/entrypoints/scheduler/database.d.ts.map +1 -1
- package/dist/entrypoints/scheduler/database.js +13 -2
- package/dist/entrypoints/scheduler/database.js.map +1 -1
- package/dist/entrypoints/scheduler/distributed-runner.d.ts +4 -0
- package/dist/entrypoints/scheduler/distributed-runner.d.ts.map +1 -1
- package/dist/entrypoints/scheduler/distributed-runner.js +26 -1
- package/dist/entrypoints/scheduler/distributed-runner.js.map +1 -1
- package/dist/lib/config/email.d.ts +1 -0
- package/dist/lib/config/email.d.ts.map +1 -1
- package/dist/lib/config/email.js.map +1 -1
- package/dist/lib/database/entities.d.ts.map +1 -1
- package/dist/lib/database/entities.js +6 -0
- package/dist/lib/database/entities.js.map +1 -1
- package/dist/lib/openapi.d.ts +2 -0
- package/dist/lib/openapi.d.ts.map +1 -1
- package/dist/lib/openapi.js +36 -1
- package/dist/lib/openapi.js.map +1 -1
- package/dist/lib/request-ip.d.ts +4 -0
- package/dist/lib/request-ip.d.ts.map +1 -0
- package/dist/lib/request-ip.js +39 -0
- package/dist/lib/request-ip.js.map +1 -0
- package/dist/middleware/auth-budget.d.ts +3 -0
- package/dist/middleware/auth-budget.d.ts.map +1 -0
- package/dist/middleware/auth-budget.js +80 -0
- package/dist/middleware/auth-budget.js.map +1 -0
- package/dist/middleware/session.d.ts +23 -5
- package/dist/middleware/session.d.ts.map +1 -1
- package/dist/middleware/session.js +152 -12
- package/dist/middleware/session.js.map +1 -1
- package/dist/middleware/strict-input.d.ts +4 -0
- package/dist/middleware/strict-input.d.ts.map +1 -0
- package/dist/middleware/strict-input.js +144 -0
- package/dist/middleware/strict-input.js.map +1 -0
- package/dist/migrations/postgres/Migration20260910120000_api_security.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260910120000_api_security.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260910120000_api_security.js +20 -0
- package/dist/migrations/postgres/Migration20260910120000_api_security.js.map +1 -0
- package/dist/migrations/postgres/Migration20260910160000_security_followup.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260910160000_security_followup.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260910160000_security_followup.js +23 -0
- package/dist/migrations/postgres/Migration20260910160000_security_followup.js.map +1 -0
- package/dist/migrations/postgres/Migration20260910200000_authentication_epoch.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260910200000_authentication_epoch.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260910200000_authentication_epoch.js +28 -0
- package/dist/migrations/postgres/Migration20260910200000_authentication_epoch.js.map +1 -0
- package/dist/migrations/postgres/Migration20260910220000_flow_revocation.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260910220000_flow_revocation.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260910220000_flow_revocation.js +19 -0
- package/dist/migrations/postgres/Migration20260910220000_flow_revocation.js.map +1 -0
- package/dist/migrations/postgres/index.d.ts.map +1 -1
- package/dist/migrations/postgres/index.js +8 -0
- package/dist/migrations/postgres/index.js.map +1 -1
- package/dist/migrations/sqlite/Migration20260910120000_api_security.d.ts +6 -0
- package/dist/migrations/sqlite/Migration20260910120000_api_security.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260910120000_api_security.js +20 -0
- package/dist/migrations/sqlite/Migration20260910120000_api_security.js.map +1 -0
- package/dist/migrations/sqlite/Migration20260910160000_security_followup.d.ts +6 -0
- package/dist/migrations/sqlite/Migration20260910160000_security_followup.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260910160000_security_followup.js +23 -0
- package/dist/migrations/sqlite/Migration20260910160000_security_followup.js.map +1 -0
- package/dist/migrations/sqlite/Migration20260910200000_authentication_epoch.d.ts +8 -0
- package/dist/migrations/sqlite/Migration20260910200000_authentication_epoch.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260910200000_authentication_epoch.js +72 -0
- package/dist/migrations/sqlite/Migration20260910200000_authentication_epoch.js.map +1 -0
- package/dist/migrations/sqlite/Migration20260910220000_flow_revocation.d.ts +6 -0
- package/dist/migrations/sqlite/Migration20260910220000_flow_revocation.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260910220000_flow_revocation.js +19 -0
- package/dist/migrations/sqlite/Migration20260910220000_flow_revocation.js.map +1 -0
- package/dist/migrations/sqlite/index.d.ts.map +1 -1
- package/dist/migrations/sqlite/index.js +8 -0
- package/dist/migrations/sqlite/index.js.map +1 -1
- package/dist/repositories/email-verification.repository.d.ts +1 -0
- package/dist/repositories/email-verification.repository.d.ts.map +1 -1
- package/dist/repositories/email-verification.repository.js +8 -17
- package/dist/repositories/email-verification.repository.js.map +1 -1
- package/dist/repositories/oauth-code.repository.d.ts +2 -0
- package/dist/repositories/oauth-code.repository.d.ts.map +1 -1
- package/dist/repositories/oauth-code.repository.js +8 -0
- package/dist/repositories/oauth-code.repository.js.map +1 -1
- package/dist/repositories/oauth-device-code.repository.d.ts +3 -0
- package/dist/repositories/oauth-device-code.repository.d.ts.map +1 -1
- package/dist/repositories/oauth-device-code.repository.js +64 -29
- package/dist/repositories/oauth-device-code.repository.js.map +1 -1
- package/dist/repositories/password-reset.repository.d.ts +1 -0
- package/dist/repositories/password-reset.repository.d.ts.map +1 -1
- package/dist/repositories/password-reset.repository.js +6 -19
- package/dist/repositories/password-reset.repository.js.map +1 -1
- package/dist/repositories/pending-oauth-registration.repository.d.ts +2 -0
- package/dist/repositories/pending-oauth-registration.repository.d.ts.map +1 -1
- package/dist/repositories/pending-oauth-registration.repository.js +16 -2
- package/dist/repositories/pending-oauth-registration.repository.js.map +1 -1
- package/dist/repositories/terms.repository.d.ts.map +1 -1
- package/dist/repositories/terms.repository.js +1 -0
- package/dist/repositories/terms.repository.js.map +1 -1
- package/dist/repositories/user-consent.repository.d.ts.map +1 -1
- package/dist/repositories/user-consent.repository.js +1 -1
- package/dist/repositories/user-consent.repository.js.map +1 -1
- package/dist/repositories/user-terms-consent.repository.d.ts.map +1 -1
- package/dist/repositories/user-terms-consent.repository.js +2 -0
- package/dist/repositories/user-terms-consent.repository.js.map +1 -1
- package/dist/repositories/user-totp-recovery-code.repository.d.ts +24 -0
- package/dist/repositories/user-totp-recovery-code.repository.d.ts.map +1 -1
- package/dist/repositories/user-totp.repository.d.ts +36 -0
- package/dist/repositories/user-totp.repository.d.ts.map +1 -1
- package/dist/routes/.well-known/openid-configuration/get.d.ts.map +1 -1
- package/dist/routes/.well-known/openid-configuration/get.js +5 -1
- package/dist/routes/.well-known/openid-configuration/get.js.map +1 -1
- package/dist/routes/api/admin/console/index.d.ts.map +1 -1
- package/dist/routes/api/admin/console/index.js +29 -14
- package/dist/routes/api/admin/console/index.js.map +1 -1
- package/dist/routes/api/admin/me/get.js +2 -3
- package/dist/routes/api/admin/me/get.js.map +1 -1
- package/dist/routes/api/admin/users/index.d.ts.map +1 -1
- package/dist/routes/api/admin/users/index.js +59 -52
- package/dist/routes/api/admin/users/index.js.map +1 -1
- package/dist/routes/api/auth/accounts/remove.post.d.ts +5 -5
- package/dist/routes/api/auth/email/resend/post.d.ts.map +1 -1
- package/dist/routes/api/auth/email/resend/post.js +3 -24
- package/dist/routes/api/auth/email/resend/post.js.map +1 -1
- package/dist/routes/api/auth/email/verify/post.d.ts.map +1 -1
- package/dist/routes/api/auth/email/verify/post.js +29 -12
- package/dist/routes/api/auth/email/verify/post.js.map +1 -1
- package/dist/routes/api/auth/login/post.d.ts.map +1 -1
- package/dist/routes/api/auth/login/post.js +4 -3
- package/dist/routes/api/auth/login/post.js.map +1 -1
- package/dist/routes/api/auth/passkey/verify/post.d.ts.map +1 -1
- package/dist/routes/api/auth/passkey/verify/post.js +25 -11
- package/dist/routes/api/auth/passkey/verify/post.js.map +1 -1
- package/dist/routes/api/auth/password/forgot/post.d.ts.map +1 -1
- package/dist/routes/api/auth/password/forgot/post.js +2 -19
- package/dist/routes/api/auth/password/forgot/post.js.map +1 -1
- package/dist/routes/api/auth/register/post.d.ts.map +1 -1
- package/dist/routes/api/auth/register/post.js +4 -3
- package/dist/routes/api/auth/register/post.js.map +1 -1
- package/dist/routes/api/auth/totp/recovery/verify/post.d.ts.map +1 -1
- package/dist/routes/api/auth/totp/recovery/verify/post.js +7 -5
- package/dist/routes/api/auth/totp/recovery/verify/post.js.map +1 -1
- package/dist/routes/api/auth/totp/verify/post.d.ts.map +1 -1
- package/dist/routes/api/auth/totp/verify/post.js +7 -5
- package/dist/routes/api/auth/totp/verify/post.js.map +1 -1
- package/dist/routes/api/consent/post.d.ts.map +1 -1
- package/dist/routes/api/consent/post.js +141 -120
- package/dist/routes/api/consent/post.js.map +1 -1
- package/dist/routes/api/docs/get.d.ts.map +1 -1
- package/dist/routes/api/docs/get.js +8 -1
- package/dist/routes/api/docs/get.js.map +1 -1
- package/dist/routes/api/index.d.ts +379 -379
- package/dist/routes/api/oauth/_provider/authorize/get.d.ts.map +1 -1
- package/dist/routes/api/oauth/_provider/authorize/get.js +5 -1
- package/dist/routes/api/oauth/_provider/authorize/get.js.map +1 -1
- package/dist/routes/api/oauth/_provider/callback/get.d.ts +9 -9
- package/dist/routes/api/oauth/_provider/callback/get.d.ts.map +1 -1
- package/dist/routes/api/oauth/_provider/callback/get.js +30 -6
- package/dist/routes/api/oauth/_provider/callback/get.js.map +1 -1
- package/dist/routes/api/oauth/_provider/callback/post.d.ts.map +1 -1
- package/dist/routes/api/oauth/_provider/callback/post.js +31 -31
- package/dist/routes/api/oauth/_provider/callback/post.js.map +1 -1
- package/dist/routes/api/oauth/_provider/delete.d.ts.map +1 -1
- package/dist/routes/api/oauth/_provider/delete.js +14 -11
- package/dist/routes/api/oauth/_provider/delete.js.map +1 -1
- package/dist/routes/api/oauth/index.d.ts +18 -18
- package/dist/routes/api/terms/consent/post.d.ts.map +1 -1
- package/dist/routes/api/terms/consent/post.js +59 -43
- package/dist/routes/api/terms/consent/post.js.map +1 -1
- package/dist/routes/api/user/delete.d.ts.map +1 -1
- package/dist/routes/api/user/delete.js +8 -8
- package/dist/routes/api/user/delete.js.map +1 -1
- package/dist/routes/api/user/passkeys/_id/delete.d.ts.map +1 -1
- package/dist/routes/api/user/passkeys/_id/delete.js +17 -29
- package/dist/routes/api/user/passkeys/_id/delete.js.map +1 -1
- package/dist/routes/api/user/passkeys/_id/patch.d.ts.map +1 -1
- package/dist/routes/api/user/passkeys/_id/patch.js +16 -13
- package/dist/routes/api/user/passkeys/_id/patch.js.map +1 -1
- package/dist/routes/api/user/passkeys/register/verify/post.d.ts.map +1 -1
- package/dist/routes/api/user/passkeys/register/verify/post.js +27 -19
- package/dist/routes/api/user/passkeys/register/verify/post.js.map +1 -1
- package/dist/routes/api/user/password/delete.d.ts.map +1 -1
- package/dist/routes/api/user/password/delete.js +13 -10
- package/dist/routes/api/user/password/delete.js.map +1 -1
- package/dist/routes/api/user/password/post.d.ts.map +1 -1
- package/dist/routes/api/user/password/post.js +13 -10
- package/dist/routes/api/user/password/post.js.map +1 -1
- package/dist/routes/api/user/password/put.d.ts.map +1 -1
- package/dist/routes/api/user/password/put.js +13 -10
- package/dist/routes/api/user/password/put.js.map +1 -1
- package/dist/routes/api/user/totp/confirm/post.d.ts.map +1 -1
- package/dist/routes/api/user/totp/confirm/post.js +33 -18
- package/dist/routes/api/user/totp/confirm/post.js.map +1 -1
- package/dist/routes/api/user/totp/delete.d.ts.map +1 -1
- package/dist/routes/api/user/totp/delete.js +13 -18
- package/dist/routes/api/user/totp/delete.js.map +1 -1
- package/dist/routes/api/user/totp/recovery/regenerate/post.d.ts.map +1 -1
- package/dist/routes/api/user/totp/recovery/regenerate/post.js +13 -10
- package/dist/routes/api/user/totp/recovery/regenerate/post.js.map +1 -1
- package/dist/routes/api/user/totp/setup/post.d.ts.map +1 -1
- package/dist/routes/api/user/totp/setup/post.js +13 -8
- package/dist/routes/api/user/totp/setup/post.js.map +1 -1
- package/dist/routes/api/user/totp/verify/post.d.ts.map +1 -1
- package/dist/routes/api/user/totp/verify/post.js +23 -12
- package/dist/routes/api/user/totp/verify/post.js.map +1 -1
- package/dist/routes/index.d.ts +252 -242
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/oauth/authorize/get.d.ts.map +1 -1
- package/dist/routes/oauth/authorize/get.js +12 -4
- package/dist/routes/oauth/authorize/get.js.map +1 -1
- package/dist/routes/oauth/device/get-post.d.ts +10 -0
- package/dist/routes/oauth/device/get-post.d.ts.map +1 -1
- package/dist/routes/oauth/device/get-post.js +32 -3
- package/dist/routes/oauth/device/get-post.js.map +1 -1
- package/dist/routes/oauth/device-authorization/post.d.ts.map +1 -1
- package/dist/routes/oauth/device-authorization/post.js +13 -7
- package/dist/routes/oauth/device-authorization/post.js.map +1 -1
- package/dist/routes/oauth/end-session/get.d.ts.map +1 -1
- package/dist/routes/oauth/end-session/get.js +2 -3
- package/dist/routes/oauth/end-session/get.js.map +1 -1
- package/dist/routes/oauth/index.d.ts +10 -0
- package/dist/routes/oauth/index.d.ts.map +1 -1
- package/dist/routes/oauth/revoke/post.d.ts.map +1 -1
- package/dist/routes/oauth/revoke/post.js +10 -2
- package/dist/routes/oauth/revoke/post.js.map +1 -1
- package/dist/routes/oauth/token/post.d.ts.map +1 -1
- package/dist/routes/oauth/token/post.js +69 -57
- package/dist/routes/oauth/token/post.js.map +1 -1
- package/dist/schemas/error.d.ts +75 -0
- package/dist/schemas/error.d.ts.map +1 -1
- package/dist/schemas/error.js +3 -0
- package/dist/schemas/error.js.map +1 -1
- package/dist/schemas/field.d.ts.map +1 -1
- package/dist/schemas/field.js +3 -0
- package/dist/schemas/field.js.map +1 -1
- package/dist/seeders/config.seeder.d.ts +1 -1
- package/dist/seeders/config.seeder.d.ts.map +1 -1
- package/dist/seeders/config.seeder.js +100 -36
- package/dist/seeders/config.seeder.js.map +1 -1
- package/dist/services/admin-console.service.d.ts.map +1 -1
- package/dist/services/admin-console.service.js +137 -100
- package/dist/services/admin-console.service.js.map +1 -1
- package/dist/services/auth-budget.service.d.ts +6 -0
- package/dist/services/auth-budget.service.d.ts.map +1 -0
- package/dist/services/auth-budget.service.js +30 -0
- package/dist/services/auth-budget.service.js.map +1 -0
- package/dist/services/authentication-epoch.d.ts +5 -0
- package/dist/services/authentication-epoch.d.ts.map +1 -0
- package/dist/services/authentication-epoch.js +22 -0
- package/dist/services/authentication-epoch.js.map +1 -0
- package/dist/services/authorization-browser.service.d.ts +18 -0
- package/dist/services/authorization-browser.service.d.ts.map +1 -0
- package/dist/services/authorization-browser.service.js +28 -0
- package/dist/services/authorization-browser.service.js.map +1 -0
- package/dist/services/browser-security.service.d.ts +14 -0
- package/dist/services/browser-security.service.d.ts.map +1 -0
- package/dist/services/browser-security.service.js +85 -0
- package/dist/services/browser-security.service.js.map +1 -0
- package/dist/services/browser-session.service.d.ts +25 -0
- package/dist/services/browser-session.service.d.ts.map +1 -0
- package/dist/services/browser-session.service.js +102 -0
- package/dist/services/browser-session.service.js.map +1 -0
- package/dist/services/cleanup.service.d.ts +1 -0
- package/dist/services/cleanup.service.d.ts.map +1 -1
- package/dist/services/cleanup.service.js +31 -0
- package/dist/services/cleanup.service.js.map +1 -1
- package/dist/services/client-security.d.ts +641 -0
- package/dist/services/client-security.d.ts.map +1 -0
- package/dist/services/client-security.js +10 -0
- package/dist/services/client-security.js.map +1 -0
- package/dist/services/container.d.ts +2 -0
- package/dist/services/container.d.ts.map +1 -1
- package/dist/services/container.js +6 -2
- package/dist/services/container.js.map +1 -1
- package/dist/services/email.service.d.ts +2 -14
- package/dist/services/email.service.d.ts.map +1 -1
- package/dist/services/email.service.js +35 -29
- package/dist/services/email.service.js.map +1 -1
- package/dist/services/jwt.service.d.ts +1 -0
- package/dist/services/jwt.service.d.ts.map +1 -1
- package/dist/services/jwt.service.js +13 -1
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/mail-queue.service.d.ts +24 -0
- package/dist/services/mail-queue.service.d.ts.map +1 -0
- package/dist/services/mail-queue.service.js +223 -0
- package/dist/services/mail-queue.service.js.map +1 -0
- package/dist/services/mikro.service.d.ts.map +1 -1
- package/dist/services/mikro.service.js +2 -0
- package/dist/services/mikro.service.js.map +1 -1
- package/dist/services/oauth-authorize.service.d.ts +3 -0
- package/dist/services/oauth-authorize.service.d.ts.map +1 -1
- package/dist/services/oauth-authorize.service.js +131 -101
- package/dist/services/oauth-authorize.service.js.map +1 -1
- package/dist/services/oauth-browser-security.service.d.ts +7 -0
- package/dist/services/oauth-browser-security.service.d.ts.map +1 -0
- package/dist/services/oauth-browser-security.service.js +67 -0
- package/dist/services/oauth-browser-security.service.js.map +1 -0
- package/dist/services/oauth-client.service.d.ts +24 -1
- package/dist/services/oauth-client.service.d.ts.map +1 -1
- package/dist/services/oauth-client.service.js +52 -13
- package/dist/services/oauth-client.service.js.map +1 -1
- package/dist/services/oauth-connect.service.d.ts +37 -3
- package/dist/services/oauth-connect.service.d.ts.map +1 -1
- package/dist/services/oauth-connect.service.js +236 -212
- package/dist/services/oauth-connect.service.js.map +1 -1
- package/dist/services/oauth-token.service.d.ts +6 -4
- package/dist/services/oauth-token.service.d.ts.map +1 -1
- package/dist/services/oauth-token.service.js +295 -209
- package/dist/services/oauth-token.service.js.map +1 -1
- package/dist/services/passkey.service.d.ts +26 -7
- package/dist/services/passkey.service.d.ts.map +1 -1
- package/dist/services/passkey.service.js +71 -42
- package/dist/services/passkey.service.js.map +1 -1
- package/dist/services/password-auth.service.d.ts +5 -1
- package/dist/services/password-auth.service.d.ts.map +1 -1
- package/dist/services/password-auth.service.js +79 -52
- package/dist/services/password-auth.service.js.map +1 -1
- package/dist/services/password-reset.service.d.ts.map +1 -1
- package/dist/services/password-reset.service.js +34 -15
- package/dist/services/password-reset.service.js.map +1 -1
- package/dist/services/security.service.d.ts +3 -1
- package/dist/services/security.service.d.ts.map +1 -1
- package/dist/services/security.service.js +11 -2
- package/dist/services/security.service.js.map +1 -1
- package/dist/services/terms-policy.service.d.ts +7 -0
- package/dist/services/terms-policy.service.d.ts.map +1 -0
- package/dist/services/terms-policy.service.js +26 -0
- package/dist/services/terms-policy.service.js.map +1 -0
- package/dist/services/totp.service.d.ts +4 -5
- package/dist/services/totp.service.d.ts.map +1 -1
- package/dist/services/totp.service.js +116 -86
- package/dist/services/totp.service.js.map +1 -1
- package/dist/services/user-security.service.d.ts +15 -0
- package/dist/services/user-security.service.d.ts.map +1 -0
- package/dist/services/user-security.service.js +57 -0
- package/dist/services/user-security.service.js.map +1 -0
- package/dist/services/user.service.d.ts +6 -4
- package/dist/services/user.service.d.ts.map +1 -1
- package/dist/services/user.service.js +143 -121
- package/dist/services/user.service.js.map +1 -1
- package/frontend/client/assets/{auth-layout-BedWIZ7L.js → auth-layout-sea6nww4.js} +1 -1
- package/frontend/client/assets/{auth-page-header-C6Z6Air-.js → auth-page-header-CV85AJLW.js} +1 -1
- package/frontend/client/assets/document-navigation-FZbb5ldf.js +1 -0
- package/frontend/client/assets/i18n-vfKY-byx.js +1 -0
- package/frontend/client/assets/{language-selector-CeLHnp1n.js → language-selector-Jso2cQNI.js} +1 -1
- package/frontend/client/assets/manifest-90703545.js +1 -0
- package/frontend/client/assets/{passkey-Bkqvhjwb.js → passkey-CJhT-7yO.js} +1 -1
- package/frontend/client/assets/{promise-CepnkPDw.js → promise-BP9iSIs-.js} +1 -1
- package/frontend/client/assets/{root-CM8lJbh5.js → root-BkavuloG.js} +1 -1
- package/frontend/client/assets/{route-Y1_yJKhW.js → route-B0udr9eT.js} +1 -1
- package/frontend/client/assets/{route-CdPHVY9W.js → route-B3Uv9aTa.js} +1 -1
- package/frontend/client/assets/{route-CF1S7UUy.js → route-B6hIfgxz.js} +1 -1
- package/frontend/client/assets/{route-BcXtt6V2.js → route-BEWds2g-.js} +1 -1
- package/frontend/client/assets/route-Bm9LsorH.js +1 -0
- package/frontend/client/assets/route-Btv5Y69z.js +1 -0
- package/frontend/client/assets/route-BvyDzziE.js +1 -0
- package/frontend/client/assets/route-C6kG9u7j.js +1 -0
- package/frontend/client/assets/{route-1rid8j-3.js → route-C7C3Z0vI.js} +1 -1
- package/frontend/client/assets/{route-DphbGk_G.js → route-CVyefM3x.js} +1 -1
- package/frontend/client/assets/{route-DZvCkU11.js → route-CXth2Wqz.js} +1 -1
- package/frontend/client/assets/route-D0IqOurp.js +1 -0
- package/frontend/client/assets/route-DHmYUnJR.js +1 -0
- package/frontend/client/assets/route-DTjZQ_Fl.js +1 -0
- package/frontend/client/assets/route-D_dTeu1b.js +1 -0
- package/frontend/client/assets/{route-DkoXJmYM.js → route-Dj8gVemC.js} +1 -1
- package/frontend/client/assets/{route-DrtpzI6u.js → route-DnhPlHOi.js} +1 -1
- package/frontend/client/assets/route-FY92YQhF.js +1 -0
- package/frontend/client/assets/{route-CKiun7AR.js → route-PcLpZHbT.js} +1 -1
- package/frontend/client/assets/{route-BwhQptmx.js → route-qpE7i22X.js} +1 -1
- package/frontend/client/assets/{route-HA9dma-h.js → route-wK89gmoS.js} +1 -1
- package/frontend/client/assets/security-error-message-CMsTsiWf.js +1 -0
- package/frontend/client/assets/{shell-header-bar-CjPlfRKT.js → shell-header-bar-DRx10tE5.js} +1 -1
- package/frontend/client/assets/{terms-BGJD_l_i.js → terms-Bu9Itxxs.js} +1 -1
- package/frontend/client/assets/{use-totp-setup-Cwuds2tR.js → use-totp-setup-CoOXWOcT.js} +1 -1
- package/frontend/server/assets/{hydration-B63_G0fd.js → hydration-DWMjpNav.js} +1 -1
- package/frontend/server/assets/{root-loader.server-DUIBlg_3.js → root-loader.server-B4OqoLGG.js} +3 -3
- package/frontend/server/assets/{route-runtime.server-DiqwWb8W.js → route-runtime.server-03_pjVDT.js} +1 -1
- package/frontend/server/assets/{session-BaAt7WMI.js → session-sJkmzJie.js} +36 -24
- package/frontend/server/index.js +239 -193
- package/package.json +1 -1
- package/frontend/client/assets/document-navigation-Cnp3Alf0.js +0 -1
- package/frontend/client/assets/i18n-Dzv9HKFm.js +0 -1
- package/frontend/client/assets/manifest-71025d92.js +0 -1
- package/frontend/client/assets/route-B4jDMFTW.js +0 -1
- package/frontend/client/assets/route-C-DecXPL.js +0 -1
- package/frontend/client/assets/route-CGTMMDiX.js +0 -1
- package/frontend/client/assets/route-CMJbXiDe.js +0 -1
- package/frontend/client/assets/route-DBpAiakW.js +0 -1
- package/frontend/client/assets/route-DS92RKs5.js +0 -1
- package/frontend/client/assets/route-Dc6G2aDX.js +0 -1
- package/frontend/client/assets/route-DqAmRSJE.js +0 -1
- package/frontend/client/assets/route-Ezzcj26w.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
__version: '7.2.0',
|
|
3
|
-
'hydrator-
|
|
3
|
+
'hydrator-user_totp_recovery_code_8000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_3, user_4) {
|
|
4
4
|
// compiled hydrator for entity UserTotpRecoveryCodeEntity ( normalized)
|
|
5
5
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6
6
|
if (data.id === null) {
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
},
|
|
85
|
-
'hydrator-
|
|
85
|
+
'hydrator-user_totp_recovery_code_8000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_11, user_12) {
|
|
86
86
|
// compiled hydrator for entity UserTotpRecoveryCodeEntity ( normalized)
|
|
87
87
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
88
88
|
if (data.id === null) {
|
|
@@ -164,7 +164,7 @@ export default {
|
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
166
|
},
|
|
167
|
-
'comparator-
|
|
167
|
+
'comparator-user_totp_recovery_code_8000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
168
168
|
// compiled comparator for entity UserTotpRecoveryCodeEntity
|
|
169
169
|
return function (last, current, options) {
|
|
170
170
|
const diff = {};
|
|
@@ -250,7 +250,7 @@ export default {
|
|
|
250
250
|
return diff;
|
|
251
251
|
};
|
|
252
252
|
},
|
|
253
|
-
'snapshotGenerator-
|
|
253
|
+
'snapshotGenerator-user_totp_recovery_code_8000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
254
254
|
return function (entity) {
|
|
255
255
|
const ret = {};
|
|
256
256
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -285,7 +285,7 @@ export default {
|
|
|
285
285
|
return ret;
|
|
286
286
|
};
|
|
287
287
|
},
|
|
288
|
-
'resultMapper-
|
|
288
|
+
'resultMapper-user_totp_recovery_code_8000': function (PolymorphicRef, parseDate) {
|
|
289
289
|
// compiled mapper for entity UserTotpRecoveryCodeEntity
|
|
290
290
|
return function (result) {
|
|
291
291
|
const ret = {};
|
|
@@ -358,7 +358,7 @@ export default {
|
|
|
358
358
|
return ret;
|
|
359
359
|
};
|
|
360
360
|
},
|
|
361
|
-
'hydrator-
|
|
361
|
+
'hydrator-user_totp_recovery_code_8000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
362
362
|
// compiled hydrator for entity UserTotpRecoveryCodeEntity ( normalized)
|
|
363
363
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
364
364
|
if (data.id === null) {
|
|
@@ -375,7 +375,7 @@ export default {
|
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
377
|
},
|
|
378
|
-
'hydrator-
|
|
378
|
+
'hydrator-user_totp_recovery_code_8000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
379
379
|
// compiled hydrator for entity UserTotpRecoveryCodeEntity ( normalized)
|
|
380
380
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
381
381
|
if (data.id === null) {
|
|
@@ -392,26 +392,26 @@ export default {
|
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
394
|
},
|
|
395
|
-
'pkGetter-
|
|
395
|
+
'pkGetter-user_totp_recovery_code_8000': function (isEntityOrRef) {
|
|
396
396
|
// compiled pk getter for entity UserTotpRecoveryCodeEntity
|
|
397
397
|
return function (entity) {
|
|
398
398
|
return entity.id;
|
|
399
399
|
};
|
|
400
400
|
},
|
|
401
|
-
'pkGetterConverted-
|
|
401
|
+
'pkGetterConverted-user_totp_recovery_code_8000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
402
402
|
// compiled pk getter (with converted custom types) for entity UserTotpRecoveryCodeEntity
|
|
403
403
|
return function (entity) {
|
|
404
404
|
return convertToDatabaseValue_id(entity.id);
|
|
405
405
|
};
|
|
406
406
|
},
|
|
407
|
-
'pkSerializer-
|
|
407
|
+
'pkSerializer-user_totp_recovery_code_8000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
408
408
|
// compiled pk serializer for entity UserTotpRecoveryCodeEntity
|
|
409
409
|
return function (entity) {
|
|
410
410
|
const val_0 = convertToDatabaseValue_id(entity.id);
|
|
411
411
|
return getPrimaryKeyHash(val_0);
|
|
412
412
|
};
|
|
413
413
|
},
|
|
414
|
-
'hydrator-
|
|
414
|
+
'hydrator-user_totp_7000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_21, user_22) {
|
|
415
415
|
// compiled hydrator for entity UserTotpEntity ( normalized)
|
|
416
416
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
417
417
|
if (data.id === null) {
|
|
@@ -477,6 +477,12 @@ export default {
|
|
|
477
477
|
else if (typeof data.verified !== 'undefined') {
|
|
478
478
|
entity.verified = !!data.verified;
|
|
479
479
|
}
|
|
480
|
+
if (data.last_used_step === null) {
|
|
481
|
+
entity.last_used_step = null;
|
|
482
|
+
}
|
|
483
|
+
else if (typeof data.last_used_step !== 'undefined') {
|
|
484
|
+
entity.last_used_step = data.last_used_step;
|
|
485
|
+
}
|
|
480
486
|
if (data.recovery_confirmed === null) {
|
|
481
487
|
entity.recovery_confirmed = null;
|
|
482
488
|
}
|
|
@@ -485,7 +491,7 @@ export default {
|
|
|
485
491
|
}
|
|
486
492
|
};
|
|
487
493
|
},
|
|
488
|
-
'hydrator-
|
|
494
|
+
'hydrator-user_totp_7000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_30, user_31) {
|
|
489
495
|
// compiled hydrator for entity UserTotpEntity ( normalized)
|
|
490
496
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
491
497
|
if (data.id === null) {
|
|
@@ -533,10 +539,10 @@ export default {
|
|
|
533
539
|
}
|
|
534
540
|
else if (typeof data.user !== 'undefined') {
|
|
535
541
|
if (isPrimaryKey(data.user, true)) {
|
|
536
|
-
entity.user = factory.createReference(
|
|
542
|
+
entity.user = factory.createReference(user_30, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
537
543
|
}
|
|
538
544
|
else if (data.user && typeof data.user === 'object') {
|
|
539
|
-
entity.user = factory.create(
|
|
545
|
+
entity.user = factory.create(user_31, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
540
546
|
}
|
|
541
547
|
}
|
|
542
548
|
if (data.secret === null) {
|
|
@@ -551,6 +557,12 @@ export default {
|
|
|
551
557
|
else if (typeof data.verified !== 'undefined') {
|
|
552
558
|
entity.verified = !!data.verified;
|
|
553
559
|
}
|
|
560
|
+
if (data.last_used_step === null) {
|
|
561
|
+
entity.last_used_step = null;
|
|
562
|
+
}
|
|
563
|
+
else if (typeof data.last_used_step !== 'undefined') {
|
|
564
|
+
entity.last_used_step = data.last_used_step;
|
|
565
|
+
}
|
|
554
566
|
if (data.recovery_confirmed === null) {
|
|
555
567
|
entity.recovery_confirmed = null;
|
|
556
568
|
}
|
|
@@ -559,7 +571,7 @@ export default {
|
|
|
559
571
|
}
|
|
560
572
|
};
|
|
561
573
|
},
|
|
562
|
-
'comparator-
|
|
574
|
+
'comparator-user_totp_7000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
563
575
|
// compiled comparator for entity UserTotpEntity
|
|
564
576
|
return function (last, current, options) {
|
|
565
577
|
const diff = {};
|
|
@@ -629,6 +641,17 @@ export default {
|
|
|
629
641
|
else if (!compareBooleans(last.verified, current.verified)) {
|
|
630
642
|
diff.verified = current.verified;
|
|
631
643
|
}
|
|
644
|
+
if (current.last_used_step === null && last.last_used_step === undefined) {
|
|
645
|
+
diff.last_used_step = current.last_used_step;
|
|
646
|
+
}
|
|
647
|
+
else if (current.last_used_step == null && last.last_used_step == null) {
|
|
648
|
+
}
|
|
649
|
+
else if ((current.last_used_step != null && last.last_used_step == null) || (current.last_used_step == null && last.last_used_step != null)) {
|
|
650
|
+
diff.last_used_step = current.last_used_step;
|
|
651
|
+
}
|
|
652
|
+
else if (!equals(last.last_used_step, current.last_used_step)) {
|
|
653
|
+
diff.last_used_step = current.last_used_step;
|
|
654
|
+
}
|
|
632
655
|
if (current.recovery_confirmed === null && last.recovery_confirmed === undefined) {
|
|
633
656
|
diff.recovery_confirmed = current.recovery_confirmed;
|
|
634
657
|
}
|
|
@@ -645,7 +668,7 @@ export default {
|
|
|
645
668
|
return diff;
|
|
646
669
|
};
|
|
647
670
|
},
|
|
648
|
-
'snapshotGenerator-
|
|
671
|
+
'snapshotGenerator-user_totp_7000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
649
672
|
return function (entity) {
|
|
650
673
|
const ret = {};
|
|
651
674
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -674,13 +697,16 @@ export default {
|
|
|
674
697
|
if (typeof entity.verified !== 'undefined') {
|
|
675
698
|
ret.verified = entity.verified;
|
|
676
699
|
}
|
|
700
|
+
if (typeof entity.last_used_step !== 'undefined') {
|
|
701
|
+
ret.last_used_step = clone(entity.last_used_step);
|
|
702
|
+
}
|
|
677
703
|
if (typeof entity.recovery_confirmed !== 'undefined') {
|
|
678
704
|
ret.recovery_confirmed = entity.recovery_confirmed;
|
|
679
705
|
}
|
|
680
706
|
return ret;
|
|
681
707
|
};
|
|
682
708
|
},
|
|
683
|
-
'resultMapper-
|
|
709
|
+
'resultMapper-user_totp_7000': function (PolymorphicRef, parseDate) {
|
|
684
710
|
// compiled mapper for entity UserTotpEntity
|
|
685
711
|
return function (result) {
|
|
686
712
|
const ret = {};
|
|
@@ -731,6 +757,10 @@ export default {
|
|
|
731
757
|
ret.verified = result.verified == null ? result.verified : !!result.verified;
|
|
732
758
|
mapped.verified = true;
|
|
733
759
|
}
|
|
760
|
+
if (typeof result.last_used_step !== 'undefined') {
|
|
761
|
+
ret.last_used_step = result.last_used_step;
|
|
762
|
+
mapped.last_used_step = true;
|
|
763
|
+
}
|
|
734
764
|
if (typeof result.recovery_confirmed !== 'undefined') {
|
|
735
765
|
ret.recovery_confirmed = result.recovery_confirmed == null ? result.recovery_confirmed : !!result.recovery_confirmed;
|
|
736
766
|
mapped.recovery_confirmed = true;
|
|
@@ -742,7 +772,7 @@ export default {
|
|
|
742
772
|
return ret;
|
|
743
773
|
};
|
|
744
774
|
},
|
|
745
|
-
'hydrator-
|
|
775
|
+
'hydrator-user_totp_7000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
746
776
|
// compiled hydrator for entity UserTotpEntity ( normalized)
|
|
747
777
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
748
778
|
if (data.id === null) {
|
|
@@ -759,7 +789,7 @@ export default {
|
|
|
759
789
|
}
|
|
760
790
|
};
|
|
761
791
|
},
|
|
762
|
-
'hydrator-
|
|
792
|
+
'hydrator-user_totp_7000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
763
793
|
// compiled hydrator for entity UserTotpEntity ( normalized)
|
|
764
794
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
765
795
|
if (data.id === null) {
|
|
@@ -776,26 +806,26 @@ export default {
|
|
|
776
806
|
}
|
|
777
807
|
};
|
|
778
808
|
},
|
|
779
|
-
'pkGetter-
|
|
809
|
+
'pkGetter-user_totp_7000': function (isEntityOrRef) {
|
|
780
810
|
// compiled pk getter for entity UserTotpEntity
|
|
781
811
|
return function (entity) {
|
|
782
812
|
return entity.id;
|
|
783
813
|
};
|
|
784
814
|
},
|
|
785
|
-
'pkGetterConverted-
|
|
815
|
+
'pkGetterConverted-user_totp_7000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
786
816
|
// compiled pk getter (with converted custom types) for entity UserTotpEntity
|
|
787
817
|
return function (entity) {
|
|
788
818
|
return convertToDatabaseValue_id(entity.id);
|
|
789
819
|
};
|
|
790
820
|
},
|
|
791
|
-
'pkSerializer-
|
|
821
|
+
'pkSerializer-user_totp_7000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
792
822
|
// compiled pk serializer for entity UserTotpEntity
|
|
793
823
|
return function (entity) {
|
|
794
824
|
const val_1 = convertToDatabaseValue_id(entity.id);
|
|
795
825
|
return getPrimaryKeyHash(val_1);
|
|
796
826
|
};
|
|
797
827
|
},
|
|
798
|
-
'hydrator-
|
|
828
|
+
'hydrator-user_terms_consent_22000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_41, user_42, terms_43, terms_44) {
|
|
799
829
|
// compiled hydrator for entity UserTermsConsentEntity ( normalized)
|
|
800
830
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
801
831
|
if (data.id === null) {
|
|
@@ -843,10 +873,10 @@ export default {
|
|
|
843
873
|
}
|
|
844
874
|
else if (typeof data.user !== 'undefined') {
|
|
845
875
|
if (isPrimaryKey(data.user, true)) {
|
|
846
|
-
entity.user = factory.createReference(
|
|
876
|
+
entity.user = factory.createReference(user_41, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
847
877
|
}
|
|
848
878
|
else if (data.user && typeof data.user === 'object') {
|
|
849
|
-
entity.user = factory.create(
|
|
879
|
+
entity.user = factory.create(user_42, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
850
880
|
}
|
|
851
881
|
}
|
|
852
882
|
if (data.terms === null) {
|
|
@@ -854,10 +884,10 @@ export default {
|
|
|
854
884
|
}
|
|
855
885
|
else if (typeof data.terms !== 'undefined') {
|
|
856
886
|
if (isPrimaryKey(data.terms, true)) {
|
|
857
|
-
entity.terms = factory.createReference(
|
|
887
|
+
entity.terms = factory.createReference(terms_43, data.terms, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
858
888
|
}
|
|
859
889
|
else if (data.terms && typeof data.terms === 'object') {
|
|
860
|
-
entity.terms = factory.create(
|
|
890
|
+
entity.terms = factory.create(terms_44, data.terms, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
861
891
|
}
|
|
862
892
|
}
|
|
863
893
|
if (data.termsVersion === null) {
|
|
@@ -894,7 +924,7 @@ export default {
|
|
|
894
924
|
}
|
|
895
925
|
};
|
|
896
926
|
},
|
|
897
|
-
'hydrator-
|
|
927
|
+
'hydrator-user_terms_consent_22000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_52, user_53, terms_54, terms_55) {
|
|
898
928
|
// compiled hydrator for entity UserTermsConsentEntity ( normalized)
|
|
899
929
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
900
930
|
if (data.id === null) {
|
|
@@ -942,10 +972,10 @@ export default {
|
|
|
942
972
|
}
|
|
943
973
|
else if (typeof data.user !== 'undefined') {
|
|
944
974
|
if (isPrimaryKey(data.user, true)) {
|
|
945
|
-
entity.user = factory.createReference(
|
|
975
|
+
entity.user = factory.createReference(user_52, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
946
976
|
}
|
|
947
977
|
else if (data.user && typeof data.user === 'object') {
|
|
948
|
-
entity.user = factory.create(
|
|
978
|
+
entity.user = factory.create(user_53, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
949
979
|
}
|
|
950
980
|
}
|
|
951
981
|
if (data.terms === null) {
|
|
@@ -953,10 +983,10 @@ export default {
|
|
|
953
983
|
}
|
|
954
984
|
else if (typeof data.terms !== 'undefined') {
|
|
955
985
|
if (isPrimaryKey(data.terms, true)) {
|
|
956
|
-
entity.terms = factory.createReference(
|
|
986
|
+
entity.terms = factory.createReference(terms_54, data.terms, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
957
987
|
}
|
|
958
988
|
else if (data.terms && typeof data.terms === 'object') {
|
|
959
|
-
entity.terms = factory.create(
|
|
989
|
+
entity.terms = factory.create(terms_55, data.terms, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
960
990
|
}
|
|
961
991
|
}
|
|
962
992
|
if (data.termsVersion === null) {
|
|
@@ -993,7 +1023,7 @@ export default {
|
|
|
993
1023
|
}
|
|
994
1024
|
};
|
|
995
1025
|
},
|
|
996
|
-
'comparator-
|
|
1026
|
+
'comparator-user_terms_consent_22000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
997
1027
|
// compiled comparator for entity UserTermsConsentEntity
|
|
998
1028
|
return function (last, current, options) {
|
|
999
1029
|
const diff = {};
|
|
@@ -1101,7 +1131,7 @@ export default {
|
|
|
1101
1131
|
return diff;
|
|
1102
1132
|
};
|
|
1103
1133
|
},
|
|
1104
|
-
'snapshotGenerator-
|
|
1134
|
+
'snapshotGenerator-user_terms_consent_22000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
1105
1135
|
return function (entity) {
|
|
1106
1136
|
const ret = {};
|
|
1107
1137
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -1150,7 +1180,7 @@ export default {
|
|
|
1150
1180
|
return ret;
|
|
1151
1181
|
};
|
|
1152
1182
|
},
|
|
1153
|
-
'resultMapper-
|
|
1183
|
+
'resultMapper-user_terms_consent_22000': function (PolymorphicRef, parseDate) {
|
|
1154
1184
|
// compiled mapper for entity UserTermsConsentEntity
|
|
1155
1185
|
return function (result) {
|
|
1156
1186
|
const ret = {};
|
|
@@ -1231,7 +1261,7 @@ export default {
|
|
|
1231
1261
|
return ret;
|
|
1232
1262
|
};
|
|
1233
1263
|
},
|
|
1234
|
-
'hydrator-
|
|
1264
|
+
'hydrator-user_terms_consent_22000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
1235
1265
|
// compiled hydrator for entity UserTermsConsentEntity ( normalized)
|
|
1236
1266
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1237
1267
|
if (data.id === null) {
|
|
@@ -1248,7 +1278,7 @@ export default {
|
|
|
1248
1278
|
}
|
|
1249
1279
|
};
|
|
1250
1280
|
},
|
|
1251
|
-
'hydrator-
|
|
1281
|
+
'hydrator-user_terms_consent_22000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
1252
1282
|
// compiled hydrator for entity UserTermsConsentEntity ( normalized)
|
|
1253
1283
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1254
1284
|
if (data.id === null) {
|
|
@@ -1265,26 +1295,26 @@ export default {
|
|
|
1265
1295
|
}
|
|
1266
1296
|
};
|
|
1267
1297
|
},
|
|
1268
|
-
'pkGetter-
|
|
1298
|
+
'pkGetter-user_terms_consent_22000': function (isEntityOrRef) {
|
|
1269
1299
|
// compiled pk getter for entity UserTermsConsentEntity
|
|
1270
1300
|
return function (entity) {
|
|
1271
1301
|
return entity.id;
|
|
1272
1302
|
};
|
|
1273
1303
|
},
|
|
1274
|
-
'pkGetterConverted-
|
|
1304
|
+
'pkGetterConverted-user_terms_consent_22000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
1275
1305
|
// compiled pk getter (with converted custom types) for entity UserTermsConsentEntity
|
|
1276
1306
|
return function (entity) {
|
|
1277
1307
|
return convertToDatabaseValue_id(entity.id);
|
|
1278
1308
|
};
|
|
1279
1309
|
},
|
|
1280
|
-
'pkSerializer-
|
|
1310
|
+
'pkSerializer-user_terms_consent_22000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
1281
1311
|
// compiled pk serializer for entity UserTermsConsentEntity
|
|
1282
1312
|
return function (entity) {
|
|
1283
1313
|
const val_2 = convertToDatabaseValue_id(entity.id);
|
|
1284
1314
|
return getPrimaryKeyHash(val_2);
|
|
1285
1315
|
};
|
|
1286
1316
|
},
|
|
1287
|
-
'hydrator-
|
|
1317
|
+
'hydrator-user_passkey_6000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_65, user_66, convertToJSValue_transports, convertToDatabaseValue_transports) {
|
|
1288
1318
|
// compiled hydrator for entity UserPasskeyEntity ( normalized)
|
|
1289
1319
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1290
1320
|
if (data.id === null) {
|
|
@@ -1332,10 +1362,10 @@ export default {
|
|
|
1332
1362
|
}
|
|
1333
1363
|
else if (typeof data.user !== 'undefined') {
|
|
1334
1364
|
if (isPrimaryKey(data.user, true)) {
|
|
1335
|
-
entity.user = Reference.create(factory.createReference(
|
|
1365
|
+
entity.user = Reference.create(factory.createReference(user_65, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
1336
1366
|
}
|
|
1337
1367
|
else if (data.user && typeof data.user === 'object') {
|
|
1338
|
-
entity.user = Reference.create(factory.create(
|
|
1368
|
+
entity.user = Reference.create(factory.create(user_66, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
1339
1369
|
}
|
|
1340
1370
|
}
|
|
1341
1371
|
if (data.credential_id === null) {
|
|
@@ -1395,7 +1425,7 @@ export default {
|
|
|
1395
1425
|
}
|
|
1396
1426
|
};
|
|
1397
1427
|
},
|
|
1398
|
-
'hydrator-
|
|
1428
|
+
'hydrator-user_passkey_6000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_78, user_79, convertToJSValue_transports, convertToDatabaseValue_transports) {
|
|
1399
1429
|
// compiled hydrator for entity UserPasskeyEntity ( normalized)
|
|
1400
1430
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1401
1431
|
if (data.id === null) {
|
|
@@ -1443,10 +1473,10 @@ export default {
|
|
|
1443
1473
|
}
|
|
1444
1474
|
else if (typeof data.user !== 'undefined') {
|
|
1445
1475
|
if (isPrimaryKey(data.user, true)) {
|
|
1446
|
-
entity.user = Reference.create(factory.createReference(
|
|
1476
|
+
entity.user = Reference.create(factory.createReference(user_78, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
1447
1477
|
}
|
|
1448
1478
|
else if (data.user && typeof data.user === 'object') {
|
|
1449
|
-
entity.user = Reference.create(factory.create(
|
|
1479
|
+
entity.user = Reference.create(factory.create(user_79, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
1450
1480
|
}
|
|
1451
1481
|
}
|
|
1452
1482
|
if (data.credential_id === null) {
|
|
@@ -1506,7 +1536,7 @@ export default {
|
|
|
1506
1536
|
}
|
|
1507
1537
|
};
|
|
1508
1538
|
},
|
|
1509
|
-
'comparator-
|
|
1539
|
+
'comparator-user_passkey_6000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
1510
1540
|
// compiled comparator for entity UserPasskeyEntity
|
|
1511
1541
|
return function (last, current, options) {
|
|
1512
1542
|
const diff = {};
|
|
@@ -1647,7 +1677,7 @@ export default {
|
|
|
1647
1677
|
return diff;
|
|
1648
1678
|
};
|
|
1649
1679
|
},
|
|
1650
|
-
'snapshotGenerator-
|
|
1680
|
+
'snapshotGenerator-user_passkey_6000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier, convertToDatabaseValue_transports) {
|
|
1651
1681
|
return function (entity) {
|
|
1652
1682
|
const ret = {};
|
|
1653
1683
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -1697,7 +1727,7 @@ export default {
|
|
|
1697
1727
|
return ret;
|
|
1698
1728
|
};
|
|
1699
1729
|
},
|
|
1700
|
-
'resultMapper-
|
|
1730
|
+
'resultMapper-user_passkey_6000': function (PolymorphicRef, parseDate) {
|
|
1701
1731
|
// compiled mapper for entity UserPasskeyEntity
|
|
1702
1732
|
return function (result) {
|
|
1703
1733
|
const ret = {};
|
|
@@ -1779,7 +1809,7 @@ export default {
|
|
|
1779
1809
|
return ret;
|
|
1780
1810
|
};
|
|
1781
1811
|
},
|
|
1782
|
-
'hydrator-
|
|
1812
|
+
'hydrator-user_passkey_6000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
1783
1813
|
// compiled hydrator for entity UserPasskeyEntity ( normalized)
|
|
1784
1814
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1785
1815
|
if (data.id === null) {
|
|
@@ -1796,7 +1826,7 @@ export default {
|
|
|
1796
1826
|
}
|
|
1797
1827
|
};
|
|
1798
1828
|
},
|
|
1799
|
-
'hydrator-
|
|
1829
|
+
'hydrator-user_passkey_6000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
1800
1830
|
// compiled hydrator for entity UserPasskeyEntity ( normalized)
|
|
1801
1831
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1802
1832
|
if (data.id === null) {
|
|
@@ -1813,26 +1843,26 @@ export default {
|
|
|
1813
1843
|
}
|
|
1814
1844
|
};
|
|
1815
1845
|
},
|
|
1816
|
-
'pkGetter-
|
|
1846
|
+
'pkGetter-user_passkey_6000': function (isEntityOrRef) {
|
|
1817
1847
|
// compiled pk getter for entity UserPasskeyEntity
|
|
1818
1848
|
return function (entity) {
|
|
1819
1849
|
return entity.id;
|
|
1820
1850
|
};
|
|
1821
1851
|
},
|
|
1822
|
-
'pkGetterConverted-
|
|
1852
|
+
'pkGetterConverted-user_passkey_6000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
1823
1853
|
// compiled pk getter (with converted custom types) for entity UserPasskeyEntity
|
|
1824
1854
|
return function (entity) {
|
|
1825
1855
|
return convertToDatabaseValue_id(entity.id);
|
|
1826
1856
|
};
|
|
1827
1857
|
},
|
|
1828
|
-
'pkSerializer-
|
|
1858
|
+
'pkSerializer-user_passkey_6000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
1829
1859
|
// compiled pk serializer for entity UserPasskeyEntity
|
|
1830
1860
|
return function (entity) {
|
|
1831
1861
|
const val_3 = convertToDatabaseValue_id(entity.id);
|
|
1832
1862
|
return getPrimaryKeyHash(val_3);
|
|
1833
1863
|
};
|
|
1834
1864
|
},
|
|
1835
|
-
'hydrator-
|
|
1865
|
+
'hydrator-user_oauth_5000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_93, user_94) {
|
|
1836
1866
|
// compiled hydrator for entity UserOAuthEntity ( normalized)
|
|
1837
1867
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1838
1868
|
if (data.id === null) {
|
|
@@ -1881,10 +1911,10 @@ export default {
|
|
|
1881
1911
|
}
|
|
1882
1912
|
else if (typeof data.user !== 'undefined') {
|
|
1883
1913
|
if (isPrimaryKey(data.user, true)) {
|
|
1884
|
-
entity.user = Reference.create(factory.createReference(
|
|
1914
|
+
entity.user = Reference.create(factory.createReference(user_93, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
1885
1915
|
}
|
|
1886
1916
|
else if (data.user && typeof data.user === 'object') {
|
|
1887
|
-
entity.user = Reference.create(factory.create(
|
|
1917
|
+
entity.user = Reference.create(factory.create(user_94, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
1888
1918
|
}
|
|
1889
1919
|
}
|
|
1890
1920
|
if (data.provider_name === null) {
|
|
@@ -1927,7 +1957,7 @@ export default {
|
|
|
1927
1957
|
}
|
|
1928
1958
|
};
|
|
1929
1959
|
},
|
|
1930
|
-
'hydrator-
|
|
1960
|
+
'hydrator-user_oauth_5000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_103, user_104) {
|
|
1931
1961
|
// compiled hydrator for entity UserOAuthEntity ( normalized)
|
|
1932
1962
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1933
1963
|
if (data.id === null) {
|
|
@@ -1976,10 +2006,10 @@ export default {
|
|
|
1976
2006
|
}
|
|
1977
2007
|
else if (typeof data.user !== 'undefined') {
|
|
1978
2008
|
if (isPrimaryKey(data.user, true)) {
|
|
1979
|
-
entity.user = Reference.create(factory.createReference(
|
|
2009
|
+
entity.user = Reference.create(factory.createReference(user_103, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
1980
2010
|
}
|
|
1981
2011
|
else if (data.user && typeof data.user === 'object') {
|
|
1982
|
-
entity.user = Reference.create(factory.create(
|
|
2012
|
+
entity.user = Reference.create(factory.create(user_104, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
1983
2013
|
}
|
|
1984
2014
|
}
|
|
1985
2015
|
if (data.provider_name === null) {
|
|
@@ -2022,7 +2052,7 @@ export default {
|
|
|
2022
2052
|
}
|
|
2023
2053
|
};
|
|
2024
2054
|
},
|
|
2025
|
-
'comparator-
|
|
2055
|
+
'comparator-user_oauth_5000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals, compareValues_4) {
|
|
2026
2056
|
// compiled comparator for entity UserOAuthEntity
|
|
2027
2057
|
return function (last, current, options) {
|
|
2028
2058
|
const diff = {};
|
|
@@ -2130,7 +2160,7 @@ export default {
|
|
|
2130
2160
|
return diff;
|
|
2131
2161
|
};
|
|
2132
2162
|
},
|
|
2133
|
-
'snapshotGenerator-
|
|
2163
|
+
'snapshotGenerator-user_oauth_5000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
2134
2164
|
return function (entity) {
|
|
2135
2165
|
const ret = {};
|
|
2136
2166
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -2171,7 +2201,7 @@ export default {
|
|
|
2171
2201
|
return ret;
|
|
2172
2202
|
};
|
|
2173
2203
|
},
|
|
2174
|
-
'resultMapper-
|
|
2204
|
+
'resultMapper-user_oauth_5000': function (PolymorphicRef, parseDate) {
|
|
2175
2205
|
// compiled mapper for entity UserOAuthEntity
|
|
2176
2206
|
return function (result) {
|
|
2177
2207
|
const ret = {};
|
|
@@ -2252,7 +2282,7 @@ export default {
|
|
|
2252
2282
|
return ret;
|
|
2253
2283
|
};
|
|
2254
2284
|
},
|
|
2255
|
-
'hydrator-
|
|
2285
|
+
'hydrator-user_oauth_5000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
2256
2286
|
// compiled hydrator for entity UserOAuthEntity ( normalized)
|
|
2257
2287
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
2258
2288
|
if (data.id === null) {
|
|
@@ -2270,7 +2300,7 @@ export default {
|
|
|
2270
2300
|
}
|
|
2271
2301
|
};
|
|
2272
2302
|
},
|
|
2273
|
-
'hydrator-
|
|
2303
|
+
'hydrator-user_oauth_5000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
2274
2304
|
// compiled hydrator for entity UserOAuthEntity ( normalized)
|
|
2275
2305
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
2276
2306
|
if (data.id === null) {
|
|
@@ -2288,26 +2318,26 @@ export default {
|
|
|
2288
2318
|
}
|
|
2289
2319
|
};
|
|
2290
2320
|
},
|
|
2291
|
-
'pkGetter-
|
|
2321
|
+
'pkGetter-user_oauth_5000': function (isEntityOrRef) {
|
|
2292
2322
|
// compiled pk getter for entity UserOAuthEntity
|
|
2293
2323
|
return function (entity) {
|
|
2294
2324
|
return entity.id;
|
|
2295
2325
|
};
|
|
2296
2326
|
},
|
|
2297
|
-
'pkGetterConverted-
|
|
2327
|
+
'pkGetterConverted-user_oauth_5000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
2298
2328
|
// compiled pk getter (with converted custom types) for entity UserOAuthEntity
|
|
2299
2329
|
return function (entity) {
|
|
2300
2330
|
return convertToDatabaseValue_id(entity.id);
|
|
2301
2331
|
};
|
|
2302
2332
|
},
|
|
2303
|
-
'pkSerializer-
|
|
2333
|
+
'pkSerializer-user_oauth_5000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
2304
2334
|
// compiled pk serializer for entity UserOAuthEntity
|
|
2305
2335
|
return function (entity) {
|
|
2306
2336
|
const val_5 = convertToDatabaseValue_id(entity.id);
|
|
2307
2337
|
return getPrimaryKeyHash(val_5);
|
|
2308
2338
|
};
|
|
2309
2339
|
},
|
|
2310
|
-
'hydrator-
|
|
2340
|
+
'hydrator-user_9000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, user_oauth_124, user_passkey_125, user_totp_126, user_totp_recovery_code_127) {
|
|
2311
2341
|
// compiled hydrator for entity UserEntity ( normalized)
|
|
2312
2342
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
2313
2343
|
if (data.sub === null) {
|
|
@@ -2374,6 +2404,32 @@ export default {
|
|
|
2374
2404
|
else if (typeof data.role !== 'undefined') {
|
|
2375
2405
|
entity.role = data.role;
|
|
2376
2406
|
}
|
|
2407
|
+
if (data.security_revision === null) {
|
|
2408
|
+
entity.security_revision = null;
|
|
2409
|
+
}
|
|
2410
|
+
else if (typeof data.security_revision !== 'undefined') {
|
|
2411
|
+
entity.security_revision = data.security_revision;
|
|
2412
|
+
}
|
|
2413
|
+
if (data.token_epoch === null) {
|
|
2414
|
+
entity.token_epoch = null;
|
|
2415
|
+
}
|
|
2416
|
+
else if (typeof data.token_epoch !== 'undefined') {
|
|
2417
|
+
entity.token_epoch = data.token_epoch;
|
|
2418
|
+
}
|
|
2419
|
+
if (data.sessions_invalidated_at === null) {
|
|
2420
|
+
entity.sessions_invalidated_at = null;
|
|
2421
|
+
}
|
|
2422
|
+
else if (typeof data.sessions_invalidated_at !== 'undefined') {
|
|
2423
|
+
if (data.sessions_invalidated_at instanceof Date) {
|
|
2424
|
+
entity.sessions_invalidated_at = data.sessions_invalidated_at;
|
|
2425
|
+
}
|
|
2426
|
+
else if (typeof data.sessions_invalidated_at === 'number' || data.sessions_invalidated_at.includes('+') || data.sessions_invalidated_at.lastIndexOf('-') > 10 || data.sessions_invalidated_at.endsWith('Z')) {
|
|
2427
|
+
entity.sessions_invalidated_at = new Date(data.sessions_invalidated_at);
|
|
2428
|
+
}
|
|
2429
|
+
else {
|
|
2430
|
+
entity.sessions_invalidated_at = new Date(data.sessions_invalidated_at + 'Z');
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2377
2433
|
if (data.deleted_at === null) {
|
|
2378
2434
|
entity.deleted_at = null;
|
|
2379
2435
|
}
|
|
@@ -2390,10 +2446,10 @@ export default {
|
|
|
2390
2446
|
}
|
|
2391
2447
|
const createCollectionItem_oauthAccounts = (value, entity) => {
|
|
2392
2448
|
if (isPrimaryKey(value, false))
|
|
2393
|
-
return factory.createReference(
|
|
2449
|
+
return factory.createReference(user_oauth_124, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2394
2450
|
if (value && isEntity(value))
|
|
2395
2451
|
return value;
|
|
2396
|
-
return factory.create(
|
|
2452
|
+
return factory.create(user_oauth_124, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2397
2453
|
};
|
|
2398
2454
|
if (data.oauthAccounts && !Array.isArray(data.oauthAccounts) && typeof data.oauthAccounts === 'object') {
|
|
2399
2455
|
data.oauthAccounts = [data.oauthAccounts];
|
|
@@ -2417,10 +2473,10 @@ export default {
|
|
|
2417
2473
|
}
|
|
2418
2474
|
const createCollectionItem_passkeys = (value, entity) => {
|
|
2419
2475
|
if (isPrimaryKey(value, false))
|
|
2420
|
-
return factory.createReference(
|
|
2476
|
+
return factory.createReference(user_passkey_125, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2421
2477
|
if (value && isEntity(value))
|
|
2422
2478
|
return value;
|
|
2423
|
-
return factory.create(
|
|
2479
|
+
return factory.create(user_passkey_125, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2424
2480
|
};
|
|
2425
2481
|
if (data.passkeys && !Array.isArray(data.passkeys) && typeof data.passkeys === 'object') {
|
|
2426
2482
|
data.passkeys = [data.passkeys];
|
|
@@ -2444,10 +2500,10 @@ export default {
|
|
|
2444
2500
|
}
|
|
2445
2501
|
const createCollectionItem_totps = (value, entity) => {
|
|
2446
2502
|
if (isPrimaryKey(value, false))
|
|
2447
|
-
return factory.createReference(
|
|
2503
|
+
return factory.createReference(user_totp_126, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2448
2504
|
if (value && isEntity(value))
|
|
2449
2505
|
return value;
|
|
2450
|
-
return factory.create(
|
|
2506
|
+
return factory.create(user_totp_126, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2451
2507
|
};
|
|
2452
2508
|
if (data.totps && !Array.isArray(data.totps) && typeof data.totps === 'object') {
|
|
2453
2509
|
data.totps = [data.totps];
|
|
@@ -2471,10 +2527,10 @@ export default {
|
|
|
2471
2527
|
}
|
|
2472
2528
|
const createCollectionItem_totpRecoveryCodes = (value, entity) => {
|
|
2473
2529
|
if (isPrimaryKey(value, false))
|
|
2474
|
-
return factory.createReference(
|
|
2530
|
+
return factory.createReference(user_totp_recovery_code_127, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2475
2531
|
if (value && isEntity(value))
|
|
2476
2532
|
return value;
|
|
2477
|
-
return factory.create(
|
|
2533
|
+
return factory.create(user_totp_recovery_code_127, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2478
2534
|
};
|
|
2479
2535
|
if (data.totpRecoveryCodes && !Array.isArray(data.totpRecoveryCodes) && typeof data.totpRecoveryCodes === 'object') {
|
|
2480
2536
|
data.totpRecoveryCodes = [data.totpRecoveryCodes];
|
|
@@ -2498,7 +2554,7 @@ export default {
|
|
|
2498
2554
|
}
|
|
2499
2555
|
};
|
|
2500
2556
|
},
|
|
2501
|
-
'hydrator-
|
|
2557
|
+
'hydrator-user_9000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, user_oauth_140, user_passkey_141, user_totp_142, user_totp_recovery_code_143) {
|
|
2502
2558
|
// compiled hydrator for entity UserEntity ( normalized)
|
|
2503
2559
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
2504
2560
|
if (data.sub === null) {
|
|
@@ -2565,6 +2621,32 @@ export default {
|
|
|
2565
2621
|
else if (typeof data.role !== 'undefined') {
|
|
2566
2622
|
entity.role = data.role;
|
|
2567
2623
|
}
|
|
2624
|
+
if (data.security_revision === null) {
|
|
2625
|
+
entity.security_revision = null;
|
|
2626
|
+
}
|
|
2627
|
+
else if (typeof data.security_revision !== 'undefined') {
|
|
2628
|
+
entity.security_revision = data.security_revision;
|
|
2629
|
+
}
|
|
2630
|
+
if (data.token_epoch === null) {
|
|
2631
|
+
entity.token_epoch = null;
|
|
2632
|
+
}
|
|
2633
|
+
else if (typeof data.token_epoch !== 'undefined') {
|
|
2634
|
+
entity.token_epoch = data.token_epoch;
|
|
2635
|
+
}
|
|
2636
|
+
if (data.sessions_invalidated_at === null) {
|
|
2637
|
+
entity.sessions_invalidated_at = null;
|
|
2638
|
+
}
|
|
2639
|
+
else if (typeof data.sessions_invalidated_at !== 'undefined') {
|
|
2640
|
+
if (data.sessions_invalidated_at instanceof Date) {
|
|
2641
|
+
entity.sessions_invalidated_at = data.sessions_invalidated_at;
|
|
2642
|
+
}
|
|
2643
|
+
else if (typeof data.sessions_invalidated_at === 'number' || data.sessions_invalidated_at.includes('+') || data.sessions_invalidated_at.lastIndexOf('-') > 10 || data.sessions_invalidated_at.endsWith('Z')) {
|
|
2644
|
+
entity.sessions_invalidated_at = new Date(data.sessions_invalidated_at);
|
|
2645
|
+
}
|
|
2646
|
+
else {
|
|
2647
|
+
entity.sessions_invalidated_at = new Date(data.sessions_invalidated_at + 'Z');
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2568
2650
|
if (data.deleted_at === null) {
|
|
2569
2651
|
entity.deleted_at = null;
|
|
2570
2652
|
}
|
|
@@ -2581,10 +2663,10 @@ export default {
|
|
|
2581
2663
|
}
|
|
2582
2664
|
const createCollectionItem_oauthAccounts = (value, entity) => {
|
|
2583
2665
|
if (isPrimaryKey(value, false))
|
|
2584
|
-
return factory.createReference(
|
|
2666
|
+
return factory.createReference(user_oauth_140, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2585
2667
|
if (value && isEntity(value))
|
|
2586
2668
|
return value;
|
|
2587
|
-
return factory.create(
|
|
2669
|
+
return factory.create(user_oauth_140, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2588
2670
|
};
|
|
2589
2671
|
if (data.oauthAccounts && !Array.isArray(data.oauthAccounts) && typeof data.oauthAccounts === 'object') {
|
|
2590
2672
|
data.oauthAccounts = [data.oauthAccounts];
|
|
@@ -2608,10 +2690,10 @@ export default {
|
|
|
2608
2690
|
}
|
|
2609
2691
|
const createCollectionItem_passkeys = (value, entity) => {
|
|
2610
2692
|
if (isPrimaryKey(value, false))
|
|
2611
|
-
return factory.createReference(
|
|
2693
|
+
return factory.createReference(user_passkey_141, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2612
2694
|
if (value && isEntity(value))
|
|
2613
2695
|
return value;
|
|
2614
|
-
return factory.create(
|
|
2696
|
+
return factory.create(user_passkey_141, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2615
2697
|
};
|
|
2616
2698
|
if (data.passkeys && !Array.isArray(data.passkeys) && typeof data.passkeys === 'object') {
|
|
2617
2699
|
data.passkeys = [data.passkeys];
|
|
@@ -2635,10 +2717,10 @@ export default {
|
|
|
2635
2717
|
}
|
|
2636
2718
|
const createCollectionItem_totps = (value, entity) => {
|
|
2637
2719
|
if (isPrimaryKey(value, false))
|
|
2638
|
-
return factory.createReference(
|
|
2720
|
+
return factory.createReference(user_totp_142, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2639
2721
|
if (value && isEntity(value))
|
|
2640
2722
|
return value;
|
|
2641
|
-
return factory.create(
|
|
2723
|
+
return factory.create(user_totp_142, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2642
2724
|
};
|
|
2643
2725
|
if (data.totps && !Array.isArray(data.totps) && typeof data.totps === 'object') {
|
|
2644
2726
|
data.totps = [data.totps];
|
|
@@ -2662,10 +2744,10 @@ export default {
|
|
|
2662
2744
|
}
|
|
2663
2745
|
const createCollectionItem_totpRecoveryCodes = (value, entity) => {
|
|
2664
2746
|
if (isPrimaryKey(value, false))
|
|
2665
|
-
return factory.createReference(
|
|
2747
|
+
return factory.createReference(user_totp_recovery_code_143, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2666
2748
|
if (value && isEntity(value))
|
|
2667
2749
|
return value;
|
|
2668
|
-
return factory.create(
|
|
2750
|
+
return factory.create(user_totp_recovery_code_143, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
2669
2751
|
};
|
|
2670
2752
|
if (data.totpRecoveryCodes && !Array.isArray(data.totpRecoveryCodes) && typeof data.totpRecoveryCodes === 'object') {
|
|
2671
2753
|
data.totpRecoveryCodes = [data.totpRecoveryCodes];
|
|
@@ -2689,7 +2771,7 @@ export default {
|
|
|
2689
2771
|
}
|
|
2690
2772
|
};
|
|
2691
2773
|
},
|
|
2692
|
-
'comparator-
|
|
2774
|
+
'comparator-user_9000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
2693
2775
|
// compiled comparator for entity UserEntity
|
|
2694
2776
|
return function (last, current, options) {
|
|
2695
2777
|
const diff = {};
|
|
@@ -2781,6 +2863,39 @@ export default {
|
|
|
2781
2863
|
else if (last.role !== current.role) {
|
|
2782
2864
|
diff.role = current.role;
|
|
2783
2865
|
}
|
|
2866
|
+
if (current.security_revision === null && last.security_revision === undefined) {
|
|
2867
|
+
diff.security_revision = current.security_revision;
|
|
2868
|
+
}
|
|
2869
|
+
else if (current.security_revision == null && last.security_revision == null) {
|
|
2870
|
+
}
|
|
2871
|
+
else if ((current.security_revision != null && last.security_revision == null) || (current.security_revision == null && last.security_revision != null)) {
|
|
2872
|
+
diff.security_revision = current.security_revision;
|
|
2873
|
+
}
|
|
2874
|
+
else if (!equals(last.security_revision, current.security_revision)) {
|
|
2875
|
+
diff.security_revision = current.security_revision;
|
|
2876
|
+
}
|
|
2877
|
+
if (current.token_epoch === null && last.token_epoch === undefined) {
|
|
2878
|
+
diff.token_epoch = current.token_epoch;
|
|
2879
|
+
}
|
|
2880
|
+
else if (current.token_epoch == null && last.token_epoch == null) {
|
|
2881
|
+
}
|
|
2882
|
+
else if ((current.token_epoch != null && last.token_epoch == null) || (current.token_epoch == null && last.token_epoch != null)) {
|
|
2883
|
+
diff.token_epoch = current.token_epoch;
|
|
2884
|
+
}
|
|
2885
|
+
else if (last.token_epoch !== current.token_epoch) {
|
|
2886
|
+
diff.token_epoch = current.token_epoch;
|
|
2887
|
+
}
|
|
2888
|
+
if (current.sessions_invalidated_at === null && last.sessions_invalidated_at === undefined) {
|
|
2889
|
+
diff.sessions_invalidated_at = current.sessions_invalidated_at;
|
|
2890
|
+
}
|
|
2891
|
+
else if (current.sessions_invalidated_at == null && last.sessions_invalidated_at == null) {
|
|
2892
|
+
}
|
|
2893
|
+
else if ((current.sessions_invalidated_at != null && last.sessions_invalidated_at == null) || (current.sessions_invalidated_at == null && last.sessions_invalidated_at != null)) {
|
|
2894
|
+
diff.sessions_invalidated_at = current.sessions_invalidated_at;
|
|
2895
|
+
}
|
|
2896
|
+
else if (last.sessions_invalidated_at.valueOf() !== current.sessions_invalidated_at.valueOf()) {
|
|
2897
|
+
diff.sessions_invalidated_at = current.sessions_invalidated_at;
|
|
2898
|
+
}
|
|
2784
2899
|
if (current.deleted_at === null && last.deleted_at === undefined) {
|
|
2785
2900
|
diff.deleted_at = current.deleted_at;
|
|
2786
2901
|
}
|
|
@@ -2797,7 +2912,7 @@ export default {
|
|
|
2797
2912
|
return diff;
|
|
2798
2913
|
};
|
|
2799
2914
|
},
|
|
2800
|
-
'snapshotGenerator-
|
|
2915
|
+
'snapshotGenerator-user_9000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
2801
2916
|
return function (entity) {
|
|
2802
2917
|
const ret = {};
|
|
2803
2918
|
if (typeof entity.sub !== 'undefined') {
|
|
@@ -2824,13 +2939,22 @@ export default {
|
|
|
2824
2939
|
if (typeof entity.role !== 'undefined') {
|
|
2825
2940
|
ret.role = entity.role;
|
|
2826
2941
|
}
|
|
2942
|
+
if (typeof entity.security_revision !== 'undefined') {
|
|
2943
|
+
ret.security_revision = clone(entity.security_revision);
|
|
2944
|
+
}
|
|
2945
|
+
if (typeof entity.token_epoch !== 'undefined') {
|
|
2946
|
+
ret.token_epoch = entity.token_epoch;
|
|
2947
|
+
}
|
|
2948
|
+
if (typeof entity.sessions_invalidated_at !== 'undefined') {
|
|
2949
|
+
ret.sessions_invalidated_at = clone(processDateProperty(entity.sessions_invalidated_at));
|
|
2950
|
+
}
|
|
2827
2951
|
if (typeof entity.deleted_at !== 'undefined') {
|
|
2828
2952
|
ret.deleted_at = clone(processDateProperty(entity.deleted_at));
|
|
2829
2953
|
}
|
|
2830
2954
|
return ret;
|
|
2831
2955
|
};
|
|
2832
2956
|
},
|
|
2833
|
-
'resultMapper-
|
|
2957
|
+
'resultMapper-user_9000': function (PolymorphicRef, parseDate) {
|
|
2834
2958
|
// compiled mapper for entity UserEntity
|
|
2835
2959
|
return function (result) {
|
|
2836
2960
|
const ret = {};
|
|
@@ -2889,6 +3013,29 @@ export default {
|
|
|
2889
3013
|
ret.role = result.role;
|
|
2890
3014
|
mapped.role = true;
|
|
2891
3015
|
}
|
|
3016
|
+
if (typeof result.security_revision !== 'undefined') {
|
|
3017
|
+
ret.security_revision = result.security_revision;
|
|
3018
|
+
mapped.security_revision = true;
|
|
3019
|
+
}
|
|
3020
|
+
if (typeof result.token_epoch !== 'undefined') {
|
|
3021
|
+
ret.token_epoch = result.token_epoch;
|
|
3022
|
+
mapped.token_epoch = true;
|
|
3023
|
+
}
|
|
3024
|
+
if (typeof result.sessions_invalidated_at !== 'undefined') {
|
|
3025
|
+
if (result.sessions_invalidated_at == null || result.sessions_invalidated_at instanceof Date) {
|
|
3026
|
+
ret.sessions_invalidated_at = result.sessions_invalidated_at;
|
|
3027
|
+
}
|
|
3028
|
+
else if (typeof result.sessions_invalidated_at === 'bigint') {
|
|
3029
|
+
ret.sessions_invalidated_at = parseDate(Number(result.sessions_invalidated_at));
|
|
3030
|
+
}
|
|
3031
|
+
else if (typeof result.sessions_invalidated_at === 'number' || result.sessions_invalidated_at.includes('+') || result.sessions_invalidated_at.lastIndexOf('-') > 10 || result.sessions_invalidated_at.endsWith('Z')) {
|
|
3032
|
+
ret.sessions_invalidated_at = parseDate(result.sessions_invalidated_at);
|
|
3033
|
+
}
|
|
3034
|
+
else {
|
|
3035
|
+
ret.sessions_invalidated_at = parseDate(result.sessions_invalidated_at + 'Z');
|
|
3036
|
+
}
|
|
3037
|
+
mapped.sessions_invalidated_at = true;
|
|
3038
|
+
}
|
|
2892
3039
|
if (typeof result.deleted_at !== 'undefined') {
|
|
2893
3040
|
if (result.deleted_at == null || result.deleted_at instanceof Date) {
|
|
2894
3041
|
ret.deleted_at = result.deleted_at;
|
|
@@ -2911,7 +3058,7 @@ export default {
|
|
|
2911
3058
|
return ret;
|
|
2912
3059
|
};
|
|
2913
3060
|
},
|
|
2914
|
-
'hydrator-
|
|
3061
|
+
'hydrator-user_9000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
2915
3062
|
// compiled hydrator for entity UserEntity ( normalized)
|
|
2916
3063
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
2917
3064
|
if (data.sub === null) {
|
|
@@ -2922,7 +3069,7 @@ export default {
|
|
|
2922
3069
|
}
|
|
2923
3070
|
};
|
|
2924
3071
|
},
|
|
2925
|
-
'hydrator-
|
|
3072
|
+
'hydrator-user_9000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
2926
3073
|
// compiled hydrator for entity UserEntity ( normalized)
|
|
2927
3074
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
2928
3075
|
if (data.sub === null) {
|
|
@@ -2933,25 +3080,25 @@ export default {
|
|
|
2933
3080
|
}
|
|
2934
3081
|
};
|
|
2935
3082
|
},
|
|
2936
|
-
'pkGetter-
|
|
3083
|
+
'pkGetter-user_9000': function (isEntityOrRef) {
|
|
2937
3084
|
// compiled pk getter for entity UserEntity
|
|
2938
3085
|
return function (entity) {
|
|
2939
3086
|
return entity.sub;
|
|
2940
3087
|
};
|
|
2941
3088
|
},
|
|
2942
|
-
'pkGetterConverted-
|
|
3089
|
+
'pkGetterConverted-user_9000': function (isEntityOrRef) {
|
|
2943
3090
|
// compiled pk getter (with converted custom types) for entity UserEntity
|
|
2944
3091
|
return function (entity) {
|
|
2945
3092
|
return entity.sub;
|
|
2946
3093
|
};
|
|
2947
3094
|
},
|
|
2948
|
-
'pkSerializer-
|
|
3095
|
+
'pkSerializer-user_9000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
2949
3096
|
// compiled pk serializer for entity UserEntity
|
|
2950
3097
|
return function (entity) {
|
|
2951
3098
|
return '' + entity.sub;
|
|
2952
3099
|
};
|
|
2953
3100
|
},
|
|
2954
|
-
'hydrator-
|
|
3101
|
+
'hydrator-user_consent_15000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_149, user_150, oauth_client_151, oauth_client_152, convertToJSValue_scopes, convertToDatabaseValue_scopes) {
|
|
2955
3102
|
// compiled hydrator for entity UserConsentEntity ( normalized)
|
|
2956
3103
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
2957
3104
|
if (data.id === null) {
|
|
@@ -2999,10 +3146,10 @@ export default {
|
|
|
2999
3146
|
}
|
|
3000
3147
|
else if (typeof data.user !== 'undefined') {
|
|
3001
3148
|
if (isPrimaryKey(data.user, true)) {
|
|
3002
|
-
entity.user = factory.createReference(
|
|
3149
|
+
entity.user = factory.createReference(user_149, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
3003
3150
|
}
|
|
3004
3151
|
else if (data.user && typeof data.user === 'object') {
|
|
3005
|
-
entity.user = factory.create(
|
|
3152
|
+
entity.user = factory.create(user_150, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
3006
3153
|
}
|
|
3007
3154
|
}
|
|
3008
3155
|
if (data.client === null) {
|
|
@@ -3010,10 +3157,10 @@ export default {
|
|
|
3010
3157
|
}
|
|
3011
3158
|
else if (typeof data.client !== 'undefined') {
|
|
3012
3159
|
if (isPrimaryKey(data.client, true)) {
|
|
3013
|
-
entity.client = factory.createReference(
|
|
3160
|
+
entity.client = factory.createReference(oauth_client_151, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
3014
3161
|
}
|
|
3015
3162
|
else if (data.client && typeof data.client === 'object') {
|
|
3016
|
-
entity.client = factory.create(
|
|
3163
|
+
entity.client = factory.create(oauth_client_152, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
3017
3164
|
}
|
|
3018
3165
|
}
|
|
3019
3166
|
if (data.scopes === null) {
|
|
@@ -3059,7 +3206,7 @@ export default {
|
|
|
3059
3206
|
}
|
|
3060
3207
|
};
|
|
3061
3208
|
},
|
|
3062
|
-
'hydrator-
|
|
3209
|
+
'hydrator-user_consent_15000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_159, user_160, oauth_client_161, oauth_client_162, convertToJSValue_scopes, convertToDatabaseValue_scopes) {
|
|
3063
3210
|
// compiled hydrator for entity UserConsentEntity ( normalized)
|
|
3064
3211
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3065
3212
|
if (data.id === null) {
|
|
@@ -3107,10 +3254,10 @@ export default {
|
|
|
3107
3254
|
}
|
|
3108
3255
|
else if (typeof data.user !== 'undefined') {
|
|
3109
3256
|
if (isPrimaryKey(data.user, true)) {
|
|
3110
|
-
entity.user = factory.createReference(
|
|
3257
|
+
entity.user = factory.createReference(user_159, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
3111
3258
|
}
|
|
3112
3259
|
else if (data.user && typeof data.user === 'object') {
|
|
3113
|
-
entity.user = factory.create(
|
|
3260
|
+
entity.user = factory.create(user_160, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
3114
3261
|
}
|
|
3115
3262
|
}
|
|
3116
3263
|
if (data.client === null) {
|
|
@@ -3118,10 +3265,10 @@ export default {
|
|
|
3118
3265
|
}
|
|
3119
3266
|
else if (typeof data.client !== 'undefined') {
|
|
3120
3267
|
if (isPrimaryKey(data.client, true)) {
|
|
3121
|
-
entity.client = factory.createReference(
|
|
3268
|
+
entity.client = factory.createReference(oauth_client_161, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
3122
3269
|
}
|
|
3123
3270
|
else if (data.client && typeof data.client === 'object') {
|
|
3124
|
-
entity.client = factory.create(
|
|
3271
|
+
entity.client = factory.create(oauth_client_162, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
3125
3272
|
}
|
|
3126
3273
|
}
|
|
3127
3274
|
if (data.scopes === null) {
|
|
@@ -3167,7 +3314,7 @@ export default {
|
|
|
3167
3314
|
}
|
|
3168
3315
|
};
|
|
3169
3316
|
},
|
|
3170
|
-
'comparator-
|
|
3317
|
+
'comparator-user_consent_15000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
3171
3318
|
// compiled comparator for entity UserConsentEntity
|
|
3172
3319
|
return function (last, current, options) {
|
|
3173
3320
|
const diff = {};
|
|
@@ -3264,7 +3411,7 @@ export default {
|
|
|
3264
3411
|
return diff;
|
|
3265
3412
|
};
|
|
3266
3413
|
},
|
|
3267
|
-
'snapshotGenerator-
|
|
3414
|
+
'snapshotGenerator-user_consent_15000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier, convertToDatabaseValue_scopes) {
|
|
3268
3415
|
return function (entity) {
|
|
3269
3416
|
const ret = {};
|
|
3270
3417
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -3310,7 +3457,7 @@ export default {
|
|
|
3310
3457
|
return ret;
|
|
3311
3458
|
};
|
|
3312
3459
|
},
|
|
3313
|
-
'resultMapper-
|
|
3460
|
+
'resultMapper-user_consent_15000': function (PolymorphicRef, parseDate) {
|
|
3314
3461
|
// compiled mapper for entity UserConsentEntity
|
|
3315
3462
|
return function (result) {
|
|
3316
3463
|
const ret = {};
|
|
@@ -3398,7 +3545,7 @@ export default {
|
|
|
3398
3545
|
return ret;
|
|
3399
3546
|
};
|
|
3400
3547
|
},
|
|
3401
|
-
'hydrator-
|
|
3548
|
+
'hydrator-user_consent_15000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
3402
3549
|
// compiled hydrator for entity UserConsentEntity ( normalized)
|
|
3403
3550
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3404
3551
|
if (data.id === null) {
|
|
@@ -3415,7 +3562,7 @@ export default {
|
|
|
3415
3562
|
}
|
|
3416
3563
|
};
|
|
3417
3564
|
},
|
|
3418
|
-
'hydrator-
|
|
3565
|
+
'hydrator-user_consent_15000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
3419
3566
|
// compiled hydrator for entity UserConsentEntity ( normalized)
|
|
3420
3567
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3421
3568
|
if (data.id === null) {
|
|
@@ -3432,26 +3579,26 @@ export default {
|
|
|
3432
3579
|
}
|
|
3433
3580
|
};
|
|
3434
3581
|
},
|
|
3435
|
-
'pkGetter-
|
|
3582
|
+
'pkGetter-user_consent_15000': function (isEntityOrRef) {
|
|
3436
3583
|
// compiled pk getter for entity UserConsentEntity
|
|
3437
3584
|
return function (entity) {
|
|
3438
3585
|
return entity.id;
|
|
3439
3586
|
};
|
|
3440
3587
|
},
|
|
3441
|
-
'pkGetterConverted-
|
|
3588
|
+
'pkGetterConverted-user_consent_15000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
3442
3589
|
// compiled pk getter (with converted custom types) for entity UserConsentEntity
|
|
3443
3590
|
return function (entity) {
|
|
3444
3591
|
return convertToDatabaseValue_id(entity.id);
|
|
3445
3592
|
};
|
|
3446
3593
|
},
|
|
3447
|
-
'pkSerializer-
|
|
3594
|
+
'pkSerializer-user_consent_15000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
3448
3595
|
// compiled pk serializer for entity UserConsentEntity
|
|
3449
3596
|
return function (entity) {
|
|
3450
3597
|
const val_6 = convertToDatabaseValue_id(entity.id);
|
|
3451
3598
|
return getPrimaryKeyHash(val_6);
|
|
3452
3599
|
};
|
|
3453
3600
|
},
|
|
3454
|
-
'hydrator-
|
|
3601
|
+
'hydrator-terms_23000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, terms_content_176, user_terms_consent_177) {
|
|
3455
3602
|
// compiled hydrator for entity TermsEntity ( normalized)
|
|
3456
3603
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3457
3604
|
if (data.id === null) {
|
|
@@ -3528,10 +3675,10 @@ export default {
|
|
|
3528
3675
|
}
|
|
3529
3676
|
const createCollectionItem_contents = (value, entity) => {
|
|
3530
3677
|
if (isPrimaryKey(value, false))
|
|
3531
|
-
return factory.createReference(
|
|
3678
|
+
return factory.createReference(terms_content_176, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
3532
3679
|
if (value && isEntity(value))
|
|
3533
3680
|
return value;
|
|
3534
|
-
return factory.create(
|
|
3681
|
+
return factory.create(terms_content_176, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
3535
3682
|
};
|
|
3536
3683
|
if (data.contents && !Array.isArray(data.contents) && typeof data.contents === 'object') {
|
|
3537
3684
|
data.contents = [data.contents];
|
|
@@ -3555,10 +3702,10 @@ export default {
|
|
|
3555
3702
|
}
|
|
3556
3703
|
const createCollectionItem_consents = (value, entity) => {
|
|
3557
3704
|
if (isPrimaryKey(value, false))
|
|
3558
|
-
return factory.createReference(
|
|
3705
|
+
return factory.createReference(user_terms_consent_177, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
3559
3706
|
if (value && isEntity(value))
|
|
3560
3707
|
return value;
|
|
3561
|
-
return factory.create(
|
|
3708
|
+
return factory.create(user_terms_consent_177, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
3562
3709
|
};
|
|
3563
3710
|
if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
|
|
3564
3711
|
data.consents = [data.consents];
|
|
@@ -3582,7 +3729,7 @@ export default {
|
|
|
3582
3729
|
}
|
|
3583
3730
|
};
|
|
3584
3731
|
},
|
|
3585
|
-
'hydrator-
|
|
3732
|
+
'hydrator-terms_23000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, terms_content_186, user_terms_consent_187) {
|
|
3586
3733
|
// compiled hydrator for entity TermsEntity ( normalized)
|
|
3587
3734
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3588
3735
|
if (data.id === null) {
|
|
@@ -3659,10 +3806,10 @@ export default {
|
|
|
3659
3806
|
}
|
|
3660
3807
|
const createCollectionItem_contents = (value, entity) => {
|
|
3661
3808
|
if (isPrimaryKey(value, false))
|
|
3662
|
-
return factory.createReference(
|
|
3809
|
+
return factory.createReference(terms_content_186, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
3663
3810
|
if (value && isEntity(value))
|
|
3664
3811
|
return value;
|
|
3665
|
-
return factory.create(
|
|
3812
|
+
return factory.create(terms_content_186, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
3666
3813
|
};
|
|
3667
3814
|
if (data.contents && !Array.isArray(data.contents) && typeof data.contents === 'object') {
|
|
3668
3815
|
data.contents = [data.contents];
|
|
@@ -3686,10 +3833,10 @@ export default {
|
|
|
3686
3833
|
}
|
|
3687
3834
|
const createCollectionItem_consents = (value, entity) => {
|
|
3688
3835
|
if (isPrimaryKey(value, false))
|
|
3689
|
-
return factory.createReference(
|
|
3836
|
+
return factory.createReference(user_terms_consent_187, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
3690
3837
|
if (value && isEntity(value))
|
|
3691
3838
|
return value;
|
|
3692
|
-
return factory.create(
|
|
3839
|
+
return factory.create(user_terms_consent_187, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
3693
3840
|
};
|
|
3694
3841
|
if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
|
|
3695
3842
|
data.consents = [data.consents];
|
|
@@ -3713,7 +3860,7 @@ export default {
|
|
|
3713
3860
|
}
|
|
3714
3861
|
};
|
|
3715
3862
|
},
|
|
3716
|
-
'comparator-
|
|
3863
|
+
'comparator-terms_23000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
3717
3864
|
// compiled comparator for entity TermsEntity
|
|
3718
3865
|
return function (last, current, options) {
|
|
3719
3866
|
const diff = {};
|
|
@@ -3810,7 +3957,7 @@ export default {
|
|
|
3810
3957
|
return diff;
|
|
3811
3958
|
};
|
|
3812
3959
|
},
|
|
3813
|
-
'snapshotGenerator-
|
|
3960
|
+
'snapshotGenerator-terms_23000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
3814
3961
|
return function (entity) {
|
|
3815
3962
|
const ret = {};
|
|
3816
3963
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -3840,7 +3987,7 @@ export default {
|
|
|
3840
3987
|
return ret;
|
|
3841
3988
|
};
|
|
3842
3989
|
},
|
|
3843
|
-
'resultMapper-
|
|
3990
|
+
'resultMapper-terms_23000': function (PolymorphicRef, parseDate) {
|
|
3844
3991
|
// compiled mapper for entity TermsEntity
|
|
3845
3992
|
return function (result) {
|
|
3846
3993
|
const ret = {};
|
|
@@ -3917,7 +4064,7 @@ export default {
|
|
|
3917
4064
|
return ret;
|
|
3918
4065
|
};
|
|
3919
4066
|
},
|
|
3920
|
-
'hydrator-
|
|
4067
|
+
'hydrator-terms_23000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
3921
4068
|
// compiled hydrator for entity TermsEntity ( normalized)
|
|
3922
4069
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3923
4070
|
if (data.id === null) {
|
|
@@ -3928,7 +4075,7 @@ export default {
|
|
|
3928
4075
|
}
|
|
3929
4076
|
};
|
|
3930
4077
|
},
|
|
3931
|
-
'hydrator-
|
|
4078
|
+
'hydrator-terms_23000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
3932
4079
|
// compiled hydrator for entity TermsEntity ( normalized)
|
|
3933
4080
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3934
4081
|
if (data.id === null) {
|
|
@@ -3939,25 +4086,25 @@ export default {
|
|
|
3939
4086
|
}
|
|
3940
4087
|
};
|
|
3941
4088
|
},
|
|
3942
|
-
'pkGetter-
|
|
4089
|
+
'pkGetter-terms_23000': function (isEntityOrRef) {
|
|
3943
4090
|
// compiled pk getter for entity TermsEntity
|
|
3944
4091
|
return function (entity) {
|
|
3945
4092
|
return entity.id;
|
|
3946
4093
|
};
|
|
3947
4094
|
},
|
|
3948
|
-
'pkGetterConverted-
|
|
4095
|
+
'pkGetterConverted-terms_23000': function (isEntityOrRef) {
|
|
3949
4096
|
// compiled pk getter (with converted custom types) for entity TermsEntity
|
|
3950
4097
|
return function (entity) {
|
|
3951
4098
|
return entity.id;
|
|
3952
4099
|
};
|
|
3953
4100
|
},
|
|
3954
|
-
'pkSerializer-
|
|
4101
|
+
'pkSerializer-terms_23000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
3955
4102
|
// compiled pk serializer for entity TermsEntity
|
|
3956
4103
|
return function (entity) {
|
|
3957
4104
|
return '' + entity.id;
|
|
3958
4105
|
};
|
|
3959
4106
|
},
|
|
3960
|
-
'hydrator-
|
|
4107
|
+
'hydrator-terms_content_21000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, terms_193, terms_194) {
|
|
3961
4108
|
// compiled hydrator for entity TermsContentEntity ( normalized)
|
|
3962
4109
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3963
4110
|
if (data.id === null) {
|
|
@@ -4005,10 +4152,10 @@ export default {
|
|
|
4005
4152
|
}
|
|
4006
4153
|
else if (typeof data.terms !== 'undefined') {
|
|
4007
4154
|
if (isPrimaryKey(data.terms, true)) {
|
|
4008
|
-
entity.terms = factory.createReference(
|
|
4155
|
+
entity.terms = factory.createReference(terms_193, data.terms, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
4009
4156
|
}
|
|
4010
4157
|
else if (data.terms && typeof data.terms === 'object') {
|
|
4011
|
-
entity.terms = factory.create(
|
|
4158
|
+
entity.terms = factory.create(terms_194, data.terms, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
4012
4159
|
}
|
|
4013
4160
|
}
|
|
4014
4161
|
if (data.lang === null) {
|
|
@@ -4037,7 +4184,7 @@ export default {
|
|
|
4037
4184
|
}
|
|
4038
4185
|
};
|
|
4039
4186
|
},
|
|
4040
|
-
'hydrator-
|
|
4187
|
+
'hydrator-terms_content_21000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, terms_202, terms_203) {
|
|
4041
4188
|
// compiled hydrator for entity TermsContentEntity ( normalized)
|
|
4042
4189
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4043
4190
|
if (data.id === null) {
|
|
@@ -4085,10 +4232,10 @@ export default {
|
|
|
4085
4232
|
}
|
|
4086
4233
|
else if (typeof data.terms !== 'undefined') {
|
|
4087
4234
|
if (isPrimaryKey(data.terms, true)) {
|
|
4088
|
-
entity.terms = factory.createReference(
|
|
4235
|
+
entity.terms = factory.createReference(terms_202, data.terms, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
4089
4236
|
}
|
|
4090
4237
|
else if (data.terms && typeof data.terms === 'object') {
|
|
4091
|
-
entity.terms = factory.create(
|
|
4238
|
+
entity.terms = factory.create(terms_203, data.terms, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
4092
4239
|
}
|
|
4093
4240
|
}
|
|
4094
4241
|
if (data.lang === null) {
|
|
@@ -4117,7 +4264,7 @@ export default {
|
|
|
4117
4264
|
}
|
|
4118
4265
|
};
|
|
4119
4266
|
},
|
|
4120
|
-
'comparator-
|
|
4267
|
+
'comparator-terms_content_21000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
4121
4268
|
// compiled comparator for entity TermsContentEntity
|
|
4122
4269
|
return function (last, current, options) {
|
|
4123
4270
|
const diff = {};
|
|
@@ -4214,7 +4361,7 @@ export default {
|
|
|
4214
4361
|
return diff;
|
|
4215
4362
|
};
|
|
4216
4363
|
},
|
|
4217
|
-
'snapshotGenerator-
|
|
4364
|
+
'snapshotGenerator-terms_content_21000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
4218
4365
|
return function (entity) {
|
|
4219
4366
|
const ret = {};
|
|
4220
4367
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -4252,7 +4399,7 @@ export default {
|
|
|
4252
4399
|
return ret;
|
|
4253
4400
|
};
|
|
4254
4401
|
},
|
|
4255
|
-
'resultMapper-
|
|
4402
|
+
'resultMapper-terms_content_21000': function (PolymorphicRef, parseDate) {
|
|
4256
4403
|
// compiled mapper for entity TermsContentEntity
|
|
4257
4404
|
return function (result) {
|
|
4258
4405
|
const ret = {};
|
|
@@ -4318,7 +4465,7 @@ export default {
|
|
|
4318
4465
|
return ret;
|
|
4319
4466
|
};
|
|
4320
4467
|
},
|
|
4321
|
-
'hydrator-
|
|
4468
|
+
'hydrator-terms_content_21000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
4322
4469
|
// compiled hydrator for entity TermsContentEntity ( normalized)
|
|
4323
4470
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4324
4471
|
if (data.id === null) {
|
|
@@ -4335,7 +4482,7 @@ export default {
|
|
|
4335
4482
|
}
|
|
4336
4483
|
};
|
|
4337
4484
|
},
|
|
4338
|
-
'hydrator-
|
|
4485
|
+
'hydrator-terms_content_21000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
4339
4486
|
// compiled hydrator for entity TermsContentEntity ( normalized)
|
|
4340
4487
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4341
4488
|
if (data.id === null) {
|
|
@@ -4352,26 +4499,26 @@ export default {
|
|
|
4352
4499
|
}
|
|
4353
4500
|
};
|
|
4354
4501
|
},
|
|
4355
|
-
'pkGetter-
|
|
4502
|
+
'pkGetter-terms_content_21000': function (isEntityOrRef) {
|
|
4356
4503
|
// compiled pk getter for entity TermsContentEntity
|
|
4357
4504
|
return function (entity) {
|
|
4358
4505
|
return entity.id;
|
|
4359
4506
|
};
|
|
4360
4507
|
},
|
|
4361
|
-
'pkGetterConverted-
|
|
4508
|
+
'pkGetterConverted-terms_content_21000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
4362
4509
|
// compiled pk getter (with converted custom types) for entity TermsContentEntity
|
|
4363
4510
|
return function (entity) {
|
|
4364
4511
|
return convertToDatabaseValue_id(entity.id);
|
|
4365
4512
|
};
|
|
4366
4513
|
},
|
|
4367
|
-
'pkSerializer-
|
|
4514
|
+
'pkSerializer-terms_content_21000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
4368
4515
|
// compiled pk serializer for entity TermsContentEntity
|
|
4369
4516
|
return function (entity) {
|
|
4370
4517
|
const val_7 = convertToDatabaseValue_id(entity.id);
|
|
4371
4518
|
return getPrimaryKeyHash(val_7);
|
|
4372
4519
|
};
|
|
4373
4520
|
},
|
|
4374
|
-
'hydrator-
|
|
4521
|
+
'hydrator-scheduled_jobs_20000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
4375
4522
|
// compiled hydrator for entity SchedulerJobEntity ( normalized)
|
|
4376
4523
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4377
4524
|
if (data.id === null) {
|
|
@@ -4522,7 +4669,7 @@ export default {
|
|
|
4522
4669
|
}
|
|
4523
4670
|
};
|
|
4524
4671
|
},
|
|
4525
|
-
'hydrator-
|
|
4672
|
+
'hydrator-scheduled_jobs_20000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
4526
4673
|
// compiled hydrator for entity SchedulerJobEntity ( normalized)
|
|
4527
4674
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4528
4675
|
if (data.id === null) {
|
|
@@ -4673,7 +4820,7 @@ export default {
|
|
|
4673
4820
|
}
|
|
4674
4821
|
};
|
|
4675
4822
|
},
|
|
4676
|
-
'comparator-
|
|
4823
|
+
'comparator-scheduled_jobs_20000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
4677
4824
|
// compiled comparator for entity SchedulerJobEntity
|
|
4678
4825
|
return function (last, current, options) {
|
|
4679
4826
|
const diff = {};
|
|
@@ -4847,7 +4994,7 @@ export default {
|
|
|
4847
4994
|
return diff;
|
|
4848
4995
|
};
|
|
4849
4996
|
},
|
|
4850
|
-
'snapshotGenerator-
|
|
4997
|
+
'snapshotGenerator-scheduled_jobs_20000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
4851
4998
|
return function (entity) {
|
|
4852
4999
|
const ret = {};
|
|
4853
5000
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -4898,7 +5045,7 @@ export default {
|
|
|
4898
5045
|
return ret;
|
|
4899
5046
|
};
|
|
4900
5047
|
},
|
|
4901
|
-
'resultMapper-
|
|
5048
|
+
'resultMapper-scheduled_jobs_20000': function (PolymorphicRef, parseDate) {
|
|
4902
5049
|
// compiled mapper for entity SchedulerJobEntity
|
|
4903
5050
|
return function (result) {
|
|
4904
5051
|
const ret = {};
|
|
@@ -5047,7 +5194,7 @@ export default {
|
|
|
5047
5194
|
return ret;
|
|
5048
5195
|
};
|
|
5049
5196
|
},
|
|
5050
|
-
'hydrator-
|
|
5197
|
+
'hydrator-scheduled_jobs_20000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
5051
5198
|
// compiled hydrator for entity SchedulerJobEntity ( normalized)
|
|
5052
5199
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5053
5200
|
if (data.id === null) {
|
|
@@ -5058,7 +5205,7 @@ export default {
|
|
|
5058
5205
|
}
|
|
5059
5206
|
};
|
|
5060
5207
|
},
|
|
5061
|
-
'hydrator-
|
|
5208
|
+
'hydrator-scheduled_jobs_20000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
5062
5209
|
// compiled hydrator for entity SchedulerJobEntity ( normalized)
|
|
5063
5210
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5064
5211
|
if (data.id === null) {
|
|
@@ -5069,25 +5216,25 @@ export default {
|
|
|
5069
5216
|
}
|
|
5070
5217
|
};
|
|
5071
5218
|
},
|
|
5072
|
-
'pkGetter-
|
|
5219
|
+
'pkGetter-scheduled_jobs_20000': function (isEntityOrRef) {
|
|
5073
5220
|
// compiled pk getter for entity SchedulerJobEntity
|
|
5074
5221
|
return function (entity) {
|
|
5075
5222
|
return entity.id;
|
|
5076
5223
|
};
|
|
5077
5224
|
},
|
|
5078
|
-
'pkGetterConverted-
|
|
5225
|
+
'pkGetterConverted-scheduled_jobs_20000': function (isEntityOrRef) {
|
|
5079
5226
|
// compiled pk getter (with converted custom types) for entity SchedulerJobEntity
|
|
5080
5227
|
return function (entity) {
|
|
5081
5228
|
return entity.id;
|
|
5082
5229
|
};
|
|
5083
5230
|
},
|
|
5084
|
-
'pkSerializer-
|
|
5231
|
+
'pkSerializer-scheduled_jobs_20000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
5085
5232
|
// compiled pk serializer for entity SchedulerJobEntity
|
|
5086
5233
|
return function (entity) {
|
|
5087
5234
|
return '' + entity.id;
|
|
5088
5235
|
};
|
|
5089
5236
|
},
|
|
5090
|
-
'hydrator-
|
|
5237
|
+
'hydrator-revoked_tokens_14000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_247, oauth_client_248, user_249, user_250) {
|
|
5091
5238
|
// compiled hydrator for entity RevokedTokenEntity ( normalized)
|
|
5092
5239
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5093
5240
|
if (data.id === null) {
|
|
@@ -5147,10 +5294,10 @@ export default {
|
|
|
5147
5294
|
}
|
|
5148
5295
|
else if (typeof data.client !== 'undefined') {
|
|
5149
5296
|
if (isPrimaryKey(data.client, true)) {
|
|
5150
|
-
entity.client = factory.createReference(
|
|
5297
|
+
entity.client = factory.createReference(oauth_client_247, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
5151
5298
|
}
|
|
5152
5299
|
else if (data.client && typeof data.client === 'object') {
|
|
5153
|
-
entity.client = factory.create(
|
|
5300
|
+
entity.client = factory.create(oauth_client_248, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
5154
5301
|
}
|
|
5155
5302
|
}
|
|
5156
5303
|
if (data.user === null) {
|
|
@@ -5158,10 +5305,10 @@ export default {
|
|
|
5158
5305
|
}
|
|
5159
5306
|
else if (typeof data.user !== 'undefined') {
|
|
5160
5307
|
if (isPrimaryKey(data.user, true)) {
|
|
5161
|
-
entity.user = factory.createReference(
|
|
5308
|
+
entity.user = factory.createReference(user_249, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
5162
5309
|
}
|
|
5163
5310
|
else if (data.user && typeof data.user === 'object') {
|
|
5164
|
-
entity.user = factory.create(
|
|
5311
|
+
entity.user = factory.create(user_250, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
5165
5312
|
}
|
|
5166
5313
|
}
|
|
5167
5314
|
if (data.expires_at === null) {
|
|
@@ -5194,7 +5341,7 @@ export default {
|
|
|
5194
5341
|
}
|
|
5195
5342
|
};
|
|
5196
5343
|
},
|
|
5197
|
-
'hydrator-
|
|
5344
|
+
'hydrator-revoked_tokens_14000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_258, oauth_client_259, user_260, user_261) {
|
|
5198
5345
|
// compiled hydrator for entity RevokedTokenEntity ( normalized)
|
|
5199
5346
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5200
5347
|
if (data.id === null) {
|
|
@@ -5254,10 +5401,10 @@ export default {
|
|
|
5254
5401
|
}
|
|
5255
5402
|
else if (typeof data.client !== 'undefined') {
|
|
5256
5403
|
if (isPrimaryKey(data.client, true)) {
|
|
5257
|
-
entity.client = factory.createReference(
|
|
5404
|
+
entity.client = factory.createReference(oauth_client_258, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
5258
5405
|
}
|
|
5259
5406
|
else if (data.client && typeof data.client === 'object') {
|
|
5260
|
-
entity.client = factory.create(
|
|
5407
|
+
entity.client = factory.create(oauth_client_259, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
5261
5408
|
}
|
|
5262
5409
|
}
|
|
5263
5410
|
if (data.user === null) {
|
|
@@ -5265,10 +5412,10 @@ export default {
|
|
|
5265
5412
|
}
|
|
5266
5413
|
else if (typeof data.user !== 'undefined') {
|
|
5267
5414
|
if (isPrimaryKey(data.user, true)) {
|
|
5268
|
-
entity.user = factory.createReference(
|
|
5415
|
+
entity.user = factory.createReference(user_260, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
5269
5416
|
}
|
|
5270
5417
|
else if (data.user && typeof data.user === 'object') {
|
|
5271
|
-
entity.user = factory.create(
|
|
5418
|
+
entity.user = factory.create(user_261, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
5272
5419
|
}
|
|
5273
5420
|
}
|
|
5274
5421
|
if (data.expires_at === null) {
|
|
@@ -5301,7 +5448,7 @@ export default {
|
|
|
5301
5448
|
}
|
|
5302
5449
|
};
|
|
5303
5450
|
},
|
|
5304
|
-
'comparator-
|
|
5451
|
+
'comparator-revoked_tokens_14000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
5305
5452
|
// compiled comparator for entity RevokedTokenEntity
|
|
5306
5453
|
return function (last, current, options) {
|
|
5307
5454
|
const diff = {};
|
|
@@ -5409,7 +5556,7 @@ export default {
|
|
|
5409
5556
|
return diff;
|
|
5410
5557
|
};
|
|
5411
5558
|
},
|
|
5412
|
-
'snapshotGenerator-
|
|
5559
|
+
'snapshotGenerator-revoked_tokens_14000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
5413
5560
|
return function (entity) {
|
|
5414
5561
|
const ret = {};
|
|
5415
5562
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -5458,7 +5605,7 @@ export default {
|
|
|
5458
5605
|
return ret;
|
|
5459
5606
|
};
|
|
5460
5607
|
},
|
|
5461
|
-
'resultMapper-
|
|
5608
|
+
'resultMapper-revoked_tokens_14000': function (PolymorphicRef, parseDate) {
|
|
5462
5609
|
// compiled mapper for entity RevokedTokenEntity
|
|
5463
5610
|
return function (result) {
|
|
5464
5611
|
const ret = {};
|
|
@@ -5550,7 +5697,7 @@ export default {
|
|
|
5550
5697
|
return ret;
|
|
5551
5698
|
};
|
|
5552
5699
|
},
|
|
5553
|
-
'hydrator-
|
|
5700
|
+
'hydrator-revoked_tokens_14000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
5554
5701
|
// compiled hydrator for entity RevokedTokenEntity ( normalized)
|
|
5555
5702
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5556
5703
|
if (data.id === null) {
|
|
@@ -5567,7 +5714,7 @@ export default {
|
|
|
5567
5714
|
}
|
|
5568
5715
|
};
|
|
5569
5716
|
},
|
|
5570
|
-
'hydrator-
|
|
5717
|
+
'hydrator-revoked_tokens_14000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
5571
5718
|
// compiled hydrator for entity RevokedTokenEntity ( normalized)
|
|
5572
5719
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5573
5720
|
if (data.id === null) {
|
|
@@ -5584,26 +5731,26 @@ export default {
|
|
|
5584
5731
|
}
|
|
5585
5732
|
};
|
|
5586
5733
|
},
|
|
5587
|
-
'pkGetter-
|
|
5734
|
+
'pkGetter-revoked_tokens_14000': function (isEntityOrRef) {
|
|
5588
5735
|
// compiled pk getter for entity RevokedTokenEntity
|
|
5589
5736
|
return function (entity) {
|
|
5590
5737
|
return entity.id;
|
|
5591
5738
|
};
|
|
5592
5739
|
},
|
|
5593
|
-
'pkGetterConverted-
|
|
5740
|
+
'pkGetterConverted-revoked_tokens_14000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
5594
5741
|
// compiled pk getter (with converted custom types) for entity RevokedTokenEntity
|
|
5595
5742
|
return function (entity) {
|
|
5596
5743
|
return convertToDatabaseValue_id(entity.id);
|
|
5597
5744
|
};
|
|
5598
5745
|
},
|
|
5599
|
-
'pkSerializer-
|
|
5746
|
+
'pkSerializer-revoked_tokens_14000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
5600
5747
|
// compiled pk serializer for entity RevokedTokenEntity
|
|
5601
5748
|
return function (entity) {
|
|
5602
5749
|
const val_8 = convertToDatabaseValue_id(entity.id);
|
|
5603
5750
|
return getPrimaryKeyHash(val_8);
|
|
5604
5751
|
};
|
|
5605
5752
|
},
|
|
5606
|
-
'hydrator-
|
|
5753
|
+
'hydrator-pending_oauth_registration_19000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, convertToJSValue_userInfo, convertToDatabaseValue_userInfo) {
|
|
5607
5754
|
// compiled hydrator for entity PendingOAuthRegistrationEntity ( normalized)
|
|
5608
5755
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5609
5756
|
if (data.id === null) {
|
|
@@ -5646,6 +5793,20 @@ export default {
|
|
|
5646
5793
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
5647
5794
|
}
|
|
5648
5795
|
}
|
|
5796
|
+
if (data.consumed_at === null) {
|
|
5797
|
+
entity.consumed_at = null;
|
|
5798
|
+
}
|
|
5799
|
+
else if (typeof data.consumed_at !== 'undefined') {
|
|
5800
|
+
if (data.consumed_at instanceof Date) {
|
|
5801
|
+
entity.consumed_at = data.consumed_at;
|
|
5802
|
+
}
|
|
5803
|
+
else if (typeof data.consumed_at === 'number' || data.consumed_at.includes('+') || data.consumed_at.lastIndexOf('-') > 10 || data.consumed_at.endsWith('Z')) {
|
|
5804
|
+
entity.consumed_at = new Date(data.consumed_at);
|
|
5805
|
+
}
|
|
5806
|
+
else {
|
|
5807
|
+
entity.consumed_at = new Date(data.consumed_at + 'Z');
|
|
5808
|
+
}
|
|
5809
|
+
}
|
|
5649
5810
|
if (data.token === null) {
|
|
5650
5811
|
entity.token = null;
|
|
5651
5812
|
}
|
|
@@ -5717,7 +5878,7 @@ export default {
|
|
|
5717
5878
|
}
|
|
5718
5879
|
};
|
|
5719
5880
|
},
|
|
5720
|
-
'hydrator-
|
|
5881
|
+
'hydrator-pending_oauth_registration_19000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, convertToJSValue_userInfo, convertToDatabaseValue_userInfo) {
|
|
5721
5882
|
// compiled hydrator for entity PendingOAuthRegistrationEntity ( normalized)
|
|
5722
5883
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5723
5884
|
if (data.id === null) {
|
|
@@ -5760,6 +5921,20 @@ export default {
|
|
|
5760
5921
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
5761
5922
|
}
|
|
5762
5923
|
}
|
|
5924
|
+
if (data.consumed_at === null) {
|
|
5925
|
+
entity.consumed_at = null;
|
|
5926
|
+
}
|
|
5927
|
+
else if (typeof data.consumed_at !== 'undefined') {
|
|
5928
|
+
if (data.consumed_at instanceof Date) {
|
|
5929
|
+
entity.consumed_at = data.consumed_at;
|
|
5930
|
+
}
|
|
5931
|
+
else if (typeof data.consumed_at === 'number' || data.consumed_at.includes('+') || data.consumed_at.lastIndexOf('-') > 10 || data.consumed_at.endsWith('Z')) {
|
|
5932
|
+
entity.consumed_at = new Date(data.consumed_at);
|
|
5933
|
+
}
|
|
5934
|
+
else {
|
|
5935
|
+
entity.consumed_at = new Date(data.consumed_at + 'Z');
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5763
5938
|
if (data.token === null) {
|
|
5764
5939
|
entity.token = null;
|
|
5765
5940
|
}
|
|
@@ -5831,7 +6006,7 @@ export default {
|
|
|
5831
6006
|
}
|
|
5832
6007
|
};
|
|
5833
6008
|
},
|
|
5834
|
-
'comparator-
|
|
6009
|
+
'comparator-pending_oauth_registration_19000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
5835
6010
|
// compiled comparator for entity PendingOAuthRegistrationEntity
|
|
5836
6011
|
return function (last, current, options) {
|
|
5837
6012
|
const diff = {};
|
|
@@ -5868,6 +6043,17 @@ export default {
|
|
|
5868
6043
|
else if (last.updated_at.valueOf() !== current.updated_at.valueOf()) {
|
|
5869
6044
|
diff.updated_at = current.updated_at;
|
|
5870
6045
|
}
|
|
6046
|
+
if (current.consumed_at === null && last.consumed_at === undefined) {
|
|
6047
|
+
diff.consumed_at = current.consumed_at;
|
|
6048
|
+
}
|
|
6049
|
+
else if (current.consumed_at == null && last.consumed_at == null) {
|
|
6050
|
+
}
|
|
6051
|
+
else if ((current.consumed_at != null && last.consumed_at == null) || (current.consumed_at == null && last.consumed_at != null)) {
|
|
6052
|
+
diff.consumed_at = current.consumed_at;
|
|
6053
|
+
}
|
|
6054
|
+
else if (last.consumed_at.valueOf() !== current.consumed_at.valueOf()) {
|
|
6055
|
+
diff.consumed_at = current.consumed_at;
|
|
6056
|
+
}
|
|
5871
6057
|
if (current.token === null && last.token === undefined) {
|
|
5872
6058
|
diff.token = current.token;
|
|
5873
6059
|
}
|
|
@@ -5972,7 +6158,7 @@ export default {
|
|
|
5972
6158
|
return diff;
|
|
5973
6159
|
};
|
|
5974
6160
|
},
|
|
5975
|
-
'snapshotGenerator-
|
|
6161
|
+
'snapshotGenerator-pending_oauth_registration_19000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, convertToDatabaseValue_userInfo) {
|
|
5976
6162
|
return function (entity) {
|
|
5977
6163
|
const ret = {};
|
|
5978
6164
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -5984,6 +6170,9 @@ export default {
|
|
|
5984
6170
|
if (typeof entity.updated_at !== 'undefined') {
|
|
5985
6171
|
ret.updated_at = clone(processDateProperty(entity.updated_at));
|
|
5986
6172
|
}
|
|
6173
|
+
if (typeof entity.consumed_at !== 'undefined') {
|
|
6174
|
+
ret.consumed_at = clone(processDateProperty(entity.consumed_at));
|
|
6175
|
+
}
|
|
5987
6176
|
if (typeof entity.token !== 'undefined') {
|
|
5988
6177
|
ret.token = entity.token;
|
|
5989
6178
|
}
|
|
@@ -6014,7 +6203,7 @@ export default {
|
|
|
6014
6203
|
return ret;
|
|
6015
6204
|
};
|
|
6016
6205
|
},
|
|
6017
|
-
'resultMapper-
|
|
6206
|
+
'resultMapper-pending_oauth_registration_19000': function (PolymorphicRef, parseDate) {
|
|
6018
6207
|
// compiled mapper for entity PendingOAuthRegistrationEntity
|
|
6019
6208
|
return function (result) {
|
|
6020
6209
|
const ret = {};
|
|
@@ -6053,6 +6242,21 @@ export default {
|
|
|
6053
6242
|
}
|
|
6054
6243
|
mapped.updated_at = true;
|
|
6055
6244
|
}
|
|
6245
|
+
if (typeof result.consumed_at !== 'undefined') {
|
|
6246
|
+
if (result.consumed_at == null || result.consumed_at instanceof Date) {
|
|
6247
|
+
ret.consumed_at = result.consumed_at;
|
|
6248
|
+
}
|
|
6249
|
+
else if (typeof result.consumed_at === 'bigint') {
|
|
6250
|
+
ret.consumed_at = parseDate(Number(result.consumed_at));
|
|
6251
|
+
}
|
|
6252
|
+
else if (typeof result.consumed_at === 'number' || result.consumed_at.includes('+') || result.consumed_at.lastIndexOf('-') > 10 || result.consumed_at.endsWith('Z')) {
|
|
6253
|
+
ret.consumed_at = parseDate(result.consumed_at);
|
|
6254
|
+
}
|
|
6255
|
+
else {
|
|
6256
|
+
ret.consumed_at = parseDate(result.consumed_at + 'Z');
|
|
6257
|
+
}
|
|
6258
|
+
mapped.consumed_at = true;
|
|
6259
|
+
}
|
|
6056
6260
|
if (typeof result.token !== 'undefined') {
|
|
6057
6261
|
ret.token = result.token;
|
|
6058
6262
|
mapped.token = true;
|
|
@@ -6107,7 +6311,7 @@ export default {
|
|
|
6107
6311
|
return ret;
|
|
6108
6312
|
};
|
|
6109
6313
|
},
|
|
6110
|
-
'hydrator-
|
|
6314
|
+
'hydrator-pending_oauth_registration_19000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
6111
6315
|
// compiled hydrator for entity PendingOAuthRegistrationEntity ( normalized)
|
|
6112
6316
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6113
6317
|
if (data.id === null) {
|
|
@@ -6124,7 +6328,7 @@ export default {
|
|
|
6124
6328
|
}
|
|
6125
6329
|
};
|
|
6126
6330
|
},
|
|
6127
|
-
'hydrator-
|
|
6331
|
+
'hydrator-pending_oauth_registration_19000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
6128
6332
|
// compiled hydrator for entity PendingOAuthRegistrationEntity ( normalized)
|
|
6129
6333
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6130
6334
|
if (data.id === null) {
|
|
@@ -6141,26 +6345,26 @@ export default {
|
|
|
6141
6345
|
}
|
|
6142
6346
|
};
|
|
6143
6347
|
},
|
|
6144
|
-
'pkGetter-
|
|
6348
|
+
'pkGetter-pending_oauth_registration_19000': function (isEntityOrRef) {
|
|
6145
6349
|
// compiled pk getter for entity PendingOAuthRegistrationEntity
|
|
6146
6350
|
return function (entity) {
|
|
6147
6351
|
return entity.id;
|
|
6148
6352
|
};
|
|
6149
6353
|
},
|
|
6150
|
-
'pkGetterConverted-
|
|
6354
|
+
'pkGetterConverted-pending_oauth_registration_19000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
6151
6355
|
// compiled pk getter (with converted custom types) for entity PendingOAuthRegistrationEntity
|
|
6152
6356
|
return function (entity) {
|
|
6153
6357
|
return convertToDatabaseValue_id(entity.id);
|
|
6154
6358
|
};
|
|
6155
6359
|
},
|
|
6156
|
-
'pkSerializer-
|
|
6360
|
+
'pkSerializer-pending_oauth_registration_19000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
6157
6361
|
// compiled pk serializer for entity PendingOAuthRegistrationEntity
|
|
6158
6362
|
return function (entity) {
|
|
6159
6363
|
const val_9 = convertToDatabaseValue_id(entity.id);
|
|
6160
6364
|
return getPrimaryKeyHash(val_9);
|
|
6161
6365
|
};
|
|
6162
6366
|
},
|
|
6163
|
-
'hydrator-
|
|
6367
|
+
'hydrator-password_reset_18000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_299, user_300) {
|
|
6164
6368
|
// compiled hydrator for entity PasswordResetEntity ( normalized)
|
|
6165
6369
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6166
6370
|
if (data.id === null) {
|
|
@@ -6203,15 +6407,35 @@ export default {
|
|
|
6203
6407
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
6204
6408
|
}
|
|
6205
6409
|
}
|
|
6410
|
+
if (data.user_epoch === null) {
|
|
6411
|
+
entity.user_epoch = null;
|
|
6412
|
+
}
|
|
6413
|
+
else if (typeof data.user_epoch !== 'undefined') {
|
|
6414
|
+
entity.user_epoch = data.user_epoch;
|
|
6415
|
+
}
|
|
6416
|
+
if (data.revoked_at === null) {
|
|
6417
|
+
entity.revoked_at = null;
|
|
6418
|
+
}
|
|
6419
|
+
else if (typeof data.revoked_at !== 'undefined') {
|
|
6420
|
+
if (data.revoked_at instanceof Date) {
|
|
6421
|
+
entity.revoked_at = data.revoked_at;
|
|
6422
|
+
}
|
|
6423
|
+
else if (typeof data.revoked_at === 'number' || data.revoked_at.includes('+') || data.revoked_at.lastIndexOf('-') > 10 || data.revoked_at.endsWith('Z')) {
|
|
6424
|
+
entity.revoked_at = new Date(data.revoked_at);
|
|
6425
|
+
}
|
|
6426
|
+
else {
|
|
6427
|
+
entity.revoked_at = new Date(data.revoked_at + 'Z');
|
|
6428
|
+
}
|
|
6429
|
+
}
|
|
6206
6430
|
if (data.user === null) {
|
|
6207
6431
|
entity.user = null;
|
|
6208
6432
|
}
|
|
6209
6433
|
else if (typeof data.user !== 'undefined') {
|
|
6210
6434
|
if (isPrimaryKey(data.user, true)) {
|
|
6211
|
-
entity.user = Reference.create(factory.createReference(
|
|
6435
|
+
entity.user = Reference.create(factory.createReference(user_299, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
6212
6436
|
}
|
|
6213
6437
|
else if (data.user && typeof data.user === 'object') {
|
|
6214
|
-
entity.user = Reference.create(factory.create(
|
|
6438
|
+
entity.user = Reference.create(factory.create(user_300, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
6215
6439
|
}
|
|
6216
6440
|
}
|
|
6217
6441
|
if (data.token === null) {
|
|
@@ -6256,7 +6480,7 @@ export default {
|
|
|
6256
6480
|
}
|
|
6257
6481
|
};
|
|
6258
6482
|
},
|
|
6259
|
-
'hydrator-
|
|
6483
|
+
'hydrator-password_reset_18000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_310, user_311) {
|
|
6260
6484
|
// compiled hydrator for entity PasswordResetEntity ( normalized)
|
|
6261
6485
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6262
6486
|
if (data.id === null) {
|
|
@@ -6299,15 +6523,35 @@ export default {
|
|
|
6299
6523
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
6300
6524
|
}
|
|
6301
6525
|
}
|
|
6526
|
+
if (data.user_epoch === null) {
|
|
6527
|
+
entity.user_epoch = null;
|
|
6528
|
+
}
|
|
6529
|
+
else if (typeof data.user_epoch !== 'undefined') {
|
|
6530
|
+
entity.user_epoch = data.user_epoch;
|
|
6531
|
+
}
|
|
6532
|
+
if (data.revoked_at === null) {
|
|
6533
|
+
entity.revoked_at = null;
|
|
6534
|
+
}
|
|
6535
|
+
else if (typeof data.revoked_at !== 'undefined') {
|
|
6536
|
+
if (data.revoked_at instanceof Date) {
|
|
6537
|
+
entity.revoked_at = data.revoked_at;
|
|
6538
|
+
}
|
|
6539
|
+
else if (typeof data.revoked_at === 'number' || data.revoked_at.includes('+') || data.revoked_at.lastIndexOf('-') > 10 || data.revoked_at.endsWith('Z')) {
|
|
6540
|
+
entity.revoked_at = new Date(data.revoked_at);
|
|
6541
|
+
}
|
|
6542
|
+
else {
|
|
6543
|
+
entity.revoked_at = new Date(data.revoked_at + 'Z');
|
|
6544
|
+
}
|
|
6545
|
+
}
|
|
6302
6546
|
if (data.user === null) {
|
|
6303
6547
|
entity.user = null;
|
|
6304
6548
|
}
|
|
6305
6549
|
else if (typeof data.user !== 'undefined') {
|
|
6306
6550
|
if (isPrimaryKey(data.user, true)) {
|
|
6307
|
-
entity.user = Reference.create(factory.createReference(
|
|
6551
|
+
entity.user = Reference.create(factory.createReference(user_310, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
6308
6552
|
}
|
|
6309
6553
|
else if (data.user && typeof data.user === 'object') {
|
|
6310
|
-
entity.user = Reference.create(factory.create(
|
|
6554
|
+
entity.user = Reference.create(factory.create(user_311, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
6311
6555
|
}
|
|
6312
6556
|
}
|
|
6313
6557
|
if (data.token === null) {
|
|
@@ -6352,7 +6596,7 @@ export default {
|
|
|
6352
6596
|
}
|
|
6353
6597
|
};
|
|
6354
6598
|
},
|
|
6355
|
-
'comparator-
|
|
6599
|
+
'comparator-password_reset_18000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
6356
6600
|
// compiled comparator for entity PasswordResetEntity
|
|
6357
6601
|
return function (last, current, options) {
|
|
6358
6602
|
const diff = {};
|
|
@@ -6389,6 +6633,28 @@ export default {
|
|
|
6389
6633
|
else if (last.updated_at.valueOf() !== current.updated_at.valueOf()) {
|
|
6390
6634
|
diff.updated_at = current.updated_at;
|
|
6391
6635
|
}
|
|
6636
|
+
if (current.user_epoch === null && last.user_epoch === undefined) {
|
|
6637
|
+
diff.user_epoch = current.user_epoch;
|
|
6638
|
+
}
|
|
6639
|
+
else if (current.user_epoch == null && last.user_epoch == null) {
|
|
6640
|
+
}
|
|
6641
|
+
else if ((current.user_epoch != null && last.user_epoch == null) || (current.user_epoch == null && last.user_epoch != null)) {
|
|
6642
|
+
diff.user_epoch = current.user_epoch;
|
|
6643
|
+
}
|
|
6644
|
+
else if (last.user_epoch !== current.user_epoch) {
|
|
6645
|
+
diff.user_epoch = current.user_epoch;
|
|
6646
|
+
}
|
|
6647
|
+
if (current.revoked_at === null && last.revoked_at === undefined) {
|
|
6648
|
+
diff.revoked_at = current.revoked_at;
|
|
6649
|
+
}
|
|
6650
|
+
else if (current.revoked_at == null && last.revoked_at == null) {
|
|
6651
|
+
}
|
|
6652
|
+
else if ((current.revoked_at != null && last.revoked_at == null) || (current.revoked_at == null && last.revoked_at != null)) {
|
|
6653
|
+
diff.revoked_at = current.revoked_at;
|
|
6654
|
+
}
|
|
6655
|
+
else if (last.revoked_at.valueOf() !== current.revoked_at.valueOf()) {
|
|
6656
|
+
diff.revoked_at = current.revoked_at;
|
|
6657
|
+
}
|
|
6392
6658
|
if (current.user === null && last.user === undefined) {
|
|
6393
6659
|
diff.user = current.user;
|
|
6394
6660
|
}
|
|
@@ -6449,7 +6715,7 @@ export default {
|
|
|
6449
6715
|
return diff;
|
|
6450
6716
|
};
|
|
6451
6717
|
},
|
|
6452
|
-
'snapshotGenerator-
|
|
6718
|
+
'snapshotGenerator-password_reset_18000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
6453
6719
|
return function (entity) {
|
|
6454
6720
|
const ret = {};
|
|
6455
6721
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -6461,6 +6727,12 @@ export default {
|
|
|
6461
6727
|
if (typeof entity.updated_at !== 'undefined') {
|
|
6462
6728
|
ret.updated_at = clone(processDateProperty(entity.updated_at));
|
|
6463
6729
|
}
|
|
6730
|
+
if (typeof entity.user_epoch !== 'undefined') {
|
|
6731
|
+
ret.user_epoch = entity.user_epoch;
|
|
6732
|
+
}
|
|
6733
|
+
if (typeof entity.revoked_at !== 'undefined') {
|
|
6734
|
+
ret.revoked_at = clone(processDateProperty(entity.revoked_at));
|
|
6735
|
+
}
|
|
6464
6736
|
if (typeof entity.user !== 'undefined') {
|
|
6465
6737
|
if (entity.user === null) {
|
|
6466
6738
|
ret.user = null;
|
|
@@ -6487,7 +6759,7 @@ export default {
|
|
|
6487
6759
|
return ret;
|
|
6488
6760
|
};
|
|
6489
6761
|
},
|
|
6490
|
-
'resultMapper-
|
|
6762
|
+
'resultMapper-password_reset_18000': function (PolymorphicRef, parseDate) {
|
|
6491
6763
|
// compiled mapper for entity PasswordResetEntity
|
|
6492
6764
|
return function (result) {
|
|
6493
6765
|
const ret = {};
|
|
@@ -6526,6 +6798,25 @@ export default {
|
|
|
6526
6798
|
}
|
|
6527
6799
|
mapped.updated_at = true;
|
|
6528
6800
|
}
|
|
6801
|
+
if (typeof result.user_epoch !== 'undefined') {
|
|
6802
|
+
ret.user_epoch = result.user_epoch;
|
|
6803
|
+
mapped.user_epoch = true;
|
|
6804
|
+
}
|
|
6805
|
+
if (typeof result.revoked_at !== 'undefined') {
|
|
6806
|
+
if (result.revoked_at == null || result.revoked_at instanceof Date) {
|
|
6807
|
+
ret.revoked_at = result.revoked_at;
|
|
6808
|
+
}
|
|
6809
|
+
else if (typeof result.revoked_at === 'bigint') {
|
|
6810
|
+
ret.revoked_at = parseDate(Number(result.revoked_at));
|
|
6811
|
+
}
|
|
6812
|
+
else if (typeof result.revoked_at === 'number' || result.revoked_at.includes('+') || result.revoked_at.lastIndexOf('-') > 10 || result.revoked_at.endsWith('Z')) {
|
|
6813
|
+
ret.revoked_at = parseDate(result.revoked_at);
|
|
6814
|
+
}
|
|
6815
|
+
else {
|
|
6816
|
+
ret.revoked_at = parseDate(result.revoked_at + 'Z');
|
|
6817
|
+
}
|
|
6818
|
+
mapped.revoked_at = true;
|
|
6819
|
+
}
|
|
6529
6820
|
if (typeof result.user_sub !== 'undefined') {
|
|
6530
6821
|
ret.user = result.user_sub;
|
|
6531
6822
|
mapped.user_sub = true;
|
|
@@ -6575,7 +6866,7 @@ export default {
|
|
|
6575
6866
|
return ret;
|
|
6576
6867
|
};
|
|
6577
6868
|
},
|
|
6578
|
-
'hydrator-
|
|
6869
|
+
'hydrator-password_reset_18000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
6579
6870
|
// compiled hydrator for entity PasswordResetEntity ( normalized)
|
|
6580
6871
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6581
6872
|
if (data.id === null) {
|
|
@@ -6592,7 +6883,7 @@ export default {
|
|
|
6592
6883
|
}
|
|
6593
6884
|
};
|
|
6594
6885
|
},
|
|
6595
|
-
'hydrator-
|
|
6886
|
+
'hydrator-password_reset_18000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
6596
6887
|
// compiled hydrator for entity PasswordResetEntity ( normalized)
|
|
6597
6888
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6598
6889
|
if (data.id === null) {
|
|
@@ -6609,194 +6900,367 @@ export default {
|
|
|
6609
6900
|
}
|
|
6610
6901
|
};
|
|
6611
6902
|
},
|
|
6612
|
-
'pkGetter-
|
|
6903
|
+
'pkGetter-password_reset_18000': function (isEntityOrRef) {
|
|
6613
6904
|
// compiled pk getter for entity PasswordResetEntity
|
|
6614
6905
|
return function (entity) {
|
|
6615
6906
|
return entity.id;
|
|
6616
6907
|
};
|
|
6617
6908
|
},
|
|
6618
|
-
'pkGetterConverted-
|
|
6909
|
+
'pkGetterConverted-password_reset_18000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
6619
6910
|
// compiled pk getter (with converted custom types) for entity PasswordResetEntity
|
|
6620
6911
|
return function (entity) {
|
|
6621
6912
|
return convertToDatabaseValue_id(entity.id);
|
|
6622
6913
|
};
|
|
6623
6914
|
},
|
|
6624
|
-
'pkSerializer-
|
|
6915
|
+
'pkSerializer-password_reset_18000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
6625
6916
|
// compiled pk serializer for entity PasswordResetEntity
|
|
6626
6917
|
return function (entity) {
|
|
6627
6918
|
const val_10 = convertToDatabaseValue_id(entity.id);
|
|
6628
6919
|
return getPrimaryKeyHash(val_10);
|
|
6629
6920
|
};
|
|
6630
6921
|
},
|
|
6631
|
-
'hydrator-
|
|
6632
|
-
// compiled hydrator for entity
|
|
6922
|
+
'hydrator-oauth_grant_17000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
6923
|
+
// compiled hydrator for entity OAuthGrantEntity ( normalized)
|
|
6633
6924
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6634
6925
|
if (data.id === null) {
|
|
6635
6926
|
entity.id = null;
|
|
6636
6927
|
}
|
|
6637
6928
|
else if (typeof data.id !== 'undefined') {
|
|
6638
|
-
|
|
6639
|
-
const value = convertToJSValue_id(data.id);
|
|
6640
|
-
entity.id = value;
|
|
6641
|
-
}
|
|
6642
|
-
else {
|
|
6643
|
-
entity.id = data.id;
|
|
6644
|
-
}
|
|
6929
|
+
entity.id = data.id;
|
|
6645
6930
|
}
|
|
6646
|
-
if (data.
|
|
6647
|
-
entity.
|
|
6931
|
+
if (data.user_sub === null) {
|
|
6932
|
+
entity.user_sub = null;
|
|
6648
6933
|
}
|
|
6649
|
-
else if (typeof data.
|
|
6650
|
-
|
|
6651
|
-
|
|
6934
|
+
else if (typeof data.user_sub !== 'undefined') {
|
|
6935
|
+
entity.user_sub = data.user_sub;
|
|
6936
|
+
}
|
|
6937
|
+
if (data.client_id === null) {
|
|
6938
|
+
entity.client_id = null;
|
|
6939
|
+
}
|
|
6940
|
+
else if (typeof data.client_id !== 'undefined') {
|
|
6941
|
+
entity.client_id = data.client_id;
|
|
6942
|
+
}
|
|
6943
|
+
if (data.current_refresh_jti === null) {
|
|
6944
|
+
entity.current_refresh_jti = null;
|
|
6945
|
+
}
|
|
6946
|
+
else if (typeof data.current_refresh_jti !== 'undefined') {
|
|
6947
|
+
entity.current_refresh_jti = data.current_refresh_jti;
|
|
6948
|
+
}
|
|
6949
|
+
if (data.revoked_at === null) {
|
|
6950
|
+
entity.revoked_at = null;
|
|
6951
|
+
}
|
|
6952
|
+
else if (typeof data.revoked_at !== 'undefined') {
|
|
6953
|
+
if (data.revoked_at instanceof Date) {
|
|
6954
|
+
entity.revoked_at = data.revoked_at;
|
|
6652
6955
|
}
|
|
6653
|
-
else if (typeof data.
|
|
6654
|
-
entity.
|
|
6956
|
+
else if (typeof data.revoked_at === 'number' || data.revoked_at.includes('+') || data.revoked_at.lastIndexOf('-') > 10 || data.revoked_at.endsWith('Z')) {
|
|
6957
|
+
entity.revoked_at = new Date(data.revoked_at);
|
|
6655
6958
|
}
|
|
6656
6959
|
else {
|
|
6657
|
-
entity.
|
|
6960
|
+
entity.revoked_at = new Date(data.revoked_at + 'Z');
|
|
6658
6961
|
}
|
|
6659
6962
|
}
|
|
6660
|
-
if (data.
|
|
6661
|
-
entity.
|
|
6963
|
+
if (data.expires_at === null) {
|
|
6964
|
+
entity.expires_at = null;
|
|
6662
6965
|
}
|
|
6663
|
-
else if (typeof data.
|
|
6664
|
-
if (data.
|
|
6665
|
-
entity.
|
|
6966
|
+
else if (typeof data.expires_at !== 'undefined') {
|
|
6967
|
+
if (data.expires_at instanceof Date) {
|
|
6968
|
+
entity.expires_at = data.expires_at;
|
|
6666
6969
|
}
|
|
6667
|
-
else if (typeof data.
|
|
6668
|
-
entity.
|
|
6970
|
+
else if (typeof data.expires_at === 'number' || data.expires_at.includes('+') || data.expires_at.lastIndexOf('-') > 10 || data.expires_at.endsWith('Z')) {
|
|
6971
|
+
entity.expires_at = new Date(data.expires_at);
|
|
6669
6972
|
}
|
|
6670
6973
|
else {
|
|
6671
|
-
entity.
|
|
6974
|
+
entity.expires_at = new Date(data.expires_at + 'Z');
|
|
6672
6975
|
}
|
|
6673
6976
|
}
|
|
6674
|
-
if (data.
|
|
6675
|
-
entity.
|
|
6977
|
+
if (data.revision === null) {
|
|
6978
|
+
entity.revision = null;
|
|
6676
6979
|
}
|
|
6677
|
-
else if (typeof data.
|
|
6678
|
-
entity.
|
|
6980
|
+
else if (typeof data.revision !== 'undefined') {
|
|
6981
|
+
entity.revision = data.revision;
|
|
6679
6982
|
}
|
|
6680
|
-
|
|
6681
|
-
|
|
6983
|
+
};
|
|
6984
|
+
},
|
|
6985
|
+
'hydrator-oauth_grant_17000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
6986
|
+
// compiled hydrator for entity OAuthGrantEntity ( normalized)
|
|
6987
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6988
|
+
if (data.id === null) {
|
|
6989
|
+
entity.id = null;
|
|
6682
6990
|
}
|
|
6683
|
-
else if (typeof data.
|
|
6684
|
-
entity.
|
|
6991
|
+
else if (typeof data.id !== 'undefined') {
|
|
6992
|
+
entity.id = data.id;
|
|
6685
6993
|
}
|
|
6686
|
-
if (data.
|
|
6687
|
-
entity.
|
|
6994
|
+
if (data.user_sub === null) {
|
|
6995
|
+
entity.user_sub = null;
|
|
6688
6996
|
}
|
|
6689
|
-
else if (typeof data.
|
|
6690
|
-
|
|
6691
|
-
entity.client = factory.createReference(oauth_client_309, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6692
|
-
}
|
|
6693
|
-
else if (data.client && typeof data.client === 'object') {
|
|
6694
|
-
entity.client = factory.create(oauth_client_310, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6695
|
-
}
|
|
6997
|
+
else if (typeof data.user_sub !== 'undefined') {
|
|
6998
|
+
entity.user_sub = data.user_sub;
|
|
6696
6999
|
}
|
|
6697
|
-
if (data.
|
|
6698
|
-
entity.
|
|
7000
|
+
if (data.client_id === null) {
|
|
7001
|
+
entity.client_id = null;
|
|
6699
7002
|
}
|
|
6700
|
-
else if (typeof data.
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
7003
|
+
else if (typeof data.client_id !== 'undefined') {
|
|
7004
|
+
entity.client_id = data.client_id;
|
|
7005
|
+
}
|
|
7006
|
+
if (data.current_refresh_jti === null) {
|
|
7007
|
+
entity.current_refresh_jti = null;
|
|
7008
|
+
}
|
|
7009
|
+
else if (typeof data.current_refresh_jti !== 'undefined') {
|
|
7010
|
+
entity.current_refresh_jti = data.current_refresh_jti;
|
|
7011
|
+
}
|
|
7012
|
+
if (data.revoked_at === null) {
|
|
7013
|
+
entity.revoked_at = null;
|
|
7014
|
+
}
|
|
7015
|
+
else if (typeof data.revoked_at !== 'undefined') {
|
|
7016
|
+
if (data.revoked_at instanceof Date) {
|
|
7017
|
+
entity.revoked_at = data.revoked_at;
|
|
7018
|
+
}
|
|
7019
|
+
else if (typeof data.revoked_at === 'number' || data.revoked_at.includes('+') || data.revoked_at.lastIndexOf('-') > 10 || data.revoked_at.endsWith('Z')) {
|
|
7020
|
+
entity.revoked_at = new Date(data.revoked_at);
|
|
6705
7021
|
}
|
|
6706
7022
|
else {
|
|
6707
|
-
entity.
|
|
7023
|
+
entity.revoked_at = new Date(data.revoked_at + 'Z');
|
|
6708
7024
|
}
|
|
6709
7025
|
}
|
|
6710
|
-
if (data.
|
|
6711
|
-
entity.
|
|
7026
|
+
if (data.expires_at === null) {
|
|
7027
|
+
entity.expires_at = null;
|
|
6712
7028
|
}
|
|
6713
|
-
else if (typeof data.
|
|
6714
|
-
if (data.
|
|
6715
|
-
entity.
|
|
7029
|
+
else if (typeof data.expires_at !== 'undefined') {
|
|
7030
|
+
if (data.expires_at instanceof Date) {
|
|
7031
|
+
entity.expires_at = data.expires_at;
|
|
6716
7032
|
}
|
|
6717
|
-
else if (typeof data.
|
|
6718
|
-
entity.
|
|
7033
|
+
else if (typeof data.expires_at === 'number' || data.expires_at.includes('+') || data.expires_at.lastIndexOf('-') > 10 || data.expires_at.endsWith('Z')) {
|
|
7034
|
+
entity.expires_at = new Date(data.expires_at);
|
|
6719
7035
|
}
|
|
6720
7036
|
else {
|
|
6721
|
-
entity.
|
|
7037
|
+
entity.expires_at = new Date(data.expires_at + 'Z');
|
|
6722
7038
|
}
|
|
6723
7039
|
}
|
|
6724
|
-
if (data.
|
|
6725
|
-
entity.
|
|
7040
|
+
if (data.revision === null) {
|
|
7041
|
+
entity.revision = null;
|
|
6726
7042
|
}
|
|
6727
|
-
else if (typeof data.
|
|
6728
|
-
|
|
6729
|
-
entity.authorizedUser = factory.createReference(user_313, data.authorizedUser, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6730
|
-
}
|
|
6731
|
-
else if (data.authorizedUser && typeof data.authorizedUser === 'object') {
|
|
6732
|
-
entity.authorizedUser = factory.create(user_314, data.authorizedUser, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6733
|
-
}
|
|
7043
|
+
else if (typeof data.revision !== 'undefined') {
|
|
7044
|
+
entity.revision = data.revision;
|
|
6734
7045
|
}
|
|
6735
|
-
|
|
6736
|
-
|
|
7046
|
+
};
|
|
7047
|
+
},
|
|
7048
|
+
'comparator-oauth_grant_17000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
7049
|
+
// compiled comparator for entity OAuthGrantEntity
|
|
7050
|
+
return function (last, current, options) {
|
|
7051
|
+
const diff = {};
|
|
7052
|
+
if (current.id === null && last.id === undefined) {
|
|
7053
|
+
diff.id = current.id;
|
|
6737
7054
|
}
|
|
6738
|
-
else if (
|
|
6739
|
-
if (data.authorizedAt instanceof Date) {
|
|
6740
|
-
entity.authorizedAt = data.authorizedAt;
|
|
6741
|
-
}
|
|
6742
|
-
else if (typeof data.authorizedAt === 'number' || data.authorizedAt.includes('+') || data.authorizedAt.lastIndexOf('-') > 10 || data.authorizedAt.endsWith('Z')) {
|
|
6743
|
-
entity.authorizedAt = new Date(data.authorizedAt);
|
|
6744
|
-
}
|
|
6745
|
-
else {
|
|
6746
|
-
entity.authorizedAt = new Date(data.authorizedAt + 'Z');
|
|
6747
|
-
}
|
|
7055
|
+
else if (current.id == null && last.id == null) {
|
|
6748
7056
|
}
|
|
6749
|
-
if (
|
|
6750
|
-
|
|
7057
|
+
else if ((current.id != null && last.id == null) || (current.id == null && last.id != null)) {
|
|
7058
|
+
diff.id = current.id;
|
|
6751
7059
|
}
|
|
6752
|
-
else if (
|
|
6753
|
-
|
|
6754
|
-
|
|
7060
|
+
else if (last.id !== current.id) {
|
|
7061
|
+
diff.id = current.id;
|
|
7062
|
+
}
|
|
7063
|
+
if (current.user_sub === null && last.user_sub === undefined) {
|
|
7064
|
+
diff.user_sub = current.user_sub;
|
|
7065
|
+
}
|
|
7066
|
+
else if (current.user_sub == null && last.user_sub == null) {
|
|
7067
|
+
}
|
|
7068
|
+
else if ((current.user_sub != null && last.user_sub == null) || (current.user_sub == null && last.user_sub != null)) {
|
|
7069
|
+
diff.user_sub = current.user_sub;
|
|
7070
|
+
}
|
|
7071
|
+
else if (last.user_sub !== current.user_sub) {
|
|
7072
|
+
diff.user_sub = current.user_sub;
|
|
7073
|
+
}
|
|
7074
|
+
if (current.client_id === null && last.client_id === undefined) {
|
|
7075
|
+
diff.client_id = current.client_id;
|
|
7076
|
+
}
|
|
7077
|
+
else if (current.client_id == null && last.client_id == null) {
|
|
7078
|
+
}
|
|
7079
|
+
else if ((current.client_id != null && last.client_id == null) || (current.client_id == null && last.client_id != null)) {
|
|
7080
|
+
diff.client_id = current.client_id;
|
|
7081
|
+
}
|
|
7082
|
+
else if (last.client_id !== current.client_id) {
|
|
7083
|
+
diff.client_id = current.client_id;
|
|
7084
|
+
}
|
|
7085
|
+
if (current.current_refresh_jti === null && last.current_refresh_jti === undefined) {
|
|
7086
|
+
diff.current_refresh_jti = current.current_refresh_jti;
|
|
7087
|
+
}
|
|
7088
|
+
else if (current.current_refresh_jti == null && last.current_refresh_jti == null) {
|
|
7089
|
+
}
|
|
7090
|
+
else if ((current.current_refresh_jti != null && last.current_refresh_jti == null) || (current.current_refresh_jti == null && last.current_refresh_jti != null)) {
|
|
7091
|
+
diff.current_refresh_jti = current.current_refresh_jti;
|
|
7092
|
+
}
|
|
7093
|
+
else if (last.current_refresh_jti !== current.current_refresh_jti) {
|
|
7094
|
+
diff.current_refresh_jti = current.current_refresh_jti;
|
|
7095
|
+
}
|
|
7096
|
+
if (current.revoked_at === null && last.revoked_at === undefined) {
|
|
7097
|
+
diff.revoked_at = current.revoked_at;
|
|
7098
|
+
}
|
|
7099
|
+
else if (current.revoked_at == null && last.revoked_at == null) {
|
|
7100
|
+
}
|
|
7101
|
+
else if ((current.revoked_at != null && last.revoked_at == null) || (current.revoked_at == null && last.revoked_at != null)) {
|
|
7102
|
+
diff.revoked_at = current.revoked_at;
|
|
7103
|
+
}
|
|
7104
|
+
else if (last.revoked_at.valueOf() !== current.revoked_at.valueOf()) {
|
|
7105
|
+
diff.revoked_at = current.revoked_at;
|
|
7106
|
+
}
|
|
7107
|
+
if (current.expires_at === null && last.expires_at === undefined) {
|
|
7108
|
+
diff.expires_at = current.expires_at;
|
|
7109
|
+
}
|
|
7110
|
+
else if (current.expires_at == null && last.expires_at == null) {
|
|
7111
|
+
}
|
|
7112
|
+
else if ((current.expires_at != null && last.expires_at == null) || (current.expires_at == null && last.expires_at != null)) {
|
|
7113
|
+
diff.expires_at = current.expires_at;
|
|
7114
|
+
}
|
|
7115
|
+
else if (last.expires_at.valueOf() !== current.expires_at.valueOf()) {
|
|
7116
|
+
diff.expires_at = current.expires_at;
|
|
7117
|
+
}
|
|
7118
|
+
if (current.revision === null && last.revision === undefined) {
|
|
7119
|
+
diff.revision = current.revision;
|
|
7120
|
+
}
|
|
7121
|
+
else if (current.revision == null && last.revision == null) {
|
|
7122
|
+
}
|
|
7123
|
+
else if ((current.revision != null && last.revision == null) || (current.revision == null && last.revision != null)) {
|
|
7124
|
+
diff.revision = current.revision;
|
|
7125
|
+
}
|
|
7126
|
+
else if (!equals(last.revision, current.revision)) {
|
|
7127
|
+
diff.revision = current.revision;
|
|
7128
|
+
}
|
|
7129
|
+
if (options?.includeInverseSides) {
|
|
7130
|
+
}
|
|
7131
|
+
return diff;
|
|
7132
|
+
};
|
|
7133
|
+
},
|
|
7134
|
+
'snapshotGenerator-oauth_grant_17000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
7135
|
+
return function (entity) {
|
|
7136
|
+
const ret = {};
|
|
7137
|
+
if (typeof entity.id !== 'undefined') {
|
|
7138
|
+
ret.id = entity.id;
|
|
7139
|
+
}
|
|
7140
|
+
if (typeof entity.user_sub !== 'undefined') {
|
|
7141
|
+
ret.user_sub = entity.user_sub;
|
|
7142
|
+
}
|
|
7143
|
+
if (typeof entity.client_id !== 'undefined') {
|
|
7144
|
+
ret.client_id = entity.client_id;
|
|
7145
|
+
}
|
|
7146
|
+
if (typeof entity.current_refresh_jti !== 'undefined') {
|
|
7147
|
+
ret.current_refresh_jti = entity.current_refresh_jti;
|
|
7148
|
+
}
|
|
7149
|
+
if (typeof entity.revoked_at !== 'undefined') {
|
|
7150
|
+
ret.revoked_at = clone(processDateProperty(entity.revoked_at));
|
|
7151
|
+
}
|
|
7152
|
+
if (typeof entity.expires_at !== 'undefined') {
|
|
7153
|
+
ret.expires_at = clone(processDateProperty(entity.expires_at));
|
|
7154
|
+
}
|
|
7155
|
+
if (typeof entity.revision !== 'undefined') {
|
|
7156
|
+
ret.revision = clone(entity.revision);
|
|
7157
|
+
}
|
|
7158
|
+
return ret;
|
|
7159
|
+
};
|
|
7160
|
+
},
|
|
7161
|
+
'resultMapper-oauth_grant_17000': function (PolymorphicRef, parseDate) {
|
|
7162
|
+
// compiled mapper for entity OAuthGrantEntity
|
|
7163
|
+
return function (result) {
|
|
7164
|
+
const ret = {};
|
|
7165
|
+
const mapped = {};
|
|
7166
|
+
if (typeof result.id !== 'undefined') {
|
|
7167
|
+
ret.id = result.id;
|
|
7168
|
+
mapped.id = true;
|
|
7169
|
+
}
|
|
7170
|
+
if (typeof result.user_sub !== 'undefined') {
|
|
7171
|
+
ret.user_sub = result.user_sub;
|
|
7172
|
+
mapped.user_sub = true;
|
|
7173
|
+
}
|
|
7174
|
+
if (typeof result.client_id !== 'undefined') {
|
|
7175
|
+
ret.client_id = result.client_id;
|
|
7176
|
+
mapped.client_id = true;
|
|
7177
|
+
}
|
|
7178
|
+
if (typeof result.current_refresh_jti !== 'undefined') {
|
|
7179
|
+
ret.current_refresh_jti = result.current_refresh_jti;
|
|
7180
|
+
mapped.current_refresh_jti = true;
|
|
7181
|
+
}
|
|
7182
|
+
if (typeof result.revoked_at !== 'undefined') {
|
|
7183
|
+
if (result.revoked_at == null || result.revoked_at instanceof Date) {
|
|
7184
|
+
ret.revoked_at = result.revoked_at;
|
|
6755
7185
|
}
|
|
6756
|
-
else if (typeof
|
|
6757
|
-
|
|
7186
|
+
else if (typeof result.revoked_at === 'bigint') {
|
|
7187
|
+
ret.revoked_at = parseDate(Number(result.revoked_at));
|
|
7188
|
+
}
|
|
7189
|
+
else if (typeof result.revoked_at === 'number' || result.revoked_at.includes('+') || result.revoked_at.lastIndexOf('-') > 10 || result.revoked_at.endsWith('Z')) {
|
|
7190
|
+
ret.revoked_at = parseDate(result.revoked_at);
|
|
6758
7191
|
}
|
|
6759
7192
|
else {
|
|
6760
|
-
|
|
7193
|
+
ret.revoked_at = parseDate(result.revoked_at + 'Z');
|
|
6761
7194
|
}
|
|
7195
|
+
mapped.revoked_at = true;
|
|
6762
7196
|
}
|
|
6763
|
-
if (
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
else if (typeof data.lastPolledAt !== 'undefined') {
|
|
6767
|
-
if (data.lastPolledAt instanceof Date) {
|
|
6768
|
-
entity.lastPolledAt = data.lastPolledAt;
|
|
7197
|
+
if (typeof result.expires_at !== 'undefined') {
|
|
7198
|
+
if (result.expires_at == null || result.expires_at instanceof Date) {
|
|
7199
|
+
ret.expires_at = result.expires_at;
|
|
6769
7200
|
}
|
|
6770
|
-
else if (typeof
|
|
6771
|
-
|
|
7201
|
+
else if (typeof result.expires_at === 'bigint') {
|
|
7202
|
+
ret.expires_at = parseDate(Number(result.expires_at));
|
|
7203
|
+
}
|
|
7204
|
+
else if (typeof result.expires_at === 'number' || result.expires_at.includes('+') || result.expires_at.lastIndexOf('-') > 10 || result.expires_at.endsWith('Z')) {
|
|
7205
|
+
ret.expires_at = parseDate(result.expires_at);
|
|
6772
7206
|
}
|
|
6773
7207
|
else {
|
|
6774
|
-
|
|
7208
|
+
ret.expires_at = parseDate(result.expires_at + 'Z');
|
|
6775
7209
|
}
|
|
7210
|
+
mapped.expires_at = true;
|
|
6776
7211
|
}
|
|
6777
|
-
if (
|
|
6778
|
-
|
|
7212
|
+
if (typeof result.revision !== 'undefined') {
|
|
7213
|
+
ret.revision = result.revision;
|
|
7214
|
+
mapped.revision = true;
|
|
6779
7215
|
}
|
|
6780
|
-
|
|
6781
|
-
|
|
7216
|
+
for (let k in result) {
|
|
7217
|
+
if (Object.hasOwn(result, k) && !mapped[k] && ret[k] === undefined)
|
|
7218
|
+
ret[k] = result[k];
|
|
6782
7219
|
}
|
|
6783
|
-
|
|
6784
|
-
|
|
7220
|
+
return ret;
|
|
7221
|
+
};
|
|
7222
|
+
},
|
|
7223
|
+
'hydrator-oauth_grant_17000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
7224
|
+
// compiled hydrator for entity OAuthGrantEntity ( normalized)
|
|
7225
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7226
|
+
if (data.id === null) {
|
|
7227
|
+
entity.id = null;
|
|
6785
7228
|
}
|
|
6786
|
-
else if (typeof data.
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
7229
|
+
else if (typeof data.id !== 'undefined') {
|
|
7230
|
+
entity.id = data.id;
|
|
7231
|
+
}
|
|
7232
|
+
};
|
|
7233
|
+
},
|
|
7234
|
+
'hydrator-oauth_grant_17000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
7235
|
+
// compiled hydrator for entity OAuthGrantEntity ( normalized)
|
|
7236
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7237
|
+
if (data.id === null) {
|
|
7238
|
+
entity.id = null;
|
|
6796
7239
|
}
|
|
7240
|
+
else if (typeof data.id !== 'undefined') {
|
|
7241
|
+
entity.id = data.id;
|
|
7242
|
+
}
|
|
7243
|
+
};
|
|
7244
|
+
},
|
|
7245
|
+
'pkGetter-oauth_grant_17000': function (isEntityOrRef) {
|
|
7246
|
+
// compiled pk getter for entity OAuthGrantEntity
|
|
7247
|
+
return function (entity) {
|
|
7248
|
+
return entity.id;
|
|
7249
|
+
};
|
|
7250
|
+
},
|
|
7251
|
+
'pkGetterConverted-oauth_grant_17000': function (isEntityOrRef) {
|
|
7252
|
+
// compiled pk getter (with converted custom types) for entity OAuthGrantEntity
|
|
7253
|
+
return function (entity) {
|
|
7254
|
+
return entity.id;
|
|
7255
|
+
};
|
|
7256
|
+
},
|
|
7257
|
+
'pkSerializer-oauth_grant_17000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
7258
|
+
// compiled pk serializer for entity OAuthGrantEntity
|
|
7259
|
+
return function (entity) {
|
|
7260
|
+
return '' + entity.id;
|
|
6797
7261
|
};
|
|
6798
7262
|
},
|
|
6799
|
-
'hydrator-
|
|
7263
|
+
'hydrator-oauth_device_code_13000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_342, oauth_client_343, convertToJSValue_scope, convertToDatabaseValue_scope, user_346, user_347) {
|
|
6800
7264
|
// compiled hydrator for entity OAuthDeviceCodeEntity ( normalized)
|
|
6801
7265
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6802
7266
|
if (data.id === null) {
|
|
@@ -6839,6 +7303,24 @@ export default {
|
|
|
6839
7303
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
6840
7304
|
}
|
|
6841
7305
|
}
|
|
7306
|
+
if (data.client_epoch === null) {
|
|
7307
|
+
entity.client_epoch = null;
|
|
7308
|
+
}
|
|
7309
|
+
else if (typeof data.client_epoch !== 'undefined') {
|
|
7310
|
+
entity.client_epoch = data.client_epoch;
|
|
7311
|
+
}
|
|
7312
|
+
if (data.user_epoch === null) {
|
|
7313
|
+
entity.user_epoch = null;
|
|
7314
|
+
}
|
|
7315
|
+
else if (typeof data.user_epoch !== 'undefined') {
|
|
7316
|
+
entity.user_epoch = data.user_epoch;
|
|
7317
|
+
}
|
|
7318
|
+
if (data.grant_id === null) {
|
|
7319
|
+
entity.grant_id = null;
|
|
7320
|
+
}
|
|
7321
|
+
else if (typeof data.grant_id !== 'undefined') {
|
|
7322
|
+
entity.grant_id = data.grant_id;
|
|
7323
|
+
}
|
|
6842
7324
|
if (data.deviceCodeHash === null) {
|
|
6843
7325
|
entity.deviceCodeHash = null;
|
|
6844
7326
|
}
|
|
@@ -6856,10 +7338,10 @@ export default {
|
|
|
6856
7338
|
}
|
|
6857
7339
|
else if (typeof data.client !== 'undefined') {
|
|
6858
7340
|
if (isPrimaryKey(data.client, true)) {
|
|
6859
|
-
entity.client = factory.createReference(
|
|
7341
|
+
entity.client = factory.createReference(oauth_client_342, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6860
7342
|
}
|
|
6861
7343
|
else if (data.client && typeof data.client === 'object') {
|
|
6862
|
-
entity.client = factory.create(
|
|
7344
|
+
entity.client = factory.create(oauth_client_343, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6863
7345
|
}
|
|
6864
7346
|
}
|
|
6865
7347
|
if (data.scope === null) {
|
|
@@ -6894,10 +7376,10 @@ export default {
|
|
|
6894
7376
|
}
|
|
6895
7377
|
else if (typeof data.authorizedUser !== 'undefined') {
|
|
6896
7378
|
if (isPrimaryKey(data.authorizedUser, true)) {
|
|
6897
|
-
entity.authorizedUser = factory.createReference(
|
|
7379
|
+
entity.authorizedUser = factory.createReference(user_346, data.authorizedUser, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6898
7380
|
}
|
|
6899
7381
|
else if (data.authorizedUser && typeof data.authorizedUser === 'object') {
|
|
6900
|
-
entity.authorizedUser = factory.create(
|
|
7382
|
+
entity.authorizedUser = factory.create(user_347, data.authorizedUser, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6901
7383
|
}
|
|
6902
7384
|
}
|
|
6903
7385
|
if (data.authorizedAt === null) {
|
|
@@ -6964,43 +7446,262 @@ export default {
|
|
|
6964
7446
|
}
|
|
6965
7447
|
};
|
|
6966
7448
|
},
|
|
6967
|
-
'
|
|
6968
|
-
// compiled
|
|
6969
|
-
return function (
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
diff.id = current.id;
|
|
7449
|
+
'hydrator-oauth_device_code_13000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_361, oauth_client_362, convertToJSValue_scope, convertToDatabaseValue_scope, user_365, user_366) {
|
|
7450
|
+
// compiled hydrator for entity OAuthDeviceCodeEntity ( normalized)
|
|
7451
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7452
|
+
if (data.id === null) {
|
|
7453
|
+
entity.id = null;
|
|
6973
7454
|
}
|
|
6974
|
-
else if (
|
|
7455
|
+
else if (typeof data.id !== 'undefined') {
|
|
7456
|
+
if (convertCustomTypes) {
|
|
7457
|
+
const value = convertToJSValue_id(data.id);
|
|
7458
|
+
entity.id = value;
|
|
7459
|
+
}
|
|
7460
|
+
else {
|
|
7461
|
+
entity.id = data.id;
|
|
7462
|
+
}
|
|
6975
7463
|
}
|
|
6976
|
-
|
|
6977
|
-
|
|
7464
|
+
if (data.created_at === null) {
|
|
7465
|
+
entity.created_at = null;
|
|
6978
7466
|
}
|
|
6979
|
-
else if (
|
|
6980
|
-
|
|
7467
|
+
else if (typeof data.created_at !== 'undefined') {
|
|
7468
|
+
if (data.created_at instanceof Date) {
|
|
7469
|
+
entity.created_at = data.created_at;
|
|
7470
|
+
}
|
|
7471
|
+
else if (typeof data.created_at === 'number' || data.created_at.includes('+') || data.created_at.lastIndexOf('-') > 10 || data.created_at.endsWith('Z')) {
|
|
7472
|
+
entity.created_at = new Date(data.created_at);
|
|
7473
|
+
}
|
|
7474
|
+
else {
|
|
7475
|
+
entity.created_at = new Date(data.created_at + 'Z');
|
|
7476
|
+
}
|
|
6981
7477
|
}
|
|
6982
|
-
if (
|
|
6983
|
-
|
|
7478
|
+
if (data.updated_at === null) {
|
|
7479
|
+
entity.updated_at = null;
|
|
6984
7480
|
}
|
|
6985
|
-
else if (
|
|
7481
|
+
else if (typeof data.updated_at !== 'undefined') {
|
|
7482
|
+
if (data.updated_at instanceof Date) {
|
|
7483
|
+
entity.updated_at = data.updated_at;
|
|
7484
|
+
}
|
|
7485
|
+
else if (typeof data.updated_at === 'number' || data.updated_at.includes('+') || data.updated_at.lastIndexOf('-') > 10 || data.updated_at.endsWith('Z')) {
|
|
7486
|
+
entity.updated_at = new Date(data.updated_at);
|
|
7487
|
+
}
|
|
7488
|
+
else {
|
|
7489
|
+
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
7490
|
+
}
|
|
6986
7491
|
}
|
|
6987
|
-
|
|
6988
|
-
|
|
7492
|
+
if (data.client_epoch === null) {
|
|
7493
|
+
entity.client_epoch = null;
|
|
6989
7494
|
}
|
|
6990
|
-
else if (
|
|
6991
|
-
|
|
7495
|
+
else if (typeof data.client_epoch !== 'undefined') {
|
|
7496
|
+
entity.client_epoch = data.client_epoch;
|
|
6992
7497
|
}
|
|
6993
|
-
if (
|
|
6994
|
-
|
|
7498
|
+
if (data.user_epoch === null) {
|
|
7499
|
+
entity.user_epoch = null;
|
|
6995
7500
|
}
|
|
6996
|
-
else if (
|
|
7501
|
+
else if (typeof data.user_epoch !== 'undefined') {
|
|
7502
|
+
entity.user_epoch = data.user_epoch;
|
|
6997
7503
|
}
|
|
6998
|
-
|
|
7504
|
+
if (data.grant_id === null) {
|
|
7505
|
+
entity.grant_id = null;
|
|
7506
|
+
}
|
|
7507
|
+
else if (typeof data.grant_id !== 'undefined') {
|
|
7508
|
+
entity.grant_id = data.grant_id;
|
|
7509
|
+
}
|
|
7510
|
+
if (data.deviceCodeHash === null) {
|
|
7511
|
+
entity.deviceCodeHash = null;
|
|
7512
|
+
}
|
|
7513
|
+
else if (typeof data.deviceCodeHash !== 'undefined') {
|
|
7514
|
+
entity.deviceCodeHash = data.deviceCodeHash;
|
|
7515
|
+
}
|
|
7516
|
+
if (data.userCodeHash === null) {
|
|
7517
|
+
entity.userCodeHash = null;
|
|
7518
|
+
}
|
|
7519
|
+
else if (typeof data.userCodeHash !== 'undefined') {
|
|
7520
|
+
entity.userCodeHash = data.userCodeHash;
|
|
7521
|
+
}
|
|
7522
|
+
if (data.client === null) {
|
|
7523
|
+
entity.client = null;
|
|
7524
|
+
}
|
|
7525
|
+
else if (typeof data.client !== 'undefined') {
|
|
7526
|
+
if (isPrimaryKey(data.client, true)) {
|
|
7527
|
+
entity.client = factory.createReference(oauth_client_361, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
7528
|
+
}
|
|
7529
|
+
else if (data.client && typeof data.client === 'object') {
|
|
7530
|
+
entity.client = factory.create(oauth_client_362, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
7531
|
+
}
|
|
7532
|
+
}
|
|
7533
|
+
if (data.scope === null) {
|
|
7534
|
+
entity.scope = null;
|
|
7535
|
+
}
|
|
7536
|
+
else if (typeof data.scope !== 'undefined') {
|
|
7537
|
+
if (convertCustomTypes) {
|
|
7538
|
+
const value = convertToJSValue_scope(data.scope);
|
|
7539
|
+
data.scope = convertToDatabaseValue_scope(value);
|
|
7540
|
+
entity.scope = value;
|
|
7541
|
+
}
|
|
7542
|
+
else {
|
|
7543
|
+
entity.scope = data.scope;
|
|
7544
|
+
}
|
|
7545
|
+
}
|
|
7546
|
+
if (data.expiresAt === null) {
|
|
7547
|
+
entity.expiresAt = null;
|
|
7548
|
+
}
|
|
7549
|
+
else if (typeof data.expiresAt !== 'undefined') {
|
|
7550
|
+
if (data.expiresAt instanceof Date) {
|
|
7551
|
+
entity.expiresAt = data.expiresAt;
|
|
7552
|
+
}
|
|
7553
|
+
else if (typeof data.expiresAt === 'number' || data.expiresAt.includes('+') || data.expiresAt.lastIndexOf('-') > 10 || data.expiresAt.endsWith('Z')) {
|
|
7554
|
+
entity.expiresAt = new Date(data.expiresAt);
|
|
7555
|
+
}
|
|
7556
|
+
else {
|
|
7557
|
+
entity.expiresAt = new Date(data.expiresAt + 'Z');
|
|
7558
|
+
}
|
|
7559
|
+
}
|
|
7560
|
+
if (data.authorizedUser === null) {
|
|
7561
|
+
entity.authorizedUser = null;
|
|
7562
|
+
}
|
|
7563
|
+
else if (typeof data.authorizedUser !== 'undefined') {
|
|
7564
|
+
if (isPrimaryKey(data.authorizedUser, true)) {
|
|
7565
|
+
entity.authorizedUser = factory.createReference(user_365, data.authorizedUser, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
7566
|
+
}
|
|
7567
|
+
else if (data.authorizedUser && typeof data.authorizedUser === 'object') {
|
|
7568
|
+
entity.authorizedUser = factory.create(user_366, data.authorizedUser, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
7569
|
+
}
|
|
7570
|
+
}
|
|
7571
|
+
if (data.authorizedAt === null) {
|
|
7572
|
+
entity.authorizedAt = null;
|
|
7573
|
+
}
|
|
7574
|
+
else if (typeof data.authorizedAt !== 'undefined') {
|
|
7575
|
+
if (data.authorizedAt instanceof Date) {
|
|
7576
|
+
entity.authorizedAt = data.authorizedAt;
|
|
7577
|
+
}
|
|
7578
|
+
else if (typeof data.authorizedAt === 'number' || data.authorizedAt.includes('+') || data.authorizedAt.lastIndexOf('-') > 10 || data.authorizedAt.endsWith('Z')) {
|
|
7579
|
+
entity.authorizedAt = new Date(data.authorizedAt);
|
|
7580
|
+
}
|
|
7581
|
+
else {
|
|
7582
|
+
entity.authorizedAt = new Date(data.authorizedAt + 'Z');
|
|
7583
|
+
}
|
|
7584
|
+
}
|
|
7585
|
+
if (data.deniedAt === null) {
|
|
7586
|
+
entity.deniedAt = null;
|
|
7587
|
+
}
|
|
7588
|
+
else if (typeof data.deniedAt !== 'undefined') {
|
|
7589
|
+
if (data.deniedAt instanceof Date) {
|
|
7590
|
+
entity.deniedAt = data.deniedAt;
|
|
7591
|
+
}
|
|
7592
|
+
else if (typeof data.deniedAt === 'number' || data.deniedAt.includes('+') || data.deniedAt.lastIndexOf('-') > 10 || data.deniedAt.endsWith('Z')) {
|
|
7593
|
+
entity.deniedAt = new Date(data.deniedAt);
|
|
7594
|
+
}
|
|
7595
|
+
else {
|
|
7596
|
+
entity.deniedAt = new Date(data.deniedAt + 'Z');
|
|
7597
|
+
}
|
|
7598
|
+
}
|
|
7599
|
+
if (data.lastPolledAt === null) {
|
|
7600
|
+
entity.lastPolledAt = null;
|
|
7601
|
+
}
|
|
7602
|
+
else if (typeof data.lastPolledAt !== 'undefined') {
|
|
7603
|
+
if (data.lastPolledAt instanceof Date) {
|
|
7604
|
+
entity.lastPolledAt = data.lastPolledAt;
|
|
7605
|
+
}
|
|
7606
|
+
else if (typeof data.lastPolledAt === 'number' || data.lastPolledAt.includes('+') || data.lastPolledAt.lastIndexOf('-') > 10 || data.lastPolledAt.endsWith('Z')) {
|
|
7607
|
+
entity.lastPolledAt = new Date(data.lastPolledAt);
|
|
7608
|
+
}
|
|
7609
|
+
else {
|
|
7610
|
+
entity.lastPolledAt = new Date(data.lastPolledAt + 'Z');
|
|
7611
|
+
}
|
|
7612
|
+
}
|
|
7613
|
+
if (data.pollIntervalSeconds === null) {
|
|
7614
|
+
entity.pollIntervalSeconds = null;
|
|
7615
|
+
}
|
|
7616
|
+
else if (typeof data.pollIntervalSeconds !== 'undefined') {
|
|
7617
|
+
entity.pollIntervalSeconds = data.pollIntervalSeconds;
|
|
7618
|
+
}
|
|
7619
|
+
if (data.consumedAt === null) {
|
|
7620
|
+
entity.consumedAt = null;
|
|
7621
|
+
}
|
|
7622
|
+
else if (typeof data.consumedAt !== 'undefined') {
|
|
7623
|
+
if (data.consumedAt instanceof Date) {
|
|
7624
|
+
entity.consumedAt = data.consumedAt;
|
|
7625
|
+
}
|
|
7626
|
+
else if (typeof data.consumedAt === 'number' || data.consumedAt.includes('+') || data.consumedAt.lastIndexOf('-') > 10 || data.consumedAt.endsWith('Z')) {
|
|
7627
|
+
entity.consumedAt = new Date(data.consumedAt);
|
|
7628
|
+
}
|
|
7629
|
+
else {
|
|
7630
|
+
entity.consumedAt = new Date(data.consumedAt + 'Z');
|
|
7631
|
+
}
|
|
7632
|
+
}
|
|
7633
|
+
};
|
|
7634
|
+
},
|
|
7635
|
+
'comparator-oauth_device_code_13000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
7636
|
+
// compiled comparator for entity OAuthDeviceCodeEntity
|
|
7637
|
+
return function (last, current, options) {
|
|
7638
|
+
const diff = {};
|
|
7639
|
+
if (current.id === null && last.id === undefined) {
|
|
7640
|
+
diff.id = current.id;
|
|
7641
|
+
}
|
|
7642
|
+
else if (current.id == null && last.id == null) {
|
|
7643
|
+
}
|
|
7644
|
+
else if ((current.id != null && last.id == null) || (current.id == null && last.id != null)) {
|
|
7645
|
+
diff.id = current.id;
|
|
7646
|
+
}
|
|
7647
|
+
else if (last.id !== current.id) {
|
|
7648
|
+
diff.id = current.id;
|
|
7649
|
+
}
|
|
7650
|
+
if (current.created_at === null && last.created_at === undefined) {
|
|
7651
|
+
diff.created_at = current.created_at;
|
|
7652
|
+
}
|
|
7653
|
+
else if (current.created_at == null && last.created_at == null) {
|
|
7654
|
+
}
|
|
7655
|
+
else if ((current.created_at != null && last.created_at == null) || (current.created_at == null && last.created_at != null)) {
|
|
7656
|
+
diff.created_at = current.created_at;
|
|
7657
|
+
}
|
|
7658
|
+
else if (last.created_at.valueOf() !== current.created_at.valueOf()) {
|
|
7659
|
+
diff.created_at = current.created_at;
|
|
7660
|
+
}
|
|
7661
|
+
if (current.updated_at === null && last.updated_at === undefined) {
|
|
7662
|
+
diff.updated_at = current.updated_at;
|
|
7663
|
+
}
|
|
7664
|
+
else if (current.updated_at == null && last.updated_at == null) {
|
|
7665
|
+
}
|
|
7666
|
+
else if ((current.updated_at != null && last.updated_at == null) || (current.updated_at == null && last.updated_at != null)) {
|
|
6999
7667
|
diff.updated_at = current.updated_at;
|
|
7000
7668
|
}
|
|
7001
7669
|
else if (last.updated_at.valueOf() !== current.updated_at.valueOf()) {
|
|
7002
7670
|
diff.updated_at = current.updated_at;
|
|
7003
7671
|
}
|
|
7672
|
+
if (current.client_epoch === null && last.client_epoch === undefined) {
|
|
7673
|
+
diff.client_epoch = current.client_epoch;
|
|
7674
|
+
}
|
|
7675
|
+
else if (current.client_epoch == null && last.client_epoch == null) {
|
|
7676
|
+
}
|
|
7677
|
+
else if ((current.client_epoch != null && last.client_epoch == null) || (current.client_epoch == null && last.client_epoch != null)) {
|
|
7678
|
+
diff.client_epoch = current.client_epoch;
|
|
7679
|
+
}
|
|
7680
|
+
else if (last.client_epoch !== current.client_epoch) {
|
|
7681
|
+
diff.client_epoch = current.client_epoch;
|
|
7682
|
+
}
|
|
7683
|
+
if (current.user_epoch === null && last.user_epoch === undefined) {
|
|
7684
|
+
diff.user_epoch = current.user_epoch;
|
|
7685
|
+
}
|
|
7686
|
+
else if (current.user_epoch == null && last.user_epoch == null) {
|
|
7687
|
+
}
|
|
7688
|
+
else if ((current.user_epoch != null && last.user_epoch == null) || (current.user_epoch == null && last.user_epoch != null)) {
|
|
7689
|
+
diff.user_epoch = current.user_epoch;
|
|
7690
|
+
}
|
|
7691
|
+
else if (last.user_epoch !== current.user_epoch) {
|
|
7692
|
+
diff.user_epoch = current.user_epoch;
|
|
7693
|
+
}
|
|
7694
|
+
if (current.grant_id === null && last.grant_id === undefined) {
|
|
7695
|
+
diff.grant_id = current.grant_id;
|
|
7696
|
+
}
|
|
7697
|
+
else if (current.grant_id == null && last.grant_id == null) {
|
|
7698
|
+
}
|
|
7699
|
+
else if ((current.grant_id != null && last.grant_id == null) || (current.grant_id == null && last.grant_id != null)) {
|
|
7700
|
+
diff.grant_id = current.grant_id;
|
|
7701
|
+
}
|
|
7702
|
+
else if (last.grant_id !== current.grant_id) {
|
|
7703
|
+
diff.grant_id = current.grant_id;
|
|
7704
|
+
}
|
|
7004
7705
|
if (current.deviceCodeHash === null && last.deviceCodeHash === undefined) {
|
|
7005
7706
|
diff.deviceCodeHash = current.deviceCodeHash;
|
|
7006
7707
|
}
|
|
@@ -7127,7 +7828,7 @@ export default {
|
|
|
7127
7828
|
return diff;
|
|
7128
7829
|
};
|
|
7129
7830
|
},
|
|
7130
|
-
'snapshotGenerator-
|
|
7831
|
+
'snapshotGenerator-oauth_device_code_13000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier, convertToDatabaseValue_scope) {
|
|
7131
7832
|
return function (entity) {
|
|
7132
7833
|
const ret = {};
|
|
7133
7834
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -7139,6 +7840,15 @@ export default {
|
|
|
7139
7840
|
if (typeof entity.updated_at !== 'undefined') {
|
|
7140
7841
|
ret.updated_at = clone(processDateProperty(entity.updated_at));
|
|
7141
7842
|
}
|
|
7843
|
+
if (typeof entity.client_epoch !== 'undefined') {
|
|
7844
|
+
ret.client_epoch = entity.client_epoch;
|
|
7845
|
+
}
|
|
7846
|
+
if (typeof entity.user_epoch !== 'undefined') {
|
|
7847
|
+
ret.user_epoch = entity.user_epoch;
|
|
7848
|
+
}
|
|
7849
|
+
if (typeof entity.grant_id !== 'undefined') {
|
|
7850
|
+
ret.grant_id = entity.grant_id;
|
|
7851
|
+
}
|
|
7142
7852
|
if (typeof entity.deviceCodeHash !== 'undefined') {
|
|
7143
7853
|
ret.deviceCodeHash = entity.deviceCodeHash;
|
|
7144
7854
|
}
|
|
@@ -7191,7 +7901,7 @@ export default {
|
|
|
7191
7901
|
return ret;
|
|
7192
7902
|
};
|
|
7193
7903
|
},
|
|
7194
|
-
'resultMapper-
|
|
7904
|
+
'resultMapper-oauth_device_code_13000': function (PolymorphicRef, parseDate) {
|
|
7195
7905
|
// compiled mapper for entity OAuthDeviceCodeEntity
|
|
7196
7906
|
return function (result) {
|
|
7197
7907
|
const ret = {};
|
|
@@ -7230,6 +7940,18 @@ export default {
|
|
|
7230
7940
|
}
|
|
7231
7941
|
mapped.updated_at = true;
|
|
7232
7942
|
}
|
|
7943
|
+
if (typeof result.client_epoch !== 'undefined') {
|
|
7944
|
+
ret.client_epoch = result.client_epoch;
|
|
7945
|
+
mapped.client_epoch = true;
|
|
7946
|
+
}
|
|
7947
|
+
if (typeof result.user_epoch !== 'undefined') {
|
|
7948
|
+
ret.user_epoch = result.user_epoch;
|
|
7949
|
+
mapped.user_epoch = true;
|
|
7950
|
+
}
|
|
7951
|
+
if (typeof result.grant_id !== 'undefined') {
|
|
7952
|
+
ret.grant_id = result.grant_id;
|
|
7953
|
+
mapped.grant_id = true;
|
|
7954
|
+
}
|
|
7233
7955
|
if (typeof result.device_code_hash !== 'undefined') {
|
|
7234
7956
|
ret.deviceCodeHash = result.device_code_hash;
|
|
7235
7957
|
mapped.device_code_hash = true;
|
|
@@ -7336,7 +8058,7 @@ export default {
|
|
|
7336
8058
|
return ret;
|
|
7337
8059
|
};
|
|
7338
8060
|
},
|
|
7339
|
-
'hydrator-
|
|
8061
|
+
'hydrator-oauth_device_code_13000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
7340
8062
|
// compiled hydrator for entity OAuthDeviceCodeEntity ( normalized)
|
|
7341
8063
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7342
8064
|
if (data.id === null) {
|
|
@@ -7353,7 +8075,7 @@ export default {
|
|
|
7353
8075
|
}
|
|
7354
8076
|
};
|
|
7355
8077
|
},
|
|
7356
|
-
'hydrator-
|
|
8078
|
+
'hydrator-oauth_device_code_13000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
7357
8079
|
// compiled hydrator for entity OAuthDeviceCodeEntity ( normalized)
|
|
7358
8080
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7359
8081
|
if (data.id === null) {
|
|
@@ -7370,26 +8092,26 @@ export default {
|
|
|
7370
8092
|
}
|
|
7371
8093
|
};
|
|
7372
8094
|
},
|
|
7373
|
-
'pkGetter-
|
|
8095
|
+
'pkGetter-oauth_device_code_13000': function (isEntityOrRef) {
|
|
7374
8096
|
// compiled pk getter for entity OAuthDeviceCodeEntity
|
|
7375
8097
|
return function (entity) {
|
|
7376
8098
|
return entity.id;
|
|
7377
8099
|
};
|
|
7378
8100
|
},
|
|
7379
|
-
'pkGetterConverted-
|
|
8101
|
+
'pkGetterConverted-oauth_device_code_13000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
7380
8102
|
// compiled pk getter (with converted custom types) for entity OAuthDeviceCodeEntity
|
|
7381
8103
|
return function (entity) {
|
|
7382
8104
|
return convertToDatabaseValue_id(entity.id);
|
|
7383
8105
|
};
|
|
7384
8106
|
},
|
|
7385
|
-
'pkSerializer-
|
|
8107
|
+
'pkSerializer-oauth_device_code_13000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
7386
8108
|
// compiled pk serializer for entity OAuthDeviceCodeEntity
|
|
7387
8109
|
return function (entity) {
|
|
7388
8110
|
const val_11 = convertToDatabaseValue_id(entity.id);
|
|
7389
8111
|
return getPrimaryKeyHash(val_11);
|
|
7390
8112
|
};
|
|
7391
8113
|
},
|
|
7392
|
-
'hydrator-
|
|
8114
|
+
'hydrator-oauth_code_12000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_381, oauth_client_382, user_383, user_384, convertToJSValue_scope, convertToDatabaseValue_scope) {
|
|
7393
8115
|
// compiled hydrator for entity OAuthCodeEntity ( normalized)
|
|
7394
8116
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7395
8117
|
if (data.id === null) {
|
|
@@ -7432,6 +8154,24 @@ export default {
|
|
|
7432
8154
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
7433
8155
|
}
|
|
7434
8156
|
}
|
|
8157
|
+
if (data.client_epoch === null) {
|
|
8158
|
+
entity.client_epoch = null;
|
|
8159
|
+
}
|
|
8160
|
+
else if (typeof data.client_epoch !== 'undefined') {
|
|
8161
|
+
entity.client_epoch = data.client_epoch;
|
|
8162
|
+
}
|
|
8163
|
+
if (data.user_epoch === null) {
|
|
8164
|
+
entity.user_epoch = null;
|
|
8165
|
+
}
|
|
8166
|
+
else if (typeof data.user_epoch !== 'undefined') {
|
|
8167
|
+
entity.user_epoch = data.user_epoch;
|
|
8168
|
+
}
|
|
8169
|
+
if (data.grant_id === null) {
|
|
8170
|
+
entity.grant_id = null;
|
|
8171
|
+
}
|
|
8172
|
+
else if (typeof data.grant_id !== 'undefined') {
|
|
8173
|
+
entity.grant_id = data.grant_id;
|
|
8174
|
+
}
|
|
7435
8175
|
if (data.codeHash === null) {
|
|
7436
8176
|
entity.codeHash = null;
|
|
7437
8177
|
}
|
|
@@ -7443,10 +8183,10 @@ export default {
|
|
|
7443
8183
|
}
|
|
7444
8184
|
else if (typeof data.client !== 'undefined') {
|
|
7445
8185
|
if (isPrimaryKey(data.client, true)) {
|
|
7446
|
-
entity.client = factory.createReference(
|
|
8186
|
+
entity.client = factory.createReference(oauth_client_381, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
7447
8187
|
}
|
|
7448
8188
|
else if (data.client && typeof data.client === 'object') {
|
|
7449
|
-
entity.client = factory.create(
|
|
8189
|
+
entity.client = factory.create(oauth_client_382, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
7450
8190
|
}
|
|
7451
8191
|
}
|
|
7452
8192
|
if (data.user === null) {
|
|
@@ -7454,10 +8194,10 @@ export default {
|
|
|
7454
8194
|
}
|
|
7455
8195
|
else if (typeof data.user !== 'undefined') {
|
|
7456
8196
|
if (isPrimaryKey(data.user, true)) {
|
|
7457
|
-
entity.user = Reference.create(factory.createReference(
|
|
8197
|
+
entity.user = Reference.create(factory.createReference(user_383, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
7458
8198
|
}
|
|
7459
8199
|
else if (data.user && typeof data.user === 'object') {
|
|
7460
|
-
entity.user = Reference.create(factory.create(
|
|
8200
|
+
entity.user = Reference.create(factory.create(user_384, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
7461
8201
|
}
|
|
7462
8202
|
}
|
|
7463
8203
|
if (data.redirectUri === null) {
|
|
@@ -7533,7 +8273,7 @@ export default {
|
|
|
7533
8273
|
}
|
|
7534
8274
|
};
|
|
7535
8275
|
},
|
|
7536
|
-
'hydrator-
|
|
8276
|
+
'hydrator-oauth_code_12000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_400, oauth_client_401, user_402, user_403, convertToJSValue_scope, convertToDatabaseValue_scope) {
|
|
7537
8277
|
// compiled hydrator for entity OAuthCodeEntity ( normalized)
|
|
7538
8278
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7539
8279
|
if (data.id === null) {
|
|
@@ -7576,6 +8316,24 @@ export default {
|
|
|
7576
8316
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
7577
8317
|
}
|
|
7578
8318
|
}
|
|
8319
|
+
if (data.client_epoch === null) {
|
|
8320
|
+
entity.client_epoch = null;
|
|
8321
|
+
}
|
|
8322
|
+
else if (typeof data.client_epoch !== 'undefined') {
|
|
8323
|
+
entity.client_epoch = data.client_epoch;
|
|
8324
|
+
}
|
|
8325
|
+
if (data.user_epoch === null) {
|
|
8326
|
+
entity.user_epoch = null;
|
|
8327
|
+
}
|
|
8328
|
+
else if (typeof data.user_epoch !== 'undefined') {
|
|
8329
|
+
entity.user_epoch = data.user_epoch;
|
|
8330
|
+
}
|
|
8331
|
+
if (data.grant_id === null) {
|
|
8332
|
+
entity.grant_id = null;
|
|
8333
|
+
}
|
|
8334
|
+
else if (typeof data.grant_id !== 'undefined') {
|
|
8335
|
+
entity.grant_id = data.grant_id;
|
|
8336
|
+
}
|
|
7579
8337
|
if (data.codeHash === null) {
|
|
7580
8338
|
entity.codeHash = null;
|
|
7581
8339
|
}
|
|
@@ -7587,10 +8345,10 @@ export default {
|
|
|
7587
8345
|
}
|
|
7588
8346
|
else if (typeof data.client !== 'undefined') {
|
|
7589
8347
|
if (isPrimaryKey(data.client, true)) {
|
|
7590
|
-
entity.client = factory.createReference(
|
|
8348
|
+
entity.client = factory.createReference(oauth_client_400, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
7591
8349
|
}
|
|
7592
8350
|
else if (data.client && typeof data.client === 'object') {
|
|
7593
|
-
entity.client = factory.create(
|
|
8351
|
+
entity.client = factory.create(oauth_client_401, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
7594
8352
|
}
|
|
7595
8353
|
}
|
|
7596
8354
|
if (data.user === null) {
|
|
@@ -7598,10 +8356,10 @@ export default {
|
|
|
7598
8356
|
}
|
|
7599
8357
|
else if (typeof data.user !== 'undefined') {
|
|
7600
8358
|
if (isPrimaryKey(data.user, true)) {
|
|
7601
|
-
entity.user = Reference.create(factory.createReference(
|
|
8359
|
+
entity.user = Reference.create(factory.createReference(user_402, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
7602
8360
|
}
|
|
7603
8361
|
else if (data.user && typeof data.user === 'object') {
|
|
7604
|
-
entity.user = Reference.create(factory.create(
|
|
8362
|
+
entity.user = Reference.create(factory.create(user_403, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
7605
8363
|
}
|
|
7606
8364
|
}
|
|
7607
8365
|
if (data.redirectUri === null) {
|
|
@@ -7677,7 +8435,7 @@ export default {
|
|
|
7677
8435
|
}
|
|
7678
8436
|
};
|
|
7679
8437
|
},
|
|
7680
|
-
'comparator-
|
|
8438
|
+
'comparator-oauth_code_12000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
7681
8439
|
// compiled comparator for entity OAuthCodeEntity
|
|
7682
8440
|
return function (last, current, options) {
|
|
7683
8441
|
const diff = {};
|
|
@@ -7714,6 +8472,39 @@ export default {
|
|
|
7714
8472
|
else if (last.updated_at.valueOf() !== current.updated_at.valueOf()) {
|
|
7715
8473
|
diff.updated_at = current.updated_at;
|
|
7716
8474
|
}
|
|
8475
|
+
if (current.client_epoch === null && last.client_epoch === undefined) {
|
|
8476
|
+
diff.client_epoch = current.client_epoch;
|
|
8477
|
+
}
|
|
8478
|
+
else if (current.client_epoch == null && last.client_epoch == null) {
|
|
8479
|
+
}
|
|
8480
|
+
else if ((current.client_epoch != null && last.client_epoch == null) || (current.client_epoch == null && last.client_epoch != null)) {
|
|
8481
|
+
diff.client_epoch = current.client_epoch;
|
|
8482
|
+
}
|
|
8483
|
+
else if (last.client_epoch !== current.client_epoch) {
|
|
8484
|
+
diff.client_epoch = current.client_epoch;
|
|
8485
|
+
}
|
|
8486
|
+
if (current.user_epoch === null && last.user_epoch === undefined) {
|
|
8487
|
+
diff.user_epoch = current.user_epoch;
|
|
8488
|
+
}
|
|
8489
|
+
else if (current.user_epoch == null && last.user_epoch == null) {
|
|
8490
|
+
}
|
|
8491
|
+
else if ((current.user_epoch != null && last.user_epoch == null) || (current.user_epoch == null && last.user_epoch != null)) {
|
|
8492
|
+
diff.user_epoch = current.user_epoch;
|
|
8493
|
+
}
|
|
8494
|
+
else if (last.user_epoch !== current.user_epoch) {
|
|
8495
|
+
diff.user_epoch = current.user_epoch;
|
|
8496
|
+
}
|
|
8497
|
+
if (current.grant_id === null && last.grant_id === undefined) {
|
|
8498
|
+
diff.grant_id = current.grant_id;
|
|
8499
|
+
}
|
|
8500
|
+
else if (current.grant_id == null && last.grant_id == null) {
|
|
8501
|
+
}
|
|
8502
|
+
else if ((current.grant_id != null && last.grant_id == null) || (current.grant_id == null && last.grant_id != null)) {
|
|
8503
|
+
diff.grant_id = current.grant_id;
|
|
8504
|
+
}
|
|
8505
|
+
else if (last.grant_id !== current.grant_id) {
|
|
8506
|
+
diff.grant_id = current.grant_id;
|
|
8507
|
+
}
|
|
7717
8508
|
if (current.codeHash === null && last.codeHash === undefined) {
|
|
7718
8509
|
diff.codeHash = current.codeHash;
|
|
7719
8510
|
}
|
|
@@ -7840,7 +8631,7 @@ export default {
|
|
|
7840
8631
|
return diff;
|
|
7841
8632
|
};
|
|
7842
8633
|
},
|
|
7843
|
-
'snapshotGenerator-
|
|
8634
|
+
'snapshotGenerator-oauth_code_12000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier, convertToDatabaseValue_scope) {
|
|
7844
8635
|
return function (entity) {
|
|
7845
8636
|
const ret = {};
|
|
7846
8637
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -7852,6 +8643,15 @@ export default {
|
|
|
7852
8643
|
if (typeof entity.updated_at !== 'undefined') {
|
|
7853
8644
|
ret.updated_at = clone(processDateProperty(entity.updated_at));
|
|
7854
8645
|
}
|
|
8646
|
+
if (typeof entity.client_epoch !== 'undefined') {
|
|
8647
|
+
ret.client_epoch = entity.client_epoch;
|
|
8648
|
+
}
|
|
8649
|
+
if (typeof entity.user_epoch !== 'undefined') {
|
|
8650
|
+
ret.user_epoch = entity.user_epoch;
|
|
8651
|
+
}
|
|
8652
|
+
if (typeof entity.grant_id !== 'undefined') {
|
|
8653
|
+
ret.grant_id = entity.grant_id;
|
|
8654
|
+
}
|
|
7855
8655
|
if (typeof entity.codeHash !== 'undefined') {
|
|
7856
8656
|
ret.codeHash = entity.codeHash;
|
|
7857
8657
|
}
|
|
@@ -7904,7 +8704,7 @@ export default {
|
|
|
7904
8704
|
return ret;
|
|
7905
8705
|
};
|
|
7906
8706
|
},
|
|
7907
|
-
'resultMapper-
|
|
8707
|
+
'resultMapper-oauth_code_12000': function (PolymorphicRef, parseDate) {
|
|
7908
8708
|
// compiled mapper for entity OAuthCodeEntity
|
|
7909
8709
|
return function (result) {
|
|
7910
8710
|
const ret = {};
|
|
@@ -7943,6 +8743,18 @@ export default {
|
|
|
7943
8743
|
}
|
|
7944
8744
|
mapped.updated_at = true;
|
|
7945
8745
|
}
|
|
8746
|
+
if (typeof result.client_epoch !== 'undefined') {
|
|
8747
|
+
ret.client_epoch = result.client_epoch;
|
|
8748
|
+
mapped.client_epoch = true;
|
|
8749
|
+
}
|
|
8750
|
+
if (typeof result.user_epoch !== 'undefined') {
|
|
8751
|
+
ret.user_epoch = result.user_epoch;
|
|
8752
|
+
mapped.user_epoch = true;
|
|
8753
|
+
}
|
|
8754
|
+
if (typeof result.grant_id !== 'undefined') {
|
|
8755
|
+
ret.grant_id = result.grant_id;
|
|
8756
|
+
mapped.grant_id = true;
|
|
8757
|
+
}
|
|
7946
8758
|
if (typeof result.code_hash !== 'undefined') {
|
|
7947
8759
|
ret.codeHash = result.code_hash;
|
|
7948
8760
|
mapped.code_hash = true;
|
|
@@ -8016,7 +8828,7 @@ export default {
|
|
|
8016
8828
|
return ret;
|
|
8017
8829
|
};
|
|
8018
8830
|
},
|
|
8019
|
-
'hydrator-
|
|
8831
|
+
'hydrator-oauth_code_12000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
8020
8832
|
// compiled hydrator for entity OAuthCodeEntity ( normalized)
|
|
8021
8833
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
8022
8834
|
if (data.id === null) {
|
|
@@ -8033,7 +8845,7 @@ export default {
|
|
|
8033
8845
|
}
|
|
8034
8846
|
};
|
|
8035
8847
|
},
|
|
8036
|
-
'hydrator-
|
|
8848
|
+
'hydrator-oauth_code_12000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
8037
8849
|
// compiled hydrator for entity OAuthCodeEntity ( normalized)
|
|
8038
8850
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
8039
8851
|
if (data.id === null) {
|
|
@@ -8050,26 +8862,26 @@ export default {
|
|
|
8050
8862
|
}
|
|
8051
8863
|
};
|
|
8052
8864
|
},
|
|
8053
|
-
'pkGetter-
|
|
8865
|
+
'pkGetter-oauth_code_12000': function (isEntityOrRef) {
|
|
8054
8866
|
// compiled pk getter for entity OAuthCodeEntity
|
|
8055
8867
|
return function (entity) {
|
|
8056
8868
|
return entity.id;
|
|
8057
8869
|
};
|
|
8058
8870
|
},
|
|
8059
|
-
'pkGetterConverted-
|
|
8871
|
+
'pkGetterConverted-oauth_code_12000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
8060
8872
|
// compiled pk getter (with converted custom types) for entity OAuthCodeEntity
|
|
8061
8873
|
return function (entity) {
|
|
8062
8874
|
return convertToDatabaseValue_id(entity.id);
|
|
8063
8875
|
};
|
|
8064
8876
|
},
|
|
8065
|
-
'pkSerializer-
|
|
8877
|
+
'pkSerializer-oauth_code_12000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
8066
8878
|
// compiled pk serializer for entity OAuthCodeEntity
|
|
8067
8879
|
return function (entity) {
|
|
8068
8880
|
const val_12 = convertToDatabaseValue_id(entity.id);
|
|
8069
8881
|
return getPrimaryKeyHash(val_12);
|
|
8070
8882
|
};
|
|
8071
8883
|
},
|
|
8072
|
-
'hydrator-
|
|
8884
|
+
'hydrator-oauth_client_16000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_grantTypes, convertToDatabaseValue_grantTypes, convertToJSValue_responseTypes, convertToDatabaseValue_responseTypes, convertToJSValue_scopes, convertToDatabaseValue_scopes, convertToJSValue_redirectUris, convertToDatabaseValue_redirectUris, convertToJSValue_postLogoutRedirectUris, convertToDatabaseValue_postLogoutRedirectUris, convertToJSValue_webOrigins, convertToDatabaseValue_webOrigins, oauth_code_432, oauth_device_code_433, user_consent_434, revoked_tokens_435) {
|
|
8073
8885
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
8074
8886
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
8075
8887
|
if (data.id === null) {
|
|
@@ -8248,10 +9060,10 @@ export default {
|
|
|
8248
9060
|
}
|
|
8249
9061
|
const createCollectionItem_codes = (value, entity) => {
|
|
8250
9062
|
if (isPrimaryKey(value, false))
|
|
8251
|
-
return factory.createReference(
|
|
9063
|
+
return factory.createReference(oauth_code_432, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8252
9064
|
if (value && isEntity(value))
|
|
8253
9065
|
return value;
|
|
8254
|
-
return factory.create(
|
|
9066
|
+
return factory.create(oauth_code_432, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8255
9067
|
};
|
|
8256
9068
|
if (data.codes && !Array.isArray(data.codes) && typeof data.codes === 'object') {
|
|
8257
9069
|
data.codes = [data.codes];
|
|
@@ -8275,10 +9087,10 @@ export default {
|
|
|
8275
9087
|
}
|
|
8276
9088
|
const createCollectionItem_deviceCodes = (value, entity) => {
|
|
8277
9089
|
if (isPrimaryKey(value, false))
|
|
8278
|
-
return factory.createReference(
|
|
9090
|
+
return factory.createReference(oauth_device_code_433, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8279
9091
|
if (value && isEntity(value))
|
|
8280
9092
|
return value;
|
|
8281
|
-
return factory.create(
|
|
9093
|
+
return factory.create(oauth_device_code_433, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8282
9094
|
};
|
|
8283
9095
|
if (data.deviceCodes && !Array.isArray(data.deviceCodes) && typeof data.deviceCodes === 'object') {
|
|
8284
9096
|
data.deviceCodes = [data.deviceCodes];
|
|
@@ -8302,10 +9114,10 @@ export default {
|
|
|
8302
9114
|
}
|
|
8303
9115
|
const createCollectionItem_consents = (value, entity) => {
|
|
8304
9116
|
if (isPrimaryKey(value, false))
|
|
8305
|
-
return factory.createReference(
|
|
9117
|
+
return factory.createReference(user_consent_434, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8306
9118
|
if (value && isEntity(value))
|
|
8307
9119
|
return value;
|
|
8308
|
-
return factory.create(
|
|
9120
|
+
return factory.create(user_consent_434, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8309
9121
|
};
|
|
8310
9122
|
if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
|
|
8311
9123
|
data.consents = [data.consents];
|
|
@@ -8329,10 +9141,10 @@ export default {
|
|
|
8329
9141
|
}
|
|
8330
9142
|
const createCollectionItem_revokedTokens = (value, entity) => {
|
|
8331
9143
|
if (isPrimaryKey(value, false))
|
|
8332
|
-
return factory.createReference(
|
|
9144
|
+
return factory.createReference(revoked_tokens_435, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8333
9145
|
if (value && isEntity(value))
|
|
8334
9146
|
return value;
|
|
8335
|
-
return factory.create(
|
|
9147
|
+
return factory.create(revoked_tokens_435, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8336
9148
|
};
|
|
8337
9149
|
if (data.revokedTokens && !Array.isArray(data.revokedTokens) && typeof data.revokedTokens === 'object') {
|
|
8338
9150
|
data.revokedTokens = [data.revokedTokens];
|
|
@@ -8356,7 +9168,7 @@ export default {
|
|
|
8356
9168
|
}
|
|
8357
9169
|
};
|
|
8358
9170
|
},
|
|
8359
|
-
'hydrator-
|
|
9171
|
+
'hydrator-oauth_client_16000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_grantTypes, convertToDatabaseValue_grantTypes, convertToJSValue_responseTypes, convertToDatabaseValue_responseTypes, convertToJSValue_scopes, convertToDatabaseValue_scopes, convertToJSValue_redirectUris, convertToDatabaseValue_redirectUris, convertToJSValue_postLogoutRedirectUris, convertToDatabaseValue_postLogoutRedirectUris, convertToJSValue_webOrigins, convertToDatabaseValue_webOrigins, oauth_code_454, oauth_device_code_455, user_consent_456, revoked_tokens_457) {
|
|
8360
9172
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
8361
9173
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
8362
9174
|
if (data.id === null) {
|
|
@@ -8535,10 +9347,10 @@ export default {
|
|
|
8535
9347
|
}
|
|
8536
9348
|
const createCollectionItem_codes = (value, entity) => {
|
|
8537
9349
|
if (isPrimaryKey(value, false))
|
|
8538
|
-
return factory.createReference(
|
|
9350
|
+
return factory.createReference(oauth_code_454, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8539
9351
|
if (value && isEntity(value))
|
|
8540
9352
|
return value;
|
|
8541
|
-
return factory.create(
|
|
9353
|
+
return factory.create(oauth_code_454, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8542
9354
|
};
|
|
8543
9355
|
if (data.codes && !Array.isArray(data.codes) && typeof data.codes === 'object') {
|
|
8544
9356
|
data.codes = [data.codes];
|
|
@@ -8562,10 +9374,10 @@ export default {
|
|
|
8562
9374
|
}
|
|
8563
9375
|
const createCollectionItem_deviceCodes = (value, entity) => {
|
|
8564
9376
|
if (isPrimaryKey(value, false))
|
|
8565
|
-
return factory.createReference(
|
|
9377
|
+
return factory.createReference(oauth_device_code_455, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8566
9378
|
if (value && isEntity(value))
|
|
8567
9379
|
return value;
|
|
8568
|
-
return factory.create(
|
|
9380
|
+
return factory.create(oauth_device_code_455, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8569
9381
|
};
|
|
8570
9382
|
if (data.deviceCodes && !Array.isArray(data.deviceCodes) && typeof data.deviceCodes === 'object') {
|
|
8571
9383
|
data.deviceCodes = [data.deviceCodes];
|
|
@@ -8589,10 +9401,10 @@ export default {
|
|
|
8589
9401
|
}
|
|
8590
9402
|
const createCollectionItem_consents = (value, entity) => {
|
|
8591
9403
|
if (isPrimaryKey(value, false))
|
|
8592
|
-
return factory.createReference(
|
|
9404
|
+
return factory.createReference(user_consent_456, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8593
9405
|
if (value && isEntity(value))
|
|
8594
9406
|
return value;
|
|
8595
|
-
return factory.create(
|
|
9407
|
+
return factory.create(user_consent_456, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8596
9408
|
};
|
|
8597
9409
|
if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
|
|
8598
9410
|
data.consents = [data.consents];
|
|
@@ -8616,10 +9428,10 @@ export default {
|
|
|
8616
9428
|
}
|
|
8617
9429
|
const createCollectionItem_revokedTokens = (value, entity) => {
|
|
8618
9430
|
if (isPrimaryKey(value, false))
|
|
8619
|
-
return factory.createReference(
|
|
9431
|
+
return factory.createReference(revoked_tokens_457, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8620
9432
|
if (value && isEntity(value))
|
|
8621
9433
|
return value;
|
|
8622
|
-
return factory.create(
|
|
9434
|
+
return factory.create(revoked_tokens_457, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8623
9435
|
};
|
|
8624
9436
|
if (data.revokedTokens && !Array.isArray(data.revokedTokens) && typeof data.revokedTokens === 'object') {
|
|
8625
9437
|
data.revokedTokens = [data.revokedTokens];
|
|
@@ -8643,7 +9455,7 @@ export default {
|
|
|
8643
9455
|
}
|
|
8644
9456
|
};
|
|
8645
9457
|
},
|
|
8646
|
-
'comparator-
|
|
9458
|
+
'comparator-oauth_client_16000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
8647
9459
|
// compiled comparator for entity OAuthClientEntity
|
|
8648
9460
|
return function (last, current, options) {
|
|
8649
9461
|
const diff = {};
|
|
@@ -8850,7 +9662,7 @@ export default {
|
|
|
8850
9662
|
return diff;
|
|
8851
9663
|
};
|
|
8852
9664
|
},
|
|
8853
|
-
'snapshotGenerator-
|
|
9665
|
+
'snapshotGenerator-oauth_client_16000': function (clone, cloneEmbeddable, processDateProperty, convertToDatabaseValue_grantTypes, convertToDatabaseValue_responseTypes, convertToDatabaseValue_scopes, convertToDatabaseValue_redirectUris, convertToDatabaseValue_postLogoutRedirectUris, convertToDatabaseValue_webOrigins) {
|
|
8854
9666
|
return function (entity) {
|
|
8855
9667
|
const ret = {};
|
|
8856
9668
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -8910,7 +9722,7 @@ export default {
|
|
|
8910
9722
|
return ret;
|
|
8911
9723
|
};
|
|
8912
9724
|
},
|
|
8913
|
-
'resultMapper-
|
|
9725
|
+
'resultMapper-oauth_client_16000': function (PolymorphicRef, parseDate) {
|
|
8914
9726
|
// compiled mapper for entity OAuthClientEntity
|
|
8915
9727
|
return function (result) {
|
|
8916
9728
|
const ret = {};
|
|
@@ -9027,7 +9839,7 @@ export default {
|
|
|
9027
9839
|
return ret;
|
|
9028
9840
|
};
|
|
9029
9841
|
},
|
|
9030
|
-
'hydrator-
|
|
9842
|
+
'hydrator-oauth_client_16000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
9031
9843
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
9032
9844
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9033
9845
|
if (data.id === null) {
|
|
@@ -9038,7 +9850,7 @@ export default {
|
|
|
9038
9850
|
}
|
|
9039
9851
|
};
|
|
9040
9852
|
},
|
|
9041
|
-
'hydrator-
|
|
9853
|
+
'hydrator-oauth_client_16000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
9042
9854
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
9043
9855
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9044
9856
|
if (data.id === null) {
|
|
@@ -9049,25 +9861,25 @@ export default {
|
|
|
9049
9861
|
}
|
|
9050
9862
|
};
|
|
9051
9863
|
},
|
|
9052
|
-
'pkGetter-
|
|
9864
|
+
'pkGetter-oauth_client_16000': function (isEntityOrRef) {
|
|
9053
9865
|
// compiled pk getter for entity OAuthClientEntity
|
|
9054
9866
|
return function (entity) {
|
|
9055
9867
|
return entity.id;
|
|
9056
9868
|
};
|
|
9057
9869
|
},
|
|
9058
|
-
'pkGetterConverted-
|
|
9870
|
+
'pkGetterConverted-oauth_client_16000': function (isEntityOrRef) {
|
|
9059
9871
|
// compiled pk getter (with converted custom types) for entity OAuthClientEntity
|
|
9060
9872
|
return function (entity) {
|
|
9061
9873
|
return entity.id;
|
|
9062
9874
|
};
|
|
9063
9875
|
},
|
|
9064
|
-
'pkSerializer-
|
|
9876
|
+
'pkSerializer-oauth_client_16000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
9065
9877
|
// compiled pk serializer for entity OAuthClientEntity
|
|
9066
9878
|
return function (entity) {
|
|
9067
9879
|
return '' + entity.id;
|
|
9068
9880
|
};
|
|
9069
9881
|
},
|
|
9070
|
-
'hydrator-
|
|
9882
|
+
'hydrator-jwt_key_11000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
9071
9883
|
// compiled hydrator for entity JwtKeyEntity ( normalized)
|
|
9072
9884
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9073
9885
|
if (data.kid === null) {
|
|
@@ -9186,7 +9998,7 @@ export default {
|
|
|
9186
9998
|
}
|
|
9187
9999
|
};
|
|
9188
10000
|
},
|
|
9189
|
-
'hydrator-
|
|
10001
|
+
'hydrator-jwt_key_11000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
9190
10002
|
// compiled hydrator for entity JwtKeyEntity ( normalized)
|
|
9191
10003
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9192
10004
|
if (data.kid === null) {
|
|
@@ -9305,7 +10117,7 @@ export default {
|
|
|
9305
10117
|
}
|
|
9306
10118
|
};
|
|
9307
10119
|
},
|
|
9308
|
-
'comparator-
|
|
10120
|
+
'comparator-jwt_key_11000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
9309
10121
|
// compiled comparator for entity JwtKeyEntity
|
|
9310
10122
|
return function (last, current, options) {
|
|
9311
10123
|
const diff = {};
|
|
@@ -9435,7 +10247,7 @@ export default {
|
|
|
9435
10247
|
return diff;
|
|
9436
10248
|
};
|
|
9437
10249
|
},
|
|
9438
|
-
'snapshotGenerator-
|
|
10250
|
+
'snapshotGenerator-jwt_key_11000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
9439
10251
|
return function (entity) {
|
|
9440
10252
|
const ret = {};
|
|
9441
10253
|
if (typeof entity.kid !== 'undefined') {
|
|
@@ -9474,7 +10286,7 @@ export default {
|
|
|
9474
10286
|
return ret;
|
|
9475
10287
|
};
|
|
9476
10288
|
},
|
|
9477
|
-
'resultMapper-
|
|
10289
|
+
'resultMapper-jwt_key_11000': function (PolymorphicRef, parseDate) {
|
|
9478
10290
|
// compiled mapper for entity JwtKeyEntity
|
|
9479
10291
|
return function (result) {
|
|
9480
10292
|
const ret = {};
|
|
@@ -9596,7 +10408,7 @@ export default {
|
|
|
9596
10408
|
return ret;
|
|
9597
10409
|
};
|
|
9598
10410
|
},
|
|
9599
|
-
'hydrator-
|
|
10411
|
+
'hydrator-jwt_key_11000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
9600
10412
|
// compiled hydrator for entity JwtKeyEntity ( normalized)
|
|
9601
10413
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9602
10414
|
if (data.kid === null) {
|
|
@@ -9607,7 +10419,7 @@ export default {
|
|
|
9607
10419
|
}
|
|
9608
10420
|
};
|
|
9609
10421
|
},
|
|
9610
|
-
'hydrator-
|
|
10422
|
+
'hydrator-jwt_key_11000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
9611
10423
|
// compiled hydrator for entity JwtKeyEntity ( normalized)
|
|
9612
10424
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9613
10425
|
if (data.kid === null) {
|
|
@@ -9618,25 +10430,25 @@ export default {
|
|
|
9618
10430
|
}
|
|
9619
10431
|
};
|
|
9620
10432
|
},
|
|
9621
|
-
'pkGetter-
|
|
10433
|
+
'pkGetter-jwt_key_11000': function (isEntityOrRef) {
|
|
9622
10434
|
// compiled pk getter for entity JwtKeyEntity
|
|
9623
10435
|
return function (entity) {
|
|
9624
10436
|
return entity.kid;
|
|
9625
10437
|
};
|
|
9626
10438
|
},
|
|
9627
|
-
'pkGetterConverted-
|
|
10439
|
+
'pkGetterConverted-jwt_key_11000': function (isEntityOrRef) {
|
|
9628
10440
|
// compiled pk getter (with converted custom types) for entity JwtKeyEntity
|
|
9629
10441
|
return function (entity) {
|
|
9630
10442
|
return entity.kid;
|
|
9631
10443
|
};
|
|
9632
10444
|
},
|
|
9633
|
-
'pkSerializer-
|
|
10445
|
+
'pkSerializer-jwt_key_11000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
9634
10446
|
// compiled pk serializer for entity JwtKeyEntity
|
|
9635
10447
|
return function (entity) {
|
|
9636
10448
|
return '' + entity.kid;
|
|
9637
10449
|
};
|
|
9638
10450
|
},
|
|
9639
|
-
'hydrator-
|
|
10451
|
+
'hydrator-email_verification_10000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_489, user_490) {
|
|
9640
10452
|
// compiled hydrator for entity EmailVerificationEntity ( normalized)
|
|
9641
10453
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9642
10454
|
if (data.id === null) {
|
|
@@ -9679,15 +10491,35 @@ export default {
|
|
|
9679
10491
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
9680
10492
|
}
|
|
9681
10493
|
}
|
|
10494
|
+
if (data.user_epoch === null) {
|
|
10495
|
+
entity.user_epoch = null;
|
|
10496
|
+
}
|
|
10497
|
+
else if (typeof data.user_epoch !== 'undefined') {
|
|
10498
|
+
entity.user_epoch = data.user_epoch;
|
|
10499
|
+
}
|
|
10500
|
+
if (data.revoked_at === null) {
|
|
10501
|
+
entity.revoked_at = null;
|
|
10502
|
+
}
|
|
10503
|
+
else if (typeof data.revoked_at !== 'undefined') {
|
|
10504
|
+
if (data.revoked_at instanceof Date) {
|
|
10505
|
+
entity.revoked_at = data.revoked_at;
|
|
10506
|
+
}
|
|
10507
|
+
else if (typeof data.revoked_at === 'number' || data.revoked_at.includes('+') || data.revoked_at.lastIndexOf('-') > 10 || data.revoked_at.endsWith('Z')) {
|
|
10508
|
+
entity.revoked_at = new Date(data.revoked_at);
|
|
10509
|
+
}
|
|
10510
|
+
else {
|
|
10511
|
+
entity.revoked_at = new Date(data.revoked_at + 'Z');
|
|
10512
|
+
}
|
|
10513
|
+
}
|
|
9682
10514
|
if (data.user === null) {
|
|
9683
10515
|
entity.user = null;
|
|
9684
10516
|
}
|
|
9685
10517
|
else if (typeof data.user !== 'undefined') {
|
|
9686
10518
|
if (isPrimaryKey(data.user, true)) {
|
|
9687
|
-
entity.user = Reference.create(factory.createReference(
|
|
10519
|
+
entity.user = Reference.create(factory.createReference(user_489, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
9688
10520
|
}
|
|
9689
10521
|
else if (data.user && typeof data.user === 'object') {
|
|
9690
|
-
entity.user = Reference.create(factory.create(
|
|
10522
|
+
entity.user = Reference.create(factory.create(user_490, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
9691
10523
|
}
|
|
9692
10524
|
}
|
|
9693
10525
|
if (data.token === null) {
|
|
@@ -9732,7 +10564,7 @@ export default {
|
|
|
9732
10564
|
}
|
|
9733
10565
|
};
|
|
9734
10566
|
},
|
|
9735
|
-
'hydrator-
|
|
10567
|
+
'hydrator-email_verification_10000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_500, user_501) {
|
|
9736
10568
|
// compiled hydrator for entity EmailVerificationEntity ( normalized)
|
|
9737
10569
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9738
10570
|
if (data.id === null) {
|
|
@@ -9775,15 +10607,35 @@ export default {
|
|
|
9775
10607
|
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
9776
10608
|
}
|
|
9777
10609
|
}
|
|
10610
|
+
if (data.user_epoch === null) {
|
|
10611
|
+
entity.user_epoch = null;
|
|
10612
|
+
}
|
|
10613
|
+
else if (typeof data.user_epoch !== 'undefined') {
|
|
10614
|
+
entity.user_epoch = data.user_epoch;
|
|
10615
|
+
}
|
|
10616
|
+
if (data.revoked_at === null) {
|
|
10617
|
+
entity.revoked_at = null;
|
|
10618
|
+
}
|
|
10619
|
+
else if (typeof data.revoked_at !== 'undefined') {
|
|
10620
|
+
if (data.revoked_at instanceof Date) {
|
|
10621
|
+
entity.revoked_at = data.revoked_at;
|
|
10622
|
+
}
|
|
10623
|
+
else if (typeof data.revoked_at === 'number' || data.revoked_at.includes('+') || data.revoked_at.lastIndexOf('-') > 10 || data.revoked_at.endsWith('Z')) {
|
|
10624
|
+
entity.revoked_at = new Date(data.revoked_at);
|
|
10625
|
+
}
|
|
10626
|
+
else {
|
|
10627
|
+
entity.revoked_at = new Date(data.revoked_at + 'Z');
|
|
10628
|
+
}
|
|
10629
|
+
}
|
|
9778
10630
|
if (data.user === null) {
|
|
9779
10631
|
entity.user = null;
|
|
9780
10632
|
}
|
|
9781
10633
|
else if (typeof data.user !== 'undefined') {
|
|
9782
10634
|
if (isPrimaryKey(data.user, true)) {
|
|
9783
|
-
entity.user = Reference.create(factory.createReference(
|
|
10635
|
+
entity.user = Reference.create(factory.createReference(user_500, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
9784
10636
|
}
|
|
9785
10637
|
else if (data.user && typeof data.user === 'object') {
|
|
9786
|
-
entity.user = Reference.create(factory.create(
|
|
10638
|
+
entity.user = Reference.create(factory.create(user_501, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
9787
10639
|
}
|
|
9788
10640
|
}
|
|
9789
10641
|
if (data.token === null) {
|
|
@@ -9828,7 +10680,7 @@ export default {
|
|
|
9828
10680
|
}
|
|
9829
10681
|
};
|
|
9830
10682
|
},
|
|
9831
|
-
'comparator-
|
|
10683
|
+
'comparator-email_verification_10000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
9832
10684
|
// compiled comparator for entity EmailVerificationEntity
|
|
9833
10685
|
return function (last, current, options) {
|
|
9834
10686
|
const diff = {};
|
|
@@ -9865,6 +10717,28 @@ export default {
|
|
|
9865
10717
|
else if (last.updated_at.valueOf() !== current.updated_at.valueOf()) {
|
|
9866
10718
|
diff.updated_at = current.updated_at;
|
|
9867
10719
|
}
|
|
10720
|
+
if (current.user_epoch === null && last.user_epoch === undefined) {
|
|
10721
|
+
diff.user_epoch = current.user_epoch;
|
|
10722
|
+
}
|
|
10723
|
+
else if (current.user_epoch == null && last.user_epoch == null) {
|
|
10724
|
+
}
|
|
10725
|
+
else if ((current.user_epoch != null && last.user_epoch == null) || (current.user_epoch == null && last.user_epoch != null)) {
|
|
10726
|
+
diff.user_epoch = current.user_epoch;
|
|
10727
|
+
}
|
|
10728
|
+
else if (last.user_epoch !== current.user_epoch) {
|
|
10729
|
+
diff.user_epoch = current.user_epoch;
|
|
10730
|
+
}
|
|
10731
|
+
if (current.revoked_at === null && last.revoked_at === undefined) {
|
|
10732
|
+
diff.revoked_at = current.revoked_at;
|
|
10733
|
+
}
|
|
10734
|
+
else if (current.revoked_at == null && last.revoked_at == null) {
|
|
10735
|
+
}
|
|
10736
|
+
else if ((current.revoked_at != null && last.revoked_at == null) || (current.revoked_at == null && last.revoked_at != null)) {
|
|
10737
|
+
diff.revoked_at = current.revoked_at;
|
|
10738
|
+
}
|
|
10739
|
+
else if (last.revoked_at.valueOf() !== current.revoked_at.valueOf()) {
|
|
10740
|
+
diff.revoked_at = current.revoked_at;
|
|
10741
|
+
}
|
|
9868
10742
|
if (current.user === null && last.user === undefined) {
|
|
9869
10743
|
diff.user = current.user;
|
|
9870
10744
|
}
|
|
@@ -9925,7 +10799,7 @@ export default {
|
|
|
9925
10799
|
return diff;
|
|
9926
10800
|
};
|
|
9927
10801
|
},
|
|
9928
|
-
'snapshotGenerator-
|
|
10802
|
+
'snapshotGenerator-email_verification_10000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
9929
10803
|
return function (entity) {
|
|
9930
10804
|
const ret = {};
|
|
9931
10805
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -9937,6 +10811,12 @@ export default {
|
|
|
9937
10811
|
if (typeof entity.updated_at !== 'undefined') {
|
|
9938
10812
|
ret.updated_at = clone(processDateProperty(entity.updated_at));
|
|
9939
10813
|
}
|
|
10814
|
+
if (typeof entity.user_epoch !== 'undefined') {
|
|
10815
|
+
ret.user_epoch = entity.user_epoch;
|
|
10816
|
+
}
|
|
10817
|
+
if (typeof entity.revoked_at !== 'undefined') {
|
|
10818
|
+
ret.revoked_at = clone(processDateProperty(entity.revoked_at));
|
|
10819
|
+
}
|
|
9940
10820
|
if (typeof entity.user !== 'undefined') {
|
|
9941
10821
|
if (entity.user === null) {
|
|
9942
10822
|
ret.user = null;
|
|
@@ -9951,20 +10831,339 @@ export default {
|
|
|
9951
10831
|
if (typeof entity.token !== 'undefined') {
|
|
9952
10832
|
ret.token = entity.token;
|
|
9953
10833
|
}
|
|
9954
|
-
if (typeof entity.expiresAt !== 'undefined') {
|
|
9955
|
-
ret.expiresAt = clone(processDateProperty(entity.expiresAt));
|
|
10834
|
+
if (typeof entity.expiresAt !== 'undefined') {
|
|
10835
|
+
ret.expiresAt = clone(processDateProperty(entity.expiresAt));
|
|
10836
|
+
}
|
|
10837
|
+
if (typeof entity.verified !== 'undefined') {
|
|
10838
|
+
ret.verified = entity.verified;
|
|
10839
|
+
}
|
|
10840
|
+
if (typeof entity.verifiedAt !== 'undefined') {
|
|
10841
|
+
ret.verifiedAt = clone(processDateProperty(entity.verifiedAt));
|
|
10842
|
+
}
|
|
10843
|
+
return ret;
|
|
10844
|
+
};
|
|
10845
|
+
},
|
|
10846
|
+
'resultMapper-email_verification_10000': function (PolymorphicRef, parseDate) {
|
|
10847
|
+
// compiled mapper for entity EmailVerificationEntity
|
|
10848
|
+
return function (result) {
|
|
10849
|
+
const ret = {};
|
|
10850
|
+
const mapped = {};
|
|
10851
|
+
if (typeof result.id !== 'undefined') {
|
|
10852
|
+
ret.id = result.id;
|
|
10853
|
+
mapped.id = true;
|
|
10854
|
+
}
|
|
10855
|
+
if (typeof result.created_at !== 'undefined') {
|
|
10856
|
+
if (result.created_at == null || result.created_at instanceof Date) {
|
|
10857
|
+
ret.created_at = result.created_at;
|
|
10858
|
+
}
|
|
10859
|
+
else if (typeof result.created_at === 'bigint') {
|
|
10860
|
+
ret.created_at = parseDate(Number(result.created_at));
|
|
10861
|
+
}
|
|
10862
|
+
else if (typeof result.created_at === 'number' || result.created_at.includes('+') || result.created_at.lastIndexOf('-') > 10 || result.created_at.endsWith('Z')) {
|
|
10863
|
+
ret.created_at = parseDate(result.created_at);
|
|
10864
|
+
}
|
|
10865
|
+
else {
|
|
10866
|
+
ret.created_at = parseDate(result.created_at + 'Z');
|
|
10867
|
+
}
|
|
10868
|
+
mapped.created_at = true;
|
|
10869
|
+
}
|
|
10870
|
+
if (typeof result.updated_at !== 'undefined') {
|
|
10871
|
+
if (result.updated_at == null || result.updated_at instanceof Date) {
|
|
10872
|
+
ret.updated_at = result.updated_at;
|
|
10873
|
+
}
|
|
10874
|
+
else if (typeof result.updated_at === 'bigint') {
|
|
10875
|
+
ret.updated_at = parseDate(Number(result.updated_at));
|
|
10876
|
+
}
|
|
10877
|
+
else if (typeof result.updated_at === 'number' || result.updated_at.includes('+') || result.updated_at.lastIndexOf('-') > 10 || result.updated_at.endsWith('Z')) {
|
|
10878
|
+
ret.updated_at = parseDate(result.updated_at);
|
|
10879
|
+
}
|
|
10880
|
+
else {
|
|
10881
|
+
ret.updated_at = parseDate(result.updated_at + 'Z');
|
|
10882
|
+
}
|
|
10883
|
+
mapped.updated_at = true;
|
|
10884
|
+
}
|
|
10885
|
+
if (typeof result.user_epoch !== 'undefined') {
|
|
10886
|
+
ret.user_epoch = result.user_epoch;
|
|
10887
|
+
mapped.user_epoch = true;
|
|
10888
|
+
}
|
|
10889
|
+
if (typeof result.revoked_at !== 'undefined') {
|
|
10890
|
+
if (result.revoked_at == null || result.revoked_at instanceof Date) {
|
|
10891
|
+
ret.revoked_at = result.revoked_at;
|
|
10892
|
+
}
|
|
10893
|
+
else if (typeof result.revoked_at === 'bigint') {
|
|
10894
|
+
ret.revoked_at = parseDate(Number(result.revoked_at));
|
|
10895
|
+
}
|
|
10896
|
+
else if (typeof result.revoked_at === 'number' || result.revoked_at.includes('+') || result.revoked_at.lastIndexOf('-') > 10 || result.revoked_at.endsWith('Z')) {
|
|
10897
|
+
ret.revoked_at = parseDate(result.revoked_at);
|
|
10898
|
+
}
|
|
10899
|
+
else {
|
|
10900
|
+
ret.revoked_at = parseDate(result.revoked_at + 'Z');
|
|
10901
|
+
}
|
|
10902
|
+
mapped.revoked_at = true;
|
|
10903
|
+
}
|
|
10904
|
+
if (typeof result.user_sub !== 'undefined') {
|
|
10905
|
+
ret.user = result.user_sub;
|
|
10906
|
+
mapped.user_sub = true;
|
|
10907
|
+
}
|
|
10908
|
+
if (typeof result.token !== 'undefined') {
|
|
10909
|
+
ret.token = result.token;
|
|
10910
|
+
mapped.token = true;
|
|
10911
|
+
}
|
|
10912
|
+
if (typeof result.expires_at !== 'undefined') {
|
|
10913
|
+
if (result.expires_at == null || result.expires_at instanceof Date) {
|
|
10914
|
+
ret.expiresAt = result.expires_at;
|
|
10915
|
+
}
|
|
10916
|
+
else if (typeof result.expires_at === 'bigint') {
|
|
10917
|
+
ret.expiresAt = parseDate(Number(result.expires_at));
|
|
10918
|
+
}
|
|
10919
|
+
else if (typeof result.expires_at === 'number' || result.expires_at.includes('+') || result.expires_at.lastIndexOf('-') > 10 || result.expires_at.endsWith('Z')) {
|
|
10920
|
+
ret.expiresAt = parseDate(result.expires_at);
|
|
10921
|
+
}
|
|
10922
|
+
else {
|
|
10923
|
+
ret.expiresAt = parseDate(result.expires_at + 'Z');
|
|
10924
|
+
}
|
|
10925
|
+
mapped.expires_at = true;
|
|
10926
|
+
}
|
|
10927
|
+
if (typeof result.verified !== 'undefined') {
|
|
10928
|
+
ret.verified = result.verified == null ? result.verified : !!result.verified;
|
|
10929
|
+
mapped.verified = true;
|
|
10930
|
+
}
|
|
10931
|
+
if (typeof result.verified_at !== 'undefined') {
|
|
10932
|
+
if (result.verified_at == null || result.verified_at instanceof Date) {
|
|
10933
|
+
ret.verifiedAt = result.verified_at;
|
|
10934
|
+
}
|
|
10935
|
+
else if (typeof result.verified_at === 'bigint') {
|
|
10936
|
+
ret.verifiedAt = parseDate(Number(result.verified_at));
|
|
10937
|
+
}
|
|
10938
|
+
else if (typeof result.verified_at === 'number' || result.verified_at.includes('+') || result.verified_at.lastIndexOf('-') > 10 || result.verified_at.endsWith('Z')) {
|
|
10939
|
+
ret.verifiedAt = parseDate(result.verified_at);
|
|
10940
|
+
}
|
|
10941
|
+
else {
|
|
10942
|
+
ret.verifiedAt = parseDate(result.verified_at + 'Z');
|
|
10943
|
+
}
|
|
10944
|
+
mapped.verified_at = true;
|
|
10945
|
+
}
|
|
10946
|
+
for (let k in result) {
|
|
10947
|
+
if (Object.hasOwn(result, k) && !mapped[k] && ret[k] === undefined)
|
|
10948
|
+
ret[k] = result[k];
|
|
10949
|
+
}
|
|
10950
|
+
return ret;
|
|
10951
|
+
};
|
|
10952
|
+
},
|
|
10953
|
+
'hydrator-email_verification_10000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
10954
|
+
// compiled hydrator for entity EmailVerificationEntity ( normalized)
|
|
10955
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10956
|
+
if (data.id === null) {
|
|
10957
|
+
entity.id = null;
|
|
10958
|
+
}
|
|
10959
|
+
else if (typeof data.id !== 'undefined') {
|
|
10960
|
+
if (convertCustomTypes) {
|
|
10961
|
+
const value = convertToJSValue_id(data.id);
|
|
10962
|
+
entity.id = value;
|
|
10963
|
+
}
|
|
10964
|
+
else {
|
|
10965
|
+
entity.id = data.id;
|
|
10966
|
+
}
|
|
10967
|
+
}
|
|
10968
|
+
};
|
|
10969
|
+
},
|
|
10970
|
+
'hydrator-email_verification_10000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
10971
|
+
// compiled hydrator for entity EmailVerificationEntity ( normalized)
|
|
10972
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10973
|
+
if (data.id === null) {
|
|
10974
|
+
entity.id = null;
|
|
10975
|
+
}
|
|
10976
|
+
else if (typeof data.id !== 'undefined') {
|
|
10977
|
+
if (convertCustomTypes) {
|
|
10978
|
+
const value = convertToJSValue_id(data.id);
|
|
10979
|
+
entity.id = value;
|
|
10980
|
+
}
|
|
10981
|
+
else {
|
|
10982
|
+
entity.id = data.id;
|
|
10983
|
+
}
|
|
10984
|
+
}
|
|
10985
|
+
};
|
|
10986
|
+
},
|
|
10987
|
+
'pkGetter-email_verification_10000': function (isEntityOrRef) {
|
|
10988
|
+
// compiled pk getter for entity EmailVerificationEntity
|
|
10989
|
+
return function (entity) {
|
|
10990
|
+
return entity.id;
|
|
10991
|
+
};
|
|
10992
|
+
},
|
|
10993
|
+
'pkGetterConverted-email_verification_10000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
10994
|
+
// compiled pk getter (with converted custom types) for entity EmailVerificationEntity
|
|
10995
|
+
return function (entity) {
|
|
10996
|
+
return convertToDatabaseValue_id(entity.id);
|
|
10997
|
+
};
|
|
10998
|
+
},
|
|
10999
|
+
'pkSerializer-email_verification_10000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
11000
|
+
// compiled pk serializer for entity EmailVerificationEntity
|
|
11001
|
+
return function (entity) {
|
|
11002
|
+
const val_13 = convertToDatabaseValue_id(entity.id);
|
|
11003
|
+
return getPrimaryKeyHash(val_13);
|
|
11004
|
+
};
|
|
11005
|
+
},
|
|
11006
|
+
'hydrator-browser_session_4000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_data, convertToDatabaseValue_data) {
|
|
11007
|
+
// compiled hydrator for entity BrowserSessionEntity ( normalized)
|
|
11008
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
11009
|
+
if (data.id === null) {
|
|
11010
|
+
entity.id = null;
|
|
11011
|
+
}
|
|
11012
|
+
else if (typeof data.id !== 'undefined') {
|
|
11013
|
+
entity.id = data.id;
|
|
11014
|
+
}
|
|
11015
|
+
if (data.data === null) {
|
|
11016
|
+
entity.data = null;
|
|
11017
|
+
}
|
|
11018
|
+
else if (typeof data.data !== 'undefined') {
|
|
11019
|
+
if (convertCustomTypes) {
|
|
11020
|
+
const value = convertToJSValue_data(data.data);
|
|
11021
|
+
data.data = convertToDatabaseValue_data(value);
|
|
11022
|
+
entity.data = value;
|
|
11023
|
+
}
|
|
11024
|
+
else {
|
|
11025
|
+
entity.data = data.data;
|
|
11026
|
+
}
|
|
11027
|
+
}
|
|
11028
|
+
if (data.revision === null) {
|
|
11029
|
+
entity.revision = null;
|
|
11030
|
+
}
|
|
11031
|
+
else if (typeof data.revision !== 'undefined') {
|
|
11032
|
+
entity.revision = data.revision;
|
|
11033
|
+
}
|
|
11034
|
+
if (data.expires_at === null) {
|
|
11035
|
+
entity.expires_at = null;
|
|
11036
|
+
}
|
|
11037
|
+
else if (typeof data.expires_at !== 'undefined') {
|
|
11038
|
+
if (data.expires_at instanceof Date) {
|
|
11039
|
+
entity.expires_at = data.expires_at;
|
|
11040
|
+
}
|
|
11041
|
+
else if (typeof data.expires_at === 'number' || data.expires_at.includes('+') || data.expires_at.lastIndexOf('-') > 10 || data.expires_at.endsWith('Z')) {
|
|
11042
|
+
entity.expires_at = new Date(data.expires_at);
|
|
11043
|
+
}
|
|
11044
|
+
else {
|
|
11045
|
+
entity.expires_at = new Date(data.expires_at + 'Z');
|
|
11046
|
+
}
|
|
11047
|
+
}
|
|
11048
|
+
};
|
|
11049
|
+
},
|
|
11050
|
+
'hydrator-browser_session_4000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_data, convertToDatabaseValue_data) {
|
|
11051
|
+
// compiled hydrator for entity BrowserSessionEntity ( normalized)
|
|
11052
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
11053
|
+
if (data.id === null) {
|
|
11054
|
+
entity.id = null;
|
|
11055
|
+
}
|
|
11056
|
+
else if (typeof data.id !== 'undefined') {
|
|
11057
|
+
entity.id = data.id;
|
|
11058
|
+
}
|
|
11059
|
+
if (data.data === null) {
|
|
11060
|
+
entity.data = null;
|
|
11061
|
+
}
|
|
11062
|
+
else if (typeof data.data !== 'undefined') {
|
|
11063
|
+
if (convertCustomTypes) {
|
|
11064
|
+
const value = convertToJSValue_data(data.data);
|
|
11065
|
+
data.data = convertToDatabaseValue_data(value);
|
|
11066
|
+
entity.data = value;
|
|
11067
|
+
}
|
|
11068
|
+
else {
|
|
11069
|
+
entity.data = data.data;
|
|
11070
|
+
}
|
|
11071
|
+
}
|
|
11072
|
+
if (data.revision === null) {
|
|
11073
|
+
entity.revision = null;
|
|
11074
|
+
}
|
|
11075
|
+
else if (typeof data.revision !== 'undefined') {
|
|
11076
|
+
entity.revision = data.revision;
|
|
11077
|
+
}
|
|
11078
|
+
if (data.expires_at === null) {
|
|
11079
|
+
entity.expires_at = null;
|
|
11080
|
+
}
|
|
11081
|
+
else if (typeof data.expires_at !== 'undefined') {
|
|
11082
|
+
if (data.expires_at instanceof Date) {
|
|
11083
|
+
entity.expires_at = data.expires_at;
|
|
11084
|
+
}
|
|
11085
|
+
else if (typeof data.expires_at === 'number' || data.expires_at.includes('+') || data.expires_at.lastIndexOf('-') > 10 || data.expires_at.endsWith('Z')) {
|
|
11086
|
+
entity.expires_at = new Date(data.expires_at);
|
|
11087
|
+
}
|
|
11088
|
+
else {
|
|
11089
|
+
entity.expires_at = new Date(data.expires_at + 'Z');
|
|
11090
|
+
}
|
|
11091
|
+
}
|
|
11092
|
+
};
|
|
11093
|
+
},
|
|
11094
|
+
'comparator-browser_session_4000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
11095
|
+
// compiled comparator for entity BrowserSessionEntity
|
|
11096
|
+
return function (last, current, options) {
|
|
11097
|
+
const diff = {};
|
|
11098
|
+
if (current.id === null && last.id === undefined) {
|
|
11099
|
+
diff.id = current.id;
|
|
11100
|
+
}
|
|
11101
|
+
else if (current.id == null && last.id == null) {
|
|
11102
|
+
}
|
|
11103
|
+
else if ((current.id != null && last.id == null) || (current.id == null && last.id != null)) {
|
|
11104
|
+
diff.id = current.id;
|
|
11105
|
+
}
|
|
11106
|
+
else if (last.id !== current.id) {
|
|
11107
|
+
diff.id = current.id;
|
|
11108
|
+
}
|
|
11109
|
+
if (current.data === null && last.data === undefined) {
|
|
11110
|
+
diff.data = current.data;
|
|
11111
|
+
}
|
|
11112
|
+
else if (current.data == null && last.data == null) {
|
|
11113
|
+
}
|
|
11114
|
+
else if ((current.data != null && last.data == null) || (current.data == null && last.data != null)) {
|
|
11115
|
+
diff.data = current.data;
|
|
11116
|
+
}
|
|
11117
|
+
else if (!equals(last.data, current.data)) {
|
|
11118
|
+
diff.data = current.data;
|
|
11119
|
+
}
|
|
11120
|
+
if (current.revision === null && last.revision === undefined) {
|
|
11121
|
+
diff.revision = current.revision;
|
|
11122
|
+
}
|
|
11123
|
+
else if (current.revision == null && last.revision == null) {
|
|
11124
|
+
}
|
|
11125
|
+
else if ((current.revision != null && last.revision == null) || (current.revision == null && last.revision != null)) {
|
|
11126
|
+
diff.revision = current.revision;
|
|
11127
|
+
}
|
|
11128
|
+
else if (!equals(last.revision, current.revision)) {
|
|
11129
|
+
diff.revision = current.revision;
|
|
11130
|
+
}
|
|
11131
|
+
if (current.expires_at === null && last.expires_at === undefined) {
|
|
11132
|
+
diff.expires_at = current.expires_at;
|
|
11133
|
+
}
|
|
11134
|
+
else if (current.expires_at == null && last.expires_at == null) {
|
|
11135
|
+
}
|
|
11136
|
+
else if ((current.expires_at != null && last.expires_at == null) || (current.expires_at == null && last.expires_at != null)) {
|
|
11137
|
+
diff.expires_at = current.expires_at;
|
|
11138
|
+
}
|
|
11139
|
+
else if (last.expires_at.valueOf() !== current.expires_at.valueOf()) {
|
|
11140
|
+
diff.expires_at = current.expires_at;
|
|
11141
|
+
}
|
|
11142
|
+
if (options?.includeInverseSides) {
|
|
11143
|
+
}
|
|
11144
|
+
return diff;
|
|
11145
|
+
};
|
|
11146
|
+
},
|
|
11147
|
+
'snapshotGenerator-browser_session_4000': function (clone, cloneEmbeddable, convertToDatabaseValue_data, processDateProperty) {
|
|
11148
|
+
return function (entity) {
|
|
11149
|
+
const ret = {};
|
|
11150
|
+
if (typeof entity.id !== 'undefined') {
|
|
11151
|
+
ret.id = entity.id;
|
|
11152
|
+
}
|
|
11153
|
+
if (typeof entity.data !== 'undefined') {
|
|
11154
|
+
ret.data = clone(convertToDatabaseValue_data(entity.data));
|
|
9956
11155
|
}
|
|
9957
|
-
if (typeof entity.
|
|
9958
|
-
ret.
|
|
11156
|
+
if (typeof entity.revision !== 'undefined') {
|
|
11157
|
+
ret.revision = clone(entity.revision);
|
|
9959
11158
|
}
|
|
9960
|
-
if (typeof entity.
|
|
9961
|
-
ret.
|
|
11159
|
+
if (typeof entity.expires_at !== 'undefined') {
|
|
11160
|
+
ret.expires_at = clone(processDateProperty(entity.expires_at));
|
|
9962
11161
|
}
|
|
9963
11162
|
return ret;
|
|
9964
11163
|
};
|
|
9965
11164
|
},
|
|
9966
|
-
'resultMapper-
|
|
9967
|
-
// compiled mapper for entity
|
|
11165
|
+
'resultMapper-browser_session_4000': function (PolymorphicRef, parseDate) {
|
|
11166
|
+
// compiled mapper for entity BrowserSessionEntity
|
|
9968
11167
|
return function (result) {
|
|
9969
11168
|
const ret = {};
|
|
9970
11169
|
const mapped = {};
|
|
@@ -9972,78 +11171,29 @@ export default {
|
|
|
9972
11171
|
ret.id = result.id;
|
|
9973
11172
|
mapped.id = true;
|
|
9974
11173
|
}
|
|
9975
|
-
if (typeof result.
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
}
|
|
9979
|
-
else if (typeof result.created_at === 'bigint') {
|
|
9980
|
-
ret.created_at = parseDate(Number(result.created_at));
|
|
9981
|
-
}
|
|
9982
|
-
else if (typeof result.created_at === 'number' || result.created_at.includes('+') || result.created_at.lastIndexOf('-') > 10 || result.created_at.endsWith('Z')) {
|
|
9983
|
-
ret.created_at = parseDate(result.created_at);
|
|
9984
|
-
}
|
|
9985
|
-
else {
|
|
9986
|
-
ret.created_at = parseDate(result.created_at + 'Z');
|
|
9987
|
-
}
|
|
9988
|
-
mapped.created_at = true;
|
|
9989
|
-
}
|
|
9990
|
-
if (typeof result.updated_at !== 'undefined') {
|
|
9991
|
-
if (result.updated_at == null || result.updated_at instanceof Date) {
|
|
9992
|
-
ret.updated_at = result.updated_at;
|
|
9993
|
-
}
|
|
9994
|
-
else if (typeof result.updated_at === 'bigint') {
|
|
9995
|
-
ret.updated_at = parseDate(Number(result.updated_at));
|
|
9996
|
-
}
|
|
9997
|
-
else if (typeof result.updated_at === 'number' || result.updated_at.includes('+') || result.updated_at.lastIndexOf('-') > 10 || result.updated_at.endsWith('Z')) {
|
|
9998
|
-
ret.updated_at = parseDate(result.updated_at);
|
|
9999
|
-
}
|
|
10000
|
-
else {
|
|
10001
|
-
ret.updated_at = parseDate(result.updated_at + 'Z');
|
|
10002
|
-
}
|
|
10003
|
-
mapped.updated_at = true;
|
|
10004
|
-
}
|
|
10005
|
-
if (typeof result.user_sub !== 'undefined') {
|
|
10006
|
-
ret.user = result.user_sub;
|
|
10007
|
-
mapped.user_sub = true;
|
|
11174
|
+
if (typeof result.data !== 'undefined') {
|
|
11175
|
+
ret.data = result.data;
|
|
11176
|
+
mapped.data = true;
|
|
10008
11177
|
}
|
|
10009
|
-
if (typeof result.
|
|
10010
|
-
ret.
|
|
10011
|
-
mapped.
|
|
11178
|
+
if (typeof result.revision !== 'undefined') {
|
|
11179
|
+
ret.revision = result.revision;
|
|
11180
|
+
mapped.revision = true;
|
|
10012
11181
|
}
|
|
10013
11182
|
if (typeof result.expires_at !== 'undefined') {
|
|
10014
11183
|
if (result.expires_at == null || result.expires_at instanceof Date) {
|
|
10015
|
-
ret.
|
|
11184
|
+
ret.expires_at = result.expires_at;
|
|
10016
11185
|
}
|
|
10017
11186
|
else if (typeof result.expires_at === 'bigint') {
|
|
10018
|
-
ret.
|
|
11187
|
+
ret.expires_at = parseDate(Number(result.expires_at));
|
|
10019
11188
|
}
|
|
10020
11189
|
else if (typeof result.expires_at === 'number' || result.expires_at.includes('+') || result.expires_at.lastIndexOf('-') > 10 || result.expires_at.endsWith('Z')) {
|
|
10021
|
-
ret.
|
|
11190
|
+
ret.expires_at = parseDate(result.expires_at);
|
|
10022
11191
|
}
|
|
10023
11192
|
else {
|
|
10024
|
-
ret.
|
|
11193
|
+
ret.expires_at = parseDate(result.expires_at + 'Z');
|
|
10025
11194
|
}
|
|
10026
11195
|
mapped.expires_at = true;
|
|
10027
11196
|
}
|
|
10028
|
-
if (typeof result.verified !== 'undefined') {
|
|
10029
|
-
ret.verified = result.verified == null ? result.verified : !!result.verified;
|
|
10030
|
-
mapped.verified = true;
|
|
10031
|
-
}
|
|
10032
|
-
if (typeof result.verified_at !== 'undefined') {
|
|
10033
|
-
if (result.verified_at == null || result.verified_at instanceof Date) {
|
|
10034
|
-
ret.verifiedAt = result.verified_at;
|
|
10035
|
-
}
|
|
10036
|
-
else if (typeof result.verified_at === 'bigint') {
|
|
10037
|
-
ret.verifiedAt = parseDate(Number(result.verified_at));
|
|
10038
|
-
}
|
|
10039
|
-
else if (typeof result.verified_at === 'number' || result.verified_at.includes('+') || result.verified_at.lastIndexOf('-') > 10 || result.verified_at.endsWith('Z')) {
|
|
10040
|
-
ret.verifiedAt = parseDate(result.verified_at);
|
|
10041
|
-
}
|
|
10042
|
-
else {
|
|
10043
|
-
ret.verifiedAt = parseDate(result.verified_at + 'Z');
|
|
10044
|
-
}
|
|
10045
|
-
mapped.verified_at = true;
|
|
10046
|
-
}
|
|
10047
11197
|
for (let k in result) {
|
|
10048
11198
|
if (Object.hasOwn(result, k) && !mapped[k] && ret[k] === undefined)
|
|
10049
11199
|
ret[k] = result[k];
|
|
@@ -10051,60 +11201,47 @@ export default {
|
|
|
10051
11201
|
return ret;
|
|
10052
11202
|
};
|
|
10053
11203
|
},
|
|
10054
|
-
'hydrator-
|
|
10055
|
-
// compiled hydrator for entity
|
|
11204
|
+
'hydrator-browser_session_4000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
11205
|
+
// compiled hydrator for entity BrowserSessionEntity ( normalized)
|
|
10056
11206
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10057
11207
|
if (data.id === null) {
|
|
10058
11208
|
entity.id = null;
|
|
10059
11209
|
}
|
|
10060
11210
|
else if (typeof data.id !== 'undefined') {
|
|
10061
|
-
|
|
10062
|
-
const value = convertToJSValue_id(data.id);
|
|
10063
|
-
entity.id = value;
|
|
10064
|
-
}
|
|
10065
|
-
else {
|
|
10066
|
-
entity.id = data.id;
|
|
10067
|
-
}
|
|
11211
|
+
entity.id = data.id;
|
|
10068
11212
|
}
|
|
10069
11213
|
};
|
|
10070
11214
|
},
|
|
10071
|
-
'hydrator-
|
|
10072
|
-
// compiled hydrator for entity
|
|
11215
|
+
'hydrator-browser_session_4000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
11216
|
+
// compiled hydrator for entity BrowserSessionEntity ( normalized)
|
|
10073
11217
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10074
11218
|
if (data.id === null) {
|
|
10075
11219
|
entity.id = null;
|
|
10076
11220
|
}
|
|
10077
11221
|
else if (typeof data.id !== 'undefined') {
|
|
10078
|
-
|
|
10079
|
-
const value = convertToJSValue_id(data.id);
|
|
10080
|
-
entity.id = value;
|
|
10081
|
-
}
|
|
10082
|
-
else {
|
|
10083
|
-
entity.id = data.id;
|
|
10084
|
-
}
|
|
11222
|
+
entity.id = data.id;
|
|
10085
11223
|
}
|
|
10086
11224
|
};
|
|
10087
11225
|
},
|
|
10088
|
-
'pkGetter-
|
|
10089
|
-
// compiled pk getter for entity
|
|
11226
|
+
'pkGetter-browser_session_4000': function (isEntityOrRef) {
|
|
11227
|
+
// compiled pk getter for entity BrowserSessionEntity
|
|
10090
11228
|
return function (entity) {
|
|
10091
11229
|
return entity.id;
|
|
10092
11230
|
};
|
|
10093
11231
|
},
|
|
10094
|
-
'pkGetterConverted-
|
|
10095
|
-
// compiled pk getter (with converted custom types) for entity
|
|
11232
|
+
'pkGetterConverted-browser_session_4000': function (isEntityOrRef) {
|
|
11233
|
+
// compiled pk getter (with converted custom types) for entity BrowserSessionEntity
|
|
10096
11234
|
return function (entity) {
|
|
10097
|
-
return
|
|
11235
|
+
return entity.id;
|
|
10098
11236
|
};
|
|
10099
11237
|
},
|
|
10100
|
-
'pkSerializer-
|
|
10101
|
-
// compiled pk serializer for entity
|
|
11238
|
+
'pkSerializer-browser_session_4000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
11239
|
+
// compiled pk serializer for entity BrowserSessionEntity
|
|
10102
11240
|
return function (entity) {
|
|
10103
|
-
|
|
10104
|
-
return getPrimaryKeyHash(val_13);
|
|
11241
|
+
return '' + entity.id;
|
|
10105
11242
|
};
|
|
10106
11243
|
},
|
|
10107
|
-
'hydrator-
|
|
11244
|
+
'hydrator-bootstrap_state_3000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
10108
11245
|
// compiled hydrator for entity BootstrapStateEntity ( normalized)
|
|
10109
11246
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10110
11247
|
if (data.id === null) {
|
|
@@ -10149,7 +11286,7 @@ export default {
|
|
|
10149
11286
|
}
|
|
10150
11287
|
};
|
|
10151
11288
|
},
|
|
10152
|
-
'hydrator-
|
|
11289
|
+
'hydrator-bootstrap_state_3000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
10153
11290
|
// compiled hydrator for entity BootstrapStateEntity ( normalized)
|
|
10154
11291
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10155
11292
|
if (data.id === null) {
|
|
@@ -10194,7 +11331,7 @@ export default {
|
|
|
10194
11331
|
}
|
|
10195
11332
|
};
|
|
10196
11333
|
},
|
|
10197
|
-
'comparator-
|
|
11334
|
+
'comparator-bootstrap_state_3000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
10198
11335
|
// compiled comparator for entity BootstrapStateEntity
|
|
10199
11336
|
return function (last, current, options) {
|
|
10200
11337
|
const diff = {};
|
|
@@ -10247,7 +11384,7 @@ export default {
|
|
|
10247
11384
|
return diff;
|
|
10248
11385
|
};
|
|
10249
11386
|
},
|
|
10250
|
-
'snapshotGenerator-
|
|
11387
|
+
'snapshotGenerator-bootstrap_state_3000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
10251
11388
|
return function (entity) {
|
|
10252
11389
|
const ret = {};
|
|
10253
11390
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -10265,7 +11402,7 @@ export default {
|
|
|
10265
11402
|
return ret;
|
|
10266
11403
|
};
|
|
10267
11404
|
},
|
|
10268
|
-
'resultMapper-
|
|
11405
|
+
'resultMapper-bootstrap_state_3000': function (PolymorphicRef, parseDate) {
|
|
10269
11406
|
// compiled mapper for entity BootstrapStateEntity
|
|
10270
11407
|
return function (result) {
|
|
10271
11408
|
const ret = {};
|
|
@@ -10315,7 +11452,7 @@ export default {
|
|
|
10315
11452
|
return ret;
|
|
10316
11453
|
};
|
|
10317
11454
|
},
|
|
10318
|
-
'hydrator-
|
|
11455
|
+
'hydrator-bootstrap_state_3000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
10319
11456
|
// compiled hydrator for entity BootstrapStateEntity ( normalized)
|
|
10320
11457
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10321
11458
|
if (data.id === null) {
|
|
@@ -10326,7 +11463,7 @@ export default {
|
|
|
10326
11463
|
}
|
|
10327
11464
|
};
|
|
10328
11465
|
},
|
|
10329
|
-
'hydrator-
|
|
11466
|
+
'hydrator-bootstrap_state_3000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
10330
11467
|
// compiled hydrator for entity BootstrapStateEntity ( normalized)
|
|
10331
11468
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10332
11469
|
if (data.id === null) {
|
|
@@ -10337,25 +11474,25 @@ export default {
|
|
|
10337
11474
|
}
|
|
10338
11475
|
};
|
|
10339
11476
|
},
|
|
10340
|
-
'pkGetter-
|
|
11477
|
+
'pkGetter-bootstrap_state_3000': function (isEntityOrRef) {
|
|
10341
11478
|
// compiled pk getter for entity BootstrapStateEntity
|
|
10342
11479
|
return function (entity) {
|
|
10343
11480
|
return entity.id;
|
|
10344
11481
|
};
|
|
10345
11482
|
},
|
|
10346
|
-
'pkGetterConverted-
|
|
11483
|
+
'pkGetterConverted-bootstrap_state_3000': function (isEntityOrRef) {
|
|
10347
11484
|
// compiled pk getter (with converted custom types) for entity BootstrapStateEntity
|
|
10348
11485
|
return function (entity) {
|
|
10349
11486
|
return entity.id;
|
|
10350
11487
|
};
|
|
10351
11488
|
},
|
|
10352
|
-
'pkSerializer-
|
|
11489
|
+
'pkSerializer-bootstrap_state_3000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
10353
11490
|
// compiled pk serializer for entity BootstrapStateEntity
|
|
10354
11491
|
return function (entity) {
|
|
10355
11492
|
return '' + entity.id;
|
|
10356
11493
|
};
|
|
10357
11494
|
},
|
|
10358
|
-
'hydrator-
|
|
11495
|
+
'hydrator-background_jobs_2000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
10359
11496
|
// compiled hydrator for entity BackgroundJobEntity ( normalized)
|
|
10360
11497
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10361
11498
|
if (data.id === null) {
|
|
@@ -10478,7 +11615,7 @@ export default {
|
|
|
10478
11615
|
}
|
|
10479
11616
|
};
|
|
10480
11617
|
},
|
|
10481
|
-
'hydrator-
|
|
11618
|
+
'hydrator-background_jobs_2000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
10482
11619
|
// compiled hydrator for entity BackgroundJobEntity ( normalized)
|
|
10483
11620
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10484
11621
|
if (data.id === null) {
|
|
@@ -10601,7 +11738,7 @@ export default {
|
|
|
10601
11738
|
}
|
|
10602
11739
|
};
|
|
10603
11740
|
},
|
|
10604
|
-
'comparator-
|
|
11741
|
+
'comparator-background_jobs_2000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
10605
11742
|
// compiled comparator for entity BackgroundJobEntity
|
|
10606
11743
|
return function (last, current, options) {
|
|
10607
11744
|
const diff = {};
|
|
@@ -10753,7 +11890,7 @@ export default {
|
|
|
10753
11890
|
return diff;
|
|
10754
11891
|
};
|
|
10755
11892
|
},
|
|
10756
|
-
'snapshotGenerator-
|
|
11893
|
+
'snapshotGenerator-background_jobs_2000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
10757
11894
|
return function (entity) {
|
|
10758
11895
|
const ret = {};
|
|
10759
11896
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -10798,7 +11935,7 @@ export default {
|
|
|
10798
11935
|
return ret;
|
|
10799
11936
|
};
|
|
10800
11937
|
},
|
|
10801
|
-
'resultMapper-
|
|
11938
|
+
'resultMapper-background_jobs_2000': function (PolymorphicRef, parseDate) {
|
|
10802
11939
|
// compiled mapper for entity BackgroundJobEntity
|
|
10803
11940
|
return function (result) {
|
|
10804
11941
|
const ret = {};
|
|
@@ -10917,7 +12054,7 @@ export default {
|
|
|
10917
12054
|
return ret;
|
|
10918
12055
|
};
|
|
10919
12056
|
},
|
|
10920
|
-
'hydrator-
|
|
12057
|
+
'hydrator-background_jobs_2000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
10921
12058
|
// compiled hydrator for entity BackgroundJobEntity ( normalized)
|
|
10922
12059
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10923
12060
|
if (data.id === null) {
|
|
@@ -10928,7 +12065,7 @@ export default {
|
|
|
10928
12065
|
}
|
|
10929
12066
|
};
|
|
10930
12067
|
},
|
|
10931
|
-
'hydrator-
|
|
12068
|
+
'hydrator-background_jobs_2000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
10932
12069
|
// compiled hydrator for entity BackgroundJobEntity ( normalized)
|
|
10933
12070
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
10934
12071
|
if (data.id === null) {
|
|
@@ -10939,23 +12076,217 @@ export default {
|
|
|
10939
12076
|
}
|
|
10940
12077
|
};
|
|
10941
12078
|
},
|
|
10942
|
-
'pkGetter-
|
|
12079
|
+
'pkGetter-background_jobs_2000': function (isEntityOrRef) {
|
|
10943
12080
|
// compiled pk getter for entity BackgroundJobEntity
|
|
10944
12081
|
return function (entity) {
|
|
10945
12082
|
return entity.id;
|
|
10946
12083
|
};
|
|
10947
12084
|
},
|
|
10948
|
-
'pkGetterConverted-
|
|
12085
|
+
'pkGetterConverted-background_jobs_2000': function (isEntityOrRef) {
|
|
10949
12086
|
// compiled pk getter (with converted custom types) for entity BackgroundJobEntity
|
|
10950
12087
|
return function (entity) {
|
|
10951
12088
|
return entity.id;
|
|
10952
12089
|
};
|
|
10953
12090
|
},
|
|
10954
|
-
'pkSerializer-
|
|
12091
|
+
'pkSerializer-background_jobs_2000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
10955
12092
|
// compiled pk serializer for entity BackgroundJobEntity
|
|
10956
12093
|
return function (entity) {
|
|
10957
12094
|
return '' + entity.id;
|
|
10958
12095
|
};
|
|
12096
|
+
},
|
|
12097
|
+
'hydrator-auth_budget_0-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
12098
|
+
// compiled hydrator for entity AuthBudgetEntity ( normalized)
|
|
12099
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
12100
|
+
if (data.id === null) {
|
|
12101
|
+
entity.id = null;
|
|
12102
|
+
}
|
|
12103
|
+
else if (typeof data.id !== 'undefined') {
|
|
12104
|
+
entity.id = data.id;
|
|
12105
|
+
}
|
|
12106
|
+
if (data.attempts === null) {
|
|
12107
|
+
entity.attempts = null;
|
|
12108
|
+
}
|
|
12109
|
+
else if (typeof data.attempts !== 'undefined') {
|
|
12110
|
+
entity.attempts = data.attempts;
|
|
12111
|
+
}
|
|
12112
|
+
if (data.expires_at === null) {
|
|
12113
|
+
entity.expires_at = null;
|
|
12114
|
+
}
|
|
12115
|
+
else if (typeof data.expires_at !== 'undefined') {
|
|
12116
|
+
if (data.expires_at instanceof Date) {
|
|
12117
|
+
entity.expires_at = data.expires_at;
|
|
12118
|
+
}
|
|
12119
|
+
else if (typeof data.expires_at === 'number' || data.expires_at.includes('+') || data.expires_at.lastIndexOf('-') > 10 || data.expires_at.endsWith('Z')) {
|
|
12120
|
+
entity.expires_at = new Date(data.expires_at);
|
|
12121
|
+
}
|
|
12122
|
+
else {
|
|
12123
|
+
entity.expires_at = new Date(data.expires_at + 'Z');
|
|
12124
|
+
}
|
|
12125
|
+
}
|
|
12126
|
+
};
|
|
12127
|
+
},
|
|
12128
|
+
'hydrator-auth_budget_0-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
12129
|
+
// compiled hydrator for entity AuthBudgetEntity ( normalized)
|
|
12130
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
12131
|
+
if (data.id === null) {
|
|
12132
|
+
entity.id = null;
|
|
12133
|
+
}
|
|
12134
|
+
else if (typeof data.id !== 'undefined') {
|
|
12135
|
+
entity.id = data.id;
|
|
12136
|
+
}
|
|
12137
|
+
if (data.attempts === null) {
|
|
12138
|
+
entity.attempts = null;
|
|
12139
|
+
}
|
|
12140
|
+
else if (typeof data.attempts !== 'undefined') {
|
|
12141
|
+
entity.attempts = data.attempts;
|
|
12142
|
+
}
|
|
12143
|
+
if (data.expires_at === null) {
|
|
12144
|
+
entity.expires_at = null;
|
|
12145
|
+
}
|
|
12146
|
+
else if (typeof data.expires_at !== 'undefined') {
|
|
12147
|
+
if (data.expires_at instanceof Date) {
|
|
12148
|
+
entity.expires_at = data.expires_at;
|
|
12149
|
+
}
|
|
12150
|
+
else if (typeof data.expires_at === 'number' || data.expires_at.includes('+') || data.expires_at.lastIndexOf('-') > 10 || data.expires_at.endsWith('Z')) {
|
|
12151
|
+
entity.expires_at = new Date(data.expires_at);
|
|
12152
|
+
}
|
|
12153
|
+
else {
|
|
12154
|
+
entity.expires_at = new Date(data.expires_at + 'Z');
|
|
12155
|
+
}
|
|
12156
|
+
}
|
|
12157
|
+
};
|
|
12158
|
+
},
|
|
12159
|
+
'comparator-auth_budget_0': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
12160
|
+
// compiled comparator for entity AuthBudgetEntity
|
|
12161
|
+
return function (last, current, options) {
|
|
12162
|
+
const diff = {};
|
|
12163
|
+
if (current.id === null && last.id === undefined) {
|
|
12164
|
+
diff.id = current.id;
|
|
12165
|
+
}
|
|
12166
|
+
else if (current.id == null && last.id == null) {
|
|
12167
|
+
}
|
|
12168
|
+
else if ((current.id != null && last.id == null) || (current.id == null && last.id != null)) {
|
|
12169
|
+
diff.id = current.id;
|
|
12170
|
+
}
|
|
12171
|
+
else if (last.id !== current.id) {
|
|
12172
|
+
diff.id = current.id;
|
|
12173
|
+
}
|
|
12174
|
+
if (current.attempts === null && last.attempts === undefined) {
|
|
12175
|
+
diff.attempts = current.attempts;
|
|
12176
|
+
}
|
|
12177
|
+
else if (current.attempts == null && last.attempts == null) {
|
|
12178
|
+
}
|
|
12179
|
+
else if ((current.attempts != null && last.attempts == null) || (current.attempts == null && last.attempts != null)) {
|
|
12180
|
+
diff.attempts = current.attempts;
|
|
12181
|
+
}
|
|
12182
|
+
else if (!equals(last.attempts, current.attempts)) {
|
|
12183
|
+
diff.attempts = current.attempts;
|
|
12184
|
+
}
|
|
12185
|
+
if (current.expires_at === null && last.expires_at === undefined) {
|
|
12186
|
+
diff.expires_at = current.expires_at;
|
|
12187
|
+
}
|
|
12188
|
+
else if (current.expires_at == null && last.expires_at == null) {
|
|
12189
|
+
}
|
|
12190
|
+
else if ((current.expires_at != null && last.expires_at == null) || (current.expires_at == null && last.expires_at != null)) {
|
|
12191
|
+
diff.expires_at = current.expires_at;
|
|
12192
|
+
}
|
|
12193
|
+
else if (last.expires_at.valueOf() !== current.expires_at.valueOf()) {
|
|
12194
|
+
diff.expires_at = current.expires_at;
|
|
12195
|
+
}
|
|
12196
|
+
if (options?.includeInverseSides) {
|
|
12197
|
+
}
|
|
12198
|
+
return diff;
|
|
12199
|
+
};
|
|
12200
|
+
},
|
|
12201
|
+
'snapshotGenerator-auth_budget_0': function (clone, cloneEmbeddable, processDateProperty) {
|
|
12202
|
+
return function (entity) {
|
|
12203
|
+
const ret = {};
|
|
12204
|
+
if (typeof entity.id !== 'undefined') {
|
|
12205
|
+
ret.id = entity.id;
|
|
12206
|
+
}
|
|
12207
|
+
if (typeof entity.attempts !== 'undefined') {
|
|
12208
|
+
ret.attempts = clone(entity.attempts);
|
|
12209
|
+
}
|
|
12210
|
+
if (typeof entity.expires_at !== 'undefined') {
|
|
12211
|
+
ret.expires_at = clone(processDateProperty(entity.expires_at));
|
|
12212
|
+
}
|
|
12213
|
+
return ret;
|
|
12214
|
+
};
|
|
12215
|
+
},
|
|
12216
|
+
'resultMapper-auth_budget_0': function (PolymorphicRef, parseDate) {
|
|
12217
|
+
// compiled mapper for entity AuthBudgetEntity
|
|
12218
|
+
return function (result) {
|
|
12219
|
+
const ret = {};
|
|
12220
|
+
const mapped = {};
|
|
12221
|
+
if (typeof result.id !== 'undefined') {
|
|
12222
|
+
ret.id = result.id;
|
|
12223
|
+
mapped.id = true;
|
|
12224
|
+
}
|
|
12225
|
+
if (typeof result.attempts !== 'undefined') {
|
|
12226
|
+
ret.attempts = result.attempts;
|
|
12227
|
+
mapped.attempts = true;
|
|
12228
|
+
}
|
|
12229
|
+
if (typeof result.expires_at !== 'undefined') {
|
|
12230
|
+
if (result.expires_at == null || result.expires_at instanceof Date) {
|
|
12231
|
+
ret.expires_at = result.expires_at;
|
|
12232
|
+
}
|
|
12233
|
+
else if (typeof result.expires_at === 'bigint') {
|
|
12234
|
+
ret.expires_at = parseDate(Number(result.expires_at));
|
|
12235
|
+
}
|
|
12236
|
+
else if (typeof result.expires_at === 'number' || result.expires_at.includes('+') || result.expires_at.lastIndexOf('-') > 10 || result.expires_at.endsWith('Z')) {
|
|
12237
|
+
ret.expires_at = parseDate(result.expires_at);
|
|
12238
|
+
}
|
|
12239
|
+
else {
|
|
12240
|
+
ret.expires_at = parseDate(result.expires_at + 'Z');
|
|
12241
|
+
}
|
|
12242
|
+
mapped.expires_at = true;
|
|
12243
|
+
}
|
|
12244
|
+
for (let k in result) {
|
|
12245
|
+
if (Object.hasOwn(result, k) && !mapped[k] && ret[k] === undefined)
|
|
12246
|
+
ret[k] = result[k];
|
|
12247
|
+
}
|
|
12248
|
+
return ret;
|
|
12249
|
+
};
|
|
12250
|
+
},
|
|
12251
|
+
'hydrator-auth_budget_0-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
12252
|
+
// compiled hydrator for entity AuthBudgetEntity ( normalized)
|
|
12253
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
12254
|
+
if (data.id === null) {
|
|
12255
|
+
entity.id = null;
|
|
12256
|
+
}
|
|
12257
|
+
else if (typeof data.id !== 'undefined') {
|
|
12258
|
+
entity.id = data.id;
|
|
12259
|
+
}
|
|
12260
|
+
};
|
|
12261
|
+
},
|
|
12262
|
+
'hydrator-auth_budget_0-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
12263
|
+
// compiled hydrator for entity AuthBudgetEntity ( normalized)
|
|
12264
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
12265
|
+
if (data.id === null) {
|
|
12266
|
+
entity.id = null;
|
|
12267
|
+
}
|
|
12268
|
+
else if (typeof data.id !== 'undefined') {
|
|
12269
|
+
entity.id = data.id;
|
|
12270
|
+
}
|
|
12271
|
+
};
|
|
12272
|
+
},
|
|
12273
|
+
'pkGetter-auth_budget_0': function (isEntityOrRef) {
|
|
12274
|
+
// compiled pk getter for entity AuthBudgetEntity
|
|
12275
|
+
return function (entity) {
|
|
12276
|
+
return entity.id;
|
|
12277
|
+
};
|
|
12278
|
+
},
|
|
12279
|
+
'pkGetterConverted-auth_budget_0': function (isEntityOrRef) {
|
|
12280
|
+
// compiled pk getter (with converted custom types) for entity AuthBudgetEntity
|
|
12281
|
+
return function (entity) {
|
|
12282
|
+
return entity.id;
|
|
12283
|
+
};
|
|
12284
|
+
},
|
|
12285
|
+
'pkSerializer-auth_budget_0': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
12286
|
+
// compiled pk serializer for entity AuthBudgetEntity
|
|
12287
|
+
return function (entity) {
|
|
12288
|
+
return '' + entity.id;
|
|
12289
|
+
};
|
|
10959
12290
|
}
|
|
10960
12291
|
};
|
|
10961
12292
|
//# sourceMappingURL=compiled-functions.js.map
|