From d64c647865e3d358d3d85ad10e6269c3f65647f4 Mon Sep 17 00:00:00 2001 From: julien vdb Date: Tue, 11 Nov 2025 19:09:04 +0100 Subject: [PATCH] 0.12.0 : modify user --- package.json | 2 +- src/components/user/language.json | 17 + .../1.0.0/full_documentation.json | 616 +++++++++++++++++- .../content-types/user/schema.json | 21 + types/generated/components.d.ts | 14 + types/generated/contentTypes.d.ts | 5 + 6 files changed, 673 insertions(+), 2 deletions(-) create mode 100644 src/components/user/language.json diff --git a/package.json b/package.json index 39012c0..eb51a7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "harmony-back", - "version": "0.11.21", + "version": "0.12.0", "private": true, "description": "A Strapi application", "scripts": { diff --git a/src/components/user/language.json b/src/components/user/language.json new file mode 100644 index 0000000..7108ba2 --- /dev/null +++ b/src/components/user/language.json @@ -0,0 +1,17 @@ +{ + "collectionName": "components_user_languages", + "info": { + "displayName": "language", + "icon": "feather", + "description": "" + }, + "options": {}, + "attributes": { + "language": { + "type": "string" + }, + "level": { + "type": "integer" + } + } +} diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index f3ab044..59c5070 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2025-11-11T01:04:38.039Z" + "x-generation-date": "2025-11-11T18:08:56.370Z" }, "x-strapi-config": { "plugins": [ @@ -17865,6 +17865,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -18322,6 +18346,20 @@ } } }, + "UserLanguageComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "language": { + "type": "string" + }, + "level": { + "type": "integer" + } + } + }, "AnnouncementRequest": { "type": "object", "required": [ @@ -21458,6 +21496,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -25389,6 +25451,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -28879,6 +28965,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -32817,6 +32927,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -37006,6 +37140,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -41644,6 +41802,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -45572,6 +45754,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -49402,6 +49608,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -53219,6 +53449,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -57072,6 +57326,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -60817,6 +61095,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -64739,6 +65041,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -68734,6 +69060,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -72218,6 +72568,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -76631,6 +77005,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -80433,6 +80831,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -84556,6 +84978,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -88391,6 +88837,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -92330,6 +92800,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -96170,6 +96664,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -99515,6 +100033,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -104069,6 +104611,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -107952,6 +108518,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" @@ -111795,6 +112385,30 @@ } } }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupActivityComponent" + } + }, + "languages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserLanguageComponent" + } + }, + "bio": { + "type": "string" + }, + "experience": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "date-time" diff --git a/src/extensions/users-permissions/content-types/user/schema.json b/src/extensions/users-permissions/content-types/user/schema.json index 856bd04..16dd453 100644 --- a/src/extensions/users-permissions/content-types/user/schema.json +++ b/src/extensions/users-permissions/content-types/user/schema.json @@ -224,6 +224,27 @@ "relation": "oneToMany", "target": "api::post-ownership.post-ownership", "mappedBy": "author" + }, + "tags": { + "type": "component", + "repeatable": true, + "component": "social.tags" + }, + "activities": { + "type": "component", + "repeatable": true, + "component": "group.activity" + }, + "languages": { + "type": "component", + "repeatable": true, + "component": "user.language" + }, + "bio": { + "type": "text" + }, + "experience": { + "type": "integer" } } } diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index f2a0cfc..76c86ce 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -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; } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index ee60ee1..7dfc3a7 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -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; 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;