// GENERATED CODE - DO NOT MODIFY BY HAND part of 'user.dart'; // ************************************************************************** // IsarCollectionGenerator // ************************************************************************** // coverage:ignore-file // ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetUserCollection on Isar { IsarCollection get users => this.collection(); } const UserSchema = CollectionSchema( name: r'User', id: -7838171048429979076, properties: { r'email': PropertySchema( id: 0, name: r'email', type: IsarType.string, ), r'firstName': PropertySchema( id: 1, name: r'firstName', type: IsarType.string, ), r'id': PropertySchema( id: 2, name: r'id', type: IsarType.string, ), r'isAdmin': PropertySchema( id: 3, name: r'isAdmin', type: IsarType.bool, ), r'isPartnerSharedBy': PropertySchema( id: 4, name: r'isPartnerSharedBy', type: IsarType.bool, ), r'isPartnerSharedWith': PropertySchema( id: 5, name: r'isPartnerSharedWith', type: IsarType.bool, ), r'lastName': PropertySchema( id: 6, name: r'lastName', type: IsarType.string, ), r'memoryEnabled': PropertySchema( id: 7, name: r'memoryEnabled', type: IsarType.bool, ), r'profileImagePath': PropertySchema( id: 8, name: r'profileImagePath', type: IsarType.string, ), r'updatedAt': PropertySchema( id: 9, name: r'updatedAt', type: IsarType.dateTime, ) }, estimateSize: _userEstimateSize, serialize: _userSerialize, deserialize: _userDeserialize, deserializeProp: _userDeserializeProp, idName: r'isarId', indexes: { r'id': IndexSchema( id: -3268401673993471357, name: r'id', unique: true, replace: false, properties: [ IndexPropertySchema( name: r'id', type: IndexType.hash, caseSensitive: true, ) ], ) }, links: { r'albums': LinkSchema( id: -8764917375410137318, name: r'albums', target: r'Album', single: false, linkName: r'owner', ), r'sharedAlbums': LinkSchema( id: -7037628715076287024, name: r'sharedAlbums', target: r'Album', single: false, linkName: r'sharedUsers', ) }, embeddedSchemas: {}, getId: _userGetId, getLinks: _userGetLinks, attach: _userAttach, version: '3.1.0+1', ); int _userEstimateSize( User object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.email.length * 3; bytesCount += 3 + object.firstName.length * 3; bytesCount += 3 + object.id.length * 3; bytesCount += 3 + object.lastName.length * 3; bytesCount += 3 + object.profileImagePath.length * 3; return bytesCount; } void _userSerialize( User object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.email); writer.writeString(offsets[1], object.firstName); writer.writeString(offsets[2], object.id); writer.writeBool(offsets[3], object.isAdmin); writer.writeBool(offsets[4], object.isPartnerSharedBy); writer.writeBool(offsets[5], object.isPartnerSharedWith); writer.writeString(offsets[6], object.lastName); writer.writeBool(offsets[7], object.memoryEnabled); writer.writeString(offsets[8], object.profileImagePath); writer.writeDateTime(offsets[9], object.updatedAt); } User _userDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = User( email: reader.readString(offsets[0]), firstName: reader.readString(offsets[1]), id: reader.readString(offsets[2]), isAdmin: reader.readBool(offsets[3]), isPartnerSharedBy: reader.readBoolOrNull(offsets[4]) ?? false, isPartnerSharedWith: reader.readBoolOrNull(offsets[5]) ?? false, lastName: reader.readString(offsets[6]), memoryEnabled: reader.readBoolOrNull(offsets[7]), profileImagePath: reader.readStringOrNull(offsets[8]) ?? '', updatedAt: reader.readDateTime(offsets[9]), ); return object; } P _userDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readString(offset)) as P; case 1: return (reader.readString(offset)) as P; case 2: return (reader.readString(offset)) as P; case 3: return (reader.readBool(offset)) as P; case 4: return (reader.readBoolOrNull(offset) ?? false) as P; case 5: return (reader.readBoolOrNull(offset) ?? false) as P; case 6: return (reader.readString(offset)) as P; case 7: return (reader.readBoolOrNull(offset)) as P; case 8: return (reader.readStringOrNull(offset) ?? '') as P; case 9: return (reader.readDateTime(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _userGetId(User object) { return object.isarId; } List> _userGetLinks(User object) { return [object.albums, object.sharedAlbums]; } void _userAttach(IsarCollection col, Id id, User object) { object.albums.attach(col, col.isar.collection(), r'albums', id); object.sharedAlbums .attach(col, col.isar.collection(), r'sharedAlbums', id); } extension UserByIndex on IsarCollection { Future getById(String id) { return getByIndex(r'id', [id]); } User? getByIdSync(String id) { return getByIndexSync(r'id', [id]); } Future deleteById(String id) { return deleteByIndex(r'id', [id]); } bool deleteByIdSync(String id) { return deleteByIndexSync(r'id', [id]); } Future> getAllById(List idValues) { final values = idValues.map((e) => [e]).toList(); return getAllByIndex(r'id', values); } List getAllByIdSync(List idValues) { final values = idValues.map((e) => [e]).toList(); return getAllByIndexSync(r'id', values); } Future deleteAllById(List idValues) { final values = idValues.map((e) => [e]).toList(); return deleteAllByIndex(r'id', values); } int deleteAllByIdSync(List idValues) { final values = idValues.map((e) => [e]).toList(); return deleteAllByIndexSync(r'id', values); } Future putById(User object) { return putByIndex(r'id', object); } Id putByIdSync(User object, {bool saveLinks = true}) { return putByIndexSync(r'id', object, saveLinks: saveLinks); } Future> putAllById(List objects) { return putAllByIndex(r'id', objects); } List putAllByIdSync(List objects, {bool saveLinks = true}) { return putAllByIndexSync(r'id', objects, saveLinks: saveLinks); } } extension UserQueryWhereSort on QueryBuilder { QueryBuilder anyIsarId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension UserQueryWhere on QueryBuilder { QueryBuilder isarIdEqualTo(Id isarId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: isarId, upper: isarId, )); }); } QueryBuilder isarIdNotEqualTo(Id isarId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: false), ) .addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: false), ); } else { return query .addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: false), ) .addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: false), ); } }); } QueryBuilder isarIdGreaterThan(Id isarId, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: include), ); }); } QueryBuilder isarIdLessThan(Id isarId, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: include), ); }); } QueryBuilder isarIdBetween( Id lowerIsarId, Id upperIsarId, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: lowerIsarId, includeLower: includeLower, upper: upperIsarId, includeUpper: includeUpper, )); }); } QueryBuilder idEqualTo(String id) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'id', value: [id], )); }); } QueryBuilder idNotEqualTo(String id) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'id', lower: [], upper: [id], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'id', lower: [id], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'id', lower: [id], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'id', lower: [], upper: [id], includeUpper: false, )); } }); } } extension UserQueryFilter on QueryBuilder { QueryBuilder emailEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'email', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder emailGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'email', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder emailLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'email', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder emailBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'email', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder emailStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'email', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder emailEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'email', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder emailContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'email', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder emailMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'email', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder emailIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'email', value: '', )); }); } QueryBuilder emailIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'email', value: '', )); }); } QueryBuilder firstNameEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'firstName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder firstNameGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'firstName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder firstNameLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'firstName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder firstNameBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'firstName', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder firstNameStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'firstName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder firstNameEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'firstName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder firstNameContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'firstName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder firstNameMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'firstName', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder firstNameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'firstName', value: '', )); }); } QueryBuilder firstNameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'firstName', value: '', )); }); } QueryBuilder idEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'id', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder idStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'id', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder idIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: '', )); }); } QueryBuilder idIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'id', value: '', )); }); } QueryBuilder isAdminEqualTo(bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isAdmin', value: value, )); }); } QueryBuilder isPartnerSharedByEqualTo( bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isPartnerSharedBy', value: value, )); }); } QueryBuilder isPartnerSharedWithEqualTo( bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isPartnerSharedWith', value: value, )); }); } QueryBuilder isarIdEqualTo(Id value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isarId', value: value, )); }); } QueryBuilder isarIdGreaterThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'isarId', value: value, )); }); } QueryBuilder isarIdLessThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'isarId', value: value, )); }); } QueryBuilder isarIdBetween( Id lower, Id upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'isarId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder lastNameEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'lastName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lastNameGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'lastName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lastNameLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'lastName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lastNameBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'lastName', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder lastNameStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'lastName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lastNameEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'lastName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lastNameContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'lastName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lastNameMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'lastName', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder lastNameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'lastName', value: '', )); }); } QueryBuilder lastNameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'lastName', value: '', )); }); } QueryBuilder memoryEnabledIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'memoryEnabled', )); }); } QueryBuilder memoryEnabledIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'memoryEnabled', )); }); } QueryBuilder memoryEnabledEqualTo( bool? value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'memoryEnabled', value: value, )); }); } QueryBuilder profileImagePathEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'profileImagePath', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder profileImagePathGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'profileImagePath', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder profileImagePathLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'profileImagePath', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder profileImagePathBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'profileImagePath', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder profileImagePathStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'profileImagePath', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder profileImagePathEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'profileImagePath', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder profileImagePathContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'profileImagePath', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder profileImagePathMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'profileImagePath', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder profileImagePathIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'profileImagePath', value: '', )); }); } QueryBuilder profileImagePathIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'profileImagePath', value: '', )); }); } QueryBuilder updatedAtEqualTo( DateTime value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'updatedAt', value: value, )); }); } QueryBuilder updatedAtGreaterThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'updatedAt', value: value, )); }); } QueryBuilder updatedAtLessThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'updatedAt', value: value, )); }); } QueryBuilder updatedAtBetween( DateTime lower, DateTime upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'updatedAt', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } } extension UserQueryObject on QueryBuilder {} extension UserQueryLinks on QueryBuilder { QueryBuilder albums(FilterQuery q) { return QueryBuilder.apply(this, (query) { return query.link(q, r'albums'); }); } QueryBuilder albumsLengthEqualTo( int length) { return QueryBuilder.apply(this, (query) { return query.linkLength(r'albums', length, true, length, true); }); } QueryBuilder albumsIsEmpty() { return QueryBuilder.apply(this, (query) { return query.linkLength(r'albums', 0, true, 0, true); }); } QueryBuilder albumsIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.linkLength(r'albums', 0, false, 999999, true); }); } QueryBuilder albumsLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.linkLength(r'albums', 0, true, length, include); }); } QueryBuilder albumsLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.linkLength(r'albums', length, include, 999999, true); }); } QueryBuilder albumsLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.linkLength( r'albums', lower, includeLower, upper, includeUpper); }); } QueryBuilder sharedAlbums( FilterQuery q) { return QueryBuilder.apply(this, (query) { return query.link(q, r'sharedAlbums'); }); } QueryBuilder sharedAlbumsLengthEqualTo( int length) { return QueryBuilder.apply(this, (query) { return query.linkLength(r'sharedAlbums', length, true, length, true); }); } QueryBuilder sharedAlbumsIsEmpty() { return QueryBuilder.apply(this, (query) { return query.linkLength(r'sharedAlbums', 0, true, 0, true); }); } QueryBuilder sharedAlbumsIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.linkLength(r'sharedAlbums', 0, false, 999999, true); }); } QueryBuilder sharedAlbumsLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.linkLength(r'sharedAlbums', 0, true, length, include); }); } QueryBuilder sharedAlbumsLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.linkLength(r'sharedAlbums', length, include, 999999, true); }); } QueryBuilder sharedAlbumsLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.linkLength( r'sharedAlbums', lower, includeLower, upper, includeUpper); }); } } extension UserQuerySortBy on QueryBuilder { QueryBuilder sortByEmail() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'email', Sort.asc); }); } QueryBuilder sortByEmailDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'email', Sort.desc); }); } QueryBuilder sortByFirstName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'firstName', Sort.asc); }); } QueryBuilder sortByFirstNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'firstName', Sort.desc); }); } QueryBuilder sortById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.asc); }); } QueryBuilder sortByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.desc); }); } QueryBuilder sortByIsAdmin() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isAdmin', Sort.asc); }); } QueryBuilder sortByIsAdminDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isAdmin', Sort.desc); }); } QueryBuilder sortByIsPartnerSharedBy() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isPartnerSharedBy', Sort.asc); }); } QueryBuilder sortByIsPartnerSharedByDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isPartnerSharedBy', Sort.desc); }); } QueryBuilder sortByIsPartnerSharedWith() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isPartnerSharedWith', Sort.asc); }); } QueryBuilder sortByIsPartnerSharedWithDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isPartnerSharedWith', Sort.desc); }); } QueryBuilder sortByLastName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lastName', Sort.asc); }); } QueryBuilder sortByLastNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lastName', Sort.desc); }); } QueryBuilder sortByMemoryEnabled() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'memoryEnabled', Sort.asc); }); } QueryBuilder sortByMemoryEnabledDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'memoryEnabled', Sort.desc); }); } QueryBuilder sortByProfileImagePath() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'profileImagePath', Sort.asc); }); } QueryBuilder sortByProfileImagePathDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'profileImagePath', Sort.desc); }); } QueryBuilder sortByUpdatedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'updatedAt', Sort.asc); }); } QueryBuilder sortByUpdatedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'updatedAt', Sort.desc); }); } } extension UserQuerySortThenBy on QueryBuilder { QueryBuilder thenByEmail() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'email', Sort.asc); }); } QueryBuilder thenByEmailDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'email', Sort.desc); }); } QueryBuilder thenByFirstName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'firstName', Sort.asc); }); } QueryBuilder thenByFirstNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'firstName', Sort.desc); }); } QueryBuilder thenById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.asc); }); } QueryBuilder thenByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.desc); }); } QueryBuilder thenByIsAdmin() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isAdmin', Sort.asc); }); } QueryBuilder thenByIsAdminDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isAdmin', Sort.desc); }); } QueryBuilder thenByIsPartnerSharedBy() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isPartnerSharedBy', Sort.asc); }); } QueryBuilder thenByIsPartnerSharedByDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isPartnerSharedBy', Sort.desc); }); } QueryBuilder thenByIsPartnerSharedWith() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isPartnerSharedWith', Sort.asc); }); } QueryBuilder thenByIsPartnerSharedWithDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isPartnerSharedWith', Sort.desc); }); } QueryBuilder thenByIsarId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isarId', Sort.asc); }); } QueryBuilder thenByIsarIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isarId', Sort.desc); }); } QueryBuilder thenByLastName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lastName', Sort.asc); }); } QueryBuilder thenByLastNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lastName', Sort.desc); }); } QueryBuilder thenByMemoryEnabled() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'memoryEnabled', Sort.asc); }); } QueryBuilder thenByMemoryEnabledDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'memoryEnabled', Sort.desc); }); } QueryBuilder thenByProfileImagePath() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'profileImagePath', Sort.asc); }); } QueryBuilder thenByProfileImagePathDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'profileImagePath', Sort.desc); }); } QueryBuilder thenByUpdatedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'updatedAt', Sort.asc); }); } QueryBuilder thenByUpdatedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'updatedAt', Sort.desc); }); } } extension UserQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByEmail( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'email', caseSensitive: caseSensitive); }); } QueryBuilder distinctByFirstName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'firstName', caseSensitive: caseSensitive); }); } QueryBuilder distinctById( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'id', caseSensitive: caseSensitive); }); } QueryBuilder distinctByIsAdmin() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isAdmin'); }); } QueryBuilder distinctByIsPartnerSharedBy() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isPartnerSharedBy'); }); } QueryBuilder distinctByIsPartnerSharedWith() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isPartnerSharedWith'); }); } QueryBuilder distinctByLastName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'lastName', caseSensitive: caseSensitive); }); } QueryBuilder distinctByMemoryEnabled() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'memoryEnabled'); }); } QueryBuilder distinctByProfileImagePath( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'profileImagePath', caseSensitive: caseSensitive); }); } QueryBuilder distinctByUpdatedAt() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'updatedAt'); }); } } extension UserQueryProperty on QueryBuilder { QueryBuilder isarIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isarId'); }); } QueryBuilder emailProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'email'); }); } QueryBuilder firstNameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'firstName'); }); } QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder isAdminProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isAdmin'); }); } QueryBuilder isPartnerSharedByProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isPartnerSharedBy'); }); } QueryBuilder isPartnerSharedWithProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isPartnerSharedWith'); }); } QueryBuilder lastNameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'lastName'); }); } QueryBuilder memoryEnabledProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'memoryEnabled'); }); } QueryBuilder profileImagePathProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'profileImagePath'); }); } QueryBuilder updatedAtProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'updatedAt'); }); } }