@tinyrack/issuary-server 0.28.0 → 0.29.1
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/oauth-client.entity.d.ts +18 -0
- package/dist/entities/oauth-client.entity.d.ts.map +1 -1
- package/dist/entities/oauth-client.entity.js +12 -0
- package/dist/entities/oauth-client.entity.js.map +1 -1
- package/dist/entities/oauth-code.entity.d.ts +18 -0
- package/dist/entities/oauth-code.entity.d.ts.map +1 -1
- package/dist/entities/oauth-device-code.entity.d.ts +18 -0
- package/dist/entities/oauth-device-code.entity.d.ts.map +1 -1
- package/dist/entities/revoked-token.entity.d.ts +18 -0
- package/dist/entities/revoked-token.entity.d.ts.map +1 -1
- package/dist/entities/user-consent.entity.d.ts +18 -0
- package/dist/entities/user-consent.entity.d.ts.map +1 -1
- package/dist/entrypoints/app.d.ts +124 -30
- package/dist/entrypoints/app.d.ts.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.d.ts +10 -4
- package/dist/entrypoints/database/postgres/compiled-functions.js +111 -24
- package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.d.ts +10 -4
- package/dist/entrypoints/database/sqlite/compiled-functions.js +111 -24
- package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
- package/dist/lib/config/cleanup.d.ts +8 -0
- package/dist/lib/config/cleanup.d.ts.map +1 -1
- package/dist/lib/config/cleanup.js +16 -0
- package/dist/lib/config/cleanup.js.map +1 -1
- package/dist/lib/config/resolved.d.ts +4 -0
- package/dist/lib/config/resolved.d.ts.map +1 -1
- package/dist/migrations/postgres/Migration20260904090000_add_oauth_client_lifecycle.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260904090000_add_oauth_client_lifecycle.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260904090000_add_oauth_client_lifecycle.js +14 -0
- package/dist/migrations/postgres/Migration20260904090000_add_oauth_client_lifecycle.js.map +1 -0
- package/dist/migrations/postgres/index.d.ts.map +1 -1
- package/dist/migrations/postgres/index.js +2 -0
- package/dist/migrations/postgres/index.js.map +1 -1
- package/dist/migrations/sqlite/Migration20260904090000_add_oauth_client_lifecycle.d.ts +6 -0
- package/dist/migrations/sqlite/Migration20260904090000_add_oauth_client_lifecycle.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260904090000_add_oauth_client_lifecycle.js +14 -0
- package/dist/migrations/sqlite/Migration20260904090000_add_oauth_client_lifecycle.js.map +1 -0
- package/dist/migrations/sqlite/index.d.ts.map +1 -1
- package/dist/migrations/sqlite/index.js +2 -0
- package/dist/migrations/sqlite/index.js.map +1 -1
- package/dist/routes/api/admin/console/index.d.ts +91 -1
- package/dist/routes/api/admin/console/index.d.ts.map +1 -1
- package/dist/routes/api/admin/console/index.js +10 -2
- package/dist/routes/api/admin/console/index.js.map +1 -1
- package/dist/routes/api/admin/index.d.ts +91 -1
- package/dist/routes/api/admin/index.d.ts.map +1 -1
- package/dist/routes/api/auth/accounts/select.post.d.ts +6 -6
- package/dist/routes/api/auth/index.d.ts +11 -11
- package/dist/routes/api/index.d.ts +120 -30
- package/dist/routes/api/index.d.ts.map +1 -1
- package/dist/routes/api/oauth/_provider/callback/post.d.ts +9 -9
- package/dist/routes/index.d.ts +91 -1
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/oauth/index.d.ts +9 -9
- 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/response.d.ts +1 -0
- package/dist/schemas/response.d.ts.map +1 -1
- package/dist/schemas/response.js +4 -0
- package/dist/schemas/response.js.map +1 -1
- package/dist/seeders/config.seeder.js +14 -11
- package/dist/seeders/config.seeder.js.map +1 -1
- package/dist/services/admin-console.service.d.ts +47 -0
- package/dist/services/admin-console.service.d.ts.map +1 -1
- package/dist/services/admin-console.service.js +75 -6
- package/dist/services/admin-console.service.js.map +1 -1
- package/dist/services/cleanup.service.d.ts +2 -0
- package/dist/services/cleanup.service.d.ts.map +1 -1
- package/dist/services/cleanup.service.js +61 -0
- package/dist/services/cleanup.service.js.map +1 -1
- package/dist/services/container.d.ts +4 -0
- package/dist/services/container.d.ts.map +1 -1
- package/dist/services/jwt.service.d.ts +2 -0
- package/dist/services/jwt.service.d.ts.map +1 -1
- package/dist/services/jwt.service.js +6 -0
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/oauth-client.service.d.ts.map +1 -1
- package/dist/services/oauth-client.service.js +9 -5
- package/dist/services/oauth-client.service.js.map +1 -1
- package/dist/services/oauth-token.service.d.ts.map +1 -1
- package/dist/services/oauth-token.service.js +8 -1
- package/dist/services/oauth-token.service.js.map +1 -1
- package/frontend/client/assets/admin-console-BVGtfvzy.js +1 -0
- package/frontend/client/assets/admin-users-notice-DcKE5B43.js +1 -0
- package/frontend/client/assets/auth-choice-row-DBHleTc9.js +1 -0
- package/frontend/client/assets/{auth-layout-BFD6Jwkd.js → auth-layout-CFKu8bHI.js} +1 -1
- package/frontend/client/assets/{auth-page-header-DWIuRJtG.js → auth-page-header-D5Z-EA6V.js} +1 -1
- package/frontend/client/assets/{authorization-context-banner-WE0b3j97.js → authorization-context-banner-Cqtzj9A1.js} +1 -1
- package/frontend/client/assets/i18n-BY3irWek.js +1 -0
- package/frontend/client/assets/{language-selector-BZipfWXO.js → language-selector-CGXk9vW_.js} +1 -1
- package/frontend/client/assets/manifest-9217f574.js +1 -0
- package/frontend/client/assets/{passkey-DoR9gw8n.js → passkey-C9bzur2Z.js} +1 -1
- package/frontend/client/assets/{promise-C4eJsjRN.js → promise-CFWkfv2A.js} +1 -1
- package/frontend/client/assets/{root-DxmAI0wD.css → root-BzgVDKW8.css} +1 -1
- package/frontend/client/assets/{root-sdYEeZVs.js → root-DTCHNfT8.js} +1 -1
- package/frontend/client/assets/{route-BPss6aNC.js → route-48mZ_bkD.js} +1 -1
- package/frontend/client/assets/route-9i9rqQdx.js +4 -0
- package/frontend/client/assets/{route-BI7lRSrf.js → route-Bc48Eq7F.js} +1 -1
- package/frontend/client/assets/{route-BA8SLA-y.js → route-Bx9hz_OF.js} +1 -1
- package/frontend/client/assets/{route-B4n6iLak.js → route-C5Pe2AZT.js} +1 -1
- package/frontend/client/assets/{route-DHyl9fg6.js → route-C9TWgUZf.js} +1 -1
- package/frontend/client/assets/{route-DCxEMgcG.js → route-CBjporWj.js} +1 -1
- package/frontend/client/assets/{route-BbumhNTg.js → route-CLo3eo-R.js} +1 -1
- package/frontend/client/assets/route-CPIXY7eE.js +1 -0
- package/frontend/client/assets/{route--ygtU3xf.js → route-Caw4ohFV.js} +1 -1
- package/frontend/client/assets/{route-O04gqlmz.js → route-Ceht21dJ.js} +1 -1
- package/frontend/client/assets/route-CkS9fAlL.js +1 -0
- package/frontend/client/assets/{route-CCs0-fO0.js → route-CsT5EJEh.js} +1 -1
- package/frontend/client/assets/{route-DQlEYlRT.js → route-Cvob9_0Q.js} +1 -1
- package/frontend/client/assets/{route-OeZDuFSb.js → route-DCfkikii.js} +1 -1
- package/frontend/client/assets/{route-B1MD0P12.js → route-DHEnEwHa.js} +1 -1
- package/frontend/client/assets/{route-BLq7NTd1.js → route-DLNoCW7x.js} +1 -1
- package/frontend/client/assets/{route-WG7qPhB_.js → route-DVMfGHhl.js} +1 -1
- package/frontend/client/assets/{route-BUTlt8Ui.js → route-DlKXugZV.js} +1 -1
- package/frontend/client/assets/{route-D9cK2_2t.js → route-DokK6Iod.js} +1 -1
- package/frontend/client/assets/{route-D98zlsIA.js → route-ID67gqvy.js} +1 -1
- package/frontend/client/assets/{route-Cmo_MXuL.js → route-OWWRYmAT.js} +1 -1
- package/frontend/client/assets/{route-DitctEyz.js → route-R-BJj3-W.js} +1 -1
- package/frontend/client/assets/{route-CgqKzu4o.js → route-_DMD2pp1.js} +1 -1
- package/frontend/client/assets/{route-BukKUAfo.js → route-goGP2kXu.js} +1 -1
- package/frontend/client/assets/{route-DtL-KJ0k.js → route-xuoylbDO.js} +1 -1
- package/frontend/client/assets/{shell-header-bar-CtUdWFmD.js → shell-header-bar-C3KYib1D.js} +1 -1
- package/frontend/client/assets/{terms-BEja7rHN.js → terms-BReb6uEz.js} +1 -1
- package/frontend/client/assets/{use-totp-setup-BwOsP75D.js → use-totp-setup-BOSkSnYG.js} +1 -1
- package/frontend/server/assets/{hydration-CzMpuxhN.js → hydration-yaDCGSA8.js} +1 -1
- package/frontend/server/assets/{root-loader.server-BjcO3GtR.js → root-loader.server-Cwm-l9OS.js} +3 -3
- package/frontend/server/assets/{route-runtime.server-DnkciJ0v.js → route-runtime.server-CjDbp5w6.js} +1 -1
- package/frontend/server/assets/{session-CEJThdQg.js → session-CSnQWUgx.js} +30 -0
- package/frontend/server/index.js +384 -259
- package/package.json +1 -1
- package/frontend/client/assets/admin-console-DL8Kf5fu.js +0 -1
- package/frontend/client/assets/auth-choice-row-vQ3LzZiF.js +0 -1
- package/frontend/client/assets/i18n-wAvPXBC2.js +0 -1
- package/frontend/client/assets/manifest-6d4cda98.js +0 -1
- package/frontend/client/assets/route-CEunl4H1.js +0 -1
- package/frontend/client/assets/route-CZFY6zgn.js +0 -4
- package/frontend/client/assets/route-DUp2lTDn.js +0 -1
|
@@ -642,8 +642,8 @@ declare const _default: {
|
|
|
642
642
|
'pkGetter-oauth_code_10000': (isEntityOrRef: any) => (entity: any) => any;
|
|
643
643
|
'pkGetterConverted-oauth_code_10000': (isEntityOrRef: any, convertToDatabaseValue_id: any) => (entity: any) => any;
|
|
644
644
|
'pkSerializer-oauth_code_10000': (isEntityOrRef: any, getCompositeKeyValue: any, getPrimaryKeyHash: any, convertToDatabaseValue_id: any) => (entity: any) => any;
|
|
645
|
-
'hydrator-oauth_client_14000-full-false': (isPrimaryKey: any, isEntity: any, isScalarReference: any, Collection: any, Reference: any, PolymorphicRef: any, ValidationError: any, convertToJSValue_grantTypes: any, convertToDatabaseValue_grantTypes: any, convertToJSValue_responseTypes: any, convertToDatabaseValue_responseTypes: any, convertToJSValue_scopes: any, convertToDatabaseValue_scopes: any, convertToJSValue_redirectUris: any, convertToDatabaseValue_redirectUris: any, convertToJSValue_postLogoutRedirectUris: any, convertToDatabaseValue_postLogoutRedirectUris: any, convertToJSValue_webOrigins: any, convertToDatabaseValue_webOrigins: any,
|
|
646
|
-
'hydrator-oauth_client_14000-full-true': (isPrimaryKey: any, isEntity: any, isScalarReference: any, Collection: any, Reference: any, PolymorphicRef: any, ValidationError: any, convertToJSValue_grantTypes: any, convertToDatabaseValue_grantTypes: any, convertToJSValue_responseTypes: any, convertToDatabaseValue_responseTypes: any, convertToJSValue_scopes: any, convertToDatabaseValue_scopes: any, convertToJSValue_redirectUris: any, convertToDatabaseValue_redirectUris: any, convertToJSValue_postLogoutRedirectUris: any, convertToDatabaseValue_postLogoutRedirectUris: any, convertToJSValue_webOrigins: any, convertToDatabaseValue_webOrigins: any,
|
|
645
|
+
'hydrator-oauth_client_14000-full-false': (isPrimaryKey: any, isEntity: any, isScalarReference: any, Collection: any, Reference: any, PolymorphicRef: any, ValidationError: any, convertToJSValue_grantTypes: any, convertToDatabaseValue_grantTypes: any, convertToJSValue_responseTypes: any, convertToDatabaseValue_responseTypes: any, convertToJSValue_scopes: any, convertToDatabaseValue_scopes: any, convertToJSValue_redirectUris: any, convertToDatabaseValue_redirectUris: any, convertToJSValue_postLogoutRedirectUris: any, convertToDatabaseValue_postLogoutRedirectUris: any, convertToJSValue_webOrigins: any, convertToDatabaseValue_webOrigins: any, oauth_code_390: any, oauth_device_code_391: any, user_consent_392: any, revoked_tokens_393: any) => (entity: any, data: any, factory: any, newEntity: any, convertCustomTypes: any, schema: any, parentSchema: any, normalizeAccessors: any) => void;
|
|
646
|
+
'hydrator-oauth_client_14000-full-true': (isPrimaryKey: any, isEntity: any, isScalarReference: any, Collection: any, Reference: any, PolymorphicRef: any, ValidationError: any, convertToJSValue_grantTypes: any, convertToDatabaseValue_grantTypes: any, convertToJSValue_responseTypes: any, convertToDatabaseValue_responseTypes: any, convertToJSValue_scopes: any, convertToDatabaseValue_scopes: any, convertToJSValue_redirectUris: any, convertToDatabaseValue_redirectUris: any, convertToJSValue_postLogoutRedirectUris: any, convertToDatabaseValue_postLogoutRedirectUris: any, convertToJSValue_webOrigins: any, convertToDatabaseValue_webOrigins: any, oauth_code_412: any, oauth_device_code_413: any, user_consent_414: any, revoked_tokens_415: any) => (entity: any, data: any, factory: any, newEntity: any, convertCustomTypes: any, schema: any, parentSchema: any, normalizeAccessors: any) => void;
|
|
647
647
|
'comparator-oauth_client_14000': (compareArrays: any, compareBooleans: any, compareBuffers: any, compareObjects: any, equals: any) => (last: any, current: any, options: any) => {
|
|
648
648
|
id: any;
|
|
649
649
|
created_at: any;
|
|
@@ -658,6 +658,8 @@ declare const _default: {
|
|
|
658
658
|
postLogoutRedirectUris: any;
|
|
659
659
|
webOrigins: any;
|
|
660
660
|
enabled: any;
|
|
661
|
+
deletedAt: any;
|
|
662
|
+
tokenEpoch: any;
|
|
661
663
|
skipConsent: any;
|
|
662
664
|
managed_by: any;
|
|
663
665
|
logoUri: any;
|
|
@@ -676,6 +678,8 @@ declare const _default: {
|
|
|
676
678
|
postLogoutRedirectUris: any;
|
|
677
679
|
webOrigins: any;
|
|
678
680
|
enabled: any;
|
|
681
|
+
deletedAt: any;
|
|
682
|
+
tokenEpoch: any;
|
|
679
683
|
skipConsent: any;
|
|
680
684
|
managed_by: any;
|
|
681
685
|
logoUri: any;
|
|
@@ -694,6 +698,8 @@ declare const _default: {
|
|
|
694
698
|
postLogoutRedirectUris: any;
|
|
695
699
|
webOrigins: any;
|
|
696
700
|
enabled: any;
|
|
701
|
+
deletedAt: any;
|
|
702
|
+
tokenEpoch: any;
|
|
697
703
|
skipConsent: any;
|
|
698
704
|
managed_by: any;
|
|
699
705
|
logoUri: any;
|
|
@@ -749,8 +755,8 @@ declare const _default: {
|
|
|
749
755
|
'pkGetter-jwt_key_9000': (isEntityOrRef: any) => (entity: any) => any;
|
|
750
756
|
'pkGetterConverted-jwt_key_9000': (isEntityOrRef: any) => (entity: any) => any;
|
|
751
757
|
'pkSerializer-jwt_key_9000': (isEntityOrRef: any, getCompositeKeyValue: any, getPrimaryKeyHash: any) => (entity: any) => string;
|
|
752
|
-
'hydrator-email_verification_8000-full-false': (isPrimaryKey: any, isEntity: any, isScalarReference: any, Collection: any, Reference: any, PolymorphicRef: any, ValidationError: any, convertToJSValue_id: any, convertToDatabaseValue_id: any,
|
|
753
|
-
'hydrator-email_verification_8000-full-true': (isPrimaryKey: any, isEntity: any, isScalarReference: any, Collection: any, Reference: any, PolymorphicRef: any, ValidationError: any, convertToJSValue_id: any, convertToDatabaseValue_id: any,
|
|
758
|
+
'hydrator-email_verification_8000-full-false': (isPrimaryKey: any, isEntity: any, isScalarReference: any, Collection: any, Reference: any, PolymorphicRef: any, ValidationError: any, convertToJSValue_id: any, convertToDatabaseValue_id: any, user_445: any, user_446: any) => (entity: any, data: any, factory: any, newEntity: any, convertCustomTypes: any, schema: any, parentSchema: any, normalizeAccessors: any) => void;
|
|
759
|
+
'hydrator-email_verification_8000-full-true': (isPrimaryKey: any, isEntity: any, isScalarReference: any, Collection: any, Reference: any, PolymorphicRef: any, ValidationError: any, convertToJSValue_id: any, convertToDatabaseValue_id: any, user_454: any, user_455: any) => (entity: any, data: any, factory: any, newEntity: any, convertCustomTypes: any, schema: any, parentSchema: any, normalizeAccessors: any) => void;
|
|
754
760
|
'comparator-email_verification_8000': (compareArrays: any, compareBooleans: any, compareBuffers: any, compareObjects: any, equals: any) => (last: any, current: any, options: any) => {
|
|
755
761
|
id: any;
|
|
756
762
|
created_at: any;
|
|
@@ -8069,7 +8069,7 @@ export default {
|
|
|
8069
8069
|
return getPrimaryKeyHash(val_12);
|
|
8070
8070
|
};
|
|
8071
8071
|
},
|
|
8072
|
-
'hydrator-oauth_client_14000-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,
|
|
8072
|
+
'hydrator-oauth_client_14000-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_390, oauth_device_code_391, user_consent_392, revoked_tokens_393) {
|
|
8073
8073
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
8074
8074
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
8075
8075
|
if (data.id === null) {
|
|
@@ -8208,6 +8208,26 @@ export default {
|
|
|
8208
8208
|
else if (typeof data.enabled !== 'undefined') {
|
|
8209
8209
|
entity.enabled = !!data.enabled;
|
|
8210
8210
|
}
|
|
8211
|
+
if (data.deletedAt === null) {
|
|
8212
|
+
entity.deletedAt = null;
|
|
8213
|
+
}
|
|
8214
|
+
else if (typeof data.deletedAt !== 'undefined') {
|
|
8215
|
+
if (data.deletedAt instanceof Date) {
|
|
8216
|
+
entity.deletedAt = data.deletedAt;
|
|
8217
|
+
}
|
|
8218
|
+
else if (typeof data.deletedAt === 'number' || data.deletedAt.includes('+') || data.deletedAt.lastIndexOf('-') > 10 || data.deletedAt.endsWith('Z')) {
|
|
8219
|
+
entity.deletedAt = new Date(data.deletedAt);
|
|
8220
|
+
}
|
|
8221
|
+
else {
|
|
8222
|
+
entity.deletedAt = new Date(data.deletedAt + 'Z');
|
|
8223
|
+
}
|
|
8224
|
+
}
|
|
8225
|
+
if (data.tokenEpoch === null) {
|
|
8226
|
+
entity.tokenEpoch = null;
|
|
8227
|
+
}
|
|
8228
|
+
else if (typeof data.tokenEpoch !== 'undefined') {
|
|
8229
|
+
entity.tokenEpoch = data.tokenEpoch;
|
|
8230
|
+
}
|
|
8211
8231
|
if (data.skipConsent === null) {
|
|
8212
8232
|
entity.skipConsent = null;
|
|
8213
8233
|
}
|
|
@@ -8228,10 +8248,10 @@ export default {
|
|
|
8228
8248
|
}
|
|
8229
8249
|
const createCollectionItem_codes = (value, entity) => {
|
|
8230
8250
|
if (isPrimaryKey(value, false))
|
|
8231
|
-
return factory.createReference(
|
|
8251
|
+
return factory.createReference(oauth_code_390, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8232
8252
|
if (value && isEntity(value))
|
|
8233
8253
|
return value;
|
|
8234
|
-
return factory.create(
|
|
8254
|
+
return factory.create(oauth_code_390, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8235
8255
|
};
|
|
8236
8256
|
if (data.codes && !Array.isArray(data.codes) && typeof data.codes === 'object') {
|
|
8237
8257
|
data.codes = [data.codes];
|
|
@@ -8255,10 +8275,10 @@ export default {
|
|
|
8255
8275
|
}
|
|
8256
8276
|
const createCollectionItem_deviceCodes = (value, entity) => {
|
|
8257
8277
|
if (isPrimaryKey(value, false))
|
|
8258
|
-
return factory.createReference(
|
|
8278
|
+
return factory.createReference(oauth_device_code_391, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8259
8279
|
if (value && isEntity(value))
|
|
8260
8280
|
return value;
|
|
8261
|
-
return factory.create(
|
|
8281
|
+
return factory.create(oauth_device_code_391, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8262
8282
|
};
|
|
8263
8283
|
if (data.deviceCodes && !Array.isArray(data.deviceCodes) && typeof data.deviceCodes === 'object') {
|
|
8264
8284
|
data.deviceCodes = [data.deviceCodes];
|
|
@@ -8282,10 +8302,10 @@ export default {
|
|
|
8282
8302
|
}
|
|
8283
8303
|
const createCollectionItem_consents = (value, entity) => {
|
|
8284
8304
|
if (isPrimaryKey(value, false))
|
|
8285
|
-
return factory.createReference(
|
|
8305
|
+
return factory.createReference(user_consent_392, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8286
8306
|
if (value && isEntity(value))
|
|
8287
8307
|
return value;
|
|
8288
|
-
return factory.create(
|
|
8308
|
+
return factory.create(user_consent_392, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8289
8309
|
};
|
|
8290
8310
|
if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
|
|
8291
8311
|
data.consents = [data.consents];
|
|
@@ -8309,10 +8329,10 @@ export default {
|
|
|
8309
8329
|
}
|
|
8310
8330
|
const createCollectionItem_revokedTokens = (value, entity) => {
|
|
8311
8331
|
if (isPrimaryKey(value, false))
|
|
8312
|
-
return factory.createReference(
|
|
8332
|
+
return factory.createReference(revoked_tokens_393, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8313
8333
|
if (value && isEntity(value))
|
|
8314
8334
|
return value;
|
|
8315
|
-
return factory.create(
|
|
8335
|
+
return factory.create(revoked_tokens_393, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8316
8336
|
};
|
|
8317
8337
|
if (data.revokedTokens && !Array.isArray(data.revokedTokens) && typeof data.revokedTokens === 'object') {
|
|
8318
8338
|
data.revokedTokens = [data.revokedTokens];
|
|
@@ -8336,7 +8356,7 @@ export default {
|
|
|
8336
8356
|
}
|
|
8337
8357
|
};
|
|
8338
8358
|
},
|
|
8339
|
-
'hydrator-oauth_client_14000-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,
|
|
8359
|
+
'hydrator-oauth_client_14000-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_412, oauth_device_code_413, user_consent_414, revoked_tokens_415) {
|
|
8340
8360
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
8341
8361
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
8342
8362
|
if (data.id === null) {
|
|
@@ -8475,6 +8495,26 @@ export default {
|
|
|
8475
8495
|
else if (typeof data.enabled !== 'undefined') {
|
|
8476
8496
|
entity.enabled = !!data.enabled;
|
|
8477
8497
|
}
|
|
8498
|
+
if (data.deletedAt === null) {
|
|
8499
|
+
entity.deletedAt = null;
|
|
8500
|
+
}
|
|
8501
|
+
else if (typeof data.deletedAt !== 'undefined') {
|
|
8502
|
+
if (data.deletedAt instanceof Date) {
|
|
8503
|
+
entity.deletedAt = data.deletedAt;
|
|
8504
|
+
}
|
|
8505
|
+
else if (typeof data.deletedAt === 'number' || data.deletedAt.includes('+') || data.deletedAt.lastIndexOf('-') > 10 || data.deletedAt.endsWith('Z')) {
|
|
8506
|
+
entity.deletedAt = new Date(data.deletedAt);
|
|
8507
|
+
}
|
|
8508
|
+
else {
|
|
8509
|
+
entity.deletedAt = new Date(data.deletedAt + 'Z');
|
|
8510
|
+
}
|
|
8511
|
+
}
|
|
8512
|
+
if (data.tokenEpoch === null) {
|
|
8513
|
+
entity.tokenEpoch = null;
|
|
8514
|
+
}
|
|
8515
|
+
else if (typeof data.tokenEpoch !== 'undefined') {
|
|
8516
|
+
entity.tokenEpoch = data.tokenEpoch;
|
|
8517
|
+
}
|
|
8478
8518
|
if (data.skipConsent === null) {
|
|
8479
8519
|
entity.skipConsent = null;
|
|
8480
8520
|
}
|
|
@@ -8495,10 +8535,10 @@ export default {
|
|
|
8495
8535
|
}
|
|
8496
8536
|
const createCollectionItem_codes = (value, entity) => {
|
|
8497
8537
|
if (isPrimaryKey(value, false))
|
|
8498
|
-
return factory.createReference(
|
|
8538
|
+
return factory.createReference(oauth_code_412, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8499
8539
|
if (value && isEntity(value))
|
|
8500
8540
|
return value;
|
|
8501
|
-
return factory.create(
|
|
8541
|
+
return factory.create(oauth_code_412, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8502
8542
|
};
|
|
8503
8543
|
if (data.codes && !Array.isArray(data.codes) && typeof data.codes === 'object') {
|
|
8504
8544
|
data.codes = [data.codes];
|
|
@@ -8522,10 +8562,10 @@ export default {
|
|
|
8522
8562
|
}
|
|
8523
8563
|
const createCollectionItem_deviceCodes = (value, entity) => {
|
|
8524
8564
|
if (isPrimaryKey(value, false))
|
|
8525
|
-
return factory.createReference(
|
|
8565
|
+
return factory.createReference(oauth_device_code_413, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8526
8566
|
if (value && isEntity(value))
|
|
8527
8567
|
return value;
|
|
8528
|
-
return factory.create(
|
|
8568
|
+
return factory.create(oauth_device_code_413, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8529
8569
|
};
|
|
8530
8570
|
if (data.deviceCodes && !Array.isArray(data.deviceCodes) && typeof data.deviceCodes === 'object') {
|
|
8531
8571
|
data.deviceCodes = [data.deviceCodes];
|
|
@@ -8549,10 +8589,10 @@ export default {
|
|
|
8549
8589
|
}
|
|
8550
8590
|
const createCollectionItem_consents = (value, entity) => {
|
|
8551
8591
|
if (isPrimaryKey(value, false))
|
|
8552
|
-
return factory.createReference(
|
|
8592
|
+
return factory.createReference(user_consent_414, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8553
8593
|
if (value && isEntity(value))
|
|
8554
8594
|
return value;
|
|
8555
|
-
return factory.create(
|
|
8595
|
+
return factory.create(user_consent_414, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8556
8596
|
};
|
|
8557
8597
|
if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
|
|
8558
8598
|
data.consents = [data.consents];
|
|
@@ -8576,10 +8616,10 @@ export default {
|
|
|
8576
8616
|
}
|
|
8577
8617
|
const createCollectionItem_revokedTokens = (value, entity) => {
|
|
8578
8618
|
if (isPrimaryKey(value, false))
|
|
8579
|
-
return factory.createReference(
|
|
8619
|
+
return factory.createReference(revoked_tokens_415, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8580
8620
|
if (value && isEntity(value))
|
|
8581
8621
|
return value;
|
|
8582
|
-
return factory.create(
|
|
8622
|
+
return factory.create(revoked_tokens_415, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8583
8623
|
};
|
|
8584
8624
|
if (data.revokedTokens && !Array.isArray(data.revokedTokens) && typeof data.revokedTokens === 'object') {
|
|
8585
8625
|
data.revokedTokens = [data.revokedTokens];
|
|
@@ -8750,6 +8790,28 @@ export default {
|
|
|
8750
8790
|
else if (!compareBooleans(last.enabled, current.enabled)) {
|
|
8751
8791
|
diff.enabled = current.enabled;
|
|
8752
8792
|
}
|
|
8793
|
+
if (current.deletedAt === null && last.deletedAt === undefined) {
|
|
8794
|
+
diff.deletedAt = current.deletedAt;
|
|
8795
|
+
}
|
|
8796
|
+
else if (current.deletedAt == null && last.deletedAt == null) {
|
|
8797
|
+
}
|
|
8798
|
+
else if ((current.deletedAt != null && last.deletedAt == null) || (current.deletedAt == null && last.deletedAt != null)) {
|
|
8799
|
+
diff.deletedAt = current.deletedAt;
|
|
8800
|
+
}
|
|
8801
|
+
else if (last.deletedAt.valueOf() !== current.deletedAt.valueOf()) {
|
|
8802
|
+
diff.deletedAt = current.deletedAt;
|
|
8803
|
+
}
|
|
8804
|
+
if (current.tokenEpoch === null && last.tokenEpoch === undefined) {
|
|
8805
|
+
diff.tokenEpoch = current.tokenEpoch;
|
|
8806
|
+
}
|
|
8807
|
+
else if (current.tokenEpoch == null && last.tokenEpoch == null) {
|
|
8808
|
+
}
|
|
8809
|
+
else if ((current.tokenEpoch != null && last.tokenEpoch == null) || (current.tokenEpoch == null && last.tokenEpoch != null)) {
|
|
8810
|
+
diff.tokenEpoch = current.tokenEpoch;
|
|
8811
|
+
}
|
|
8812
|
+
else if (last.tokenEpoch !== current.tokenEpoch) {
|
|
8813
|
+
diff.tokenEpoch = current.tokenEpoch;
|
|
8814
|
+
}
|
|
8753
8815
|
if (current.skipConsent === null && last.skipConsent === undefined) {
|
|
8754
8816
|
diff.skipConsent = current.skipConsent;
|
|
8755
8817
|
}
|
|
@@ -8830,6 +8892,12 @@ export default {
|
|
|
8830
8892
|
if (typeof entity.enabled !== 'undefined') {
|
|
8831
8893
|
ret.enabled = entity.enabled;
|
|
8832
8894
|
}
|
|
8895
|
+
if (typeof entity.deletedAt !== 'undefined') {
|
|
8896
|
+
ret.deletedAt = clone(processDateProperty(entity.deletedAt));
|
|
8897
|
+
}
|
|
8898
|
+
if (typeof entity.tokenEpoch !== 'undefined') {
|
|
8899
|
+
ret.tokenEpoch = entity.tokenEpoch;
|
|
8900
|
+
}
|
|
8833
8901
|
if (typeof entity.skipConsent !== 'undefined') {
|
|
8834
8902
|
ret.skipConsent = entity.skipConsent;
|
|
8835
8903
|
}
|
|
@@ -8921,6 +8989,25 @@ export default {
|
|
|
8921
8989
|
ret.enabled = result.enabled == null ? result.enabled : !!result.enabled;
|
|
8922
8990
|
mapped.enabled = true;
|
|
8923
8991
|
}
|
|
8992
|
+
if (typeof result.deleted_at !== 'undefined') {
|
|
8993
|
+
if (result.deleted_at == null || result.deleted_at instanceof Date) {
|
|
8994
|
+
ret.deletedAt = result.deleted_at;
|
|
8995
|
+
}
|
|
8996
|
+
else if (typeof result.deleted_at === 'bigint') {
|
|
8997
|
+
ret.deletedAt = parseDate(Number(result.deleted_at));
|
|
8998
|
+
}
|
|
8999
|
+
else if (typeof result.deleted_at === 'number' || result.deleted_at.includes('+') || result.deleted_at.lastIndexOf('-') > 10 || result.deleted_at.endsWith('Z')) {
|
|
9000
|
+
ret.deletedAt = parseDate(result.deleted_at);
|
|
9001
|
+
}
|
|
9002
|
+
else {
|
|
9003
|
+
ret.deletedAt = parseDate(result.deleted_at + 'Z');
|
|
9004
|
+
}
|
|
9005
|
+
mapped.deleted_at = true;
|
|
9006
|
+
}
|
|
9007
|
+
if (typeof result.token_epoch !== 'undefined') {
|
|
9008
|
+
ret.tokenEpoch = result.token_epoch;
|
|
9009
|
+
mapped.token_epoch = true;
|
|
9010
|
+
}
|
|
8924
9011
|
if (typeof result.skip_consent !== 'undefined') {
|
|
8925
9012
|
ret.skipConsent = result.skip_consent == null ? result.skip_consent : !!result.skip_consent;
|
|
8926
9013
|
mapped.skip_consent = true;
|
|
@@ -9549,7 +9636,7 @@ export default {
|
|
|
9549
9636
|
return '' + entity.kid;
|
|
9550
9637
|
};
|
|
9551
9638
|
},
|
|
9552
|
-
'hydrator-email_verification_8000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id,
|
|
9639
|
+
'hydrator-email_verification_8000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_445, user_446) {
|
|
9553
9640
|
// compiled hydrator for entity EmailVerificationEntity ( normalized)
|
|
9554
9641
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9555
9642
|
if (data.id === null) {
|
|
@@ -9597,10 +9684,10 @@ export default {
|
|
|
9597
9684
|
}
|
|
9598
9685
|
else if (typeof data.user !== 'undefined') {
|
|
9599
9686
|
if (isPrimaryKey(data.user, true)) {
|
|
9600
|
-
entity.user = Reference.create(factory.createReference(
|
|
9687
|
+
entity.user = Reference.create(factory.createReference(user_445, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
9601
9688
|
}
|
|
9602
9689
|
else if (data.user && typeof data.user === 'object') {
|
|
9603
|
-
entity.user = Reference.create(factory.create(
|
|
9690
|
+
entity.user = Reference.create(factory.create(user_446, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
9604
9691
|
}
|
|
9605
9692
|
}
|
|
9606
9693
|
if (data.token === null) {
|
|
@@ -9645,7 +9732,7 @@ export default {
|
|
|
9645
9732
|
}
|
|
9646
9733
|
};
|
|
9647
9734
|
},
|
|
9648
|
-
'hydrator-email_verification_8000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id,
|
|
9735
|
+
'hydrator-email_verification_8000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_454, user_455) {
|
|
9649
9736
|
// compiled hydrator for entity EmailVerificationEntity ( normalized)
|
|
9650
9737
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
9651
9738
|
if (data.id === null) {
|
|
@@ -9693,10 +9780,10 @@ export default {
|
|
|
9693
9780
|
}
|
|
9694
9781
|
else if (typeof data.user !== 'undefined') {
|
|
9695
9782
|
if (isPrimaryKey(data.user, true)) {
|
|
9696
|
-
entity.user = Reference.create(factory.createReference(
|
|
9783
|
+
entity.user = Reference.create(factory.createReference(user_454, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
9697
9784
|
}
|
|
9698
9785
|
else if (data.user && typeof data.user === 'object') {
|
|
9699
|
-
entity.user = Reference.create(factory.create(
|
|
9786
|
+
entity.user = Reference.create(factory.create(user_455, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
9700
9787
|
}
|
|
9701
9788
|
}
|
|
9702
9789
|
if (data.token === null) {
|