@tinyrack/tinyauth-server 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/entities/background-job.entity.d.ts.map +1 -1
  2. package/dist/entities/background-job.entity.js +15 -3
  3. package/dist/entities/background-job.entity.js.map +1 -1
  4. package/dist/entities/oauth-client.entity.d.ts +156 -0
  5. package/dist/entities/oauth-client.entity.d.ts.map +1 -1
  6. package/dist/entities/oauth-client.entity.js +14 -0
  7. package/dist/entities/oauth-client.entity.js.map +1 -1
  8. package/dist/entities/oauth-code.entity.d.ts +156 -0
  9. package/dist/entities/oauth-code.entity.d.ts.map +1 -1
  10. package/dist/entities/oauth-device-code.entity.d.ts +1746 -0
  11. package/dist/entities/oauth-device-code.entity.d.ts.map +1 -0
  12. package/dist/entities/oauth-device-code.entity.js +61 -0
  13. package/dist/entities/oauth-device-code.entity.js.map +1 -0
  14. package/dist/entities/revoked-token.entity.d.ts +156 -0
  15. package/dist/entities/revoked-token.entity.d.ts.map +1 -1
  16. package/dist/entities/scheduler-job.entity.d.ts.map +1 -1
  17. package/dist/entities/scheduler-job.entity.js +10 -2
  18. package/dist/entities/scheduler-job.entity.js.map +1 -1
  19. package/dist/entities/user-consent.entity.d.ts +156 -0
  20. package/dist/entities/user-consent.entity.d.ts.map +1 -1
  21. package/dist/entities/user-oauth.entity.d.ts.map +1 -1
  22. package/dist/entities/user-oauth.entity.js +2 -1
  23. package/dist/entities/user-oauth.entity.js.map +1 -1
  24. package/dist/entrypoints/app.d.ts +127 -19
  25. package/dist/entrypoints/app.d.ts.map +1 -1
  26. package/dist/entrypoints/app.js +72 -5
  27. package/dist/entrypoints/app.js.map +1 -1
  28. package/dist/entrypoints/database/postgres/cli.js +5 -5
  29. package/dist/entrypoints/database/postgres/cli.js.map +1 -1
  30. package/dist/entrypoints/database/postgres/compiled-functions.d.ts +149 -94
  31. package/dist/entrypoints/database/postgres/compiled-functions.d.ts.map +1 -1
  32. package/dist/entrypoints/database/postgres/compiled-functions.js +911 -122
  33. package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
  34. package/dist/entrypoints/database/sqlite/cli.js +2 -2
  35. package/dist/entrypoints/database/sqlite/cli.js.map +1 -1
  36. package/dist/entrypoints/database/sqlite/compiled-functions.d.ts +149 -94
  37. package/dist/entrypoints/database/sqlite/compiled-functions.d.ts.map +1 -1
  38. package/dist/entrypoints/database/sqlite/compiled-functions.js +911 -122
  39. package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
  40. package/dist/lib/config/client.d.ts +10 -0
  41. package/dist/lib/config/client.d.ts.map +1 -1
  42. package/dist/lib/config/client.js +66 -2
  43. package/dist/lib/config/client.js.map +1 -1
  44. package/dist/lib/config/resolved.d.ts +5 -0
  45. package/dist/lib/config/resolved.d.ts.map +1 -1
  46. package/dist/lib/config/security.d.ts.map +1 -1
  47. package/dist/lib/config/security.js +25 -2
  48. package/dist/lib/config/security.js.map +1 -1
  49. package/dist/lib/crypto.d.ts.map +1 -1
  50. package/dist/lib/crypto.js +11 -1
  51. package/dist/lib/crypto.js.map +1 -1
  52. package/dist/lib/database/entities.d.ts.map +1 -1
  53. package/dist/lib/database/entities.js +2 -0
  54. package/dist/lib/database/entities.js.map +1 -1
  55. package/dist/lib/escape-html.d.ts +7 -0
  56. package/dist/lib/escape-html.d.ts.map +1 -0
  57. package/dist/lib/escape-html.js +14 -0
  58. package/dist/lib/escape-html.js.map +1 -0
  59. package/dist/migrations/postgres/Migration20260619075007.d.ts +6 -0
  60. package/dist/migrations/postgres/Migration20260619075007.d.ts.map +1 -0
  61. package/dist/migrations/postgres/Migration20260619075007.js +86 -0
  62. package/dist/migrations/postgres/Migration20260619075007.js.map +1 -0
  63. package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.d.ts +6 -0
  64. package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.d.ts.map +1 -0
  65. package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.js +12 -0
  66. package/dist/migrations/postgres/Migration20260619191600_unique_oauth_client_client_id.js.map +1 -0
  67. package/dist/migrations/postgres/Migration20260620025358_add_oauth_client_skip_consent.d.ts +6 -0
  68. package/dist/migrations/postgres/Migration20260620025358_add_oauth_client_skip_consent.d.ts.map +1 -0
  69. package/dist/migrations/postgres/Migration20260620025358_add_oauth_client_skip_consent.js +11 -0
  70. package/dist/migrations/postgres/Migration20260620025358_add_oauth_client_skip_consent.js.map +1 -0
  71. package/dist/migrations/postgres/index.d.ts.map +1 -1
  72. package/dist/migrations/postgres/index.js +6 -0
  73. package/dist/migrations/postgres/index.js.map +1 -1
  74. package/dist/migrations/sqlite/Migration20260619075330.d.ts +6 -0
  75. package/dist/migrations/sqlite/Migration20260619075330.d.ts.map +1 -0
  76. package/dist/migrations/sqlite/Migration20260619075330.js +57 -0
  77. package/dist/migrations/sqlite/Migration20260619075330.js.map +1 -0
  78. package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.d.ts +6 -0
  79. package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.d.ts.map +1 -0
  80. package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.js +12 -0
  81. package/dist/migrations/sqlite/Migration20260619191600_unique_oauth_client_client_id.js.map +1 -0
  82. package/dist/migrations/sqlite/Migration20260620025358_add_oauth_client_skip_consent.d.ts +6 -0
  83. package/dist/migrations/sqlite/Migration20260620025358_add_oauth_client_skip_consent.d.ts.map +1 -0
  84. package/dist/migrations/sqlite/Migration20260620025358_add_oauth_client_skip_consent.js +10 -0
  85. package/dist/migrations/sqlite/Migration20260620025358_add_oauth_client_skip_consent.js.map +1 -0
  86. package/dist/migrations/sqlite/index.d.ts.map +1 -1
  87. package/dist/migrations/sqlite/index.js +6 -0
  88. package/dist/migrations/sqlite/index.js.map +1 -1
  89. package/dist/repositories/oauth-device-code.repository.d.ts +20 -0
  90. package/dist/repositories/oauth-device-code.repository.d.ts.map +1 -0
  91. package/dist/repositories/oauth-device-code.repository.js +55 -0
  92. package/dist/repositories/oauth-device-code.repository.js.map +1 -0
  93. package/dist/routes/.well-known/index.d.ts +29 -3
  94. package/dist/routes/.well-known/index.d.ts.map +1 -1
  95. package/dist/routes/.well-known/openid-configuration/get.d.ts +30 -4
  96. package/dist/routes/.well-known/openid-configuration/get.d.ts.map +1 -1
  97. package/dist/routes/.well-known/openid-configuration/get.js +5 -2
  98. package/dist/routes/.well-known/openid-configuration/get.js.map +1 -1
  99. package/dist/routes/index.d.ts +123 -18
  100. package/dist/routes/index.d.ts.map +1 -1
  101. package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts +33 -0
  102. package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts.map +1 -1
  103. package/dist/routes/oauth/.well-known/openid-configuration/get.js +78 -44
  104. package/dist/routes/oauth/.well-known/openid-configuration/get.js.map +1 -1
  105. package/dist/routes/oauth/authorize/get.d.ts +8 -26
  106. package/dist/routes/oauth/authorize/get.d.ts.map +1 -1
  107. package/dist/routes/oauth/authorize/get.js +34 -3
  108. package/dist/routes/oauth/authorize/get.js.map +1 -1
  109. package/dist/routes/oauth/cors.d.ts +9 -0
  110. package/dist/routes/oauth/cors.d.ts.map +1 -0
  111. package/dist/routes/oauth/cors.js +50 -0
  112. package/dist/routes/oauth/cors.js.map +1 -0
  113. package/dist/routes/oauth/device/get-post.d.ts +28 -0
  114. package/dist/routes/oauth/device/get-post.d.ts.map +1 -0
  115. package/dist/routes/oauth/device/get-post.js +67 -0
  116. package/dist/routes/oauth/device/get-post.js.map +1 -0
  117. package/dist/routes/oauth/device-authorization/post.d.ts +25 -0
  118. package/dist/routes/oauth/device-authorization/post.d.ts.map +1 -0
  119. package/dist/routes/oauth/device-authorization/post.js +87 -0
  120. package/dist/routes/oauth/device-authorization/post.js.map +1 -0
  121. package/dist/routes/oauth/end-session/get.d.ts +34 -0
  122. package/dist/routes/oauth/end-session/get.d.ts.map +1 -0
  123. package/dist/routes/oauth/end-session/get.js +74 -0
  124. package/dist/routes/oauth/end-session/get.js.map +1 -0
  125. package/dist/routes/oauth/index.d.ts +95 -16
  126. package/dist/routes/oauth/index.d.ts.map +1 -1
  127. package/dist/routes/oauth/index.js +8 -0
  128. package/dist/routes/oauth/index.js.map +1 -1
  129. package/dist/routes/oauth/introspect/post.d.ts.map +1 -1
  130. package/dist/routes/oauth/introspect/post.js +2 -0
  131. package/dist/routes/oauth/introspect/post.js.map +1 -1
  132. package/dist/routes/oauth/revoke/post.d.ts.map +1 -1
  133. package/dist/routes/oauth/revoke/post.js +2 -0
  134. package/dist/routes/oauth/revoke/post.js.map +1 -1
  135. package/dist/routes/oauth/token/post.d.ts +2 -0
  136. package/dist/routes/oauth/token/post.d.ts.map +1 -1
  137. package/dist/routes/oauth/token/post.js +46 -0
  138. package/dist/routes/oauth/token/post.js.map +1 -1
  139. package/dist/routes/oauth/userinfo/get.d.ts +16 -4
  140. package/dist/routes/oauth/userinfo/get.d.ts.map +1 -1
  141. package/dist/routes/oauth/userinfo/get.js +50 -30
  142. package/dist/routes/oauth/userinfo/get.js.map +1 -1
  143. package/dist/schemas/error.d.ts +100 -0
  144. package/dist/schemas/error.d.ts.map +1 -1
  145. package/dist/schemas/error.js +4 -0
  146. package/dist/schemas/error.js.map +1 -1
  147. package/dist/schemas/field.d.ts +2 -0
  148. package/dist/schemas/field.d.ts.map +1 -1
  149. package/dist/schemas/field.js +6 -1
  150. package/dist/schemas/field.js.map +1 -1
  151. package/dist/schemas/response.d.ts +3 -0
  152. package/dist/schemas/response.d.ts.map +1 -1
  153. package/dist/schemas/response.js +7 -0
  154. package/dist/schemas/response.js.map +1 -1
  155. package/dist/seeders/config.seeder.js +3 -0
  156. package/dist/seeders/config.seeder.js.map +1 -1
  157. package/dist/services/container.d.ts +4 -1
  158. package/dist/services/container.d.ts.map +1 -1
  159. package/dist/services/jwt.service.d.ts +4 -0
  160. package/dist/services/jwt.service.d.ts.map +1 -1
  161. package/dist/services/jwt.service.js +27 -6
  162. package/dist/services/jwt.service.js.map +1 -1
  163. package/dist/services/mikro.service.d.ts +2 -0
  164. package/dist/services/mikro.service.d.ts.map +1 -1
  165. package/dist/services/mikro.service.js +3 -0
  166. package/dist/services/mikro.service.js.map +1 -1
  167. package/dist/services/oauth-authorize.service.d.ts +9 -1
  168. package/dist/services/oauth-authorize.service.d.ts.map +1 -1
  169. package/dist/services/oauth-authorize.service.js +110 -17
  170. package/dist/services/oauth-authorize.service.js.map +1 -1
  171. package/dist/services/oauth-client.service.d.ts +3 -0
  172. package/dist/services/oauth-client.service.d.ts.map +1 -1
  173. package/dist/services/oauth-client.service.js +17 -0
  174. package/dist/services/oauth-client.service.js.map +1 -1
  175. package/dist/services/oauth-token.service.d.ts +11 -0
  176. package/dist/services/oauth-token.service.d.ts.map +1 -1
  177. package/dist/services/oauth-token.service.js +69 -1
  178. package/dist/services/oauth-token.service.js.map +1 -1
  179. package/dist/services/security.service.d.ts +1 -1
  180. package/dist/services/security.service.d.ts.map +1 -1
  181. package/dist/services/security.service.js +2 -0
  182. package/dist/services/security.service.js.map +1 -1
  183. package/dist/services/user-consent.service.d.ts +1 -0
  184. package/dist/services/user-consent.service.d.ts.map +1 -1
  185. package/dist/services/user-consent.service.js +4 -1
  186. package/dist/services/user-consent.service.js.map +1 -1
  187. package/package.json +3 -3
  188. package/readme.md +5 -1
@@ -795,7 +795,7 @@ export default {
795
795
  return getPrimaryKeyHash(val_1);
796
796
  };
797
797
  },
798
- 'hydrator-user_terms_consent_18000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_39, user_40, terms_41, terms_42) {
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-user_terms_consent_18000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_50, user_51, terms_52, terms_53) {
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-user_terms_consent_18000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
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-user_terms_consent_18000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
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-user_terms_consent_18000': function (PolymorphicRef, parseDate) {
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-user_terms_consent_18000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-user_terms_consent_18000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-user_terms_consent_18000': function (isEntityOrRef) {
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-user_terms_consent_18000': function (isEntityOrRef, convertToDatabaseValue_id) {
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-user_terms_consent_18000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
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-user_consent_12000-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) {
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-user_consent_12000-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) {
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-user_consent_12000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
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-user_consent_12000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier, convertToDatabaseValue_scopes) {
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-user_consent_12000': function (PolymorphicRef, parseDate) {
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-user_consent_12000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-user_consent_12000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-user_consent_12000': function (isEntityOrRef) {
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-user_consent_12000': function (isEntityOrRef, convertToDatabaseValue_id) {
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-user_consent_12000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
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-terms_19000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, terms_content_167, user_terms_consent_168) {
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-terms_19000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, terms_content_176, user_terms_consent_177) {
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-terms_19000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
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-terms_19000': function (clone, cloneEmbeddable, processDateProperty) {
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-terms_19000': function (PolymorphicRef, parseDate) {
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-terms_19000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
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-terms_19000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
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-terms_19000': function (isEntityOrRef) {
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-terms_19000': function (isEntityOrRef) {
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-terms_19000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
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-terms_content_17000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, terms_183, terms_184) {
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-terms_content_17000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, terms_192, terms_193) {
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-terms_content_17000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
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-terms_content_17000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
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-terms_content_17000': function (PolymorphicRef, parseDate) {
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-terms_content_17000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-terms_content_17000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-terms_content_17000': function (isEntityOrRef) {
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-terms_content_17000': function (isEntityOrRef, convertToDatabaseValue_id) {
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-terms_content_17000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
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-scheduled_jobs_16000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
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-scheduled_jobs_16000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
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-scheduled_jobs_16000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
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-scheduled_jobs_16000': function (clone, cloneEmbeddable, processDateProperty) {
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-scheduled_jobs_16000': function (PolymorphicRef, parseDate) {
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-scheduled_jobs_16000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
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-scheduled_jobs_16000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
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-scheduled_jobs_16000': function (isEntityOrRef) {
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-scheduled_jobs_16000': function (isEntityOrRef) {
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-scheduled_jobs_16000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
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-revoked_tokens_11000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_237, oauth_client_238, user_239, user_240) {
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-revoked_tokens_11000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_248, oauth_client_249, user_250, user_251) {
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-revoked_tokens_11000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
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-revoked_tokens_11000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
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-revoked_tokens_11000': function (PolymorphicRef, parseDate) {
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-revoked_tokens_11000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-revoked_tokens_11000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-revoked_tokens_11000': function (isEntityOrRef) {
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-revoked_tokens_11000': function (isEntityOrRef, convertToDatabaseValue_id) {
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-revoked_tokens_11000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
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-pending_oauth_registration_15000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, convertToJSValue_userInfo, convertToDatabaseValue_userInfo) {
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-pending_oauth_registration_15000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, convertToJSValue_userInfo, convertToDatabaseValue_userInfo) {
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-pending_oauth_registration_15000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
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-pending_oauth_registration_15000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, convertToDatabaseValue_userInfo) {
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-pending_oauth_registration_15000': function (PolymorphicRef, parseDate) {
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-pending_oauth_registration_15000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-pending_oauth_registration_15000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-pending_oauth_registration_15000': function (isEntityOrRef) {
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-pending_oauth_registration_15000': function (isEntityOrRef, convertToDatabaseValue_id) {
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-pending_oauth_registration_15000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
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-password_reset_14000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_285, user_286) {
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-password_reset_14000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_294, user_295) {
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-password_reset_14000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
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-password_reset_14000': function (clone, cloneEmbeddable, convertToDatabaseValue_id, processDateProperty, toArray, EntityIdentifier) {
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-password_reset_14000': function (PolymorphicRef, parseDate) {
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-password_reset_14000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-password_reset_14000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id) {
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-password_reset_14000': function (isEntityOrRef) {
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-password_reset_14000': function (isEntityOrRef, convertToDatabaseValue_id) {
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-password_reset_14000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
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-oauth_code_10000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, oauth_client_306, oauth_client_307, user_308, user_309, convertToJSValue_scope, convertToDatabaseValue_scope) {
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(oauth_client_306, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
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(oauth_client_307, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
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(user_308, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
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(user_309, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
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, oauth_client_322, oauth_client_323, user_324, user_325, convertToJSValue_scope, convertToDatabaseValue_scope) {
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(oauth_client_322, data.client, { merge: true, convertCustomTypes, normalizeAccessors, schema });
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(oauth_client_323, data.client, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema });
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(user_324, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
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(user_325, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
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 val_11 = convertToDatabaseValue_id(entity.id);
7251
- return getPrimaryKeyHash(val_11);
7867
+ const val_12 = convertToDatabaseValue_id(entity.id);
7868
+ return getPrimaryKeyHash(val_12);
7252
7869
  };
7253
7870
  },
7254
- 'hydrator-oauth_client_13000-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, oauth_code_349, user_consent_350, revoked_tokens_351) {
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_380, oauth_device_code_381, user_consent_382, revoked_tokens_383) {
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,12 +7975,44 @@ 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
  }
7364
8007
  else if (typeof data.enabled !== 'undefined') {
7365
8008
  entity.enabled = !!data.enabled;
7366
8009
  }
8010
+ if (data.skipConsent === null) {
8011
+ entity.skipConsent = null;
8012
+ }
8013
+ else if (typeof data.skipConsent !== 'undefined') {
8014
+ entity.skipConsent = !!data.skipConsent;
8015
+ }
7367
8016
  if (data.managed_by === null) {
7368
8017
  entity.managed_by = null;
7369
8018
  }
@@ -7378,10 +8027,10 @@ export default {
7378
8027
  }
7379
8028
  const createCollectionItem_codes = (value, entity) => {
7380
8029
  if (isPrimaryKey(value, false))
7381
- return factory.createReference(oauth_code_349, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
8030
+ return factory.createReference(oauth_code_380, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
7382
8031
  if (value && isEntity(value))
7383
8032
  return value;
7384
- return factory.create(oauth_code_349, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
8033
+ return factory.create(oauth_code_380, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
7385
8034
  };
7386
8035
  if (data.codes && !Array.isArray(data.codes) && typeof data.codes === 'object') {
7387
8036
  data.codes = [data.codes];
@@ -7403,12 +8052,39 @@ export default {
7403
8052
  const coll = Collection.create(entity, 'codes', undefined, newEntity);
7404
8053
  coll.setDirty(false);
7405
8054
  }
8055
+ const createCollectionItem_deviceCodes = (value, entity) => {
8056
+ if (isPrimaryKey(value, false))
8057
+ return factory.createReference(oauth_device_code_381, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
8058
+ if (value && isEntity(value))
8059
+ return value;
8060
+ return factory.create(oauth_device_code_381, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
8061
+ };
8062
+ if (data.deviceCodes && !Array.isArray(data.deviceCodes) && typeof data.deviceCodes === 'object') {
8063
+ data.deviceCodes = [data.deviceCodes];
8064
+ }
8065
+ if (Array.isArray(data.deviceCodes)) {
8066
+ const items = data.deviceCodes.map(value => createCollectionItem_deviceCodes(value, entity));
8067
+ const coll = Collection.create(entity, 'deviceCodes', items, newEntity);
8068
+ if (newEntity) {
8069
+ coll.setDirty();
8070
+ }
8071
+ else {
8072
+ coll.takeSnapshot(true);
8073
+ }
8074
+ }
8075
+ else if (!entity.deviceCodes && data.deviceCodes instanceof Collection) {
8076
+ entity.deviceCodes = data.deviceCodes;
8077
+ }
8078
+ else if (!entity.deviceCodes) {
8079
+ const coll = Collection.create(entity, 'deviceCodes', undefined, newEntity);
8080
+ coll.setDirty(false);
8081
+ }
7406
8082
  const createCollectionItem_consents = (value, entity) => {
7407
8083
  if (isPrimaryKey(value, false))
7408
- return factory.createReference(user_consent_350, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
8084
+ return factory.createReference(user_consent_382, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
7409
8085
  if (value && isEntity(value))
7410
8086
  return value;
7411
- return factory.create(user_consent_350, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
8087
+ return factory.create(user_consent_382, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
7412
8088
  };
7413
8089
  if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
7414
8090
  data.consents = [data.consents];
@@ -7432,10 +8108,10 @@ export default {
7432
8108
  }
7433
8109
  const createCollectionItem_revokedTokens = (value, entity) => {
7434
8110
  if (isPrimaryKey(value, false))
7435
- return factory.createReference(revoked_tokens_351, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
8111
+ return factory.createReference(revoked_tokens_383, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
7436
8112
  if (value && isEntity(value))
7437
8113
  return value;
7438
- return factory.create(revoked_tokens_351, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
8114
+ return factory.create(revoked_tokens_383, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
7439
8115
  };
7440
8116
  if (data.revokedTokens && !Array.isArray(data.revokedTokens) && typeof data.revokedTokens === 'object') {
7441
8117
  data.revokedTokens = [data.revokedTokens];
@@ -7459,7 +8135,7 @@ export default {
7459
8135
  }
7460
8136
  };
7461
8137
  },
7462
- 'hydrator-oauth_client_13000-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, oauth_code_365, user_consent_366, revoked_tokens_367) {
8138
+ '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_400, oauth_device_code_401, user_consent_402, revoked_tokens_403) {
7463
8139
  // compiled hydrator for entity OAuthClientEntity ( normalized)
7464
8140
  return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
7465
8141
  if (data.id === null) {
@@ -7566,12 +8242,44 @@ export default {
7566
8242
  entity.redirectUris = data.redirectUris;
7567
8243
  }
7568
8244
  }
8245
+ if (data.postLogoutRedirectUris === null) {
8246
+ entity.postLogoutRedirectUris = null;
8247
+ }
8248
+ else if (typeof data.postLogoutRedirectUris !== 'undefined') {
8249
+ if (convertCustomTypes) {
8250
+ const value = convertToJSValue_postLogoutRedirectUris(data.postLogoutRedirectUris);
8251
+ data.postLogoutRedirectUris = convertToDatabaseValue_postLogoutRedirectUris(value);
8252
+ entity.postLogoutRedirectUris = value;
8253
+ }
8254
+ else {
8255
+ entity.postLogoutRedirectUris = data.postLogoutRedirectUris;
8256
+ }
8257
+ }
8258
+ if (data.webOrigins === null) {
8259
+ entity.webOrigins = null;
8260
+ }
8261
+ else if (typeof data.webOrigins !== 'undefined') {
8262
+ if (convertCustomTypes) {
8263
+ const value = convertToJSValue_webOrigins(data.webOrigins);
8264
+ data.webOrigins = convertToDatabaseValue_webOrigins(value);
8265
+ entity.webOrigins = value;
8266
+ }
8267
+ else {
8268
+ entity.webOrigins = data.webOrigins;
8269
+ }
8270
+ }
7569
8271
  if (data.enabled === null) {
7570
8272
  entity.enabled = null;
7571
8273
  }
7572
8274
  else if (typeof data.enabled !== 'undefined') {
7573
8275
  entity.enabled = !!data.enabled;
7574
8276
  }
8277
+ if (data.skipConsent === null) {
8278
+ entity.skipConsent = null;
8279
+ }
8280
+ else if (typeof data.skipConsent !== 'undefined') {
8281
+ entity.skipConsent = !!data.skipConsent;
8282
+ }
7575
8283
  if (data.managed_by === null) {
7576
8284
  entity.managed_by = null;
7577
8285
  }
@@ -7586,10 +8294,10 @@ export default {
7586
8294
  }
7587
8295
  const createCollectionItem_codes = (value, entity) => {
7588
8296
  if (isPrimaryKey(value, false))
7589
- return factory.createReference(oauth_code_365, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
8297
+ return factory.createReference(oauth_code_400, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
7590
8298
  if (value && isEntity(value))
7591
8299
  return value;
7592
- return factory.create(oauth_code_365, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
8300
+ return factory.create(oauth_code_400, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
7593
8301
  };
7594
8302
  if (data.codes && !Array.isArray(data.codes) && typeof data.codes === 'object') {
7595
8303
  data.codes = [data.codes];
@@ -7611,12 +8319,39 @@ export default {
7611
8319
  const coll = Collection.create(entity, 'codes', undefined, newEntity);
7612
8320
  coll.setDirty(false);
7613
8321
  }
8322
+ const createCollectionItem_deviceCodes = (value, entity) => {
8323
+ if (isPrimaryKey(value, false))
8324
+ return factory.createReference(oauth_device_code_401, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
8325
+ if (value && isEntity(value))
8326
+ return value;
8327
+ return factory.create(oauth_device_code_401, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
8328
+ };
8329
+ if (data.deviceCodes && !Array.isArray(data.deviceCodes) && typeof data.deviceCodes === 'object') {
8330
+ data.deviceCodes = [data.deviceCodes];
8331
+ }
8332
+ if (Array.isArray(data.deviceCodes)) {
8333
+ const items = data.deviceCodes.map(value => createCollectionItem_deviceCodes(value, entity));
8334
+ const coll = Collection.create(entity, 'deviceCodes', items, newEntity);
8335
+ if (newEntity) {
8336
+ coll.setDirty();
8337
+ }
8338
+ else {
8339
+ coll.takeSnapshot(true);
8340
+ }
8341
+ }
8342
+ else if (!entity.deviceCodes && data.deviceCodes instanceof Collection) {
8343
+ entity.deviceCodes = data.deviceCodes;
8344
+ }
8345
+ else if (!entity.deviceCodes) {
8346
+ const coll = Collection.create(entity, 'deviceCodes', undefined, newEntity);
8347
+ coll.setDirty(false);
8348
+ }
7614
8349
  const createCollectionItem_consents = (value, entity) => {
7615
8350
  if (isPrimaryKey(value, false))
7616
- return factory.createReference(user_consent_366, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
8351
+ return factory.createReference(user_consent_402, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
7617
8352
  if (value && isEntity(value))
7618
8353
  return value;
7619
- return factory.create(user_consent_366, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
8354
+ return factory.create(user_consent_402, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
7620
8355
  };
7621
8356
  if (data.consents && !Array.isArray(data.consents) && typeof data.consents === 'object') {
7622
8357
  data.consents = [data.consents];
@@ -7640,10 +8375,10 @@ export default {
7640
8375
  }
7641
8376
  const createCollectionItem_revokedTokens = (value, entity) => {
7642
8377
  if (isPrimaryKey(value, false))
7643
- return factory.createReference(revoked_tokens_367, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
8378
+ return factory.createReference(revoked_tokens_403, value, { convertCustomTypes, schema, normalizeAccessors, merge: true });
7644
8379
  if (value && isEntity(value))
7645
8380
  return value;
7646
- return factory.create(revoked_tokens_367, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
8381
+ return factory.create(revoked_tokens_403, value, { newEntity, convertCustomTypes, schema, normalizeAccessors, merge: true });
7647
8382
  };
7648
8383
  if (data.revokedTokens && !Array.isArray(data.revokedTokens) && typeof data.revokedTokens === 'object') {
7649
8384
  data.revokedTokens = [data.revokedTokens];
@@ -7667,7 +8402,7 @@ export default {
7667
8402
  }
7668
8403
  };
7669
8404
  },
7670
- 'comparator-oauth_client_13000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
8405
+ 'comparator-oauth_client_14000': function (compareArrays, compareBooleans, compareBuffers, compareObjects, equals) {
7671
8406
  // compiled comparator for entity OAuthClientEntity
7672
8407
  return function (last, current, options) {
7673
8408
  const diff = {};
@@ -7781,6 +8516,28 @@ export default {
7781
8516
  else if (!equals(last.redirectUris, current.redirectUris)) {
7782
8517
  diff.redirectUris = current.redirectUris;
7783
8518
  }
8519
+ if (current.postLogoutRedirectUris === null && last.postLogoutRedirectUris === undefined) {
8520
+ diff.postLogoutRedirectUris = current.postLogoutRedirectUris;
8521
+ }
8522
+ else if (current.postLogoutRedirectUris == null && last.postLogoutRedirectUris == null) {
8523
+ }
8524
+ else if ((current.postLogoutRedirectUris != null && last.postLogoutRedirectUris == null) || (current.postLogoutRedirectUris == null && last.postLogoutRedirectUris != null)) {
8525
+ diff.postLogoutRedirectUris = current.postLogoutRedirectUris;
8526
+ }
8527
+ else if (!equals(last.postLogoutRedirectUris, current.postLogoutRedirectUris)) {
8528
+ diff.postLogoutRedirectUris = current.postLogoutRedirectUris;
8529
+ }
8530
+ if (current.webOrigins === null && last.webOrigins === undefined) {
8531
+ diff.webOrigins = current.webOrigins;
8532
+ }
8533
+ else if (current.webOrigins == null && last.webOrigins == null) {
8534
+ }
8535
+ else if ((current.webOrigins != null && last.webOrigins == null) || (current.webOrigins == null && last.webOrigins != null)) {
8536
+ diff.webOrigins = current.webOrigins;
8537
+ }
8538
+ else if (!equals(last.webOrigins, current.webOrigins)) {
8539
+ diff.webOrigins = current.webOrigins;
8540
+ }
7784
8541
  if (current.enabled === null && last.enabled === undefined) {
7785
8542
  diff.enabled = current.enabled;
7786
8543
  }
@@ -7792,6 +8549,17 @@ export default {
7792
8549
  else if (!compareBooleans(last.enabled, current.enabled)) {
7793
8550
  diff.enabled = current.enabled;
7794
8551
  }
8552
+ if (current.skipConsent === null && last.skipConsent === undefined) {
8553
+ diff.skipConsent = current.skipConsent;
8554
+ }
8555
+ else if (current.skipConsent == null && last.skipConsent == null) {
8556
+ }
8557
+ else if ((current.skipConsent != null && last.skipConsent == null) || (current.skipConsent == null && last.skipConsent != null)) {
8558
+ diff.skipConsent = current.skipConsent;
8559
+ }
8560
+ else if (!compareBooleans(last.skipConsent, current.skipConsent)) {
8561
+ diff.skipConsent = current.skipConsent;
8562
+ }
7795
8563
  if (current.managed_by === null && last.managed_by === undefined) {
7796
8564
  diff.managed_by = current.managed_by;
7797
8565
  }
@@ -7819,7 +8587,7 @@ export default {
7819
8587
  return diff;
7820
8588
  };
7821
8589
  },
7822
- 'snapshotGenerator-oauth_client_13000': function (clone, cloneEmbeddable, processDateProperty, convertToDatabaseValue_grantTypes, convertToDatabaseValue_responseTypes, convertToDatabaseValue_scopes, convertToDatabaseValue_redirectUris) {
8590
+ 'snapshotGenerator-oauth_client_14000': function (clone, cloneEmbeddable, processDateProperty, convertToDatabaseValue_grantTypes, convertToDatabaseValue_responseTypes, convertToDatabaseValue_scopes, convertToDatabaseValue_redirectUris, convertToDatabaseValue_postLogoutRedirectUris, convertToDatabaseValue_webOrigins) {
7823
8591
  return function (entity) {
7824
8592
  const ret = {};
7825
8593
  if (typeof entity.id !== 'undefined') {
@@ -7852,9 +8620,18 @@ export default {
7852
8620
  if (typeof entity.redirectUris !== 'undefined') {
7853
8621
  ret.redirectUris = clone(convertToDatabaseValue_redirectUris(entity.redirectUris));
7854
8622
  }
8623
+ if (typeof entity.postLogoutRedirectUris !== 'undefined') {
8624
+ ret.postLogoutRedirectUris = clone(convertToDatabaseValue_postLogoutRedirectUris(entity.postLogoutRedirectUris));
8625
+ }
8626
+ if (typeof entity.webOrigins !== 'undefined') {
8627
+ ret.webOrigins = clone(convertToDatabaseValue_webOrigins(entity.webOrigins));
8628
+ }
7855
8629
  if (typeof entity.enabled !== 'undefined') {
7856
8630
  ret.enabled = entity.enabled;
7857
8631
  }
8632
+ if (typeof entity.skipConsent !== 'undefined') {
8633
+ ret.skipConsent = entity.skipConsent;
8634
+ }
7858
8635
  if (typeof entity.managed_by !== 'undefined') {
7859
8636
  ret.managed_by = entity.managed_by;
7860
8637
  }
@@ -7864,7 +8641,7 @@ export default {
7864
8641
  return ret;
7865
8642
  };
7866
8643
  },
7867
- 'resultMapper-oauth_client_13000': function (PolymorphicRef, parseDate) {
8644
+ 'resultMapper-oauth_client_14000': function (PolymorphicRef, parseDate) {
7868
8645
  // compiled mapper for entity OAuthClientEntity
7869
8646
  return function (result) {
7870
8647
  const ret = {};
@@ -7931,10 +8708,22 @@ export default {
7931
8708
  ret.redirectUris = result.redirect_uris;
7932
8709
  mapped.redirect_uris = true;
7933
8710
  }
8711
+ if (typeof result.post_logout_redirect_uris !== 'undefined') {
8712
+ ret.postLogoutRedirectUris = result.post_logout_redirect_uris;
8713
+ mapped.post_logout_redirect_uris = true;
8714
+ }
8715
+ if (typeof result.web_origins !== 'undefined') {
8716
+ ret.webOrigins = result.web_origins;
8717
+ mapped.web_origins = true;
8718
+ }
7934
8719
  if (typeof result.enabled !== 'undefined') {
7935
8720
  ret.enabled = result.enabled == null ? result.enabled : !!result.enabled;
7936
8721
  mapped.enabled = true;
7937
8722
  }
8723
+ if (typeof result.skip_consent !== 'undefined') {
8724
+ ret.skipConsent = result.skip_consent == null ? result.skip_consent : !!result.skip_consent;
8725
+ mapped.skip_consent = true;
8726
+ }
7938
8727
  if (typeof result.managed_by !== 'undefined') {
7939
8728
  ret.managed_by = result.managed_by;
7940
8729
  mapped.managed_by = true;
@@ -7950,7 +8739,7 @@ export default {
7950
8739
  return ret;
7951
8740
  };
7952
8741
  },
7953
- 'hydrator-oauth_client_13000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
8742
+ 'hydrator-oauth_client_14000-reference-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
7954
8743
  // compiled hydrator for entity OAuthClientEntity ( normalized)
7955
8744
  return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
7956
8745
  if (data.id === null) {
@@ -7961,7 +8750,7 @@ export default {
7961
8750
  }
7962
8751
  };
7963
8752
  },
7964
- 'hydrator-oauth_client_13000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
8753
+ 'hydrator-oauth_client_14000-reference-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {
7965
8754
  // compiled hydrator for entity OAuthClientEntity ( normalized)
7966
8755
  return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
7967
8756
  if (data.id === null) {
@@ -7972,19 +8761,19 @@ export default {
7972
8761
  }
7973
8762
  };
7974
8763
  },
7975
- 'pkGetter-oauth_client_13000': function (isEntityOrRef) {
8764
+ 'pkGetter-oauth_client_14000': function (isEntityOrRef) {
7976
8765
  // compiled pk getter for entity OAuthClientEntity
7977
8766
  return function (entity) {
7978
8767
  return entity.id;
7979
8768
  };
7980
8769
  },
7981
- 'pkGetterConverted-oauth_client_13000': function (isEntityOrRef) {
8770
+ 'pkGetterConverted-oauth_client_14000': function (isEntityOrRef) {
7982
8771
  // compiled pk getter (with converted custom types) for entity OAuthClientEntity
7983
8772
  return function (entity) {
7984
8773
  return entity.id;
7985
8774
  };
7986
8775
  },
7987
- 'pkSerializer-oauth_client_13000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
8776
+ 'pkSerializer-oauth_client_14000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash) {
7988
8777
  // compiled pk serializer for entity OAuthClientEntity
7989
8778
  return function (entity) {
7990
8779
  return '' + entity.id;
@@ -8559,7 +9348,7 @@ export default {
8559
9348
  return '' + entity.kid;
8560
9349
  };
8561
9350
  },
8562
- 'hydrator-email_verification_8000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_397, user_398) {
9351
+ 'hydrator-email_verification_8000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_433, user_434) {
8563
9352
  // compiled hydrator for entity EmailVerificationEntity ( normalized)
8564
9353
  return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
8565
9354
  if (data.id === null) {
@@ -8607,10 +9396,10 @@ export default {
8607
9396
  }
8608
9397
  else if (typeof data.user !== 'undefined') {
8609
9398
  if (isPrimaryKey(data.user, true)) {
8610
- entity.user = Reference.create(factory.createReference(user_397, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
9399
+ entity.user = Reference.create(factory.createReference(user_433, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
8611
9400
  }
8612
9401
  else if (data.user && typeof data.user === 'object') {
8613
- entity.user = Reference.create(factory.create(user_398, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
9402
+ entity.user = Reference.create(factory.create(user_434, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
8614
9403
  }
8615
9404
  }
8616
9405
  if (data.token === null) {
@@ -8655,7 +9444,7 @@ export default {
8655
9444
  }
8656
9445
  };
8657
9446
  },
8658
- 'hydrator-email_verification_8000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_406, user_407) {
9447
+ 'hydrator-email_verification_8000-full-true': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError, convertToJSValue_id, convertToDatabaseValue_id, user_442, user_443) {
8659
9448
  // compiled hydrator for entity EmailVerificationEntity ( normalized)
8660
9449
  return function (entity, data, factory, newEntity, convertCustomTypes, schema, parentSchema, normalizeAccessors) {
8661
9450
  if (data.id === null) {
@@ -8703,10 +9492,10 @@ export default {
8703
9492
  }
8704
9493
  else if (typeof data.user !== 'undefined') {
8705
9494
  if (isPrimaryKey(data.user, true)) {
8706
- entity.user = Reference.create(factory.createReference(user_406, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
9495
+ entity.user = Reference.create(factory.createReference(user_442, data.user, { merge: true, convertCustomTypes, normalizeAccessors, schema }));
8707
9496
  }
8708
9497
  else if (data.user && typeof data.user === 'object') {
8709
- entity.user = Reference.create(factory.create(user_407, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
9498
+ entity.user = Reference.create(factory.create(user_443, data.user, { initialized: true, merge: true, newEntity, convertCustomTypes, normalizeAccessors, schema }));
8710
9499
  }
8711
9500
  }
8712
9501
  if (data.token === null) {
@@ -9023,8 +9812,8 @@ export default {
9023
9812
  'pkSerializer-email_verification_8000': function (isEntityOrRef, getCompositeKeyValue, getPrimaryKeyHash, convertToDatabaseValue_id) {
9024
9813
  // compiled pk serializer for entity EmailVerificationEntity
9025
9814
  return function (entity) {
9026
- const val_12 = convertToDatabaseValue_id(entity.id);
9027
- return getPrimaryKeyHash(val_12);
9815
+ const val_13 = convertToDatabaseValue_id(entity.id);
9816
+ return getPrimaryKeyHash(val_13);
9028
9817
  };
9029
9818
  },
9030
9819
  'hydrator-bootstrap_state_2000-full-false': function (isPrimaryKey, isEntity, isScalarReference, Collection, Reference, PolymorphicRef, ValidationError) {