0.13.4 : add form-template
All checks were successful
Build release Docker image / Build Docker Images (push) Successful in 10m31s

This commit is contained in:
2026-03-08 16:07:54 +01:00
parent 42604b037b
commit 616b14edca
9 changed files with 6540 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "harmony-back",
"version": "0.13.3",
"version": "0.13.4",
"private": true,
"description": "A Strapi application",
"scripts": {

View File

@@ -100,6 +100,9 @@
"relation": "oneToMany",
"target": "api::channel.channel",
"mappedBy": "choral"
},
"available_tags": {
"type": "json"
}
}
}

View File

@@ -0,0 +1,57 @@
{
"kind": "collectionType",
"collectionName": "form_templates",
"info": {
"singularName": "form-template",
"pluralName": "form-templates",
"displayName": "FormTemplate"
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string",
"required": true
},
"description": {
"type": "text"
},
"state": {
"type": "enumeration",
"enum": [
"draft",
"published",
"archived"
],
"default": "draft"
},
"original_file": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
},
"schema": {
"type": "json"
},
"target_tags": {
"type": "json"
},
"choral": {
"type": "relation",
"relation": "oneToOne",
"target": "api::choral.choral"
},
"author": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* form-template controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::form-template.form-template');

View File

@@ -0,0 +1,7 @@
/**
* form-template router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::form-template.form-template');

View File

@@ -0,0 +1,7 @@
/**
* form-template service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::form-template.form-template');

View File

@@ -264,6 +264,9 @@
"relation": "oneToMany",
"target": "api::order.order",
"mappedBy": "user"
},
"admin_tags": {
"type": "json"
}
}
}

View File

@@ -799,6 +799,7 @@ export interface ApiChoralChoral extends Struct.CollectionTypeSchema {
'oneToMany',
'api::announcement.announcement'
>;
available_tags: Schema.Attribute.JSON;
boards: Schema.Attribute.Relation<'oneToMany', 'api::board.board'>;
calendar: Schema.Attribute.Relation<'oneToMany', 'api::event.event'>;
channels: Schema.Attribute.Relation<'oneToMany', 'api::channel.channel'>;
@@ -1144,6 +1145,48 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema {
};
}
export interface ApiFormTemplateFormTemplate
extends Struct.CollectionTypeSchema {
collectionName: 'form_templates';
info: {
displayName: 'FormTemplate';
pluralName: 'form-templates';
singularName: 'form-template';
};
options: {
draftAndPublish: false;
};
attributes: {
author: Schema.Attribute.Relation<
'oneToOne',
'plugin::users-permissions.user'
>;
choral: Schema.Attribute.Relation<'oneToOne', 'api::choral.choral'>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
description: Schema.Attribute.Text;
locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation<
'oneToMany',
'api::form-template.form-template'
> &
Schema.Attribute.Private;
original_file: Schema.Attribute.Media<
'images' | 'files' | 'videos' | 'audios'
>;
publishedAt: Schema.Attribute.DateTime;
schema: Schema.Attribute.JSON;
state: Schema.Attribute.Enumeration<['draft', 'published', 'archived']> &
Schema.Attribute.DefaultTo<'draft'>;
target_tags: Schema.Attribute.JSON;
title: Schema.Attribute.String & Schema.Attribute.Required;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
};
}
export interface ApiGroupMembershipGroupMembership
extends Struct.CollectionTypeSchema {
collectionName: 'group_memberships';
@@ -2079,6 +2122,7 @@ export interface PluginUsersPermissionsUser
attributes: {
activities: Schema.Attribute.Component<'group.activity', true>;
address: Schema.Attribute.Text;
admin_tags: Schema.Attribute.JSON;
announcements: Schema.Attribute.Relation<
'oneToMany',
'api::announcement.announcement'
@@ -2231,6 +2275,7 @@ declare module '@strapi/strapi' {
'api::direct-message.direct-message': ApiDirectMessageDirectMessage;
'api::event-relationship.event-relationship': ApiEventRelationshipEventRelationship;
'api::event.event': ApiEventEvent;
'api::form-template.form-template': ApiFormTemplateFormTemplate;
'api::group-membership.group-membership': ApiGroupMembershipGroupMembership;
'api::group.group': ApiGroupGroup;
'api::invite.invite': ApiInviteInvite;