Add updateMe endpoint and user fiels
This commit is contained in:
15
types/generated/contentTypes.d.ts
vendored
15
types/generated/contentTypes.d.ts
vendored
@@ -1010,8 +1010,13 @@ export interface PluginUsersPermissionsUser
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
address: Schema.Attribute.Text;
|
||||
avatar: Schema.Attribute.Media<'images'>;
|
||||
background: Schema.Attribute.Media<
|
||||
'images' | 'files' | 'videos' | 'audios'
|
||||
>;
|
||||
blocked: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<false>;
|
||||
board: Schema.Attribute.Relation<'oneToOne', 'api::board.board'>;
|
||||
choralAdmin: Schema.Attribute.Relation<'manyToMany', 'api::choral.choral'>;
|
||||
choralOwner: Schema.Attribute.Relation<'oneToOne', 'api::choral.choral'>;
|
||||
chorals: Schema.Attribute.Relation<'manyToMany', 'api::choral.choral'>;
|
||||
@@ -1020,17 +1025,23 @@ export interface PluginUsersPermissionsUser
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
dob: Schema.Attribute.Date;
|
||||
email: Schema.Attribute.Email &
|
||||
Schema.Attribute.Required &
|
||||
Schema.Attribute.SetMinMaxLength<{
|
||||
minLength: 6;
|
||||
}>;
|
||||
gender: Schema.Attribute.Enumeration<['men', 'women', 'none']>;
|
||||
job: Schema.Attribute.Enumeration<
|
||||
['choir_director', 'choir_addict', 'choir_master', 'choir_singer', 'none']
|
||||
>;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'plugin::users-permissions.user'
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
name: Schema.Attribute.String;
|
||||
nbFollowers: Schema.Attribute.Integer & Schema.Attribute.DefaultTo<0>;
|
||||
nbFollowing: Schema.Attribute.Integer & Schema.Attribute.DefaultTo<0>;
|
||||
nbPosts: Schema.Attribute.Integer & Schema.Attribute.DefaultTo<0>;
|
||||
@@ -1047,6 +1058,7 @@ export interface PluginUsersPermissionsUser
|
||||
'manyToOne',
|
||||
'plugin::users-permissions.role'
|
||||
>;
|
||||
surname: Schema.Attribute.String;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
@@ -1056,6 +1068,9 @@ export interface PluginUsersPermissionsUser
|
||||
Schema.Attribute.SetMinMaxLength<{
|
||||
minLength: 3;
|
||||
}>;
|
||||
voice: Schema.Attribute.Enumeration<
|
||||
['soprano', 'mezzo-soprano', 'alto', 'tenor', 'baryton', 'basse']
|
||||
>;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user