@tinyrack/tinyauth-server 0.3.1 → 0.5.0
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/background-job.entity.d.ts.map +1 -1
- package/dist/entities/background-job.entity.js +15 -3
- package/dist/entities/background-job.entity.js.map +1 -1
- package/dist/entities/oauth-client.entity.d.ts +147 -0
- package/dist/entities/oauth-client.entity.d.ts.map +1 -1
- package/dist/entities/oauth-client.entity.js +10 -0
- package/dist/entities/oauth-client.entity.js.map +1 -1
- package/dist/entities/oauth-code.entity.d.ts +147 -0
- package/dist/entities/oauth-code.entity.d.ts.map +1 -1
- package/dist/entities/oauth-device-code.entity.d.ts +1737 -0
- package/dist/entities/oauth-device-code.entity.d.ts.map +1 -0
- package/dist/entities/oauth-device-code.entity.js +61 -0
- package/dist/entities/oauth-device-code.entity.js.map +1 -0
- package/dist/entities/revoked-token.entity.d.ts +147 -0
- package/dist/entities/revoked-token.entity.d.ts.map +1 -1
- package/dist/entities/scheduler-job.entity.d.ts.map +1 -1
- package/dist/entities/scheduler-job.entity.js +10 -2
- package/dist/entities/scheduler-job.entity.js.map +1 -1
- package/dist/entities/user-consent.entity.d.ts +147 -0
- package/dist/entities/user-consent.entity.d.ts.map +1 -1
- package/dist/entities/user-oauth.entity.d.ts.map +1 -1
- package/dist/entities/user-oauth.entity.js +2 -1
- package/dist/entities/user-oauth.entity.js.map +1 -1
- package/dist/entrypoints/app.d.ts +127 -20
- package/dist/entrypoints/app.d.ts.map +1 -1
- package/dist/entrypoints/app.js +72 -5
- package/dist/entrypoints/app.js.map +1 -1
- package/dist/entrypoints/database/postgres/cli.js +5 -5
- package/dist/entrypoints/database/postgres/cli.js.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.d.ts +146 -94
- package/dist/entrypoints/database/postgres/compiled-functions.d.ts.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.js +881 -122
- package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/sqlite/cli.js +2 -2
- package/dist/entrypoints/database/sqlite/cli.js.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.d.ts +146 -94
- package/dist/entrypoints/database/sqlite/compiled-functions.d.ts.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.js +881 -122
- package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
- package/dist/lib/config/client.d.ts +28 -6
- package/dist/lib/config/client.d.ts.map +1 -1
- package/dist/lib/config/client.js +133 -7
- package/dist/lib/config/client.js.map +1 -1
- package/dist/lib/config/resolved.d.ts +14 -3
- package/dist/lib/config/resolved.d.ts.map +1 -1
- package/dist/lib/config/security.d.ts.map +1 -1
- package/dist/lib/config/security.js +25 -2
- package/dist/lib/config/security.js.map +1 -1
- package/dist/lib/crypto.d.ts.map +1 -1
- package/dist/lib/crypto.js +11 -1
- package/dist/lib/crypto.js.map +1 -1
- package/dist/lib/database/entities.d.ts.map +1 -1
- package/dist/lib/database/entities.js +2 -0
- package/dist/lib/database/entities.js.map +1 -1
- package/dist/lib/escape-html.d.ts +7 -0
- package/dist/lib/escape-html.d.ts.map +1 -0
- package/dist/lib/escape-html.js +14 -0
- package/dist/lib/escape-html.js.map +1 -0
- package/dist/migrations/postgres/Migration20260619075007.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260619075007.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260619075007.js +86 -0
- package/dist/migrations/postgres/Migration20260619075007.js.map +1 -0
- package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.js +12 -0
- package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.js.map +1 -0
- package/dist/migrations/postgres/index.d.ts.map +1 -1
- package/dist/migrations/postgres/index.js +4 -0
- package/dist/migrations/postgres/index.js.map +1 -1
- package/dist/migrations/sqlite/Migration20260619075330.d.ts +6 -0
- package/dist/migrations/sqlite/Migration20260619075330.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260619075330.js +57 -0
- package/dist/migrations/sqlite/Migration20260619075330.js.map +1 -0
- package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.d.ts +6 -0
- package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.js +12 -0
- package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.js.map +1 -0
- package/dist/migrations/sqlite/index.d.ts.map +1 -1
- package/dist/migrations/sqlite/index.js +4 -0
- package/dist/migrations/sqlite/index.js.map +1 -1
- package/dist/repositories/oauth-device-code.repository.d.ts +20 -0
- package/dist/repositories/oauth-device-code.repository.d.ts.map +1 -0
- package/dist/repositories/oauth-device-code.repository.js +55 -0
- package/dist/repositories/oauth-device-code.repository.js.map +1 -0
- package/dist/routes/.well-known/index.d.ts +29 -3
- package/dist/routes/.well-known/index.d.ts.map +1 -1
- package/dist/routes/.well-known/openid-configuration/get.d.ts +30 -4
- package/dist/routes/.well-known/openid-configuration/get.d.ts.map +1 -1
- package/dist/routes/.well-known/openid-configuration/get.js +5 -2
- package/dist/routes/.well-known/openid-configuration/get.js.map +1 -1
- package/dist/routes/index.d.ts +123 -18
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts +33 -0
- package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts.map +1 -1
- package/dist/routes/oauth/.well-known/openid-configuration/get.js +78 -40
- package/dist/routes/oauth/.well-known/openid-configuration/get.js.map +1 -1
- package/dist/routes/oauth/authorize/get.d.ts +8 -26
- package/dist/routes/oauth/authorize/get.d.ts.map +1 -1
- package/dist/routes/oauth/authorize/get.js +34 -3
- package/dist/routes/oauth/authorize/get.js.map +1 -1
- package/dist/routes/oauth/cors.d.ts +9 -0
- package/dist/routes/oauth/cors.d.ts.map +1 -0
- package/dist/routes/oauth/cors.js +50 -0
- package/dist/routes/oauth/cors.js.map +1 -0
- package/dist/routes/oauth/device/get-post.d.ts +28 -0
- package/dist/routes/oauth/device/get-post.d.ts.map +1 -0
- package/dist/routes/oauth/device/get-post.js +67 -0
- package/dist/routes/oauth/device/get-post.js.map +1 -0
- package/dist/routes/oauth/device-authorization/post.d.ts +25 -0
- package/dist/routes/oauth/device-authorization/post.d.ts.map +1 -0
- package/dist/routes/oauth/device-authorization/post.js +87 -0
- package/dist/routes/oauth/device-authorization/post.js.map +1 -0
- package/dist/routes/oauth/end-session/get.d.ts +34 -0
- package/dist/routes/oauth/end-session/get.d.ts.map +1 -0
- package/dist/routes/oauth/end-session/get.js +74 -0
- package/dist/routes/oauth/end-session/get.js.map +1 -0
- package/dist/routes/oauth/index.d.ts +95 -16
- package/dist/routes/oauth/index.d.ts.map +1 -1
- package/dist/routes/oauth/index.js +8 -0
- package/dist/routes/oauth/index.js.map +1 -1
- package/dist/routes/oauth/introspect/post.d.ts.map +1 -1
- package/dist/routes/oauth/introspect/post.js +2 -0
- package/dist/routes/oauth/introspect/post.js.map +1 -1
- package/dist/routes/oauth/revoke/post.d.ts.map +1 -1
- package/dist/routes/oauth/revoke/post.js +2 -0
- package/dist/routes/oauth/revoke/post.js.map +1 -1
- package/dist/routes/oauth/token/post.d.ts +2 -0
- package/dist/routes/oauth/token/post.d.ts.map +1 -1
- package/dist/routes/oauth/token/post.js +46 -0
- package/dist/routes/oauth/token/post.js.map +1 -1
- package/dist/routes/oauth/userinfo/get.d.ts +16 -4
- package/dist/routes/oauth/userinfo/get.d.ts.map +1 -1
- package/dist/routes/oauth/userinfo/get.js +50 -30
- package/dist/routes/oauth/userinfo/get.js.map +1 -1
- package/dist/schemas/error.d.ts +100 -0
- package/dist/schemas/error.d.ts.map +1 -1
- package/dist/schemas/error.js +4 -0
- package/dist/schemas/error.js.map +1 -1
- package/dist/schemas/field.d.ts +2 -0
- package/dist/schemas/field.d.ts.map +1 -1
- package/dist/schemas/field.js +6 -1
- package/dist/schemas/field.js.map +1 -1
- package/dist/schemas/response.d.ts +2 -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 +2 -0
- package/dist/seeders/config.seeder.js.map +1 -1
- package/dist/services/container.d.ts +4 -2
- package/dist/services/container.d.ts.map +1 -1
- package/dist/services/jwt.service.d.ts +4 -0
- package/dist/services/jwt.service.d.ts.map +1 -1
- package/dist/services/jwt.service.js +27 -6
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/mikro.service.d.ts +2 -0
- package/dist/services/mikro.service.d.ts.map +1 -1
- package/dist/services/mikro.service.js +3 -0
- package/dist/services/mikro.service.js.map +1 -1
- package/dist/services/oauth-authorize.service.d.ts +9 -1
- package/dist/services/oauth-authorize.service.d.ts.map +1 -1
- package/dist/services/oauth-authorize.service.js +113 -18
- package/dist/services/oauth-authorize.service.js.map +1 -1
- package/dist/services/oauth-client.service.d.ts +3 -0
- package/dist/services/oauth-client.service.d.ts.map +1 -1
- package/dist/services/oauth-client.service.js +16 -0
- package/dist/services/oauth-client.service.js.map +1 -1
- package/dist/services/oauth-token.service.d.ts +11 -0
- package/dist/services/oauth-token.service.d.ts.map +1 -1
- package/dist/services/oauth-token.service.js +69 -1
- package/dist/services/oauth-token.service.js.map +1 -1
- package/dist/services/security.service.d.ts +1 -1
- package/dist/services/security.service.d.ts.map +1 -1
- package/dist/services/security.service.js +2 -0
- package/dist/services/security.service.js.map +1 -1
- package/package.json +3 -3
- package/readme.md +5 -1
|
@@ -795,7 +795,7 @@ export default {
|
|
|
795
795
|
return getPrimaryKeyHash(val_1);
|
|
796
796
|
};
|
|
797
797
|
},
|
|
798
|
-
'hydrator-
|
|
798
|
+
'hydrator-user_terms_consent_19000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_39, user_40, terms_41, terms_42) {
|
|
799
799
|
// compiled hydrator for entity UserTermsConsentEntity ( normalized)
|
|
800
800
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
801
801
|
if (data.id === null) {
|
|
@@ -894,7 +894,7 @@ export default {
|
|
|
894
894
|
}
|
|
895
895
|
};
|
|
896
896
|
},
|
|
897
|
-
'hydrator-
|
|
897
|
+
'hydrator-user_terms_consent_19000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_50, user_51, terms_52, terms_53) {
|
|
898
898
|
// compiled hydrator for entity UserTermsConsentEntity ( normalized)
|
|
899
899
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
900
900
|
if (data.id === null) {
|
|
@@ -993,7 +993,7 @@ export default {
|
|
|
993
993
|
}
|
|
994
994
|
};
|
|
995
995
|
},
|
|
996
|
-
'comparator-
|
|
996
|
+
'comparator-user_terms_consent_19000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
997
997
|
// compiled comparator for entity UserTermsConsentEntity
|
|
998
998
|
return function (last, current, options) {
|
|
999
999
|
const diff = {};
|
|
@@ -1101,7 +1101,7 @@ export default {
|
|
|
1101
1101
|
return diff;
|
|
1102
1102
|
};
|
|
1103
1103
|
},
|
|
1104
|
-
'snapshotGenerator-
|
|
1104
|
+
'snapshotGenerator-user_terms_consent_19000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
1105
1105
|
return function (entity) {
|
|
1106
1106
|
const ret = {};
|
|
1107
1107
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -1150,7 +1150,7 @@ export default {
|
|
|
1150
1150
|
return ret;
|
|
1151
1151
|
};
|
|
1152
1152
|
},
|
|
1153
|
-
'resultMapper-
|
|
1153
|
+
'resultMapper-user_terms_consent_19000': function (PolymorphicRef, parseDate) {
|
|
1154
1154
|
// compiled mapper for entity UserTermsConsentEntity
|
|
1155
1155
|
return function (result) {
|
|
1156
1156
|
const ret = {};
|
|
@@ -1231,7 +1231,7 @@ export default {
|
|
|
1231
1231
|
return ret;
|
|
1232
1232
|
};
|
|
1233
1233
|
},
|
|
1234
|
-
'hydrator-
|
|
1234
|
+
'hydrator-user_terms_consent_19000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
1235
1235
|
// compiled hydrator for entity UserTermsConsentEntity ( normalized)
|
|
1236
1236
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1237
1237
|
if (data.id === null) {
|
|
@@ -1248,7 +1248,7 @@ export default {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
};
|
|
1250
1250
|
},
|
|
1251
|
-
'hydrator-
|
|
1251
|
+
'hydrator-user_terms_consent_19000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
1252
1252
|
// compiled hydrator for entity UserTermsConsentEntity ( normalized)
|
|
1253
1253
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
1254
1254
|
if (data.id === null) {
|
|
@@ -1265,19 +1265,19 @@ export default {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
};
|
|
1267
1267
|
},
|
|
1268
|
-
'pkGetter-
|
|
1268
|
+
'pkGetter-user_terms_consent_19000': function (isEntityOrRef) {
|
|
1269
1269
|
// compiled pk getter for entity UserTermsConsentEntity
|
|
1270
1270
|
return function (entity) {
|
|
1271
1271
|
return entity.id;
|
|
1272
1272
|
};
|
|
1273
1273
|
},
|
|
1274
|
-
'pkGetterConverted-
|
|
1274
|
+
'pkGetterConverted-user_terms_consent_19000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
1275
1275
|
// compiled pk getter (with converted custom types) for entity UserTermsConsentEntity
|
|
1276
1276
|
return function (entity) {
|
|
1277
1277
|
return convertToDatabaseValue_id(entity.id);
|
|
1278
1278
|
};
|
|
1279
1279
|
},
|
|
1280
|
-
'pkSerializer-
|
|
1280
|
+
'pkSerializer-user_terms_consent_19000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
1281
1281
|
// compiled pk serializer for entity UserTermsConsentEntity
|
|
1282
1282
|
return function (entity) {
|
|
1283
1283
|
const val_2 = convertToDatabaseValue_id(entity.id);
|
|
@@ -2951,7 +2951,7 @@ export default {
|
|
|
2951
2951
|
return '' + entity.sub;
|
|
2952
2952
|
};
|
|
2953
2953
|
},
|
|
2954
|
-
'hydrator-
|
|
2954
|
+
'hydrator-user_consent_13000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_141, user_142, oauth_client_143, oauth_client_144, convertToJSValue_scopes, convertToDatabaseValue_scopes) {
|
|
2955
2955
|
// compiled hydrator for entity UserConsentEntity ( normalized)
|
|
2956
2956
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
2957
2957
|
if (data.id === null) {
|
|
@@ -3059,7 +3059,7 @@ export default {
|
|
|
3059
3059
|
}
|
|
3060
3060
|
};
|
|
3061
3061
|
},
|
|
3062
|
-
'hydrator-
|
|
3062
|
+
'hydrator-user_consent_13000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_151, user_152, oauth_client_153, oauth_client_154, convertToJSValue_scopes, convertToDatabaseValue_scopes) {
|
|
3063
3063
|
// compiled hydrator for entity UserConsentEntity ( normalized)
|
|
3064
3064
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3065
3065
|
if (data.id === null) {
|
|
@@ -3167,7 +3167,7 @@ export default {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
};
|
|
3169
3169
|
},
|
|
3170
|
-
'comparator-
|
|
3170
|
+
'comparator-user_consent_13000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
3171
3171
|
// compiled comparator for entity UserConsentEntity
|
|
3172
3172
|
return function (last, current, options) {
|
|
3173
3173
|
const diff = {};
|
|
@@ -3264,7 +3264,7 @@ export default {
|
|
|
3264
3264
|
return diff;
|
|
3265
3265
|
};
|
|
3266
3266
|
},
|
|
3267
|
-
'snapshotGenerator-
|
|
3267
|
+
'snapshotGenerator-user_consent_13000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier, convertToDatabaseValue_scopes) {
|
|
3268
3268
|
return function (entity) {
|
|
3269
3269
|
const ret = {};
|
|
3270
3270
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -3310,7 +3310,7 @@ export default {
|
|
|
3310
3310
|
return ret;
|
|
3311
3311
|
};
|
|
3312
3312
|
},
|
|
3313
|
-
'resultMapper-
|
|
3313
|
+
'resultMapper-user_consent_13000': function (PolymorphicRef, parseDate) {
|
|
3314
3314
|
// compiled mapper for entity UserConsentEntity
|
|
3315
3315
|
return function (result) {
|
|
3316
3316
|
const ret = {};
|
|
@@ -3398,7 +3398,7 @@ export default {
|
|
|
3398
3398
|
return ret;
|
|
3399
3399
|
};
|
|
3400
3400
|
},
|
|
3401
|
-
'hydrator-
|
|
3401
|
+
'hydrator-user_consent_13000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
3402
3402
|
// compiled hydrator for entity UserConsentEntity ( normalized)
|
|
3403
3403
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3404
3404
|
if (data.id === null) {
|
|
@@ -3415,7 +3415,7 @@ export default {
|
|
|
3415
3415
|
}
|
|
3416
3416
|
};
|
|
3417
3417
|
},
|
|
3418
|
-
'hydrator-
|
|
3418
|
+
'hydrator-user_consent_13000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
3419
3419
|
// compiled hydrator for entity UserConsentEntity ( normalized)
|
|
3420
3420
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3421
3421
|
if (data.id === null) {
|
|
@@ -3432,26 +3432,26 @@ export default {
|
|
|
3432
3432
|
}
|
|
3433
3433
|
};
|
|
3434
3434
|
},
|
|
3435
|
-
'pkGetter-
|
|
3435
|
+
'pkGetter-user_consent_13000': function (isEntityOrRef) {
|
|
3436
3436
|
// compiled pk getter for entity UserConsentEntity
|
|
3437
3437
|
return function (entity) {
|
|
3438
3438
|
return entity.id;
|
|
3439
3439
|
};
|
|
3440
3440
|
},
|
|
3441
|
-
'pkGetterConverted-
|
|
3441
|
+
'pkGetterConverted-user_consent_13000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
3442
3442
|
// compiled pk getter (with converted custom types) for entity UserConsentEntity
|
|
3443
3443
|
return function (entity) {
|
|
3444
3444
|
return convertToDatabaseValue_id(entity.id);
|
|
3445
3445
|
};
|
|
3446
3446
|
},
|
|
3447
|
-
'pkSerializer-
|
|
3447
|
+
'pkSerializer-user_consent_13000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
3448
3448
|
// compiled pk serializer for entity UserConsentEntity
|
|
3449
3449
|
return function (entity) {
|
|
3450
3450
|
const val_6 = convertToDatabaseValue_id(entity.id);
|
|
3451
3451
|
return getPrimaryKeyHash(val_6);
|
|
3452
3452
|
};
|
|
3453
3453
|
},
|
|
3454
|
-
'hydrator-
|
|
3454
|
+
'hydrator-terms_20000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, terms_content_167, user_terms_consent_168) {
|
|
3455
3455
|
// compiled hydrator for entity TermsEntity ( normalized)
|
|
3456
3456
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3457
3457
|
if (data.id === null) {
|
|
@@ -3568,7 +3568,7 @@ export default {
|
|
|
3568
3568
|
}
|
|
3569
3569
|
};
|
|
3570
3570
|
},
|
|
3571
|
-
'hydrator-
|
|
3571
|
+
'hydrator-terms_20000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, terms_content_176, user_terms_consent_177) {
|
|
3572
3572
|
// compiled hydrator for entity TermsEntity ( normalized)
|
|
3573
3573
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3574
3574
|
if (data.id === null) {
|
|
@@ -3685,7 +3685,7 @@ export default {
|
|
|
3685
3685
|
}
|
|
3686
3686
|
};
|
|
3687
3687
|
},
|
|
3688
|
-
'comparator-
|
|
3688
|
+
'comparator-terms_20000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
3689
3689
|
// compiled comparator for entity TermsEntity
|
|
3690
3690
|
return function (last, current, options) {
|
|
3691
3691
|
const diff = {};
|
|
@@ -3771,7 +3771,7 @@ export default {
|
|
|
3771
3771
|
return diff;
|
|
3772
3772
|
};
|
|
3773
3773
|
},
|
|
3774
|
-
'snapshotGenerator-
|
|
3774
|
+
'snapshotGenerator-terms_20000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
3775
3775
|
return function (entity) {
|
|
3776
3776
|
const ret = {};
|
|
3777
3777
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -3798,7 +3798,7 @@ export default {
|
|
|
3798
3798
|
return ret;
|
|
3799
3799
|
};
|
|
3800
3800
|
},
|
|
3801
|
-
'resultMapper-
|
|
3801
|
+
'resultMapper-terms_20000': function (PolymorphicRef, parseDate) {
|
|
3802
3802
|
// compiled mapper for entity TermsEntity
|
|
3803
3803
|
return function (result) {
|
|
3804
3804
|
const ret = {};
|
|
@@ -3860,7 +3860,7 @@ export default {
|
|
|
3860
3860
|
return ret;
|
|
3861
3861
|
};
|
|
3862
3862
|
},
|
|
3863
|
-
'hydrator-
|
|
3863
|
+
'hydrator-terms_20000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
3864
3864
|
// compiled hydrator for entity TermsEntity ( normalized)
|
|
3865
3865
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3866
3866
|
if (data.id === null) {
|
|
@@ -3871,7 +3871,7 @@ export default {
|
|
|
3871
3871
|
}
|
|
3872
3872
|
};
|
|
3873
3873
|
},
|
|
3874
|
-
'hydrator-
|
|
3874
|
+
'hydrator-terms_20000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
3875
3875
|
// compiled hydrator for entity TermsEntity ( normalized)
|
|
3876
3876
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3877
3877
|
if (data.id === null) {
|
|
@@ -3882,25 +3882,25 @@ export default {
|
|
|
3882
3882
|
}
|
|
3883
3883
|
};
|
|
3884
3884
|
},
|
|
3885
|
-
'pkGetter-
|
|
3885
|
+
'pkGetter-terms_20000': function (isEntityOrRef) {
|
|
3886
3886
|
// compiled pk getter for entity TermsEntity
|
|
3887
3887
|
return function (entity) {
|
|
3888
3888
|
return entity.id;
|
|
3889
3889
|
};
|
|
3890
3890
|
},
|
|
3891
|
-
'pkGetterConverted-
|
|
3891
|
+
'pkGetterConverted-terms_20000': function (isEntityOrRef) {
|
|
3892
3892
|
// compiled pk getter (with converted custom types) for entity TermsEntity
|
|
3893
3893
|
return function (entity) {
|
|
3894
3894
|
return entity.id;
|
|
3895
3895
|
};
|
|
3896
3896
|
},
|
|
3897
|
-
'pkSerializer-
|
|
3897
|
+
'pkSerializer-terms_20000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
3898
3898
|
// compiled pk serializer for entity TermsEntity
|
|
3899
3899
|
return function (entity) {
|
|
3900
3900
|
return '' + entity.id;
|
|
3901
3901
|
};
|
|
3902
3902
|
},
|
|
3903
|
-
'hydrator-
|
|
3903
|
+
'hydrator-terms_content_18000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, terms_183, terms_184) {
|
|
3904
3904
|
// compiled hydrator for entity TermsContentEntity ( normalized)
|
|
3905
3905
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3906
3906
|
if (data.id === null) {
|
|
@@ -3980,7 +3980,7 @@ export default {
|
|
|
3980
3980
|
}
|
|
3981
3981
|
};
|
|
3982
3982
|
},
|
|
3983
|
-
'hydrator-
|
|
3983
|
+
'hydrator-terms_content_18000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, terms_192, terms_193) {
|
|
3984
3984
|
// compiled hydrator for entity TermsContentEntity ( normalized)
|
|
3985
3985
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
3986
3986
|
if (data.id === null) {
|
|
@@ -4060,7 +4060,7 @@ export default {
|
|
|
4060
4060
|
}
|
|
4061
4061
|
};
|
|
4062
4062
|
},
|
|
4063
|
-
'comparator-
|
|
4063
|
+
'comparator-terms_content_18000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
4064
4064
|
// compiled comparator for entity TermsContentEntity
|
|
4065
4065
|
return function (last, current, options) {
|
|
4066
4066
|
const diff = {};
|
|
@@ -4157,7 +4157,7 @@ export default {
|
|
|
4157
4157
|
return diff;
|
|
4158
4158
|
};
|
|
4159
4159
|
},
|
|
4160
|
-
'snapshotGenerator-
|
|
4160
|
+
'snapshotGenerator-terms_content_18000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
4161
4161
|
return function (entity) {
|
|
4162
4162
|
const ret = {};
|
|
4163
4163
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -4195,7 +4195,7 @@ export default {
|
|
|
4195
4195
|
return ret;
|
|
4196
4196
|
};
|
|
4197
4197
|
},
|
|
4198
|
-
'resultMapper-
|
|
4198
|
+
'resultMapper-terms_content_18000': function (PolymorphicRef, parseDate) {
|
|
4199
4199
|
// compiled mapper for entity TermsContentEntity
|
|
4200
4200
|
return function (result) {
|
|
4201
4201
|
const ret = {};
|
|
@@ -4261,7 +4261,7 @@ export default {
|
|
|
4261
4261
|
return ret;
|
|
4262
4262
|
};
|
|
4263
4263
|
},
|
|
4264
|
-
'hydrator-
|
|
4264
|
+
'hydrator-terms_content_18000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
4265
4265
|
// compiled hydrator for entity TermsContentEntity ( normalized)
|
|
4266
4266
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4267
4267
|
if (data.id === null) {
|
|
@@ -4278,7 +4278,7 @@ export default {
|
|
|
4278
4278
|
}
|
|
4279
4279
|
};
|
|
4280
4280
|
},
|
|
4281
|
-
'hydrator-
|
|
4281
|
+
'hydrator-terms_content_18000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
4282
4282
|
// compiled hydrator for entity TermsContentEntity ( normalized)
|
|
4283
4283
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4284
4284
|
if (data.id === null) {
|
|
@@ -4295,26 +4295,26 @@ export default {
|
|
|
4295
4295
|
}
|
|
4296
4296
|
};
|
|
4297
4297
|
},
|
|
4298
|
-
'pkGetter-
|
|
4298
|
+
'pkGetter-terms_content_18000': function (isEntityOrRef) {
|
|
4299
4299
|
// compiled pk getter for entity TermsContentEntity
|
|
4300
4300
|
return function (entity) {
|
|
4301
4301
|
return entity.id;
|
|
4302
4302
|
};
|
|
4303
4303
|
},
|
|
4304
|
-
'pkGetterConverted-
|
|
4304
|
+
'pkGetterConverted-terms_content_18000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
4305
4305
|
// compiled pk getter (with converted custom types) for entity TermsContentEntity
|
|
4306
4306
|
return function (entity) {
|
|
4307
4307
|
return convertToDatabaseValue_id(entity.id);
|
|
4308
4308
|
};
|
|
4309
4309
|
},
|
|
4310
|
-
'pkSerializer-
|
|
4310
|
+
'pkSerializer-terms_content_18000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
4311
4311
|
// compiled pk serializer for entity TermsContentEntity
|
|
4312
4312
|
return function (entity) {
|
|
4313
4313
|
const val_7 = convertToDatabaseValue_id(entity.id);
|
|
4314
4314
|
return getPrimaryKeyHash(val_7);
|
|
4315
4315
|
};
|
|
4316
4316
|
},
|
|
4317
|
-
'hydrator-
|
|
4317
|
+
'hydrator-scheduled_jobs_17000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
4318
4318
|
// compiled hydrator for entity SchedulerJobEntity ( normalized)
|
|
4319
4319
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4320
4320
|
if (data.id === null) {
|
|
@@ -4465,7 +4465,7 @@ export default {
|
|
|
4465
4465
|
}
|
|
4466
4466
|
};
|
|
4467
4467
|
},
|
|
4468
|
-
'hydrator-
|
|
4468
|
+
'hydrator-scheduled_jobs_17000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
4469
4469
|
// compiled hydrator for entity SchedulerJobEntity ( normalized)
|
|
4470
4470
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4471
4471
|
if (data.id === null) {
|
|
@@ -4616,7 +4616,7 @@ export default {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
};
|
|
4618
4618
|
},
|
|
4619
|
-
'comparator-
|
|
4619
|
+
'comparator-scheduled_jobs_17000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
4620
4620
|
// compiled comparator for entity SchedulerJobEntity
|
|
4621
4621
|
return function (last, current, options) {
|
|
4622
4622
|
const diff = {};
|
|
@@ -4790,7 +4790,7 @@ export default {
|
|
|
4790
4790
|
return diff;
|
|
4791
4791
|
};
|
|
4792
4792
|
},
|
|
4793
|
-
'snapshotGenerator-
|
|
4793
|
+
'snapshotGenerator-scheduled_jobs_17000': function (clone, cloneEmbeddable, processDateProperty) {
|
|
4794
4794
|
return function (entity) {
|
|
4795
4795
|
const ret = {};
|
|
4796
4796
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -4841,7 +4841,7 @@ export default {
|
|
|
4841
4841
|
return ret;
|
|
4842
4842
|
};
|
|
4843
4843
|
},
|
|
4844
|
-
'resultMapper-
|
|
4844
|
+
'resultMapper-scheduled_jobs_17000': function (PolymorphicRef, parseDate) {
|
|
4845
4845
|
// compiled mapper for entity SchedulerJobEntity
|
|
4846
4846
|
return function (result) {
|
|
4847
4847
|
const ret = {};
|
|
@@ -4990,7 +4990,7 @@ export default {
|
|
|
4990
4990
|
return ret;
|
|
4991
4991
|
};
|
|
4992
4992
|
},
|
|
4993
|
-
'hydrator-
|
|
4993
|
+
'hydrator-scheduled_jobs_17000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
4994
4994
|
// compiled hydrator for entity SchedulerJobEntity ( normalized)
|
|
4995
4995
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
4996
4996
|
if (data.id === null) {
|
|
@@ -5001,7 +5001,7 @@ export default {
|
|
|
5001
5001
|
}
|
|
5002
5002
|
};
|
|
5003
5003
|
},
|
|
5004
|
-
'hydrator-
|
|
5004
|
+
'hydrator-scheduled_jobs_17000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
5005
5005
|
// compiled hydrator for entity SchedulerJobEntity ( normalized)
|
|
5006
5006
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5007
5007
|
if (data.id === null) {
|
|
@@ -5012,25 +5012,25 @@ export default {
|
|
|
5012
5012
|
}
|
|
5013
5013
|
};
|
|
5014
5014
|
},
|
|
5015
|
-
'pkGetter-
|
|
5015
|
+
'pkGetter-scheduled_jobs_17000': function (isEntityOrRef) {
|
|
5016
5016
|
// compiled pk getter for entity SchedulerJobEntity
|
|
5017
5017
|
return function (entity) {
|
|
5018
5018
|
return entity.id;
|
|
5019
5019
|
};
|
|
5020
5020
|
},
|
|
5021
|
-
'pkGetterConverted-
|
|
5021
|
+
'pkGetterConverted-scheduled_jobs_17000': function (isEntityOrRef) {
|
|
5022
5022
|
// compiled pk getter (with converted custom types) for entity SchedulerJobEntity
|
|
5023
5023
|
return function (entity) {
|
|
5024
5024
|
return entity.id;
|
|
5025
5025
|
};
|
|
5026
5026
|
},
|
|
5027
|
-
'pkSerializer-
|
|
5027
|
+
'pkSerializer-scheduled_jobs_17000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
5028
5028
|
// compiled pk serializer for entity SchedulerJobEntity
|
|
5029
5029
|
return function (entity) {
|
|
5030
5030
|
return '' + entity.id;
|
|
5031
5031
|
};
|
|
5032
5032
|
},
|
|
5033
|
-
'hydrator-
|
|
5033
|
+
'hydrator-revoked_tokens_12000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_237, oauth_client_238, user_239, user_240) {
|
|
5034
5034
|
// compiled hydrator for entity RevokedTokenEntity ( normalized)
|
|
5035
5035
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5036
5036
|
if (data.id === null) {
|
|
@@ -5137,7 +5137,7 @@ export default {
|
|
|
5137
5137
|
}
|
|
5138
5138
|
};
|
|
5139
5139
|
},
|
|
5140
|
-
'hydrator-
|
|
5140
|
+
'hydrator-revoked_tokens_12000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_248, oauth_client_249, user_250, user_251) {
|
|
5141
5141
|
// compiled hydrator for entity RevokedTokenEntity ( normalized)
|
|
5142
5142
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5143
5143
|
if (data.id === null) {
|
|
@@ -5244,7 +5244,7 @@ export default {
|
|
|
5244
5244
|
}
|
|
5245
5245
|
};
|
|
5246
5246
|
},
|
|
5247
|
-
'comparator-
|
|
5247
|
+
'comparator-revoked_tokens_12000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
5248
5248
|
// compiled comparator for entity RevokedTokenEntity
|
|
5249
5249
|
return function (last, current, options) {
|
|
5250
5250
|
const diff = {};
|
|
@@ -5352,7 +5352,7 @@ export default {
|
|
|
5352
5352
|
return diff;
|
|
5353
5353
|
};
|
|
5354
5354
|
},
|
|
5355
|
-
'snapshotGenerator-
|
|
5355
|
+
'snapshotGenerator-revoked_tokens_12000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
5356
5356
|
return function (entity) {
|
|
5357
5357
|
const ret = {};
|
|
5358
5358
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -5401,7 +5401,7 @@ export default {
|
|
|
5401
5401
|
return ret;
|
|
5402
5402
|
};
|
|
5403
5403
|
},
|
|
5404
|
-
'resultMapper-
|
|
5404
|
+
'resultMapper-revoked_tokens_12000': function (PolymorphicRef, parseDate) {
|
|
5405
5405
|
// compiled mapper for entity RevokedTokenEntity
|
|
5406
5406
|
return function (result) {
|
|
5407
5407
|
const ret = {};
|
|
@@ -5493,7 +5493,7 @@ export default {
|
|
|
5493
5493
|
return ret;
|
|
5494
5494
|
};
|
|
5495
5495
|
},
|
|
5496
|
-
'hydrator-
|
|
5496
|
+
'hydrator-revoked_tokens_12000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
5497
5497
|
// compiled hydrator for entity RevokedTokenEntity ( normalized)
|
|
5498
5498
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5499
5499
|
if (data.id === null) {
|
|
@@ -5510,7 +5510,7 @@ export default {
|
|
|
5510
5510
|
}
|
|
5511
5511
|
};
|
|
5512
5512
|
},
|
|
5513
|
-
'hydrator-
|
|
5513
|
+
'hydrator-revoked_tokens_12000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
5514
5514
|
// compiled hydrator for entity RevokedTokenEntity ( normalized)
|
|
5515
5515
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5516
5516
|
if (data.id === null) {
|
|
@@ -5527,26 +5527,26 @@ export default {
|
|
|
5527
5527
|
}
|
|
5528
5528
|
};
|
|
5529
5529
|
},
|
|
5530
|
-
'pkGetter-
|
|
5530
|
+
'pkGetter-revoked_tokens_12000': function (isEntityOrRef) {
|
|
5531
5531
|
// compiled pk getter for entity RevokedTokenEntity
|
|
5532
5532
|
return function (entity) {
|
|
5533
5533
|
return entity.id;
|
|
5534
5534
|
};
|
|
5535
5535
|
},
|
|
5536
|
-
'pkGetterConverted-
|
|
5536
|
+
'pkGetterConverted-revoked_tokens_12000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
5537
5537
|
// compiled pk getter (with converted custom types) for entity RevokedTokenEntity
|
|
5538
5538
|
return function (entity) {
|
|
5539
5539
|
return convertToDatabaseValue_id(entity.id);
|
|
5540
5540
|
};
|
|
5541
5541
|
},
|
|
5542
|
-
'pkSerializer-
|
|
5542
|
+
'pkSerializer-revoked_tokens_12000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
5543
5543
|
// compiled pk serializer for entity RevokedTokenEntity
|
|
5544
5544
|
return function (entity) {
|
|
5545
5545
|
const val_8 = convertToDatabaseValue_id(entity.id);
|
|
5546
5546
|
return getPrimaryKeyHash(val_8);
|
|
5547
5547
|
};
|
|
5548
5548
|
},
|
|
5549
|
-
'hydrator-
|
|
5549
|
+
'hydrator-pending_oauth_registration_16000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, convertToJSValue_userInfo, convertToDatabaseValue_userInfo) {
|
|
5550
5550
|
// compiled hydrator for entity PendingOAuthRegistrationEntity ( normalized)
|
|
5551
5551
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5552
5552
|
if (data.id === null) {
|
|
@@ -5660,7 +5660,7 @@ export default {
|
|
|
5660
5660
|
}
|
|
5661
5661
|
};
|
|
5662
5662
|
},
|
|
5663
|
-
'hydrator-
|
|
5663
|
+
'hydrator-pending_oauth_registration_16000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, convertToJSValue_userInfo, convertToDatabaseValue_userInfo) {
|
|
5664
5664
|
// compiled hydrator for entity PendingOAuthRegistrationEntity ( normalized)
|
|
5665
5665
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
5666
5666
|
if (data.id === null) {
|
|
@@ -5774,7 +5774,7 @@ export default {
|
|
|
5774
5774
|
}
|
|
5775
5775
|
};
|
|
5776
5776
|
},
|
|
5777
|
-
'comparator-
|
|
5777
|
+
'comparator-pending_oauth_registration_16000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
5778
5778
|
// compiled comparator for entity PendingOAuthRegistrationEntity
|
|
5779
5779
|
return function (last, current, options) {
|
|
5780
5780
|
const diff = {};
|
|
@@ -5915,7 +5915,7 @@ export default {
|
|
|
5915
5915
|
return diff;
|
|
5916
5916
|
};
|
|
5917
5917
|
},
|
|
5918
|
-
'snapshotGenerator-
|
|
5918
|
+
'snapshotGenerator-pending_oauth_registration_16000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, convertToDatabaseValue_userInfo) {
|
|
5919
5919
|
return function (entity) {
|
|
5920
5920
|
const ret = {};
|
|
5921
5921
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -5957,7 +5957,7 @@ export default {
|
|
|
5957
5957
|
return ret;
|
|
5958
5958
|
};
|
|
5959
5959
|
},
|
|
5960
|
-
'resultMapper-
|
|
5960
|
+
'resultMapper-pending_oauth_registration_16000': function (PolymorphicRef, parseDate) {
|
|
5961
5961
|
// compiled mapper for entity PendingOAuthRegistrationEntity
|
|
5962
5962
|
return function (result) {
|
|
5963
5963
|
const ret = {};
|
|
@@ -6050,7 +6050,7 @@ export default {
|
|
|
6050
6050
|
return ret;
|
|
6051
6051
|
};
|
|
6052
6052
|
},
|
|
6053
|
-
'hydrator-
|
|
6053
|
+
'hydrator-pending_oauth_registration_16000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
6054
6054
|
// compiled hydrator for entity PendingOAuthRegistrationEntity ( normalized)
|
|
6055
6055
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6056
6056
|
if (data.id === null) {
|
|
@@ -6067,7 +6067,7 @@ export default {
|
|
|
6067
6067
|
}
|
|
6068
6068
|
};
|
|
6069
6069
|
},
|
|
6070
|
-
'hydrator-
|
|
6070
|
+
'hydrator-pending_oauth_registration_16000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
6071
6071
|
// compiled hydrator for entity PendingOAuthRegistrationEntity ( normalized)
|
|
6072
6072
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6073
6073
|
if (data.id === null) {
|
|
@@ -6084,26 +6084,26 @@ export default {
|
|
|
6084
6084
|
}
|
|
6085
6085
|
};
|
|
6086
6086
|
},
|
|
6087
|
-
'pkGetter-
|
|
6087
|
+
'pkGetter-pending_oauth_registration_16000': function (isEntityOrRef) {
|
|
6088
6088
|
// compiled pk getter for entity PendingOAuthRegistrationEntity
|
|
6089
6089
|
return function (entity) {
|
|
6090
6090
|
return entity.id;
|
|
6091
6091
|
};
|
|
6092
6092
|
},
|
|
6093
|
-
'pkGetterConverted-
|
|
6093
|
+
'pkGetterConverted-pending_oauth_registration_16000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
6094
6094
|
// compiled pk getter (with converted custom types) for entity PendingOAuthRegistrationEntity
|
|
6095
6095
|
return function (entity) {
|
|
6096
6096
|
return convertToDatabaseValue_id(entity.id);
|
|
6097
6097
|
};
|
|
6098
6098
|
},
|
|
6099
|
-
'pkSerializer-
|
|
6099
|
+
'pkSerializer-pending_oauth_registration_16000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
6100
6100
|
// compiled pk serializer for entity PendingOAuthRegistrationEntity
|
|
6101
6101
|
return function (entity) {
|
|
6102
6102
|
const val_9 = convertToDatabaseValue_id(entity.id);
|
|
6103
6103
|
return getPrimaryKeyHash(val_9);
|
|
6104
6104
|
};
|
|
6105
6105
|
},
|
|
6106
|
-
'hydrator-
|
|
6106
|
+
'hydrator-password_reset_15000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_285, user_286) {
|
|
6107
6107
|
// compiled hydrator for entity PasswordResetEntity ( normalized)
|
|
6108
6108
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6109
6109
|
if (data.id === null) {
|
|
@@ -6199,7 +6199,7 @@ export default {
|
|
|
6199
6199
|
}
|
|
6200
6200
|
};
|
|
6201
6201
|
},
|
|
6202
|
-
'hydrator-
|
|
6202
|
+
'hydrator-password_reset_15000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_294, user_295) {
|
|
6203
6203
|
// compiled hydrator for entity PasswordResetEntity ( normalized)
|
|
6204
6204
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6205
6205
|
if (data.id === null) {
|
|
@@ -6295,7 +6295,7 @@ export default {
|
|
|
6295
6295
|
}
|
|
6296
6296
|
};
|
|
6297
6297
|
},
|
|
6298
|
-
'comparator-
|
|
6298
|
+
'comparator-password_reset_15000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
6299
6299
|
// compiled comparator for entity PasswordResetEntity
|
|
6300
6300
|
return function (last, current, options) {
|
|
6301
6301
|
const diff = {};
|
|
@@ -6392,7 +6392,7 @@ export default {
|
|
|
6392
6392
|
return diff;
|
|
6393
6393
|
};
|
|
6394
6394
|
},
|
|
6395
|
-
'snapshotGenerator-
|
|
6395
|
+
'snapshotGenerator-password_reset_15000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
|
|
6396
6396
|
return function (entity) {
|
|
6397
6397
|
const ret = {};
|
|
6398
6398
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -6430,7 +6430,7 @@ export default {
|
|
|
6430
6430
|
return ret;
|
|
6431
6431
|
};
|
|
6432
6432
|
},
|
|
6433
|
-
'resultMapper-
|
|
6433
|
+
'resultMapper-password_reset_15000': function (PolymorphicRef, parseDate) {
|
|
6434
6434
|
// compiled mapper for entity PasswordResetEntity
|
|
6435
6435
|
return function (result) {
|
|
6436
6436
|
const ret = {};
|
|
@@ -6518,7 +6518,7 @@ export default {
|
|
|
6518
6518
|
return ret;
|
|
6519
6519
|
};
|
|
6520
6520
|
},
|
|
6521
|
-
'hydrator-
|
|
6521
|
+
'hydrator-password_reset_15000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
6522
6522
|
// compiled hydrator for entity PasswordResetEntity ( normalized)
|
|
6523
6523
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6524
6524
|
if (data.id === null) {
|
|
@@ -6535,7 +6535,7 @@ export default {
|
|
|
6535
6535
|
}
|
|
6536
6536
|
};
|
|
6537
6537
|
},
|
|
6538
|
-
'hydrator-
|
|
6538
|
+
'hydrator-password_reset_15000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
6539
6539
|
// compiled hydrator for entity PasswordResetEntity ( normalized)
|
|
6540
6540
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6541
6541
|
if (data.id === null) {
|
|
@@ -6552,26 +6552,643 @@ export default {
|
|
|
6552
6552
|
}
|
|
6553
6553
|
};
|
|
6554
6554
|
},
|
|
6555
|
-
'pkGetter-
|
|
6555
|
+
'pkGetter-password_reset_15000': function (isEntityOrRef) {
|
|
6556
6556
|
// compiled pk getter for entity PasswordResetEntity
|
|
6557
6557
|
return function (entity) {
|
|
6558
6558
|
return entity.id;
|
|
6559
6559
|
};
|
|
6560
6560
|
},
|
|
6561
|
-
'pkGetterConverted-
|
|
6561
|
+
'pkGetterConverted-password_reset_15000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
6562
6562
|
// compiled pk getter (with converted custom types) for entity PasswordResetEntity
|
|
6563
6563
|
return function (entity) {
|
|
6564
6564
|
return convertToDatabaseValue_id(entity.id);
|
|
6565
6565
|
};
|
|
6566
6566
|
},
|
|
6567
|
-
'pkSerializer-
|
|
6567
|
+
'pkSerializer-password_reset_15000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
6568
6568
|
// compiled pk serializer for entity PasswordResetEntity
|
|
6569
6569
|
return function (entity) {
|
|
6570
6570
|
const val_10 = convertToDatabaseValue_id(entity.id);
|
|
6571
6571
|
return getPrimaryKeyHash(val_10);
|
|
6572
6572
|
};
|
|
6573
6573
|
},
|
|
6574
|
-
'hydrator-
|
|
6574
|
+
'hydrator-oauth_device_code_11000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_307, oauth_client_308, convertToJSValue_scope, convertToDatabaseValue_scope, user_311, user_312) {
|
|
6575
|
+
// compiled hydrator for entity OAuthDeviceCodeEntity ( normalized)
|
|
6576
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6577
|
+
if (data.id === null) {
|
|
6578
|
+
entity.id = null;
|
|
6579
|
+
}
|
|
6580
|
+
else if (typeof data.id !== 'undefined') {
|
|
6581
|
+
if (convertCustomTypes) {
|
|
6582
|
+
const value = convertToJSValue_id(data.id);
|
|
6583
|
+
entity.id = value;
|
|
6584
|
+
}
|
|
6585
|
+
else {
|
|
6586
|
+
entity.id = data.id;
|
|
6587
|
+
}
|
|
6588
|
+
}
|
|
6589
|
+
if (data.created_at === null) {
|
|
6590
|
+
entity.created_at = null;
|
|
6591
|
+
}
|
|
6592
|
+
else if (typeof data.created_at !== 'undefined') {
|
|
6593
|
+
if (data.created_at instanceof Date) {
|
|
6594
|
+
entity.created_at = data.created_at;
|
|
6595
|
+
}
|
|
6596
|
+
else if (typeof data.created_at === 'number' || data.created_at.includes('+') || data.created_at.lastIndexOf('-') > 10 || data.created_at.endsWith('Z')) {
|
|
6597
|
+
entity.created_at = new Date(data.created_at);
|
|
6598
|
+
}
|
|
6599
|
+
else {
|
|
6600
|
+
entity.created_at = new Date(data.created_at + 'Z');
|
|
6601
|
+
}
|
|
6602
|
+
}
|
|
6603
|
+
if (data.updated_at === null) {
|
|
6604
|
+
entity.updated_at = null;
|
|
6605
|
+
}
|
|
6606
|
+
else if (typeof data.updated_at !== 'undefined') {
|
|
6607
|
+
if (data.updated_at instanceof Date) {
|
|
6608
|
+
entity.updated_at = data.updated_at;
|
|
6609
|
+
}
|
|
6610
|
+
else if (typeof data.updated_at === 'number' || data.updated_at.includes('+') || data.updated_at.lastIndexOf('-') > 10 || data.updated_at.endsWith('Z')) {
|
|
6611
|
+
entity.updated_at = new Date(data.updated_at);
|
|
6612
|
+
}
|
|
6613
|
+
else {
|
|
6614
|
+
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
6615
|
+
}
|
|
6616
|
+
}
|
|
6617
|
+
if (data.deviceCodeHash === null) {
|
|
6618
|
+
entity.deviceCodeHash = null;
|
|
6619
|
+
}
|
|
6620
|
+
else if (typeof data.deviceCodeHash !== 'undefined') {
|
|
6621
|
+
entity.deviceCodeHash = data.deviceCodeHash;
|
|
6622
|
+
}
|
|
6623
|
+
if (data.userCodeHash === null) {
|
|
6624
|
+
entity.userCodeHash = null;
|
|
6625
|
+
}
|
|
6626
|
+
else if (typeof data.userCodeHash !== 'undefined') {
|
|
6627
|
+
entity.userCodeHash = data.userCodeHash;
|
|
6628
|
+
}
|
|
6629
|
+
if (data.client === null) {
|
|
6630
|
+
entity.client = null;
|
|
6631
|
+
}
|
|
6632
|
+
else if (typeof data.client !== 'undefined') {
|
|
6633
|
+
if (isPrimaryKey(data.client, true)) {
|
|
6634
|
+
entity.client = factory.createReference(oauth_client_307, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6635
|
+
}
|
|
6636
|
+
else if (data.client && typeof data.client === 'object') {
|
|
6637
|
+
entity.client = factory.create(oauth_client_308, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6638
|
+
}
|
|
6639
|
+
}
|
|
6640
|
+
if (data.scope === null) {
|
|
6641
|
+
entity.scope = null;
|
|
6642
|
+
}
|
|
6643
|
+
else if (typeof data.scope !== 'undefined') {
|
|
6644
|
+
if (convertCustomTypes) {
|
|
6645
|
+
const value = convertToJSValue_scope(data.scope);
|
|
6646
|
+
data.scope = convertToDatabaseValue_scope(value);
|
|
6647
|
+
entity.scope = value;
|
|
6648
|
+
}
|
|
6649
|
+
else {
|
|
6650
|
+
entity.scope = data.scope;
|
|
6651
|
+
}
|
|
6652
|
+
}
|
|
6653
|
+
if (data.expiresAt === null) {
|
|
6654
|
+
entity.expiresAt = null;
|
|
6655
|
+
}
|
|
6656
|
+
else if (typeof data.expiresAt !== 'undefined') {
|
|
6657
|
+
if (data.expiresAt instanceof Date) {
|
|
6658
|
+
entity.expiresAt = data.expiresAt;
|
|
6659
|
+
}
|
|
6660
|
+
else if (typeof data.expiresAt === 'number' || data.expiresAt.includes('+') || data.expiresAt.lastIndexOf('-') > 10 || data.expiresAt.endsWith('Z')) {
|
|
6661
|
+
entity.expiresAt = new Date(data.expiresAt);
|
|
6662
|
+
}
|
|
6663
|
+
else {
|
|
6664
|
+
entity.expiresAt = new Date(data.expiresAt + 'Z');
|
|
6665
|
+
}
|
|
6666
|
+
}
|
|
6667
|
+
if (data.authorizedUser === null) {
|
|
6668
|
+
entity.authorizedUser = null;
|
|
6669
|
+
}
|
|
6670
|
+
else if (typeof data.authorizedUser !== 'undefined') {
|
|
6671
|
+
if (isPrimaryKey(data.authorizedUser, true)) {
|
|
6672
|
+
entity.authorizedUser = factory.createReference(user_311, data.authorizedUser, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6673
|
+
}
|
|
6674
|
+
else if (data.authorizedUser && typeof data.authorizedUser === 'object') {
|
|
6675
|
+
entity.authorizedUser = factory.create(user_312, data.authorizedUser, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6676
|
+
}
|
|
6677
|
+
}
|
|
6678
|
+
if (data.authorizedAt === null) {
|
|
6679
|
+
entity.authorizedAt = null;
|
|
6680
|
+
}
|
|
6681
|
+
else if (typeof data.authorizedAt !== 'undefined') {
|
|
6682
|
+
if (data.authorizedAt instanceof Date) {
|
|
6683
|
+
entity.authorizedAt = data.authorizedAt;
|
|
6684
|
+
}
|
|
6685
|
+
else if (typeof data.authorizedAt === 'number' || data.authorizedAt.includes('+') || data.authorizedAt.lastIndexOf('-') > 10 || data.authorizedAt.endsWith('Z')) {
|
|
6686
|
+
entity.authorizedAt = new Date(data.authorizedAt);
|
|
6687
|
+
}
|
|
6688
|
+
else {
|
|
6689
|
+
entity.authorizedAt = new Date(data.authorizedAt + 'Z');
|
|
6690
|
+
}
|
|
6691
|
+
}
|
|
6692
|
+
if (data.consumedAt === null) {
|
|
6693
|
+
entity.consumedAt = null;
|
|
6694
|
+
}
|
|
6695
|
+
else if (typeof data.consumedAt !== 'undefined') {
|
|
6696
|
+
if (data.consumedAt instanceof Date) {
|
|
6697
|
+
entity.consumedAt = data.consumedAt;
|
|
6698
|
+
}
|
|
6699
|
+
else if (typeof data.consumedAt === 'number' || data.consumedAt.includes('+') || data.consumedAt.lastIndexOf('-') > 10 || data.consumedAt.endsWith('Z')) {
|
|
6700
|
+
entity.consumedAt = new Date(data.consumedAt);
|
|
6701
|
+
}
|
|
6702
|
+
else {
|
|
6703
|
+
entity.consumedAt = new Date(data.consumedAt + 'Z');
|
|
6704
|
+
}
|
|
6705
|
+
}
|
|
6706
|
+
};
|
|
6707
|
+
},
|
|
6708
|
+
'hydrator-oauth_device_code_11000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_320, oauth_client_321, convertToJSValue_scope, convertToDatabaseValue_scope, user_324, user_325) {
|
|
6709
|
+
// compiled hydrator for entity OAuthDeviceCodeEntity ( normalized)
|
|
6710
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6711
|
+
if (data.id === null) {
|
|
6712
|
+
entity.id = null;
|
|
6713
|
+
}
|
|
6714
|
+
else if (typeof data.id !== 'undefined') {
|
|
6715
|
+
if (convertCustomTypes) {
|
|
6716
|
+
const value = convertToJSValue_id(data.id);
|
|
6717
|
+
entity.id = value;
|
|
6718
|
+
}
|
|
6719
|
+
else {
|
|
6720
|
+
entity.id = data.id;
|
|
6721
|
+
}
|
|
6722
|
+
}
|
|
6723
|
+
if (data.created_at === null) {
|
|
6724
|
+
entity.created_at = null;
|
|
6725
|
+
}
|
|
6726
|
+
else if (typeof data.created_at !== 'undefined') {
|
|
6727
|
+
if (data.created_at instanceof Date) {
|
|
6728
|
+
entity.created_at = data.created_at;
|
|
6729
|
+
}
|
|
6730
|
+
else if (typeof data.created_at === 'number' || data.created_at.includes('+') || data.created_at.lastIndexOf('-') > 10 || data.created_at.endsWith('Z')) {
|
|
6731
|
+
entity.created_at = new Date(data.created_at);
|
|
6732
|
+
}
|
|
6733
|
+
else {
|
|
6734
|
+
entity.created_at = new Date(data.created_at + 'Z');
|
|
6735
|
+
}
|
|
6736
|
+
}
|
|
6737
|
+
if (data.updated_at === null) {
|
|
6738
|
+
entity.updated_at = null;
|
|
6739
|
+
}
|
|
6740
|
+
else if (typeof data.updated_at !== 'undefined') {
|
|
6741
|
+
if (data.updated_at instanceof Date) {
|
|
6742
|
+
entity.updated_at = data.updated_at;
|
|
6743
|
+
}
|
|
6744
|
+
else if (typeof data.updated_at === 'number' || data.updated_at.includes('+') || data.updated_at.lastIndexOf('-') > 10 || data.updated_at.endsWith('Z')) {
|
|
6745
|
+
entity.updated_at = new Date(data.updated_at);
|
|
6746
|
+
}
|
|
6747
|
+
else {
|
|
6748
|
+
entity.updated_at = new Date(data.updated_at + 'Z');
|
|
6749
|
+
}
|
|
6750
|
+
}
|
|
6751
|
+
if (data.deviceCodeHash === null) {
|
|
6752
|
+
entity.deviceCodeHash = null;
|
|
6753
|
+
}
|
|
6754
|
+
else if (typeof data.deviceCodeHash !== 'undefined') {
|
|
6755
|
+
entity.deviceCodeHash = data.deviceCodeHash;
|
|
6756
|
+
}
|
|
6757
|
+
if (data.userCodeHash === null) {
|
|
6758
|
+
entity.userCodeHash = null;
|
|
6759
|
+
}
|
|
6760
|
+
else if (typeof data.userCodeHash !== 'undefined') {
|
|
6761
|
+
entity.userCodeHash = data.userCodeHash;
|
|
6762
|
+
}
|
|
6763
|
+
if (data.client === null) {
|
|
6764
|
+
entity.client = null;
|
|
6765
|
+
}
|
|
6766
|
+
else if (typeof data.client !== 'undefined') {
|
|
6767
|
+
if (isPrimaryKey(data.client, true)) {
|
|
6768
|
+
entity.client = factory.createReference(oauth_client_320, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6769
|
+
}
|
|
6770
|
+
else if (data.client && typeof data.client === 'object') {
|
|
6771
|
+
entity.client = factory.create(oauth_client_321, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6772
|
+
}
|
|
6773
|
+
}
|
|
6774
|
+
if (data.scope === null) {
|
|
6775
|
+
entity.scope = null;
|
|
6776
|
+
}
|
|
6777
|
+
else if (typeof data.scope !== 'undefined') {
|
|
6778
|
+
if (convertCustomTypes) {
|
|
6779
|
+
const value = convertToJSValue_scope(data.scope);
|
|
6780
|
+
data.scope = convertToDatabaseValue_scope(value);
|
|
6781
|
+
entity.scope = value;
|
|
6782
|
+
}
|
|
6783
|
+
else {
|
|
6784
|
+
entity.scope = data.scope;
|
|
6785
|
+
}
|
|
6786
|
+
}
|
|
6787
|
+
if (data.expiresAt === null) {
|
|
6788
|
+
entity.expiresAt = null;
|
|
6789
|
+
}
|
|
6790
|
+
else if (typeof data.expiresAt !== 'undefined') {
|
|
6791
|
+
if (data.expiresAt instanceof Date) {
|
|
6792
|
+
entity.expiresAt = data.expiresAt;
|
|
6793
|
+
}
|
|
6794
|
+
else if (typeof data.expiresAt === 'number' || data.expiresAt.includes('+') || data.expiresAt.lastIndexOf('-') > 10 || data.expiresAt.endsWith('Z')) {
|
|
6795
|
+
entity.expiresAt = new Date(data.expiresAt);
|
|
6796
|
+
}
|
|
6797
|
+
else {
|
|
6798
|
+
entity.expiresAt = new Date(data.expiresAt + 'Z');
|
|
6799
|
+
}
|
|
6800
|
+
}
|
|
6801
|
+
if (data.authorizedUser === null) {
|
|
6802
|
+
entity.authorizedUser = null;
|
|
6803
|
+
}
|
|
6804
|
+
else if (typeof data.authorizedUser !== 'undefined') {
|
|
6805
|
+
if (isPrimaryKey(data.authorizedUser, true)) {
|
|
6806
|
+
entity.authorizedUser = factory.createReference(user_324, data.authorizedUser, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6807
|
+
}
|
|
6808
|
+
else if (data.authorizedUser && typeof data.authorizedUser === 'object') {
|
|
6809
|
+
entity.authorizedUser = factory.create(user_325, data.authorizedUser, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6810
|
+
}
|
|
6811
|
+
}
|
|
6812
|
+
if (data.authorizedAt === null) {
|
|
6813
|
+
entity.authorizedAt = null;
|
|
6814
|
+
}
|
|
6815
|
+
else if (typeof data.authorizedAt !== 'undefined') {
|
|
6816
|
+
if (data.authorizedAt instanceof Date) {
|
|
6817
|
+
entity.authorizedAt = data.authorizedAt;
|
|
6818
|
+
}
|
|
6819
|
+
else if (typeof data.authorizedAt === 'number' || data.authorizedAt.includes('+') || data.authorizedAt.lastIndexOf('-') > 10 || data.authorizedAt.endsWith('Z')) {
|
|
6820
|
+
entity.authorizedAt = new Date(data.authorizedAt);
|
|
6821
|
+
}
|
|
6822
|
+
else {
|
|
6823
|
+
entity.authorizedAt = new Date(data.authorizedAt + 'Z');
|
|
6824
|
+
}
|
|
6825
|
+
}
|
|
6826
|
+
if (data.consumedAt === null) {
|
|
6827
|
+
entity.consumedAt = null;
|
|
6828
|
+
}
|
|
6829
|
+
else if (typeof data.consumedAt !== 'undefined') {
|
|
6830
|
+
if (data.consumedAt instanceof Date) {
|
|
6831
|
+
entity.consumedAt = data.consumedAt;
|
|
6832
|
+
}
|
|
6833
|
+
else if (typeof data.consumedAt === 'number' || data.consumedAt.includes('+') || data.consumedAt.lastIndexOf('-') > 10 || data.consumedAt.endsWith('Z')) {
|
|
6834
|
+
entity.consumedAt = new Date(data.consumedAt);
|
|
6835
|
+
}
|
|
6836
|
+
else {
|
|
6837
|
+
entity.consumedAt = new Date(data.consumedAt + 'Z');
|
|
6838
|
+
}
|
|
6839
|
+
}
|
|
6840
|
+
};
|
|
6841
|
+
},
|
|
6842
|
+
'comparator-oauth_device_code_11000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
6843
|
+
// compiled comparator for entity OAuthDeviceCodeEntity
|
|
6844
|
+
return function (last, current, options) {
|
|
6845
|
+
const diff = {};
|
|
6846
|
+
if (current.id === null && last.id === undefined) {
|
|
6847
|
+
diff.id = current.id;
|
|
6848
|
+
}
|
|
6849
|
+
else if (current.id == null && last.id == null) {
|
|
6850
|
+
}
|
|
6851
|
+
else if ((current.id != null && last.id == null) || (current.id == null && last.id != null)) {
|
|
6852
|
+
diff.id = current.id;
|
|
6853
|
+
}
|
|
6854
|
+
else if (last.id !== current.id) {
|
|
6855
|
+
diff.id = current.id;
|
|
6856
|
+
}
|
|
6857
|
+
if (current.created_at === null && last.created_at === undefined) {
|
|
6858
|
+
diff.created_at = current.created_at;
|
|
6859
|
+
}
|
|
6860
|
+
else if (current.created_at == null && last.created_at == null) {
|
|
6861
|
+
}
|
|
6862
|
+
else if ((current.created_at != null && last.created_at == null) || (current.created_at == null && last.created_at != null)) {
|
|
6863
|
+
diff.created_at = current.created_at;
|
|
6864
|
+
}
|
|
6865
|
+
else if (last.created_at.valueOf() !== current.created_at.valueOf()) {
|
|
6866
|
+
diff.created_at = current.created_at;
|
|
6867
|
+
}
|
|
6868
|
+
if (current.updated_at === null && last.updated_at === undefined) {
|
|
6869
|
+
diff.updated_at = current.updated_at;
|
|
6870
|
+
}
|
|
6871
|
+
else if (current.updated_at == null && last.updated_at == null) {
|
|
6872
|
+
}
|
|
6873
|
+
else if ((current.updated_at != null && last.updated_at == null) || (current.updated_at == null && last.updated_at != null)) {
|
|
6874
|
+
diff.updated_at = current.updated_at;
|
|
6875
|
+
}
|
|
6876
|
+
else if (last.updated_at.valueOf() !== current.updated_at.valueOf()) {
|
|
6877
|
+
diff.updated_at = current.updated_at;
|
|
6878
|
+
}
|
|
6879
|
+
if (current.deviceCodeHash === null && last.deviceCodeHash === undefined) {
|
|
6880
|
+
diff.deviceCodeHash = current.deviceCodeHash;
|
|
6881
|
+
}
|
|
6882
|
+
else if (current.deviceCodeHash == null && last.deviceCodeHash == null) {
|
|
6883
|
+
}
|
|
6884
|
+
else if ((current.deviceCodeHash != null && last.deviceCodeHash == null) || (current.deviceCodeHash == null && last.deviceCodeHash != null)) {
|
|
6885
|
+
diff.deviceCodeHash = current.deviceCodeHash;
|
|
6886
|
+
}
|
|
6887
|
+
else if (last.deviceCodeHash !== current.deviceCodeHash) {
|
|
6888
|
+
diff.deviceCodeHash = current.deviceCodeHash;
|
|
6889
|
+
}
|
|
6890
|
+
if (current.userCodeHash === null && last.userCodeHash === undefined) {
|
|
6891
|
+
diff.userCodeHash = current.userCodeHash;
|
|
6892
|
+
}
|
|
6893
|
+
else if (current.userCodeHash == null && last.userCodeHash == null) {
|
|
6894
|
+
}
|
|
6895
|
+
else if ((current.userCodeHash != null && last.userCodeHash == null) || (current.userCodeHash == null && last.userCodeHash != null)) {
|
|
6896
|
+
diff.userCodeHash = current.userCodeHash;
|
|
6897
|
+
}
|
|
6898
|
+
else if (last.userCodeHash !== current.userCodeHash) {
|
|
6899
|
+
diff.userCodeHash = current.userCodeHash;
|
|
6900
|
+
}
|
|
6901
|
+
if (current.client === null && last.client === undefined) {
|
|
6902
|
+
diff.client = current.client;
|
|
6903
|
+
}
|
|
6904
|
+
else if (current.client == null && last.client == null) {
|
|
6905
|
+
}
|
|
6906
|
+
else if ((current.client != null && last.client == null) || (current.client == null && last.client != null)) {
|
|
6907
|
+
diff.client = current.client;
|
|
6908
|
+
}
|
|
6909
|
+
else if (last.client !== current.client) {
|
|
6910
|
+
diff.client = current.client;
|
|
6911
|
+
}
|
|
6912
|
+
if (current.scope === null && last.scope === undefined) {
|
|
6913
|
+
diff.scope = current.scope;
|
|
6914
|
+
}
|
|
6915
|
+
else if (current.scope == null && last.scope == null) {
|
|
6916
|
+
}
|
|
6917
|
+
else if ((current.scope != null && last.scope == null) || (current.scope == null && last.scope != null)) {
|
|
6918
|
+
diff.scope = current.scope;
|
|
6919
|
+
}
|
|
6920
|
+
else if (!equals(last.scope, current.scope)) {
|
|
6921
|
+
diff.scope = current.scope;
|
|
6922
|
+
}
|
|
6923
|
+
if (current.expiresAt === null && last.expiresAt === undefined) {
|
|
6924
|
+
diff.expiresAt = current.expiresAt;
|
|
6925
|
+
}
|
|
6926
|
+
else if (current.expiresAt == null && last.expiresAt == null) {
|
|
6927
|
+
}
|
|
6928
|
+
else if ((current.expiresAt != null && last.expiresAt == null) || (current.expiresAt == null && last.expiresAt != null)) {
|
|
6929
|
+
diff.expiresAt = current.expiresAt;
|
|
6930
|
+
}
|
|
6931
|
+
else if (last.expiresAt.valueOf() !== current.expiresAt.valueOf()) {
|
|
6932
|
+
diff.expiresAt = current.expiresAt;
|
|
6933
|
+
}
|
|
6934
|
+
if (current.authorizedUser === null && last.authorizedUser === undefined) {
|
|
6935
|
+
diff.authorizedUser = current.authorizedUser;
|
|
6936
|
+
}
|
|
6937
|
+
else if (current.authorizedUser == null && last.authorizedUser == null) {
|
|
6938
|
+
}
|
|
6939
|
+
else if ((current.authorizedUser != null && last.authorizedUser == null) || (current.authorizedUser == null && last.authorizedUser != null)) {
|
|
6940
|
+
diff.authorizedUser = current.authorizedUser;
|
|
6941
|
+
}
|
|
6942
|
+
else if (last.authorizedUser !== current.authorizedUser) {
|
|
6943
|
+
diff.authorizedUser = current.authorizedUser;
|
|
6944
|
+
}
|
|
6945
|
+
if (current.authorizedAt === null && last.authorizedAt === undefined) {
|
|
6946
|
+
diff.authorizedAt = current.authorizedAt;
|
|
6947
|
+
}
|
|
6948
|
+
else if (current.authorizedAt == null && last.authorizedAt == null) {
|
|
6949
|
+
}
|
|
6950
|
+
else if ((current.authorizedAt != null && last.authorizedAt == null) || (current.authorizedAt == null && last.authorizedAt != null)) {
|
|
6951
|
+
diff.authorizedAt = current.authorizedAt;
|
|
6952
|
+
}
|
|
6953
|
+
else if (last.authorizedAt.valueOf() !== current.authorizedAt.valueOf()) {
|
|
6954
|
+
diff.authorizedAt = current.authorizedAt;
|
|
6955
|
+
}
|
|
6956
|
+
if (current.consumedAt === null && last.consumedAt === undefined) {
|
|
6957
|
+
diff.consumedAt = current.consumedAt;
|
|
6958
|
+
}
|
|
6959
|
+
else if (current.consumedAt == null && last.consumedAt == null) {
|
|
6960
|
+
}
|
|
6961
|
+
else if ((current.consumedAt != null && last.consumedAt == null) || (current.consumedAt == null && last.consumedAt != null)) {
|
|
6962
|
+
diff.consumedAt = current.consumedAt;
|
|
6963
|
+
}
|
|
6964
|
+
else if (last.consumedAt.valueOf() !== current.consumedAt.valueOf()) {
|
|
6965
|
+
diff.consumedAt = current.consumedAt;
|
|
6966
|
+
}
|
|
6967
|
+
if (options?.includeInverseSides) {
|
|
6968
|
+
}
|
|
6969
|
+
return diff;
|
|
6970
|
+
};
|
|
6971
|
+
},
|
|
6972
|
+
'snapshotGenerator-oauth_device_code_11000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier, convertToDatabaseValue_scope) {
|
|
6973
|
+
return function (entity) {
|
|
6974
|
+
const ret = {};
|
|
6975
|
+
if (typeof entity.id !== 'undefined') {
|
|
6976
|
+
ret.id = convertToDatabaseValue_id(entity.id);
|
|
6977
|
+
}
|
|
6978
|
+
if (typeof entity.created_at !== 'undefined') {
|
|
6979
|
+
ret.created_at = clone(processDateProperty(entity.created_at));
|
|
6980
|
+
}
|
|
6981
|
+
if (typeof entity.updated_at !== 'undefined') {
|
|
6982
|
+
ret.updated_at = clone(processDateProperty(entity.updated_at));
|
|
6983
|
+
}
|
|
6984
|
+
if (typeof entity.deviceCodeHash !== 'undefined') {
|
|
6985
|
+
ret.deviceCodeHash = entity.deviceCodeHash;
|
|
6986
|
+
}
|
|
6987
|
+
if (typeof entity.userCodeHash !== 'undefined') {
|
|
6988
|
+
ret.userCodeHash = entity.userCodeHash;
|
|
6989
|
+
}
|
|
6990
|
+
if (typeof entity.client !== 'undefined') {
|
|
6991
|
+
if (entity.client === null) {
|
|
6992
|
+
ret.client = null;
|
|
6993
|
+
}
|
|
6994
|
+
else if (entity.client?.__helper.__identifier && !entity.client.__helper.hasPrimaryKey()) {
|
|
6995
|
+
ret.client = entity.client?.__helper.__identifier;
|
|
6996
|
+
}
|
|
6997
|
+
else if (typeof entity.client !== 'undefined') {
|
|
6998
|
+
ret.client = toArray(entity.client.__helper.getPrimaryKey(true));
|
|
6999
|
+
}
|
|
7000
|
+
}
|
|
7001
|
+
if (typeof entity.scope !== 'undefined') {
|
|
7002
|
+
ret.scope = clone(convertToDatabaseValue_scope(entity.scope));
|
|
7003
|
+
}
|
|
7004
|
+
if (typeof entity.expiresAt !== 'undefined') {
|
|
7005
|
+
ret.expiresAt = clone(processDateProperty(entity.expiresAt));
|
|
7006
|
+
}
|
|
7007
|
+
if (typeof entity.authorizedUser !== 'undefined') {
|
|
7008
|
+
if (entity.authorizedUser === null) {
|
|
7009
|
+
ret.authorizedUser = null;
|
|
7010
|
+
}
|
|
7011
|
+
else if (entity.authorizedUser?.__helper.__identifier && !entity.authorizedUser.__helper.hasPrimaryKey()) {
|
|
7012
|
+
ret.authorizedUser = entity.authorizedUser?.__helper.__identifier;
|
|
7013
|
+
}
|
|
7014
|
+
else if (typeof entity.authorizedUser !== 'undefined') {
|
|
7015
|
+
ret.authorizedUser = toArray(entity.authorizedUser.__helper.getPrimaryKey(true));
|
|
7016
|
+
}
|
|
7017
|
+
}
|
|
7018
|
+
if (typeof entity.authorizedAt !== 'undefined') {
|
|
7019
|
+
ret.authorizedAt = clone(processDateProperty(entity.authorizedAt));
|
|
7020
|
+
}
|
|
7021
|
+
if (typeof entity.consumedAt !== 'undefined') {
|
|
7022
|
+
ret.consumedAt = clone(processDateProperty(entity.consumedAt));
|
|
7023
|
+
}
|
|
7024
|
+
return ret;
|
|
7025
|
+
};
|
|
7026
|
+
},
|
|
7027
|
+
'resultMapper-oauth_device_code_11000': function (PolymorphicRef, parseDate) {
|
|
7028
|
+
// compiled mapper for entity OAuthDeviceCodeEntity
|
|
7029
|
+
return function (result) {
|
|
7030
|
+
const ret = {};
|
|
7031
|
+
const mapped = {};
|
|
7032
|
+
if (typeof result.id !== 'undefined') {
|
|
7033
|
+
ret.id = result.id;
|
|
7034
|
+
mapped.id = true;
|
|
7035
|
+
}
|
|
7036
|
+
if (typeof result.created_at !== 'undefined') {
|
|
7037
|
+
if (result.created_at == null || result.created_at instanceof Date) {
|
|
7038
|
+
ret.created_at = result.created_at;
|
|
7039
|
+
}
|
|
7040
|
+
else if (typeof result.created_at === 'bigint') {
|
|
7041
|
+
ret.created_at = parseDate(Number(result.created_at));
|
|
7042
|
+
}
|
|
7043
|
+
else if (typeof result.created_at === 'number' || result.created_at.includes('+') || result.created_at.lastIndexOf('-') > 10 || result.created_at.endsWith('Z')) {
|
|
7044
|
+
ret.created_at = parseDate(result.created_at);
|
|
7045
|
+
}
|
|
7046
|
+
else {
|
|
7047
|
+
ret.created_at = parseDate(result.created_at + 'Z');
|
|
7048
|
+
}
|
|
7049
|
+
mapped.created_at = true;
|
|
7050
|
+
}
|
|
7051
|
+
if (typeof result.updated_at !== 'undefined') {
|
|
7052
|
+
if (result.updated_at == null || result.updated_at instanceof Date) {
|
|
7053
|
+
ret.updated_at = result.updated_at;
|
|
7054
|
+
}
|
|
7055
|
+
else if (typeof result.updated_at === 'bigint') {
|
|
7056
|
+
ret.updated_at = parseDate(Number(result.updated_at));
|
|
7057
|
+
}
|
|
7058
|
+
else if (typeof result.updated_at === 'number' || result.updated_at.includes('+') || result.updated_at.lastIndexOf('-') > 10 || result.updated_at.endsWith('Z')) {
|
|
7059
|
+
ret.updated_at = parseDate(result.updated_at);
|
|
7060
|
+
}
|
|
7061
|
+
else {
|
|
7062
|
+
ret.updated_at = parseDate(result.updated_at + 'Z');
|
|
7063
|
+
}
|
|
7064
|
+
mapped.updated_at = true;
|
|
7065
|
+
}
|
|
7066
|
+
if (typeof result.device_code_hash !== 'undefined') {
|
|
7067
|
+
ret.deviceCodeHash = result.device_code_hash;
|
|
7068
|
+
mapped.device_code_hash = true;
|
|
7069
|
+
}
|
|
7070
|
+
if (typeof result.user_code_hash !== 'undefined') {
|
|
7071
|
+
ret.userCodeHash = result.user_code_hash;
|
|
7072
|
+
mapped.user_code_hash = true;
|
|
7073
|
+
}
|
|
7074
|
+
if (typeof result.client_id !== 'undefined') {
|
|
7075
|
+
ret.client = result.client_id;
|
|
7076
|
+
mapped.client_id = true;
|
|
7077
|
+
}
|
|
7078
|
+
if (typeof result.scope !== 'undefined') {
|
|
7079
|
+
ret.scope = result.scope;
|
|
7080
|
+
mapped.scope = true;
|
|
7081
|
+
}
|
|
7082
|
+
if (typeof result.expires_at !== 'undefined') {
|
|
7083
|
+
if (result.expires_at == null || result.expires_at instanceof Date) {
|
|
7084
|
+
ret.expiresAt = result.expires_at;
|
|
7085
|
+
}
|
|
7086
|
+
else if (typeof result.expires_at === 'bigint') {
|
|
7087
|
+
ret.expiresAt = parseDate(Number(result.expires_at));
|
|
7088
|
+
}
|
|
7089
|
+
else if (typeof result.expires_at === 'number' || result.expires_at.includes('+') || result.expires_at.lastIndexOf('-') > 10 || result.expires_at.endsWith('Z')) {
|
|
7090
|
+
ret.expiresAt = parseDate(result.expires_at);
|
|
7091
|
+
}
|
|
7092
|
+
else {
|
|
7093
|
+
ret.expiresAt = parseDate(result.expires_at + 'Z');
|
|
7094
|
+
}
|
|
7095
|
+
mapped.expires_at = true;
|
|
7096
|
+
}
|
|
7097
|
+
if (typeof result.authorized_user_sub !== 'undefined') {
|
|
7098
|
+
ret.authorizedUser = result.authorized_user_sub;
|
|
7099
|
+
mapped.authorized_user_sub = true;
|
|
7100
|
+
}
|
|
7101
|
+
if (typeof result.authorized_at !== 'undefined') {
|
|
7102
|
+
if (result.authorized_at == null || result.authorized_at instanceof Date) {
|
|
7103
|
+
ret.authorizedAt = result.authorized_at;
|
|
7104
|
+
}
|
|
7105
|
+
else if (typeof result.authorized_at === 'bigint') {
|
|
7106
|
+
ret.authorizedAt = parseDate(Number(result.authorized_at));
|
|
7107
|
+
}
|
|
7108
|
+
else if (typeof result.authorized_at === 'number' || result.authorized_at.includes('+') || result.authorized_at.lastIndexOf('-') > 10 || result.authorized_at.endsWith('Z')) {
|
|
7109
|
+
ret.authorizedAt = parseDate(result.authorized_at);
|
|
7110
|
+
}
|
|
7111
|
+
else {
|
|
7112
|
+
ret.authorizedAt = parseDate(result.authorized_at + 'Z');
|
|
7113
|
+
}
|
|
7114
|
+
mapped.authorized_at = true;
|
|
7115
|
+
}
|
|
7116
|
+
if (typeof result.consumed_at !== 'undefined') {
|
|
7117
|
+
if (result.consumed_at == null || result.consumed_at instanceof Date) {
|
|
7118
|
+
ret.consumedAt = result.consumed_at;
|
|
7119
|
+
}
|
|
7120
|
+
else if (typeof result.consumed_at === 'bigint') {
|
|
7121
|
+
ret.consumedAt = parseDate(Number(result.consumed_at));
|
|
7122
|
+
}
|
|
7123
|
+
else if (typeof result.consumed_at === 'number' || result.consumed_at.includes('+') || result.consumed_at.lastIndexOf('-') > 10 || result.consumed_at.endsWith('Z')) {
|
|
7124
|
+
ret.consumedAt = parseDate(result.consumed_at);
|
|
7125
|
+
}
|
|
7126
|
+
else {
|
|
7127
|
+
ret.consumedAt = parseDate(result.consumed_at + 'Z');
|
|
7128
|
+
}
|
|
7129
|
+
mapped.consumed_at = true;
|
|
7130
|
+
}
|
|
7131
|
+
for (let k in result) {
|
|
7132
|
+
if (Object.hasOwn(result, k) && !mapped[k] && ret[k] === undefined)
|
|
7133
|
+
ret[k] = result[k];
|
|
7134
|
+
}
|
|
7135
|
+
return ret;
|
|
7136
|
+
};
|
|
7137
|
+
},
|
|
7138
|
+
'hydrator-oauth_device_code_11000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
7139
|
+
// compiled hydrator for entity OAuthDeviceCodeEntity ( normalized)
|
|
7140
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7141
|
+
if (data.id === null) {
|
|
7142
|
+
entity.id = null;
|
|
7143
|
+
}
|
|
7144
|
+
else if (typeof data.id !== 'undefined') {
|
|
7145
|
+
if (convertCustomTypes) {
|
|
7146
|
+
const value = convertToJSValue_id(data.id);
|
|
7147
|
+
entity.id = value;
|
|
7148
|
+
}
|
|
7149
|
+
else {
|
|
7150
|
+
entity.id = data.id;
|
|
7151
|
+
}
|
|
7152
|
+
}
|
|
7153
|
+
};
|
|
7154
|
+
},
|
|
7155
|
+
'hydrator-oauth_device_code_11000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
|
|
7156
|
+
// compiled hydrator for entity OAuthDeviceCodeEntity ( normalized)
|
|
7157
|
+
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7158
|
+
if (data.id === null) {
|
|
7159
|
+
entity.id = null;
|
|
7160
|
+
}
|
|
7161
|
+
else if (typeof data.id !== 'undefined') {
|
|
7162
|
+
if (convertCustomTypes) {
|
|
7163
|
+
const value = convertToJSValue_id(data.id);
|
|
7164
|
+
entity.id = value;
|
|
7165
|
+
}
|
|
7166
|
+
else {
|
|
7167
|
+
entity.id = data.id;
|
|
7168
|
+
}
|
|
7169
|
+
}
|
|
7170
|
+
};
|
|
7171
|
+
},
|
|
7172
|
+
'pkGetter-oauth_device_code_11000': function (isEntityOrRef) {
|
|
7173
|
+
// compiled pk getter for entity OAuthDeviceCodeEntity
|
|
7174
|
+
return function (entity) {
|
|
7175
|
+
return entity.id;
|
|
7176
|
+
};
|
|
7177
|
+
},
|
|
7178
|
+
'pkGetterConverted-oauth_device_code_11000': function (isEntityOrRef, convertToDatabaseValue_id) {
|
|
7179
|
+
// compiled pk getter (with converted custom types) for entity OAuthDeviceCodeEntity
|
|
7180
|
+
return function (entity) {
|
|
7181
|
+
return convertToDatabaseValue_id(entity.id);
|
|
7182
|
+
};
|
|
7183
|
+
},
|
|
7184
|
+
'pkSerializer-oauth_device_code_11000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
7185
|
+
// compiled pk serializer for entity OAuthDeviceCodeEntity
|
|
7186
|
+
return function (entity) {
|
|
7187
|
+
const val_11 = convertToDatabaseValue_id(entity.id);
|
|
7188
|
+
return getPrimaryKeyHash(val_11);
|
|
7189
|
+
};
|
|
7190
|
+
},
|
|
7191
|
+
'hydrator-oauth_code_10000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_334, oauth_client_335, user_336, user_337, convertToJSValue_scope, convertToDatabaseValue_scope) {
|
|
6575
7192
|
// compiled hydrator for entity OAuthCodeEntity ( normalized)
|
|
6576
7193
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6577
7194
|
if (data.id === null) {
|
|
@@ -6625,10 +7242,10 @@ export default {
|
|
|
6625
7242
|
}
|
|
6626
7243
|
else if (typeof data.client !== 'undefined') {
|
|
6627
7244
|
if (isPrimaryKey(data.client, true)) {
|
|
6628
|
-
entity.client = factory.createReference(
|
|
7245
|
+
entity.client = factory.createReference(oauth_client_334, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6629
7246
|
}
|
|
6630
7247
|
else if (data.client && typeof data.client === 'object') {
|
|
6631
|
-
entity.client = factory.create(
|
|
7248
|
+
entity.client = factory.create(oauth_client_335, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6632
7249
|
}
|
|
6633
7250
|
}
|
|
6634
7251
|
if (data.user === null) {
|
|
@@ -6636,10 +7253,10 @@ export default {
|
|
|
6636
7253
|
}
|
|
6637
7254
|
else if (typeof data.user !== 'undefined') {
|
|
6638
7255
|
if (isPrimaryKey(data.user, true)) {
|
|
6639
|
-
entity.user = Reference.create(factory.createReference(
|
|
7256
|
+
entity.user = Reference.create(factory.createReference(user_336, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
6640
7257
|
}
|
|
6641
7258
|
else if (data.user && typeof data.user === 'object') {
|
|
6642
|
-
entity.user = Reference.create(factory.create(
|
|
7259
|
+
entity.user = Reference.create(factory.create(user_337, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
6643
7260
|
}
|
|
6644
7261
|
}
|
|
6645
7262
|
if (data.redirectUri === null) {
|
|
@@ -6715,7 +7332,7 @@ export default {
|
|
|
6715
7332
|
}
|
|
6716
7333
|
};
|
|
6717
7334
|
},
|
|
6718
|
-
'hydrator-oauth_code_10000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id,
|
|
7335
|
+
'hydrator-oauth_code_10000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_350, oauth_client_351, user_352, user_353, convertToJSValue_scope, convertToDatabaseValue_scope) {
|
|
6719
7336
|
// compiled hydrator for entity OAuthCodeEntity ( normalized)
|
|
6720
7337
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
6721
7338
|
if (data.id === null) {
|
|
@@ -6769,10 +7386,10 @@ export default {
|
|
|
6769
7386
|
}
|
|
6770
7387
|
else if (typeof data.client !== 'undefined') {
|
|
6771
7388
|
if (isPrimaryKey(data.client, true)) {
|
|
6772
|
-
entity.client = factory.createReference(
|
|
7389
|
+
entity.client = factory.createReference(oauth_client_350, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
|
|
6773
7390
|
}
|
|
6774
7391
|
else if (data.client && typeof data.client === 'object') {
|
|
6775
|
-
entity.client = factory.create(
|
|
7392
|
+
entity.client = factory.create(oauth_client_351, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
|
|
6776
7393
|
}
|
|
6777
7394
|
}
|
|
6778
7395
|
if (data.user === null) {
|
|
@@ -6780,10 +7397,10 @@ export default {
|
|
|
6780
7397
|
}
|
|
6781
7398
|
else if (typeof data.user !== 'undefined') {
|
|
6782
7399
|
if (isPrimaryKey(data.user, true)) {
|
|
6783
|
-
entity.user = Reference.create(factory.createReference(
|
|
7400
|
+
entity.user = Reference.create(factory.createReference(user_352, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
6784
7401
|
}
|
|
6785
7402
|
else if (data.user && typeof data.user === 'object') {
|
|
6786
|
-
entity.user = Reference.create(factory.create(
|
|
7403
|
+
entity.user = Reference.create(factory.create(user_353, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
6787
7404
|
}
|
|
6788
7405
|
}
|
|
6789
7406
|
if (data.redirectUri === null) {
|
|
@@ -7247,11 +7864,11 @@ export default {
|
|
|
7247
7864
|
'pkSerializer-oauth_code_10000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
7248
7865
|
// compiled pk serializer for entity OAuthCodeEntity
|
|
7249
7866
|
return function (entity) {
|
|
7250
|
-
const
|
|
7251
|
-
return getPrimaryKeyHash(
|
|
7867
|
+
const val_12 = convertToDatabaseValue_id(entity.id);
|
|
7868
|
+
return getPrimaryKeyHash(val_12);
|
|
7252
7869
|
};
|
|
7253
7870
|
},
|
|
7254
|
-
'hydrator-
|
|
7871
|
+
'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_379, oauth_device_code_380, user_consent_381, revoked_tokens_382) {
|
|
7255
7872
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
7256
7873
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7257
7874
|
if (data.id === null) {
|
|
@@ -7358,6 +7975,32 @@ export default {
|
|
|
7358
7975
|
entity.redirectUris = data.redirectUris;
|
|
7359
7976
|
}
|
|
7360
7977
|
}
|
|
7978
|
+
if (data.postLogoutRedirectUris === null) {
|
|
7979
|
+
entity.postLogoutRedirectUris = null;
|
|
7980
|
+
}
|
|
7981
|
+
else if (typeof data.postLogoutRedirectUris !== 'undefined') {
|
|
7982
|
+
if (convertCustomTypes) {
|
|
7983
|
+
const value = convertToJSValue_postLogoutRedirectUris(data.postLogoutRedirectUris);
|
|
7984
|
+
data.postLogoutRedirectUris = convertToDatabaseValue_postLogoutRedirectUris(value);
|
|
7985
|
+
entity.postLogoutRedirectUris = value;
|
|
7986
|
+
}
|
|
7987
|
+
else {
|
|
7988
|
+
entity.postLogoutRedirectUris = data.postLogoutRedirectUris;
|
|
7989
|
+
}
|
|
7990
|
+
}
|
|
7991
|
+
if (data.webOrigins === null) {
|
|
7992
|
+
entity.webOrigins = null;
|
|
7993
|
+
}
|
|
7994
|
+
else if (typeof data.webOrigins !== 'undefined') {
|
|
7995
|
+
if (convertCustomTypes) {
|
|
7996
|
+
const value = convertToJSValue_webOrigins(data.webOrigins);
|
|
7997
|
+
data.webOrigins = convertToDatabaseValue_webOrigins(value);
|
|
7998
|
+
entity.webOrigins = value;
|
|
7999
|
+
}
|
|
8000
|
+
else {
|
|
8001
|
+
entity.webOrigins = data.webOrigins;
|
|
8002
|
+
}
|
|
8003
|
+
}
|
|
7361
8004
|
if (data.enabled === null) {
|
|
7362
8005
|
entity.enabled = null;
|
|
7363
8006
|
}
|
|
@@ -7378,10 +8021,10 @@ export default {
|
|
|
7378
8021
|
}
|
|
7379
8022
|
const createCollectionItem_codes = (value, entity) => {
|
|
7380
8023
|
if (isPrimaryKey(value, false))
|
|
7381
|
-
return factory.createReference(
|
|
8024
|
+
return factory.createReference(oauth_code_379, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7382
8025
|
if (value && isEntity(value))
|
|
7383
8026
|
return value;
|
|
7384
|
-
return factory.create(
|
|
8027
|
+
return factory.create(oauth_code_379, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7385
8028
|
};
|
|
7386
8029
|
if (data.codes && !Array.isArray(data.codes) && typeof data.codes === 'object') {
|
|
7387
8030
|
data.codes = [data.codes];
|
|
@@ -7403,12 +8046,39 @@ export default {
|
|
|
7403
8046
|
const coll = Collection.create(entity, 'codes', undefined, newEntity);
|
|
7404
8047
|
coll.setDirty(false);
|
|
7405
8048
|
}
|
|
8049
|
+
const createCollectionItem_deviceCodes = (value, entity) => {
|
|
8050
|
+
if (isPrimaryKey(value, false))
|
|
8051
|
+
return factory.createReference(oauth_device_code_380, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8052
|
+
if (value && isEntity(value))
|
|
8053
|
+
return value;
|
|
8054
|
+
return factory.create(oauth_device_code_380, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8055
|
+
};
|
|
8056
|
+
if (data.deviceCodes && !Array.isArray(data.deviceCodes) && typeof data.deviceCodes === 'object') {
|
|
8057
|
+
data.deviceCodes = [data.deviceCodes];
|
|
8058
|
+
}
|
|
8059
|
+
if (Array.isArray(data.deviceCodes)) {
|
|
8060
|
+
const items = data.deviceCodes.map(value => createCollectionItem_deviceCodes(value, entity));
|
|
8061
|
+
const coll = Collection.create(entity, 'deviceCodes', items, newEntity);
|
|
8062
|
+
if (newEntity) {
|
|
8063
|
+
coll.setDirty();
|
|
8064
|
+
}
|
|
8065
|
+
else {
|
|
8066
|
+
coll.takeSnapshot(true);
|
|
8067
|
+
}
|
|
8068
|
+
}
|
|
8069
|
+
else if (!entity.deviceCodes && data.deviceCodes instanceof Collection) {
|
|
8070
|
+
entity.deviceCodes = data.deviceCodes;
|
|
8071
|
+
}
|
|
8072
|
+
else if (!entity.deviceCodes) {
|
|
8073
|
+
const coll = Collection.create(entity, 'deviceCodes', undefined, newEntity);
|
|
8074
|
+
coll.setDirty(false);
|
|
8075
|
+
}
|
|
7406
8076
|
const createCollectionItem_consents = (value, entity) => {
|
|
7407
8077
|
if (isPrimaryKey(value, false))
|
|
7408
|
-
return factory.createReference(
|
|
8078
|
+
return factory.createReference(user_consent_381, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7409
8079
|
if (value && isEntity(value))
|
|
7410
8080
|
return value;
|
|
7411
|
-
return factory.create(
|
|
8081
|
+
return factory.create(user_consent_381, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7412
8082
|
};
|
|
7413
8083
|
if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
|
|
7414
8084
|
data.consents = [data.consents];
|
|
@@ -7432,10 +8102,10 @@ export default {
|
|
|
7432
8102
|
}
|
|
7433
8103
|
const createCollectionItem_revokedTokens = (value, entity) => {
|
|
7434
8104
|
if (isPrimaryKey(value, false))
|
|
7435
|
-
return factory.createReference(
|
|
8105
|
+
return factory.createReference(revoked_tokens_382, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7436
8106
|
if (value && isEntity(value))
|
|
7437
8107
|
return value;
|
|
7438
|
-
return factory.create(
|
|
8108
|
+
return factory.create(revoked_tokens_382, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7439
8109
|
};
|
|
7440
8110
|
if (data.revokedTokens && !Array.isArray(data.revokedTokens) && typeof data.revokedTokens === 'object') {
|
|
7441
8111
|
data.revokedTokens = [data.revokedTokens];
|
|
@@ -7459,7 +8129,7 @@ export default {
|
|
|
7459
8129
|
}
|
|
7460
8130
|
};
|
|
7461
8131
|
},
|
|
7462
|
-
'hydrator-
|
|
8132
|
+
'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_398, oauth_device_code_399, user_consent_400, revoked_tokens_401) {
|
|
7463
8133
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
7464
8134
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7465
8135
|
if (data.id === null) {
|
|
@@ -7566,6 +8236,32 @@ export default {
|
|
|
7566
8236
|
entity.redirectUris = data.redirectUris;
|
|
7567
8237
|
}
|
|
7568
8238
|
}
|
|
8239
|
+
if (data.postLogoutRedirectUris === null) {
|
|
8240
|
+
entity.postLogoutRedirectUris = null;
|
|
8241
|
+
}
|
|
8242
|
+
else if (typeof data.postLogoutRedirectUris !== 'undefined') {
|
|
8243
|
+
if (convertCustomTypes) {
|
|
8244
|
+
const value = convertToJSValue_postLogoutRedirectUris(data.postLogoutRedirectUris);
|
|
8245
|
+
data.postLogoutRedirectUris = convertToDatabaseValue_postLogoutRedirectUris(value);
|
|
8246
|
+
entity.postLogoutRedirectUris = value;
|
|
8247
|
+
}
|
|
8248
|
+
else {
|
|
8249
|
+
entity.postLogoutRedirectUris = data.postLogoutRedirectUris;
|
|
8250
|
+
}
|
|
8251
|
+
}
|
|
8252
|
+
if (data.webOrigins === null) {
|
|
8253
|
+
entity.webOrigins = null;
|
|
8254
|
+
}
|
|
8255
|
+
else if (typeof data.webOrigins !== 'undefined') {
|
|
8256
|
+
if (convertCustomTypes) {
|
|
8257
|
+
const value = convertToJSValue_webOrigins(data.webOrigins);
|
|
8258
|
+
data.webOrigins = convertToDatabaseValue_webOrigins(value);
|
|
8259
|
+
entity.webOrigins = value;
|
|
8260
|
+
}
|
|
8261
|
+
else {
|
|
8262
|
+
entity.webOrigins = data.webOrigins;
|
|
8263
|
+
}
|
|
8264
|
+
}
|
|
7569
8265
|
if (data.enabled === null) {
|
|
7570
8266
|
entity.enabled = null;
|
|
7571
8267
|
}
|
|
@@ -7586,10 +8282,10 @@ export default {
|
|
|
7586
8282
|
}
|
|
7587
8283
|
const createCollectionItem_codes = (value, entity) => {
|
|
7588
8284
|
if (isPrimaryKey(value, false))
|
|
7589
|
-
return factory.createReference(
|
|
8285
|
+
return factory.createReference(oauth_code_398, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7590
8286
|
if (value && isEntity(value))
|
|
7591
8287
|
return value;
|
|
7592
|
-
return factory.create(
|
|
8288
|
+
return factory.create(oauth_code_398, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7593
8289
|
};
|
|
7594
8290
|
if (data.codes && !Array.isArray(data.codes) && typeof data.codes === 'object') {
|
|
7595
8291
|
data.codes = [data.codes];
|
|
@@ -7611,12 +8307,39 @@ export default {
|
|
|
7611
8307
|
const coll = Collection.create(entity, 'codes', undefined, newEntity);
|
|
7612
8308
|
coll.setDirty(false);
|
|
7613
8309
|
}
|
|
8310
|
+
const createCollectionItem_deviceCodes = (value, entity) => {
|
|
8311
|
+
if (isPrimaryKey(value, false))
|
|
8312
|
+
return factory.createReference(oauth_device_code_399, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8313
|
+
if (value && isEntity(value))
|
|
8314
|
+
return value;
|
|
8315
|
+
return factory.create(oauth_device_code_399, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
8316
|
+
};
|
|
8317
|
+
if (data.deviceCodes && !Array.isArray(data.deviceCodes) && typeof data.deviceCodes === 'object') {
|
|
8318
|
+
data.deviceCodes = [data.deviceCodes];
|
|
8319
|
+
}
|
|
8320
|
+
if (Array.isArray(data.deviceCodes)) {
|
|
8321
|
+
const items = data.deviceCodes.map(value => createCollectionItem_deviceCodes(value, entity));
|
|
8322
|
+
const coll = Collection.create(entity, 'deviceCodes', items, newEntity);
|
|
8323
|
+
if (newEntity) {
|
|
8324
|
+
coll.setDirty();
|
|
8325
|
+
}
|
|
8326
|
+
else {
|
|
8327
|
+
coll.takeSnapshot(true);
|
|
8328
|
+
}
|
|
8329
|
+
}
|
|
8330
|
+
else if (!entity.deviceCodes && data.deviceCodes instanceof Collection) {
|
|
8331
|
+
entity.deviceCodes = data.deviceCodes;
|
|
8332
|
+
}
|
|
8333
|
+
else if (!entity.deviceCodes) {
|
|
8334
|
+
const coll = Collection.create(entity, 'deviceCodes', undefined, newEntity);
|
|
8335
|
+
coll.setDirty(false);
|
|
8336
|
+
}
|
|
7614
8337
|
const createCollectionItem_consents = (value, entity) => {
|
|
7615
8338
|
if (isPrimaryKey(value, false))
|
|
7616
|
-
return factory.createReference(
|
|
8339
|
+
return factory.createReference(user_consent_400, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7617
8340
|
if (value && isEntity(value))
|
|
7618
8341
|
return value;
|
|
7619
|
-
return factory.create(
|
|
8342
|
+
return factory.create(user_consent_400, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7620
8343
|
};
|
|
7621
8344
|
if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
|
|
7622
8345
|
data.consents = [data.consents];
|
|
@@ -7640,10 +8363,10 @@ export default {
|
|
|
7640
8363
|
}
|
|
7641
8364
|
const createCollectionItem_revokedTokens = (value, entity) => {
|
|
7642
8365
|
if (isPrimaryKey(value, false))
|
|
7643
|
-
return factory.createReference(
|
|
8366
|
+
return factory.createReference(revoked_tokens_401, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7644
8367
|
if (value && isEntity(value))
|
|
7645
8368
|
return value;
|
|
7646
|
-
return factory.create(
|
|
8369
|
+
return factory.create(revoked_tokens_401, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
|
|
7647
8370
|
};
|
|
7648
8371
|
if (data.revokedTokens && !Array.isArray(data.revokedTokens) && typeof data.revokedTokens === 'object') {
|
|
7649
8372
|
data.revokedTokens = [data.revokedTokens];
|
|
@@ -7667,7 +8390,7 @@ export default {
|
|
|
7667
8390
|
}
|
|
7668
8391
|
};
|
|
7669
8392
|
},
|
|
7670
|
-
'comparator-
|
|
8393
|
+
'comparator-oauth_client_14000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
|
|
7671
8394
|
// compiled comparator for entity OAuthClientEntity
|
|
7672
8395
|
return function (last, current, options) {
|
|
7673
8396
|
const diff = {};
|
|
@@ -7781,6 +8504,28 @@ export default {
|
|
|
7781
8504
|
else if (!equals(last.redirectUris, current.redirectUris)) {
|
|
7782
8505
|
diff.redirectUris = current.redirectUris;
|
|
7783
8506
|
}
|
|
8507
|
+
if (current.postLogoutRedirectUris === null && last.postLogoutRedirectUris === undefined) {
|
|
8508
|
+
diff.postLogoutRedirectUris = current.postLogoutRedirectUris;
|
|
8509
|
+
}
|
|
8510
|
+
else if (current.postLogoutRedirectUris == null && last.postLogoutRedirectUris == null) {
|
|
8511
|
+
}
|
|
8512
|
+
else if ((current.postLogoutRedirectUris != null && last.postLogoutRedirectUris == null) || (current.postLogoutRedirectUris == null && last.postLogoutRedirectUris != null)) {
|
|
8513
|
+
diff.postLogoutRedirectUris = current.postLogoutRedirectUris;
|
|
8514
|
+
}
|
|
8515
|
+
else if (!equals(last.postLogoutRedirectUris, current.postLogoutRedirectUris)) {
|
|
8516
|
+
diff.postLogoutRedirectUris = current.postLogoutRedirectUris;
|
|
8517
|
+
}
|
|
8518
|
+
if (current.webOrigins === null && last.webOrigins === undefined) {
|
|
8519
|
+
diff.webOrigins = current.webOrigins;
|
|
8520
|
+
}
|
|
8521
|
+
else if (current.webOrigins == null && last.webOrigins == null) {
|
|
8522
|
+
}
|
|
8523
|
+
else if ((current.webOrigins != null && last.webOrigins == null) || (current.webOrigins == null && last.webOrigins != null)) {
|
|
8524
|
+
diff.webOrigins = current.webOrigins;
|
|
8525
|
+
}
|
|
8526
|
+
else if (!equals(last.webOrigins, current.webOrigins)) {
|
|
8527
|
+
diff.webOrigins = current.webOrigins;
|
|
8528
|
+
}
|
|
7784
8529
|
if (current.enabled === null && last.enabled === undefined) {
|
|
7785
8530
|
diff.enabled = current.enabled;
|
|
7786
8531
|
}
|
|
@@ -7819,7 +8564,7 @@ export default {
|
|
|
7819
8564
|
return diff;
|
|
7820
8565
|
};
|
|
7821
8566
|
},
|
|
7822
|
-
'snapshotGenerator-
|
|
8567
|
+
'snapshotGenerator-oauth_client_14000': function (clone, cloneEmbeddable, processDateProperty, convertToDatabaseValue_grantTypes, convertToDatabaseValue_responseTypes, convertToDatabaseValue_scopes, convertToDatabaseValue_redirectUris, convertToDatabaseValue_postLogoutRedirectUris, convertToDatabaseValue_webOrigins) {
|
|
7823
8568
|
return function (entity) {
|
|
7824
8569
|
const ret = {};
|
|
7825
8570
|
if (typeof entity.id !== 'undefined') {
|
|
@@ -7852,6 +8597,12 @@ export default {
|
|
|
7852
8597
|
if (typeof entity.redirectUris !== 'undefined') {
|
|
7853
8598
|
ret.redirectUris = clone(convertToDatabaseValue_redirectUris(entity.redirectUris));
|
|
7854
8599
|
}
|
|
8600
|
+
if (typeof entity.postLogoutRedirectUris !== 'undefined') {
|
|
8601
|
+
ret.postLogoutRedirectUris = clone(convertToDatabaseValue_postLogoutRedirectUris(entity.postLogoutRedirectUris));
|
|
8602
|
+
}
|
|
8603
|
+
if (typeof entity.webOrigins !== 'undefined') {
|
|
8604
|
+
ret.webOrigins = clone(convertToDatabaseValue_webOrigins(entity.webOrigins));
|
|
8605
|
+
}
|
|
7855
8606
|
if (typeof entity.enabled !== 'undefined') {
|
|
7856
8607
|
ret.enabled = entity.enabled;
|
|
7857
8608
|
}
|
|
@@ -7864,7 +8615,7 @@ export default {
|
|
|
7864
8615
|
return ret;
|
|
7865
8616
|
};
|
|
7866
8617
|
},
|
|
7867
|
-
'resultMapper-
|
|
8618
|
+
'resultMapper-oauth_client_14000': function (PolymorphicRef, parseDate) {
|
|
7868
8619
|
// compiled mapper for entity OAuthClientEntity
|
|
7869
8620
|
return function (result) {
|
|
7870
8621
|
const ret = {};
|
|
@@ -7931,6 +8682,14 @@ export default {
|
|
|
7931
8682
|
ret.redirectUris = result.redirect_uris;
|
|
7932
8683
|
mapped.redirect_uris = true;
|
|
7933
8684
|
}
|
|
8685
|
+
if (typeof result.post_logout_redirect_uris !== 'undefined') {
|
|
8686
|
+
ret.postLogoutRedirectUris = result.post_logout_redirect_uris;
|
|
8687
|
+
mapped.post_logout_redirect_uris = true;
|
|
8688
|
+
}
|
|
8689
|
+
if (typeof result.web_origins !== 'undefined') {
|
|
8690
|
+
ret.webOrigins = result.web_origins;
|
|
8691
|
+
mapped.web_origins = true;
|
|
8692
|
+
}
|
|
7934
8693
|
if (typeof result.enabled !== 'undefined') {
|
|
7935
8694
|
ret.enabled = result.enabled == null ? result.enabled : !!result.enabled;
|
|
7936
8695
|
mapped.enabled = true;
|
|
@@ -7950,7 +8709,7 @@ export default {
|
|
|
7950
8709
|
return ret;
|
|
7951
8710
|
};
|
|
7952
8711
|
},
|
|
7953
|
-
'hydrator-
|
|
8712
|
+
'hydrator-oauth_client_14000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
7954
8713
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
7955
8714
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7956
8715
|
if (data.id === null) {
|
|
@@ -7961,7 +8720,7 @@ export default {
|
|
|
7961
8720
|
}
|
|
7962
8721
|
};
|
|
7963
8722
|
},
|
|
7964
|
-
'hydrator-
|
|
8723
|
+
'hydrator-oauth_client_14000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|
|
7965
8724
|
// compiled hydrator for entity OAuthClientEntity ( normalized)
|
|
7966
8725
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
7967
8726
|
if (data.id === null) {
|
|
@@ -7972,19 +8731,19 @@ export default {
|
|
|
7972
8731
|
}
|
|
7973
8732
|
};
|
|
7974
8733
|
},
|
|
7975
|
-
'pkGetter-
|
|
8734
|
+
'pkGetter-oauth_client_14000': function (isEntityOrRef) {
|
|
7976
8735
|
// compiled pk getter for entity OAuthClientEntity
|
|
7977
8736
|
return function (entity) {
|
|
7978
8737
|
return entity.id;
|
|
7979
8738
|
};
|
|
7980
8739
|
},
|
|
7981
|
-
'pkGetterConverted-
|
|
8740
|
+
'pkGetterConverted-oauth_client_14000': function (isEntityOrRef) {
|
|
7982
8741
|
// compiled pk getter (with converted custom types) for entity OAuthClientEntity
|
|
7983
8742
|
return function (entity) {
|
|
7984
8743
|
return entity.id;
|
|
7985
8744
|
};
|
|
7986
8745
|
},
|
|
7987
|
-
'pkSerializer-
|
|
8746
|
+
'pkSerializer-oauth_client_14000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
|
|
7988
8747
|
// compiled pk serializer for entity OAuthClientEntity
|
|
7989
8748
|
return function (entity) {
|
|
7990
8749
|
return '' + entity.id;
|
|
@@ -8559,7 +9318,7 @@ export default {
|
|
|
8559
9318
|
return '' + entity.kid;
|
|
8560
9319
|
};
|
|
8561
9320
|
},
|
|
8562
|
-
'hydrator-email_verification_8000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id,
|
|
9321
|
+
'hydrator-email_verification_8000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_431, user_432) {
|
|
8563
9322
|
// compiled hydrator for entity EmailVerificationEntity ( normalized)
|
|
8564
9323
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
8565
9324
|
if (data.id === null) {
|
|
@@ -8607,10 +9366,10 @@ export default {
|
|
|
8607
9366
|
}
|
|
8608
9367
|
else if (typeof data.user !== 'undefined') {
|
|
8609
9368
|
if (isPrimaryKey(data.user, true)) {
|
|
8610
|
-
entity.user = Reference.create(factory.createReference(
|
|
9369
|
+
entity.user = Reference.create(factory.createReference(user_431, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
8611
9370
|
}
|
|
8612
9371
|
else if (data.user && typeof data.user === 'object') {
|
|
8613
|
-
entity.user = Reference.create(factory.create(
|
|
9372
|
+
entity.user = Reference.create(factory.create(user_432, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
8614
9373
|
}
|
|
8615
9374
|
}
|
|
8616
9375
|
if (data.token === null) {
|
|
@@ -8655,7 +9414,7 @@ export default {
|
|
|
8655
9414
|
}
|
|
8656
9415
|
};
|
|
8657
9416
|
},
|
|
8658
|
-
'hydrator-email_verification_8000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id,
|
|
9417
|
+
'hydrator-email_verification_8000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_440, user_441) {
|
|
8659
9418
|
// compiled hydrator for entity EmailVerificationEntity ( normalized)
|
|
8660
9419
|
return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
|
|
8661
9420
|
if (data.id === null) {
|
|
@@ -8703,10 +9462,10 @@ export default {
|
|
|
8703
9462
|
}
|
|
8704
9463
|
else if (typeof data.user !== 'undefined') {
|
|
8705
9464
|
if (isPrimaryKey(data.user, true)) {
|
|
8706
|
-
entity.user = Reference.create(factory.createReference(
|
|
9465
|
+
entity.user = Reference.create(factory.createReference(user_440, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
|
|
8707
9466
|
}
|
|
8708
9467
|
else if (data.user && typeof data.user === 'object') {
|
|
8709
|
-
entity.user = Reference.create(factory.create(
|
|
9468
|
+
entity.user = Reference.create(factory.create(user_441, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
|
|
8710
9469
|
}
|
|
8711
9470
|
}
|
|
8712
9471
|
if (data.token === null) {
|
|
@@ -9023,8 +9782,8 @@ export default {
|
|
|
9023
9782
|
'pkSerializer-email_verification_8000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
|
|
9024
9783
|
// compiled pk serializer for entity EmailVerificationEntity
|
|
9025
9784
|
return function (entity) {
|
|
9026
|
-
const
|
|
9027
|
-
return getPrimaryKeyHash(
|
|
9785
|
+
const val_13 = convertToDatabaseValue_id(entity.id);
|
|
9786
|
+
return getPrimaryKeyHash(val_13);
|
|
9028
9787
|
};
|
|
9029
9788
|
},
|
|
9030
9789
|
'hydrator-bootstrap_state_2000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
|