mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: replace first and last name with single field (#4915)
This commit is contained in:
parent
413ab2c538
commit
7fca0d8da5
98 changed files with 567 additions and 1147 deletions
26
mobile/openapi/lib/model/create_user_dto.dart
generated
26
mobile/openapi/lib/model/create_user_dto.dart
generated
|
|
@ -15,9 +15,8 @@ class CreateUserDto {
|
|||
CreateUserDto({
|
||||
required this.email,
|
||||
this.externalPath,
|
||||
required this.firstName,
|
||||
required this.lastName,
|
||||
this.memoriesEnabled,
|
||||
required this.name,
|
||||
required this.password,
|
||||
this.storageLabel,
|
||||
});
|
||||
|
|
@ -26,10 +25,6 @@ class CreateUserDto {
|
|||
|
||||
String? externalPath;
|
||||
|
||||
String firstName;
|
||||
|
||||
String lastName;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
|
|
@ -38,6 +33,8 @@ class CreateUserDto {
|
|||
///
|
||||
bool? memoriesEnabled;
|
||||
|
||||
String name;
|
||||
|
||||
String password;
|
||||
|
||||
String? storageLabel;
|
||||
|
|
@ -46,9 +43,8 @@ class CreateUserDto {
|
|||
bool operator ==(Object other) => identical(this, other) || other is CreateUserDto &&
|
||||
other.email == email &&
|
||||
other.externalPath == externalPath &&
|
||||
other.firstName == firstName &&
|
||||
other.lastName == lastName &&
|
||||
other.memoriesEnabled == memoriesEnabled &&
|
||||
other.name == name &&
|
||||
other.password == password &&
|
||||
other.storageLabel == storageLabel;
|
||||
|
||||
|
|
@ -57,14 +53,13 @@ class CreateUserDto {
|
|||
// ignore: unnecessary_parenthesis
|
||||
(email.hashCode) +
|
||||
(externalPath == null ? 0 : externalPath!.hashCode) +
|
||||
(firstName.hashCode) +
|
||||
(lastName.hashCode) +
|
||||
(memoriesEnabled == null ? 0 : memoriesEnabled!.hashCode) +
|
||||
(name.hashCode) +
|
||||
(password.hashCode) +
|
||||
(storageLabel == null ? 0 : storageLabel!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'CreateUserDto[email=$email, externalPath=$externalPath, firstName=$firstName, lastName=$lastName, memoriesEnabled=$memoriesEnabled, password=$password, storageLabel=$storageLabel]';
|
||||
String toString() => 'CreateUserDto[email=$email, externalPath=$externalPath, memoriesEnabled=$memoriesEnabled, name=$name, password=$password, storageLabel=$storageLabel]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
|
|
@ -74,13 +69,12 @@ class CreateUserDto {
|
|||
} else {
|
||||
// json[r'externalPath'] = null;
|
||||
}
|
||||
json[r'firstName'] = this.firstName;
|
||||
json[r'lastName'] = this.lastName;
|
||||
if (this.memoriesEnabled != null) {
|
||||
json[r'memoriesEnabled'] = this.memoriesEnabled;
|
||||
} else {
|
||||
// json[r'memoriesEnabled'] = null;
|
||||
}
|
||||
json[r'name'] = this.name;
|
||||
json[r'password'] = this.password;
|
||||
if (this.storageLabel != null) {
|
||||
json[r'storageLabel'] = this.storageLabel;
|
||||
|
|
@ -100,9 +94,8 @@ class CreateUserDto {
|
|||
return CreateUserDto(
|
||||
email: mapValueOfType<String>(json, r'email')!,
|
||||
externalPath: mapValueOfType<String>(json, r'externalPath'),
|
||||
firstName: mapValueOfType<String>(json, r'firstName')!,
|
||||
lastName: mapValueOfType<String>(json, r'lastName')!,
|
||||
memoriesEnabled: mapValueOfType<bool>(json, r'memoriesEnabled'),
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
password: mapValueOfType<String>(json, r'password')!,
|
||||
storageLabel: mapValueOfType<String>(json, r'storageLabel'),
|
||||
);
|
||||
|
|
@ -153,8 +146,7 @@ class CreateUserDto {
|
|||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'email',
|
||||
'firstName',
|
||||
'lastName',
|
||||
'name',
|
||||
'password',
|
||||
};
|
||||
}
|
||||
|
|
|
|||
24
mobile/openapi/lib/model/login_response_dto.dart
generated
24
mobile/openapi/lib/model/login_response_dto.dart
generated
|
|
@ -14,9 +14,8 @@ class LoginResponseDto {
|
|||
/// Returns a new [LoginResponseDto] instance.
|
||||
LoginResponseDto({
|
||||
required this.accessToken,
|
||||
required this.firstName,
|
||||
required this.isAdmin,
|
||||
required this.lastName,
|
||||
required this.name,
|
||||
required this.profileImagePath,
|
||||
required this.shouldChangePassword,
|
||||
required this.userEmail,
|
||||
|
|
@ -25,11 +24,9 @@ class LoginResponseDto {
|
|||
|
||||
String accessToken;
|
||||
|
||||
String firstName;
|
||||
|
||||
bool isAdmin;
|
||||
|
||||
String lastName;
|
||||
String name;
|
||||
|
||||
String profileImagePath;
|
||||
|
||||
|
|
@ -42,9 +39,8 @@ class LoginResponseDto {
|
|||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is LoginResponseDto &&
|
||||
other.accessToken == accessToken &&
|
||||
other.firstName == firstName &&
|
||||
other.isAdmin == isAdmin &&
|
||||
other.lastName == lastName &&
|
||||
other.name == name &&
|
||||
other.profileImagePath == profileImagePath &&
|
||||
other.shouldChangePassword == shouldChangePassword &&
|
||||
other.userEmail == userEmail &&
|
||||
|
|
@ -54,23 +50,21 @@ class LoginResponseDto {
|
|||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(accessToken.hashCode) +
|
||||
(firstName.hashCode) +
|
||||
(isAdmin.hashCode) +
|
||||
(lastName.hashCode) +
|
||||
(name.hashCode) +
|
||||
(profileImagePath.hashCode) +
|
||||
(shouldChangePassword.hashCode) +
|
||||
(userEmail.hashCode) +
|
||||
(userId.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'LoginResponseDto[accessToken=$accessToken, firstName=$firstName, isAdmin=$isAdmin, lastName=$lastName, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, userEmail=$userEmail, userId=$userId]';
|
||||
String toString() => 'LoginResponseDto[accessToken=$accessToken, isAdmin=$isAdmin, name=$name, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, userEmail=$userEmail, userId=$userId]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'accessToken'] = this.accessToken;
|
||||
json[r'firstName'] = this.firstName;
|
||||
json[r'isAdmin'] = this.isAdmin;
|
||||
json[r'lastName'] = this.lastName;
|
||||
json[r'name'] = this.name;
|
||||
json[r'profileImagePath'] = this.profileImagePath;
|
||||
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
||||
json[r'userEmail'] = this.userEmail;
|
||||
|
|
@ -87,9 +81,8 @@ class LoginResponseDto {
|
|||
|
||||
return LoginResponseDto(
|
||||
accessToken: mapValueOfType<String>(json, r'accessToken')!,
|
||||
firstName: mapValueOfType<String>(json, r'firstName')!,
|
||||
isAdmin: mapValueOfType<bool>(json, r'isAdmin')!,
|
||||
lastName: mapValueOfType<String>(json, r'lastName')!,
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
|
||||
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
|
||||
userEmail: mapValueOfType<String>(json, r'userEmail')!,
|
||||
|
|
@ -142,9 +135,8 @@ class LoginResponseDto {
|
|||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'accessToken',
|
||||
'firstName',
|
||||
'isAdmin',
|
||||
'lastName',
|
||||
'name',
|
||||
'profileImagePath',
|
||||
'shouldChangePassword',
|
||||
'userEmail',
|
||||
|
|
|
|||
26
mobile/openapi/lib/model/partner_response_dto.dart
generated
26
mobile/openapi/lib/model/partner_response_dto.dart
generated
|
|
@ -17,12 +17,11 @@ class PartnerResponseDto {
|
|||
required this.deletedAt,
|
||||
required this.email,
|
||||
required this.externalPath,
|
||||
required this.firstName,
|
||||
required this.id,
|
||||
this.inTimeline,
|
||||
required this.isAdmin,
|
||||
required this.lastName,
|
||||
this.memoriesEnabled,
|
||||
required this.name,
|
||||
required this.oauthId,
|
||||
required this.profileImagePath,
|
||||
required this.shouldChangePassword,
|
||||
|
|
@ -38,8 +37,6 @@ class PartnerResponseDto {
|
|||
|
||||
String? externalPath;
|
||||
|
||||
String firstName;
|
||||
|
||||
String id;
|
||||
|
||||
///
|
||||
|
|
@ -52,8 +49,6 @@ class PartnerResponseDto {
|
|||
|
||||
bool isAdmin;
|
||||
|
||||
String lastName;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
|
|
@ -62,6 +57,8 @@ class PartnerResponseDto {
|
|||
///
|
||||
bool? memoriesEnabled;
|
||||
|
||||
String name;
|
||||
|
||||
String oauthId;
|
||||
|
||||
String profileImagePath;
|
||||
|
|
@ -78,12 +75,11 @@ class PartnerResponseDto {
|
|||
other.deletedAt == deletedAt &&
|
||||
other.email == email &&
|
||||
other.externalPath == externalPath &&
|
||||
other.firstName == firstName &&
|
||||
other.id == id &&
|
||||
other.inTimeline == inTimeline &&
|
||||
other.isAdmin == isAdmin &&
|
||||
other.lastName == lastName &&
|
||||
other.memoriesEnabled == memoriesEnabled &&
|
||||
other.name == name &&
|
||||
other.oauthId == oauthId &&
|
||||
other.profileImagePath == profileImagePath &&
|
||||
other.shouldChangePassword == shouldChangePassword &&
|
||||
|
|
@ -97,12 +93,11 @@ class PartnerResponseDto {
|
|||
(deletedAt == null ? 0 : deletedAt!.hashCode) +
|
||||
(email.hashCode) +
|
||||
(externalPath == null ? 0 : externalPath!.hashCode) +
|
||||
(firstName.hashCode) +
|
||||
(id.hashCode) +
|
||||
(inTimeline == null ? 0 : inTimeline!.hashCode) +
|
||||
(isAdmin.hashCode) +
|
||||
(lastName.hashCode) +
|
||||
(memoriesEnabled == null ? 0 : memoriesEnabled!.hashCode) +
|
||||
(name.hashCode) +
|
||||
(oauthId.hashCode) +
|
||||
(profileImagePath.hashCode) +
|
||||
(shouldChangePassword.hashCode) +
|
||||
|
|
@ -110,7 +105,7 @@ class PartnerResponseDto {
|
|||
(updatedAt.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'PartnerResponseDto[createdAt=$createdAt, deletedAt=$deletedAt, email=$email, externalPath=$externalPath, firstName=$firstName, id=$id, inTimeline=$inTimeline, isAdmin=$isAdmin, lastName=$lastName, memoriesEnabled=$memoriesEnabled, oauthId=$oauthId, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel, updatedAt=$updatedAt]';
|
||||
String toString() => 'PartnerResponseDto[createdAt=$createdAt, deletedAt=$deletedAt, email=$email, externalPath=$externalPath, id=$id, inTimeline=$inTimeline, isAdmin=$isAdmin, memoriesEnabled=$memoriesEnabled, name=$name, oauthId=$oauthId, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel, updatedAt=$updatedAt]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
|
|
@ -126,7 +121,6 @@ class PartnerResponseDto {
|
|||
} else {
|
||||
// json[r'externalPath'] = null;
|
||||
}
|
||||
json[r'firstName'] = this.firstName;
|
||||
json[r'id'] = this.id;
|
||||
if (this.inTimeline != null) {
|
||||
json[r'inTimeline'] = this.inTimeline;
|
||||
|
|
@ -134,12 +128,12 @@ class PartnerResponseDto {
|
|||
// json[r'inTimeline'] = null;
|
||||
}
|
||||
json[r'isAdmin'] = this.isAdmin;
|
||||
json[r'lastName'] = this.lastName;
|
||||
if (this.memoriesEnabled != null) {
|
||||
json[r'memoriesEnabled'] = this.memoriesEnabled;
|
||||
} else {
|
||||
// json[r'memoriesEnabled'] = null;
|
||||
}
|
||||
json[r'name'] = this.name;
|
||||
json[r'oauthId'] = this.oauthId;
|
||||
json[r'profileImagePath'] = this.profileImagePath;
|
||||
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
||||
|
|
@ -164,12 +158,11 @@ class PartnerResponseDto {
|
|||
deletedAt: mapDateTime(json, r'deletedAt', ''),
|
||||
email: mapValueOfType<String>(json, r'email')!,
|
||||
externalPath: mapValueOfType<String>(json, r'externalPath'),
|
||||
firstName: mapValueOfType<String>(json, r'firstName')!,
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
inTimeline: mapValueOfType<bool>(json, r'inTimeline'),
|
||||
isAdmin: mapValueOfType<bool>(json, r'isAdmin')!,
|
||||
lastName: mapValueOfType<String>(json, r'lastName')!,
|
||||
memoriesEnabled: mapValueOfType<bool>(json, r'memoriesEnabled'),
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
oauthId: mapValueOfType<String>(json, r'oauthId')!,
|
||||
profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
|
||||
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
|
||||
|
|
@ -226,10 +219,9 @@ class PartnerResponseDto {
|
|||
'deletedAt',
|
||||
'email',
|
||||
'externalPath',
|
||||
'firstName',
|
||||
'id',
|
||||
'isAdmin',
|
||||
'lastName',
|
||||
'name',
|
||||
'oauthId',
|
||||
'profileImagePath',
|
||||
'shouldChangePassword',
|
||||
|
|
|
|||
24
mobile/openapi/lib/model/sign_up_dto.dart
generated
24
mobile/openapi/lib/model/sign_up_dto.dart
generated
|
|
@ -14,42 +14,36 @@ class SignUpDto {
|
|||
/// Returns a new [SignUpDto] instance.
|
||||
SignUpDto({
|
||||
required this.email,
|
||||
required this.firstName,
|
||||
required this.lastName,
|
||||
required this.name,
|
||||
required this.password,
|
||||
});
|
||||
|
||||
String email;
|
||||
|
||||
String firstName;
|
||||
|
||||
String lastName;
|
||||
String name;
|
||||
|
||||
String password;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is SignUpDto &&
|
||||
other.email == email &&
|
||||
other.firstName == firstName &&
|
||||
other.lastName == lastName &&
|
||||
other.name == name &&
|
||||
other.password == password;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(email.hashCode) +
|
||||
(firstName.hashCode) +
|
||||
(lastName.hashCode) +
|
||||
(name.hashCode) +
|
||||
(password.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'SignUpDto[email=$email, firstName=$firstName, lastName=$lastName, password=$password]';
|
||||
String toString() => 'SignUpDto[email=$email, name=$name, password=$password]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'email'] = this.email;
|
||||
json[r'firstName'] = this.firstName;
|
||||
json[r'lastName'] = this.lastName;
|
||||
json[r'name'] = this.name;
|
||||
json[r'password'] = this.password;
|
||||
return json;
|
||||
}
|
||||
|
|
@ -63,8 +57,7 @@ class SignUpDto {
|
|||
|
||||
return SignUpDto(
|
||||
email: mapValueOfType<String>(json, r'email')!,
|
||||
firstName: mapValueOfType<String>(json, r'firstName')!,
|
||||
lastName: mapValueOfType<String>(json, r'lastName')!,
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
password: mapValueOfType<String>(json, r'password')!,
|
||||
);
|
||||
}
|
||||
|
|
@ -114,8 +107,7 @@ class SignUpDto {
|
|||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'email',
|
||||
'firstName',
|
||||
'lastName',
|
||||
'name',
|
||||
'password',
|
||||
};
|
||||
}
|
||||
|
|
|
|||
41
mobile/openapi/lib/model/update_user_dto.dart
generated
41
mobile/openapi/lib/model/update_user_dto.dart
generated
|
|
@ -15,11 +15,10 @@ class UpdateUserDto {
|
|||
UpdateUserDto({
|
||||
this.email,
|
||||
this.externalPath,
|
||||
this.firstName,
|
||||
required this.id,
|
||||
this.isAdmin,
|
||||
this.lastName,
|
||||
this.memoriesEnabled,
|
||||
this.name,
|
||||
this.password,
|
||||
this.shouldChangePassword,
|
||||
this.storageLabel,
|
||||
|
|
@ -41,14 +40,6 @@ class UpdateUserDto {
|
|||
///
|
||||
String? externalPath;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
String? firstName;
|
||||
|
||||
String id;
|
||||
|
||||
///
|
||||
|
|
@ -65,7 +56,7 @@ class UpdateUserDto {
|
|||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
String? lastName;
|
||||
bool? memoriesEnabled;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
|
|
@ -73,7 +64,7 @@ class UpdateUserDto {
|
|||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? memoriesEnabled;
|
||||
String? name;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
|
|
@ -103,11 +94,10 @@ class UpdateUserDto {
|
|||
bool operator ==(Object other) => identical(this, other) || other is UpdateUserDto &&
|
||||
other.email == email &&
|
||||
other.externalPath == externalPath &&
|
||||
other.firstName == firstName &&
|
||||
other.id == id &&
|
||||
other.isAdmin == isAdmin &&
|
||||
other.lastName == lastName &&
|
||||
other.memoriesEnabled == memoriesEnabled &&
|
||||
other.name == name &&
|
||||
other.password == password &&
|
||||
other.shouldChangePassword == shouldChangePassword &&
|
||||
other.storageLabel == storageLabel;
|
||||
|
|
@ -117,17 +107,16 @@ class UpdateUserDto {
|
|||
// ignore: unnecessary_parenthesis
|
||||
(email == null ? 0 : email!.hashCode) +
|
||||
(externalPath == null ? 0 : externalPath!.hashCode) +
|
||||
(firstName == null ? 0 : firstName!.hashCode) +
|
||||
(id.hashCode) +
|
||||
(isAdmin == null ? 0 : isAdmin!.hashCode) +
|
||||
(lastName == null ? 0 : lastName!.hashCode) +
|
||||
(memoriesEnabled == null ? 0 : memoriesEnabled!.hashCode) +
|
||||
(name == null ? 0 : name!.hashCode) +
|
||||
(password == null ? 0 : password!.hashCode) +
|
||||
(shouldChangePassword == null ? 0 : shouldChangePassword!.hashCode) +
|
||||
(storageLabel == null ? 0 : storageLabel!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'UpdateUserDto[email=$email, externalPath=$externalPath, firstName=$firstName, id=$id, isAdmin=$isAdmin, lastName=$lastName, memoriesEnabled=$memoriesEnabled, password=$password, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel]';
|
||||
String toString() => 'UpdateUserDto[email=$email, externalPath=$externalPath, id=$id, isAdmin=$isAdmin, memoriesEnabled=$memoriesEnabled, name=$name, password=$password, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
|
|
@ -140,11 +129,6 @@ class UpdateUserDto {
|
|||
json[r'externalPath'] = this.externalPath;
|
||||
} else {
|
||||
// json[r'externalPath'] = null;
|
||||
}
|
||||
if (this.firstName != null) {
|
||||
json[r'firstName'] = this.firstName;
|
||||
} else {
|
||||
// json[r'firstName'] = null;
|
||||
}
|
||||
json[r'id'] = this.id;
|
||||
if (this.isAdmin != null) {
|
||||
|
|
@ -152,16 +136,16 @@ class UpdateUserDto {
|
|||
} else {
|
||||
// json[r'isAdmin'] = null;
|
||||
}
|
||||
if (this.lastName != null) {
|
||||
json[r'lastName'] = this.lastName;
|
||||
} else {
|
||||
// json[r'lastName'] = null;
|
||||
}
|
||||
if (this.memoriesEnabled != null) {
|
||||
json[r'memoriesEnabled'] = this.memoriesEnabled;
|
||||
} else {
|
||||
// json[r'memoriesEnabled'] = null;
|
||||
}
|
||||
if (this.name != null) {
|
||||
json[r'name'] = this.name;
|
||||
} else {
|
||||
// json[r'name'] = null;
|
||||
}
|
||||
if (this.password != null) {
|
||||
json[r'password'] = this.password;
|
||||
} else {
|
||||
|
|
@ -190,11 +174,10 @@ class UpdateUserDto {
|
|||
return UpdateUserDto(
|
||||
email: mapValueOfType<String>(json, r'email'),
|
||||
externalPath: mapValueOfType<String>(json, r'externalPath'),
|
||||
firstName: mapValueOfType<String>(json, r'firstName'),
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
isAdmin: mapValueOfType<bool>(json, r'isAdmin'),
|
||||
lastName: mapValueOfType<String>(json, r'lastName'),
|
||||
memoriesEnabled: mapValueOfType<bool>(json, r'memoriesEnabled'),
|
||||
name: mapValueOfType<String>(json, r'name'),
|
||||
password: mapValueOfType<String>(json, r'password'),
|
||||
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword'),
|
||||
storageLabel: mapValueOfType<String>(json, r'storageLabel'),
|
||||
|
|
|
|||
24
mobile/openapi/lib/model/usage_by_user_dto.dart
generated
24
mobile/openapi/lib/model/usage_by_user_dto.dart
generated
|
|
@ -15,9 +15,8 @@ class UsageByUserDto {
|
|||
UsageByUserDto({
|
||||
required this.photos,
|
||||
required this.usage,
|
||||
required this.userFirstName,
|
||||
required this.userId,
|
||||
required this.userLastName,
|
||||
required this.userName,
|
||||
required this.videos,
|
||||
});
|
||||
|
||||
|
|
@ -25,11 +24,9 @@ class UsageByUserDto {
|
|||
|
||||
int usage;
|
||||
|
||||
String userFirstName;
|
||||
|
||||
String userId;
|
||||
|
||||
String userLastName;
|
||||
String userName;
|
||||
|
||||
int videos;
|
||||
|
||||
|
|
@ -37,9 +34,8 @@ class UsageByUserDto {
|
|||
bool operator ==(Object other) => identical(this, other) || other is UsageByUserDto &&
|
||||
other.photos == photos &&
|
||||
other.usage == usage &&
|
||||
other.userFirstName == userFirstName &&
|
||||
other.userId == userId &&
|
||||
other.userLastName == userLastName &&
|
||||
other.userName == userName &&
|
||||
other.videos == videos;
|
||||
|
||||
@override
|
||||
|
|
@ -47,21 +43,19 @@ class UsageByUserDto {
|
|||
// ignore: unnecessary_parenthesis
|
||||
(photos.hashCode) +
|
||||
(usage.hashCode) +
|
||||
(userFirstName.hashCode) +
|
||||
(userId.hashCode) +
|
||||
(userLastName.hashCode) +
|
||||
(userName.hashCode) +
|
||||
(videos.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'UsageByUserDto[photos=$photos, usage=$usage, userFirstName=$userFirstName, userId=$userId, userLastName=$userLastName, videos=$videos]';
|
||||
String toString() => 'UsageByUserDto[photos=$photos, usage=$usage, userId=$userId, userName=$userName, videos=$videos]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'photos'] = this.photos;
|
||||
json[r'usage'] = this.usage;
|
||||
json[r'userFirstName'] = this.userFirstName;
|
||||
json[r'userId'] = this.userId;
|
||||
json[r'userLastName'] = this.userLastName;
|
||||
json[r'userName'] = this.userName;
|
||||
json[r'videos'] = this.videos;
|
||||
return json;
|
||||
}
|
||||
|
|
@ -76,9 +70,8 @@ class UsageByUserDto {
|
|||
return UsageByUserDto(
|
||||
photos: mapValueOfType<int>(json, r'photos')!,
|
||||
usage: mapValueOfType<int>(json, r'usage')!,
|
||||
userFirstName: mapValueOfType<String>(json, r'userFirstName')!,
|
||||
userId: mapValueOfType<String>(json, r'userId')!,
|
||||
userLastName: mapValueOfType<String>(json, r'userLastName')!,
|
||||
userName: mapValueOfType<String>(json, r'userName')!,
|
||||
videos: mapValueOfType<int>(json, r'videos')!,
|
||||
);
|
||||
}
|
||||
|
|
@ -129,9 +122,8 @@ class UsageByUserDto {
|
|||
static const requiredKeys = <String>{
|
||||
'photos',
|
||||
'usage',
|
||||
'userFirstName',
|
||||
'userId',
|
||||
'userLastName',
|
||||
'userName',
|
||||
'videos',
|
||||
};
|
||||
}
|
||||
|
|
|
|||
24
mobile/openapi/lib/model/user_dto.dart
generated
24
mobile/openapi/lib/model/user_dto.dart
generated
|
|
@ -14,48 +14,42 @@ class UserDto {
|
|||
/// Returns a new [UserDto] instance.
|
||||
UserDto({
|
||||
required this.email,
|
||||
required this.firstName,
|
||||
required this.id,
|
||||
required this.lastName,
|
||||
required this.name,
|
||||
required this.profileImagePath,
|
||||
});
|
||||
|
||||
String email;
|
||||
|
||||
String firstName;
|
||||
|
||||
String id;
|
||||
|
||||
String lastName;
|
||||
String name;
|
||||
|
||||
String profileImagePath;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is UserDto &&
|
||||
other.email == email &&
|
||||
other.firstName == firstName &&
|
||||
other.id == id &&
|
||||
other.lastName == lastName &&
|
||||
other.name == name &&
|
||||
other.profileImagePath == profileImagePath;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(email.hashCode) +
|
||||
(firstName.hashCode) +
|
||||
(id.hashCode) +
|
||||
(lastName.hashCode) +
|
||||
(name.hashCode) +
|
||||
(profileImagePath.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'UserDto[email=$email, firstName=$firstName, id=$id, lastName=$lastName, profileImagePath=$profileImagePath]';
|
||||
String toString() => 'UserDto[email=$email, id=$id, name=$name, profileImagePath=$profileImagePath]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'email'] = this.email;
|
||||
json[r'firstName'] = this.firstName;
|
||||
json[r'id'] = this.id;
|
||||
json[r'lastName'] = this.lastName;
|
||||
json[r'name'] = this.name;
|
||||
json[r'profileImagePath'] = this.profileImagePath;
|
||||
return json;
|
||||
}
|
||||
|
|
@ -69,9 +63,8 @@ class UserDto {
|
|||
|
||||
return UserDto(
|
||||
email: mapValueOfType<String>(json, r'email')!,
|
||||
firstName: mapValueOfType<String>(json, r'firstName')!,
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
lastName: mapValueOfType<String>(json, r'lastName')!,
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
|
||||
);
|
||||
}
|
||||
|
|
@ -121,9 +114,8 @@ class UserDto {
|
|||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'email',
|
||||
'firstName',
|
||||
'id',
|
||||
'lastName',
|
||||
'name',
|
||||
'profileImagePath',
|
||||
};
|
||||
}
|
||||
|
|
|
|||
26
mobile/openapi/lib/model/user_response_dto.dart
generated
26
mobile/openapi/lib/model/user_response_dto.dart
generated
|
|
@ -17,11 +17,10 @@ class UserResponseDto {
|
|||
required this.deletedAt,
|
||||
required this.email,
|
||||
required this.externalPath,
|
||||
required this.firstName,
|
||||
required this.id,
|
||||
required this.isAdmin,
|
||||
required this.lastName,
|
||||
this.memoriesEnabled,
|
||||
required this.name,
|
||||
required this.oauthId,
|
||||
required this.profileImagePath,
|
||||
required this.shouldChangePassword,
|
||||
|
|
@ -37,14 +36,10 @@ class UserResponseDto {
|
|||
|
||||
String? externalPath;
|
||||
|
||||
String firstName;
|
||||
|
||||
String id;
|
||||
|
||||
bool isAdmin;
|
||||
|
||||
String lastName;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
|
|
@ -53,6 +48,8 @@ class UserResponseDto {
|
|||
///
|
||||
bool? memoriesEnabled;
|
||||
|
||||
String name;
|
||||
|
||||
String oauthId;
|
||||
|
||||
String profileImagePath;
|
||||
|
|
@ -69,11 +66,10 @@ class UserResponseDto {
|
|||
other.deletedAt == deletedAt &&
|
||||
other.email == email &&
|
||||
other.externalPath == externalPath &&
|
||||
other.firstName == firstName &&
|
||||
other.id == id &&
|
||||
other.isAdmin == isAdmin &&
|
||||
other.lastName == lastName &&
|
||||
other.memoriesEnabled == memoriesEnabled &&
|
||||
other.name == name &&
|
||||
other.oauthId == oauthId &&
|
||||
other.profileImagePath == profileImagePath &&
|
||||
other.shouldChangePassword == shouldChangePassword &&
|
||||
|
|
@ -87,11 +83,10 @@ class UserResponseDto {
|
|||
(deletedAt == null ? 0 : deletedAt!.hashCode) +
|
||||
(email.hashCode) +
|
||||
(externalPath == null ? 0 : externalPath!.hashCode) +
|
||||
(firstName.hashCode) +
|
||||
(id.hashCode) +
|
||||
(isAdmin.hashCode) +
|
||||
(lastName.hashCode) +
|
||||
(memoriesEnabled == null ? 0 : memoriesEnabled!.hashCode) +
|
||||
(name.hashCode) +
|
||||
(oauthId.hashCode) +
|
||||
(profileImagePath.hashCode) +
|
||||
(shouldChangePassword.hashCode) +
|
||||
|
|
@ -99,7 +94,7 @@ class UserResponseDto {
|
|||
(updatedAt.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'UserResponseDto[createdAt=$createdAt, deletedAt=$deletedAt, email=$email, externalPath=$externalPath, firstName=$firstName, id=$id, isAdmin=$isAdmin, lastName=$lastName, memoriesEnabled=$memoriesEnabled, oauthId=$oauthId, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel, updatedAt=$updatedAt]';
|
||||
String toString() => 'UserResponseDto[createdAt=$createdAt, deletedAt=$deletedAt, email=$email, externalPath=$externalPath, id=$id, isAdmin=$isAdmin, memoriesEnabled=$memoriesEnabled, name=$name, oauthId=$oauthId, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel, updatedAt=$updatedAt]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
|
|
@ -115,15 +110,14 @@ class UserResponseDto {
|
|||
} else {
|
||||
// json[r'externalPath'] = null;
|
||||
}
|
||||
json[r'firstName'] = this.firstName;
|
||||
json[r'id'] = this.id;
|
||||
json[r'isAdmin'] = this.isAdmin;
|
||||
json[r'lastName'] = this.lastName;
|
||||
if (this.memoriesEnabled != null) {
|
||||
json[r'memoriesEnabled'] = this.memoriesEnabled;
|
||||
} else {
|
||||
// json[r'memoriesEnabled'] = null;
|
||||
}
|
||||
json[r'name'] = this.name;
|
||||
json[r'oauthId'] = this.oauthId;
|
||||
json[r'profileImagePath'] = this.profileImagePath;
|
||||
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
||||
|
|
@ -148,11 +142,10 @@ class UserResponseDto {
|
|||
deletedAt: mapDateTime(json, r'deletedAt', ''),
|
||||
email: mapValueOfType<String>(json, r'email')!,
|
||||
externalPath: mapValueOfType<String>(json, r'externalPath'),
|
||||
firstName: mapValueOfType<String>(json, r'firstName')!,
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
isAdmin: mapValueOfType<bool>(json, r'isAdmin')!,
|
||||
lastName: mapValueOfType<String>(json, r'lastName')!,
|
||||
memoriesEnabled: mapValueOfType<bool>(json, r'memoriesEnabled'),
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
oauthId: mapValueOfType<String>(json, r'oauthId')!,
|
||||
profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
|
||||
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
|
||||
|
|
@ -209,10 +202,9 @@ class UserResponseDto {
|
|||
'deletedAt',
|
||||
'email',
|
||||
'externalPath',
|
||||
'firstName',
|
||||
'id',
|
||||
'isAdmin',
|
||||
'lastName',
|
||||
'name',
|
||||
'oauthId',
|
||||
'profileImagePath',
|
||||
'shouldChangePassword',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue