0.12.0 : modify user
This commit is contained in:
14
types/generated/components.d.ts
vendored
14
types/generated/components.d.ts
vendored
@@ -46,6 +46,19 @@ export interface SocialTags extends Struct.ComponentSchema {
|
||||
};
|
||||
}
|
||||
|
||||
export interface UserLanguage extends Struct.ComponentSchema {
|
||||
collectionName: 'components_user_languages';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'language';
|
||||
icon: 'feather';
|
||||
};
|
||||
attributes: {
|
||||
language: Schema.Attribute.String;
|
||||
level: Schema.Attribute.Integer;
|
||||
};
|
||||
}
|
||||
|
||||
export interface UserPermissions extends Struct.ComponentSchema {
|
||||
collectionName: 'components_user_permissions';
|
||||
info: {
|
||||
@@ -68,6 +81,7 @@ declare module '@strapi/strapi' {
|
||||
'address.full-address': AddressFullAddress;
|
||||
'group.activity': GroupActivity;
|
||||
'social.tags': SocialTags;
|
||||
'user.language': UserLanguage;
|
||||
'user.permissions': UserPermissions;
|
||||
}
|
||||
}
|
||||
|
||||
5
types/generated/contentTypes.d.ts
vendored
5
types/generated/contentTypes.d.ts
vendored
@@ -1828,6 +1828,7 @@ export interface PluginUsersPermissionsUser
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
activities: Schema.Attribute.Component<'group.activity', true>;
|
||||
address: Schema.Attribute.Text;
|
||||
announcements: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
@@ -1837,6 +1838,7 @@ export interface PluginUsersPermissionsUser
|
||||
background: Schema.Attribute.Media<
|
||||
'images' | 'files' | 'videos' | 'audios'
|
||||
>;
|
||||
bio: Schema.Attribute.Text;
|
||||
blocked: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<false>;
|
||||
board: Schema.Attribute.Relation<'oneToOne', 'api::board.board'>;
|
||||
choral_memberships: Schema.Attribute.Relation<
|
||||
@@ -1866,6 +1868,7 @@ export interface PluginUsersPermissionsUser
|
||||
Schema.Attribute.SetMinMaxLength<{
|
||||
minLength: 6;
|
||||
}>;
|
||||
experience: Schema.Attribute.Integer;
|
||||
friends: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'plugin::users-permissions.user'
|
||||
@@ -1878,6 +1881,7 @@ export interface PluginUsersPermissionsUser
|
||||
job: Schema.Attribute.Enumeration<
|
||||
['choir_director', 'choir_addict', 'choir_master', 'choir_singer', 'none']
|
||||
>;
|
||||
languages: Schema.Attribute.Component<'user.language', true>;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
@@ -1912,6 +1916,7 @@ export interface PluginUsersPermissionsUser
|
||||
>;
|
||||
saved_posts: Schema.Attribute.Relation<'oneToMany', 'api::post.post'>;
|
||||
surname: Schema.Attribute.String;
|
||||
tags: Schema.Attribute.Component<'social.tags', true>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
|
||||
Reference in New Issue
Block a user