From c811ad7e21775b6c31458ed2db8d1bdd07ac694b Mon Sep 17 00:00:00 2001 From: julien vdb Date: Fri, 25 Apr 2025 20:14:03 +0200 Subject: [PATCH] Add fields on Event --- package.json | 2 +- src/api/event/content-types/event/schema.json | 6 ++ .../1.0.0/full_documentation.json | 68 ++++++++++++++++++- types/generated/contentTypes.d.ts | 2 + 4 files changed, 76 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f471a0e..7bf7cef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "harmony-back", - "version": "0.11.0", + "version": "0.11.1", "private": true, "description": "A Strapi application", "scripts": { diff --git a/src/api/event/content-types/event/schema.json b/src/api/event/content-types/event/schema.json index a66f0ce..1dd3ac1 100644 --- a/src/api/event/content-types/event/schema.json +++ b/src/api/event/content-types/event/schema.json @@ -29,6 +29,12 @@ "relation": "manyToOne", "target": "api::choral.choral", "inversedBy": "calendar" + }, + "comment": { + "type": "text" + }, + "location": { + "type": "string" } } } 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 cfd0339..5bd3f32 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-04-25T16:44:00.461Z" + "x-generation-date": "2025-04-25T18:13:52.323Z" }, "x-strapi-config": { "plugins": [ @@ -8760,6 +8760,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -11418,6 +11424,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -13611,6 +13623,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -16252,6 +16270,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -18841,6 +18865,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -21458,6 +21488,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -23991,6 +24027,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -24867,6 +24909,12 @@ ], "example": "string or id" }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "locale": { "type": "string" }, @@ -27048,6 +27096,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -27281,6 +27335,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -30084,6 +30144,12 @@ } } }, + "comment": { + "type": "string" + }, + "location": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index c04e5a8..983789c 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -705,6 +705,7 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema { attributes: { choral: Schema.Attribute.Relation<'manyToOne', 'api::choral.choral'>; color: Schema.Attribute.String; + comment: Schema.Attribute.Text; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; @@ -712,6 +713,7 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema { locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation<'oneToMany', 'api::event.event'> & Schema.Attribute.Private; + location: Schema.Attribute.String; publishedAt: Schema.Attribute.DateTime; start: Schema.Attribute.DateTime; title: Schema.Attribute.String;