diff --git a/src/api/activity/content-types/activity/schema.json b/src/api/activity/content-types/activity/schema.json index 7573746..884da41 100644 --- a/src/api/activity/content-types/activity/schema.json +++ b/src/api/activity/content-types/activity/schema.json @@ -181,12 +181,6 @@ "target": "api::enrollment.enrollment", "mappedBy": "activity" }, - "questionnaire": { - "type": "relation", - "relation": "oneToOne", - "target": "api::questionnaire.questionnaire", - "mappedBy": "activity" - }, "cooperations": { "displayName": "Cooperation", "type": "component", @@ -204,6 +198,16 @@ "relation": "oneToMany", "target": "api::message.message", "mappedBy": "activity" + }, + "questions": { + "type": "component", + "repeatable": true, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "component": "form.field" } } } diff --git a/src/api/questionnaire/content-types/questionnaire/schema.json b/src/api/questionnaire/content-types/questionnaire/schema.json deleted file mode 100644 index 1fd2e2e..0000000 --- a/src/api/questionnaire/content-types/questionnaire/schema.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "kind": "collectionType", - "collectionName": "questionnaires", - "info": { - "singularName": "questionnaire", - "pluralName": "questionnaires", - "displayName": "Questionnaire" - }, - "options": { - "draftAndPublish": true - }, - "pluginOptions": { - "i18n": { - "localized": true - } - }, - "attributes": { - "activity": { - "type": "relation", - "relation": "oneToOne", - "target": "api::activity.activity", - "inversedBy": "questionnaire" - }, - "extensions": { - "displayName": "Field", - "type": "component", - "repeatable": true, - "pluginOptions": { - "i18n": { - "localized": true - } - }, - "component": "form.field", - "required": true - } - } -} diff --git a/src/api/questionnaire/controllers/questionnaire.ts b/src/api/questionnaire/controllers/questionnaire.ts deleted file mode 100644 index 992de0e..0000000 --- a/src/api/questionnaire/controllers/questionnaire.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * questionnaire controller - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreController( - 'api::questionnaire.questionnaire', -); diff --git a/src/api/questionnaire/routes/questionnaire.ts b/src/api/questionnaire/routes/questionnaire.ts deleted file mode 100644 index 1f92c34..0000000 --- a/src/api/questionnaire/routes/questionnaire.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * questionnaire router - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreRouter('api::questionnaire.questionnaire'); diff --git a/src/api/questionnaire/services/questionnaire.ts b/src/api/questionnaire/services/questionnaire.ts deleted file mode 100644 index 5424afe..0000000 --- a/src/api/questionnaire/services/questionnaire.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * questionnaire service - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreService('api::questionnaire.questionnaire'); diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index b223b91..4b43e71 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -362,119 +362,234 @@ export interface AdminTransferTokenPermission extends Schema.CollectionType { }; } -export interface PluginUploadFile extends Schema.CollectionType { - collectionName: 'files'; +export interface ApiActivityActivity extends Schema.CollectionType { + collectionName: 'activities'; info: { - singularName: 'file'; - pluralName: 'files'; - displayName: 'File'; + singularName: 'activity'; + pluralName: 'activities'; + displayName: 'Activity'; description: ''; }; + options: { + draftAndPublish: true; + }; pluginOptions: { - 'content-manager': { - visible: false; - }; - 'content-type-builder': { - visible: false; + i18n: { + localized: true; }; }; attributes: { - name: Attribute.String & Attribute.Required; - alternativeText: Attribute.String; - caption: Attribute.String; - width: Attribute.Integer; - height: Attribute.Integer; - formats: Attribute.JSON; - hash: Attribute.String & Attribute.Required; - ext: Attribute.String; - mime: Attribute.String & Attribute.Required; - size: Attribute.Decimal & Attribute.Required; - url: Attribute.String & Attribute.Required; - previewUrl: Attribute.String; - provider: Attribute.String & Attribute.Required; - provider_metadata: Attribute.JSON; - related: Attribute.Relation<'plugin::upload.file', 'morphToMany'>; - folder: Attribute.Relation< - 'plugin::upload.file', - 'manyToOne', - 'plugin::upload.folder' + name: Attribute.String & + Attribute.Required & + Attribute.Unique & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + displayName: Attribute.String & + Attribute.Required & + Attribute.Unique & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + ribbon: Attribute.String & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + summary: Attribute.String & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + detail: Attribute.RichText & + Attribute.Required & + Attribute.CustomField< + 'plugin::ckeditor.CKEditor', + { + output: 'HTML'; + preset: 'rich'; + } + > & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + banners: Attribute.Media & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + status: Attribute.Enumeration< + ['planning', 'pendingApproval', 'online', 'offline'] > & - Attribute.Private; - folderPath: Attribute.String & Attribute.Required & - Attribute.Private & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }> & + Attribute.DefaultTo<'planning'>; + creator: Attribute.Relation< + 'api::activity.activity', + 'oneToOne', + 'plugin::users-permissions.user' + >; + maxEnrollment: Attribute.Integer & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }> & Attribute.SetMinMax<{ - min: 1; + min: 0; + }>; + tags: Attribute.String & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + eventStartedAt: Attribute.DateTime & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + eventEndedAt: Attribute.DateTime & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + enrollmentStartedAt: Attribute.DateTime & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + enrollmentEndedAt: Attribute.DateTime & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + judgeStartedAt: Attribute.DateTime & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + judgeEndedAt: Attribute.DateTime & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + gitTemplates: Attribute.Component<'common.multiple-text', true> & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + enrollments: Attribute.Relation< + 'api::activity.activity', + 'oneToMany', + 'api::enrollment.enrollment' + >; + cooperations: Attribute.Component<'business.cooperation', true> & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + messages: Attribute.Relation< + 'api::activity.activity', + 'oneToMany', + 'api::message.message' + >; + questions: Attribute.Component<'form.field', true> & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; }>; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; + publishedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'plugin::upload.file', + 'api::activity.activity', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'plugin::upload.file', + 'api::activity.activity', 'oneToOne', 'admin::user' > & Attribute.Private; + localizations: Attribute.Relation< + 'api::activity.activity', + 'oneToMany', + 'api::activity.activity' + >; + locale: Attribute.String; }; } -export interface PluginUploadFolder extends Schema.CollectionType { - collectionName: 'upload_folders'; +export interface ApiEnrollmentEnrollment extends Schema.CollectionType { + collectionName: 'enrollments'; info: { - singularName: 'folder'; - pluralName: 'folders'; - displayName: 'Folder'; + singularName: 'enrollment'; + pluralName: 'enrollments'; + displayName: 'Enrollment'; }; - pluginOptions: { - 'content-manager': { - visible: false; - }; - 'content-type-builder': { - visible: false; - }; + options: { + draftAndPublish: false; }; attributes: { - name: Attribute.String & - Attribute.Required & - Attribute.SetMinMax<{ - min: 1; - }>; - pathId: Attribute.Integer & Attribute.Required & Attribute.Unique; - parent: Attribute.Relation< - 'plugin::upload.folder', + activity: Attribute.Relation< + 'api::enrollment.enrollment', 'manyToOne', - 'plugin::upload.folder' - >; - children: Attribute.Relation< - 'plugin::upload.folder', - 'oneToMany', - 'plugin::upload.folder' + 'api::activity.activity' >; - files: Attribute.Relation< - 'plugin::upload.folder', - 'oneToMany', - 'plugin::upload.file' + user: Attribute.Relation< + 'api::enrollment.enrollment', + 'manyToOne', + 'plugin::users-permissions.user' >; - path: Attribute.String & + status: Attribute.Enumeration< + ['none', 'pendingApproval', 'approved', 'rejected'] + > & Attribute.Required & - Attribute.SetMinMax<{ - min: 1; - }>; + Attribute.DefaultTo<'none'>; + extensions: Attribute.JSON; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'plugin::upload.folder', + 'api::enrollment.enrollment', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'plugin::upload.folder', + 'api::enrollment.enrollment', 'oneToOne', 'admin::user' > & @@ -482,104 +597,139 @@ export interface PluginUploadFolder extends Schema.CollectionType { }; } -export interface PluginReactIconsIconlibrary extends Schema.CollectionType { - collectionName: 'iconlibrary'; +export interface ApiMessageMessage extends Schema.CollectionType { + collectionName: 'messages'; info: { - singularName: 'iconlibrary'; - pluralName: 'iconlibraries'; - displayName: 'IconLibrary'; + singularName: 'message'; + pluralName: 'messages'; + displayName: 'Message'; + description: ''; }; options: { draftAndPublish: false; - comment: ''; }; pluginOptions: { - 'content-manager': { - visible: false; - }; - 'content-type-builder': { - visible: false; + i18n: { + localized: true; }; }; attributes: { - name: Attribute.String & Attribute.Required; - abbreviation: Attribute.String & + title: Attribute.String & Attribute.Required & - Attribute.Unique & - Attribute.SetMinMaxLength<{ - maxLength: 3; + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; }>; - isEnabled: Attribute.Boolean & Attribute.DefaultTo; + content: Attribute.Text & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + activity: Attribute.Relation< + 'api::message.message', + 'manyToOne', + 'api::activity.activity' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'plugin::react-icons.iconlibrary', + 'api::message.message', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'plugin::react-icons.iconlibrary', + 'api::message.message', 'oneToOne', 'admin::user' > & Attribute.Private; + localizations: Attribute.Relation< + 'api::message.message', + 'oneToMany', + 'api::message.message' + >; + locale: Attribute.String; }; } -export interface PluginI18NLocale extends Schema.CollectionType { - collectionName: 'i18n_locale'; +export interface ApiOrganizationOrganization extends Schema.CollectionType { + collectionName: 'organizations'; info: { - singularName: 'locale'; - pluralName: 'locales'; - collectionName: 'locales'; - displayName: 'Locale'; + singularName: 'organization'; + pluralName: 'organizations'; + displayName: 'Organization'; description: ''; }; options: { draftAndPublish: false; }; pluginOptions: { - 'content-manager': { - visible: false; - }; - 'content-type-builder': { - visible: false; + i18n: { + localized: true; }; }; attributes: { name: Attribute.String & - Attribute.SetMinMax<{ - min: 1; - max: 50; + Attribute.Required & + Attribute.Unique & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + description: Attribute.String & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + logo: Attribute.Media & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + url: Attribute.String & + Attribute.Unique & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; }>; - code: Attribute.String & Attribute.Unique; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'plugin::i18n.locale', + 'api::organization.organization', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'plugin::i18n.locale', + 'api::organization.organization', 'oneToOne', 'admin::user' > & Attribute.Private; + localizations: Attribute.Relation< + 'api::organization.organization', + 'oneToMany', + 'api::organization.organization' + >; + locale: Attribute.String; }; } -export interface PluginUsersPermissionsPermission - extends Schema.CollectionType { - collectionName: 'up_permissions'; +export interface PluginUploadFile extends Schema.CollectionType { + collectionName: 'files'; info: { - name: 'permission'; + singularName: 'file'; + pluralName: 'files'; + displayName: 'File'; description: ''; - singularName: 'permission'; - pluralName: 'permissions'; - displayName: 'Permission'; }; pluginOptions: { 'content-manager': { @@ -590,74 +740,43 @@ export interface PluginUsersPermissionsPermission }; }; attributes: { - action: Attribute.String & Attribute.Required; - role: Attribute.Relation< - 'plugin::users-permissions.permission', + name: Attribute.String & Attribute.Required; + alternativeText: Attribute.String; + caption: Attribute.String; + width: Attribute.Integer; + height: Attribute.Integer; + formats: Attribute.JSON; + hash: Attribute.String & Attribute.Required; + ext: Attribute.String; + mime: Attribute.String & Attribute.Required; + size: Attribute.Decimal & Attribute.Required; + url: Attribute.String & Attribute.Required; + previewUrl: Attribute.String; + provider: Attribute.String & Attribute.Required; + provider_metadata: Attribute.JSON; + related: Attribute.Relation<'plugin::upload.file', 'morphToMany'>; + folder: Attribute.Relation< + 'plugin::upload.file', 'manyToOne', - 'plugin::users-permissions.role' - >; - createdAt: Attribute.DateTime; - updatedAt: Attribute.DateTime; - createdBy: Attribute.Relation< - 'plugin::users-permissions.permission', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - updatedBy: Attribute.Relation< - 'plugin::users-permissions.permission', - 'oneToOne', - 'admin::user' + 'plugin::upload.folder' > & Attribute.Private; - }; -} - -export interface PluginUsersPermissionsRole extends Schema.CollectionType { - collectionName: 'up_roles'; - info: { - name: 'role'; - description: ''; - singularName: 'role'; - pluralName: 'roles'; - displayName: 'Role'; - }; - pluginOptions: { - 'content-manager': { - visible: false; - }; - 'content-type-builder': { - visible: false; - }; - }; - attributes: { - name: Attribute.String & + folderPath: Attribute.String & Attribute.Required & - Attribute.SetMinMaxLength<{ - minLength: 3; + Attribute.Private & + Attribute.SetMinMax<{ + min: 1; }>; - description: Attribute.String; - type: Attribute.String & Attribute.Unique; - permissions: Attribute.Relation< - 'plugin::users-permissions.role', - 'oneToMany', - 'plugin::users-permissions.permission' - >; - users: Attribute.Relation< - 'plugin::users-permissions.role', - 'oneToMany', - 'plugin::users-permissions.user' - >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'plugin::users-permissions.role', + 'plugin::upload.file', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'plugin::users-permissions.role', + 'plugin::upload.file', 'oneToOne', 'admin::user' > & @@ -665,61 +784,58 @@ export interface PluginUsersPermissionsRole extends Schema.CollectionType { }; } -export interface PluginUsersPermissionsUser extends Schema.CollectionType { - collectionName: 'up_users'; +export interface PluginUploadFolder extends Schema.CollectionType { + collectionName: 'upload_folders'; info: { - name: 'user'; - description: ''; - singularName: 'user'; - pluralName: 'users'; - displayName: 'User'; + singularName: 'folder'; + pluralName: 'folders'; + displayName: 'Folder'; }; - options: { - draftAndPublish: false; + pluginOptions: { + 'content-manager': { + visible: false; + }; + 'content-type-builder': { + visible: false; + }; }; attributes: { - username: Attribute.String & - Attribute.Required & - Attribute.Unique & - Attribute.SetMinMaxLength<{ - minLength: 3; - }>; - email: Attribute.Email & + name: Attribute.String & Attribute.Required & - Attribute.SetMinMaxLength<{ - minLength: 6; - }>; - provider: Attribute.String; - password: Attribute.Password & - Attribute.Private & - Attribute.SetMinMaxLength<{ - minLength: 6; + Attribute.SetMinMax<{ + min: 1; }>; - resetPasswordToken: Attribute.String & Attribute.Private; - confirmationToken: Attribute.String & Attribute.Private; - confirmed: Attribute.Boolean & Attribute.DefaultTo; - blocked: Attribute.Boolean & Attribute.DefaultTo; - role: Attribute.Relation< - 'plugin::users-permissions.user', + pathId: Attribute.Integer & Attribute.Required & Attribute.Unique; + parent: Attribute.Relation< + 'plugin::upload.folder', 'manyToOne', - 'plugin::users-permissions.role' + 'plugin::upload.folder' >; - gender: Attribute.Enumeration<['Female', 'Male', 'Other']>; - enrollments: Attribute.Relation< - 'plugin::users-permissions.user', + children: Attribute.Relation< + 'plugin::upload.folder', 'oneToMany', - 'api::enrollment.enrollment' + 'plugin::upload.folder' + >; + files: Attribute.Relation< + 'plugin::upload.folder', + 'oneToMany', + 'plugin::upload.file' >; + path: Attribute.String & + Attribute.Required & + Attribute.SetMinMax<{ + min: 1; + }>; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'plugin::users-permissions.user', + 'plugin::upload.folder', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'plugin::users-permissions.user', + 'plugin::upload.folder', 'oneToOne', 'admin::user' > & @@ -727,233 +843,88 @@ export interface PluginUsersPermissionsUser extends Schema.CollectionType { }; } -export interface ApiActivityActivity extends Schema.CollectionType { - collectionName: 'activities'; +export interface PluginReactIconsIconlibrary extends Schema.CollectionType { + collectionName: 'iconlibrary'; info: { - singularName: 'activity'; - pluralName: 'activities'; - displayName: 'Activity'; - description: ''; + singularName: 'iconlibrary'; + pluralName: 'iconlibraries'; + displayName: 'IconLibrary'; }; options: { - draftAndPublish: true; + draftAndPublish: false; + comment: ''; }; pluginOptions: { - i18n: { - localized: true; + 'content-manager': { + visible: false; + }; + 'content-type-builder': { + visible: false; }; }; attributes: { - name: Attribute.String & - Attribute.Required & - Attribute.Unique & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - displayName: Attribute.String & - Attribute.Required & - Attribute.Unique & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - ribbon: Attribute.String & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - summary: Attribute.String & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - detail: Attribute.RichText & - Attribute.Required & - Attribute.CustomField< - 'plugin::ckeditor.CKEditor', - { - output: 'HTML'; - preset: 'rich'; - } - > & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - banners: Attribute.Media & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - status: Attribute.Enumeration< - ['planning', 'pendingApproval', 'online', 'offline'] - > & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }> & - Attribute.DefaultTo<'planning'>; - creator: Attribute.Relation< - 'api::activity.activity', - 'oneToOne', - 'plugin::users-permissions.user' - >; - maxEnrollment: Attribute.Integer & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }> & - Attribute.SetMinMax<{ - min: 0; - }>; - tags: Attribute.String & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - eventStartedAt: Attribute.DateTime & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - eventEndedAt: Attribute.DateTime & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - enrollmentStartedAt: Attribute.DateTime & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - enrollmentEndedAt: Attribute.DateTime & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - judgeStartedAt: Attribute.DateTime & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - judgeEndedAt: Attribute.DateTime & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - gitTemplates: Attribute.Component<'common.multiple-text', true> & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - enrollments: Attribute.Relation< - 'api::activity.activity', - 'oneToMany', - 'api::enrollment.enrollment' - >; - questionnaire: Attribute.Relation< - 'api::activity.activity', - 'oneToOne', - 'api::questionnaire.questionnaire' - >; - cooperations: Attribute.Component<'business.cooperation', true> & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; + name: Attribute.String & Attribute.Required; + abbreviation: Attribute.String & + Attribute.Required & + Attribute.Unique & + Attribute.SetMinMaxLength<{ + maxLength: 3; }>; - messages: Attribute.Relation< - 'api::activity.activity', - 'oneToMany', - 'api::message.message' - >; + isEnabled: Attribute.Boolean & Attribute.DefaultTo; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; - publishedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'api::activity.activity', + 'plugin::react-icons.iconlibrary', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'api::activity.activity', + 'plugin::react-icons.iconlibrary', 'oneToOne', 'admin::user' > & Attribute.Private; - localizations: Attribute.Relation< - 'api::activity.activity', - 'oneToMany', - 'api::activity.activity' - >; - locale: Attribute.String; }; } -export interface ApiEnrollmentEnrollment extends Schema.CollectionType { - collectionName: 'enrollments'; +export interface PluginI18NLocale extends Schema.CollectionType { + collectionName: 'i18n_locale'; info: { - singularName: 'enrollment'; - pluralName: 'enrollments'; - displayName: 'Enrollment'; + singularName: 'locale'; + pluralName: 'locales'; + collectionName: 'locales'; + displayName: 'Locale'; + description: ''; }; options: { draftAndPublish: false; }; + pluginOptions: { + 'content-manager': { + visible: false; + }; + 'content-type-builder': { + visible: false; + }; + }; attributes: { - activity: Attribute.Relation< - 'api::enrollment.enrollment', - 'manyToOne', - 'api::activity.activity' - >; - user: Attribute.Relation< - 'api::enrollment.enrollment', - 'manyToOne', - 'plugin::users-permissions.user' - >; - status: Attribute.Enumeration< - ['none', 'pendingApproval', 'approved', 'rejected'] - > & - Attribute.Required & - Attribute.DefaultTo<'none'>; - extensions: Attribute.JSON; + name: Attribute.String & + Attribute.SetMinMax<{ + min: 1; + max: 50; + }>; + code: Attribute.String & Attribute.Unique; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'api::enrollment.enrollment', + 'plugin::i18n.locale', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'api::enrollment.enrollment', + 'plugin::i18n.locale', 'oneToOne', 'admin::user' > & @@ -961,181 +932,159 @@ export interface ApiEnrollmentEnrollment extends Schema.CollectionType { }; } -export interface ApiMessageMessage extends Schema.CollectionType { - collectionName: 'messages'; +export interface PluginUsersPermissionsPermission + extends Schema.CollectionType { + collectionName: 'up_permissions'; info: { - singularName: 'message'; - pluralName: 'messages'; - displayName: 'Message'; + name: 'permission'; description: ''; - }; - options: { - draftAndPublish: false; + singularName: 'permission'; + pluralName: 'permissions'; + displayName: 'Permission'; }; pluginOptions: { - i18n: { - localized: true; + 'content-manager': { + visible: false; + }; + 'content-type-builder': { + visible: false; }; }; attributes: { - title: Attribute.String & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - content: Attribute.Text & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - activity: Attribute.Relation< - 'api::message.message', + action: Attribute.String & Attribute.Required; + role: Attribute.Relation< + 'plugin::users-permissions.permission', 'manyToOne', - 'api::activity.activity' + 'plugin::users-permissions.role' >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'api::message.message', + 'plugin::users-permissions.permission', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'api::message.message', + 'plugin::users-permissions.permission', 'oneToOne', 'admin::user' > & Attribute.Private; - localizations: Attribute.Relation< - 'api::message.message', - 'oneToMany', - 'api::message.message' - >; - locale: Attribute.String; }; } -export interface ApiOrganizationOrganization extends Schema.CollectionType { - collectionName: 'organizations'; +export interface PluginUsersPermissionsRole extends Schema.CollectionType { + collectionName: 'up_roles'; info: { - singularName: 'organization'; - pluralName: 'organizations'; - displayName: 'Organization'; + name: 'role'; description: ''; - }; - options: { - draftAndPublish: false; + singularName: 'role'; + pluralName: 'roles'; + displayName: 'Role'; }; pluginOptions: { - i18n: { - localized: true; + 'content-manager': { + visible: false; + }; + 'content-type-builder': { + visible: false; }; }; attributes: { name: Attribute.String & Attribute.Required & - Attribute.Unique & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - description: Attribute.String & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - logo: Attribute.Media & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - url: Attribute.String & - Attribute.Unique & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; + Attribute.SetMinMaxLength<{ + minLength: 3; }>; + description: Attribute.String; + type: Attribute.String & Attribute.Unique; + permissions: Attribute.Relation< + 'plugin::users-permissions.role', + 'oneToMany', + 'plugin::users-permissions.permission' + >; + users: Attribute.Relation< + 'plugin::users-permissions.role', + 'oneToMany', + 'plugin::users-permissions.user' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'api::organization.organization', + 'plugin::users-permissions.role', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'api::organization.organization', + 'plugin::users-permissions.role', 'oneToOne', 'admin::user' > & Attribute.Private; - localizations: Attribute.Relation< - 'api::organization.organization', - 'oneToMany', - 'api::organization.organization' - >; - locale: Attribute.String; }; } -export interface ApiQuestionnaireQuestionnaire extends Schema.CollectionType { - collectionName: 'questionnaires'; +export interface PluginUsersPermissionsUser extends Schema.CollectionType { + collectionName: 'up_users'; info: { - singularName: 'questionnaire'; - pluralName: 'questionnaires'; - displayName: 'Questionnaire'; + name: 'user'; + description: ''; + singularName: 'user'; + pluralName: 'users'; + displayName: 'User'; }; options: { - draftAndPublish: true; - }; - pluginOptions: { - i18n: { - localized: true; - }; + draftAndPublish: false; }; attributes: { - activity: Attribute.Relation< - 'api::questionnaire.questionnaire', - 'oneToOne', - 'api::activity.activity' - >; - extensions: Attribute.Component<'form.field', true> & + username: Attribute.String & Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; + Attribute.Unique & + Attribute.SetMinMaxLength<{ + minLength: 3; + }>; + email: Attribute.Email & + Attribute.Required & + Attribute.SetMinMaxLength<{ + minLength: 6; + }>; + provider: Attribute.String; + password: Attribute.Password & + Attribute.Private & + Attribute.SetMinMaxLength<{ + minLength: 6; }>; + resetPasswordToken: Attribute.String & Attribute.Private; + confirmationToken: Attribute.String & Attribute.Private; + confirmed: Attribute.Boolean & Attribute.DefaultTo; + blocked: Attribute.Boolean & Attribute.DefaultTo; + role: Attribute.Relation< + 'plugin::users-permissions.user', + 'manyToOne', + 'plugin::users-permissions.role' + >; + gender: Attribute.Enumeration<['Female', 'Male', 'Other']>; + enrollments: Attribute.Relation< + 'plugin::users-permissions.user', + 'oneToMany', + 'api::enrollment.enrollment' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; - publishedAt: Attribute.DateTime; createdBy: Attribute.Relation< - 'api::questionnaire.questionnaire', + 'plugin::users-permissions.user', 'oneToOne', 'admin::user' > & Attribute.Private; updatedBy: Attribute.Relation< - 'api::questionnaire.questionnaire', + 'plugin::users-permissions.user', 'oneToOne', 'admin::user' > & Attribute.Private; - localizations: Attribute.Relation< - 'api::questionnaire.questionnaire', - 'oneToMany', - 'api::questionnaire.questionnaire' - >; - locale: Attribute.String; }; } @@ -1149,6 +1098,10 @@ declare module '@strapi/types' { 'admin::api-token-permission': AdminApiTokenPermission; 'admin::transfer-token': AdminTransferToken; 'admin::transfer-token-permission': AdminTransferTokenPermission; + 'api::activity.activity': ApiActivityActivity; + 'api::enrollment.enrollment': ApiEnrollmentEnrollment; + 'api::message.message': ApiMessageMessage; + 'api::organization.organization': ApiOrganizationOrganization; 'plugin::upload.file': PluginUploadFile; 'plugin::upload.folder': PluginUploadFolder; 'plugin::react-icons.iconlibrary': PluginReactIconsIconlibrary; @@ -1156,11 +1109,6 @@ declare module '@strapi/types' { 'plugin::users-permissions.permission': PluginUsersPermissionsPermission; 'plugin::users-permissions.role': PluginUsersPermissionsRole; 'plugin::users-permissions.user': PluginUsersPermissionsUser; - 'api::activity.activity': ApiActivityActivity; - 'api::enrollment.enrollment': ApiEnrollmentEnrollment; - 'api::message.message': ApiMessageMessage; - 'api::organization.organization': ApiOrganizationOrganization; - 'api::questionnaire.questionnaire': ApiQuestionnaireQuestionnaire; } } }