add config from development
This commit is contained in:
parent
46ebedabfc
commit
de1f8edf46
33
src/api/message/content-types/message/schema.json
Normal file
33
src/api/message/content-types/message/schema.json
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
"kind": "collectionType",
|
||||||
|
"collectionName": "messages",
|
||||||
|
"info": {
|
||||||
|
"singularName": "message",
|
||||||
|
"pluralName": "messages",
|
||||||
|
"displayName": "message"
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"draftAndPublish": false
|
||||||
|
},
|
||||||
|
"pluginOptions": {},
|
||||||
|
"attributes": {
|
||||||
|
"title": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"email": {
|
||||||
|
"type": "email",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"phone": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "text",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
7
src/api/message/controllers/message.ts
Normal file
7
src/api/message/controllers/message.ts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* message controller
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi'
|
||||||
|
|
||||||
|
export default factories.createCoreController('api::message.message');
|
7
src/api/message/routes/message.ts
Normal file
7
src/api/message/routes/message.ts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* message router
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreRouter('api::message.message');
|
7
src/api/message/services/message.ts
Normal file
7
src/api/message/services/message.ts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* message service
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreService('api::message.message');
|
5
types/generated/components.d.ts
vendored
Normal file
5
types/generated/components.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import type { Schema, Attribute } from '@strapi/strapi';
|
||||||
|
|
||||||
|
declare module '@strapi/types' {
|
||||||
|
export module Shared {}
|
||||||
|
}
|
845
types/generated/contentTypes.d.ts
vendored
Normal file
845
types/generated/contentTypes.d.ts
vendored
Normal file
|
@ -0,0 +1,845 @@
|
||||||
|
import type { Schema, Attribute } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export interface AdminPermission extends Schema.CollectionType {
|
||||||
|
collectionName: 'admin_permissions';
|
||||||
|
info: {
|
||||||
|
name: 'Permission';
|
||||||
|
description: '';
|
||||||
|
singularName: 'permission';
|
||||||
|
pluralName: 'permissions';
|
||||||
|
displayName: 'Permission';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
action: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
actionParameters: Attribute.JSON & Attribute.DefaultTo<{}>;
|
||||||
|
subject: Attribute.String &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
properties: Attribute.JSON & Attribute.DefaultTo<{}>;
|
||||||
|
conditions: Attribute.JSON & Attribute.DefaultTo<[]>;
|
||||||
|
role: Attribute.Relation<'admin::permission', 'manyToOne', 'admin::role'>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'admin::permission',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'admin::permission',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AdminUser extends Schema.CollectionType {
|
||||||
|
collectionName: 'admin_users';
|
||||||
|
info: {
|
||||||
|
name: 'User';
|
||||||
|
description: '';
|
||||||
|
singularName: 'user';
|
||||||
|
pluralName: 'users';
|
||||||
|
displayName: 'User';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
firstname: Attribute.String &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
lastname: Attribute.String &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
username: Attribute.String;
|
||||||
|
email: Attribute.Email &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.Private &
|
||||||
|
Attribute.Unique &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 6;
|
||||||
|
}>;
|
||||||
|
password: Attribute.Password &
|
||||||
|
Attribute.Private &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 6;
|
||||||
|
}>;
|
||||||
|
resetPasswordToken: Attribute.String & Attribute.Private;
|
||||||
|
registrationToken: Attribute.String & Attribute.Private;
|
||||||
|
isActive: Attribute.Boolean &
|
||||||
|
Attribute.Private &
|
||||||
|
Attribute.DefaultTo<false>;
|
||||||
|
roles: Attribute.Relation<'admin::user', 'manyToMany', 'admin::role'> &
|
||||||
|
Attribute.Private;
|
||||||
|
blocked: Attribute.Boolean & Attribute.Private & Attribute.DefaultTo<false>;
|
||||||
|
preferedLanguage: Attribute.String;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<'admin::user', 'oneToOne', 'admin::user'> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<'admin::user', 'oneToOne', 'admin::user'> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AdminRole extends Schema.CollectionType {
|
||||||
|
collectionName: 'admin_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 &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.Unique &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
code: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.Unique &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
description: Attribute.String;
|
||||||
|
users: Attribute.Relation<'admin::role', 'manyToMany', 'admin::user'>;
|
||||||
|
permissions: Attribute.Relation<
|
||||||
|
'admin::role',
|
||||||
|
'oneToMany',
|
||||||
|
'admin::permission'
|
||||||
|
>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<'admin::role', 'oneToOne', 'admin::user'> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<'admin::role', 'oneToOne', 'admin::user'> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AdminApiToken extends Schema.CollectionType {
|
||||||
|
collectionName: 'strapi_api_tokens';
|
||||||
|
info: {
|
||||||
|
name: 'Api Token';
|
||||||
|
singularName: 'api-token';
|
||||||
|
pluralName: 'api-tokens';
|
||||||
|
displayName: 'Api Token';
|
||||||
|
description: '';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
name: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.Unique &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
description: Attribute.String &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}> &
|
||||||
|
Attribute.DefaultTo<''>;
|
||||||
|
type: Attribute.Enumeration<['read-only', 'full-access', 'custom']> &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.DefaultTo<'read-only'>;
|
||||||
|
accessKey: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
lastUsedAt: Attribute.DateTime;
|
||||||
|
permissions: Attribute.Relation<
|
||||||
|
'admin::api-token',
|
||||||
|
'oneToMany',
|
||||||
|
'admin::api-token-permission'
|
||||||
|
>;
|
||||||
|
expiresAt: Attribute.DateTime;
|
||||||
|
lifespan: Attribute.BigInteger;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'admin::api-token',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'admin::api-token',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AdminApiTokenPermission extends Schema.CollectionType {
|
||||||
|
collectionName: 'strapi_api_token_permissions';
|
||||||
|
info: {
|
||||||
|
name: 'API Token Permission';
|
||||||
|
description: '';
|
||||||
|
singularName: 'api-token-permission';
|
||||||
|
pluralName: 'api-token-permissions';
|
||||||
|
displayName: 'API Token Permission';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
action: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
token: Attribute.Relation<
|
||||||
|
'admin::api-token-permission',
|
||||||
|
'manyToOne',
|
||||||
|
'admin::api-token'
|
||||||
|
>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'admin::api-token-permission',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'admin::api-token-permission',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AdminTransferToken extends Schema.CollectionType {
|
||||||
|
collectionName: 'strapi_transfer_tokens';
|
||||||
|
info: {
|
||||||
|
name: 'Transfer Token';
|
||||||
|
singularName: 'transfer-token';
|
||||||
|
pluralName: 'transfer-tokens';
|
||||||
|
displayName: 'Transfer Token';
|
||||||
|
description: '';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
name: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.Unique &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
description: Attribute.String &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}> &
|
||||||
|
Attribute.DefaultTo<''>;
|
||||||
|
accessKey: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
lastUsedAt: Attribute.DateTime;
|
||||||
|
permissions: Attribute.Relation<
|
||||||
|
'admin::transfer-token',
|
||||||
|
'oneToMany',
|
||||||
|
'admin::transfer-token-permission'
|
||||||
|
>;
|
||||||
|
expiresAt: Attribute.DateTime;
|
||||||
|
lifespan: Attribute.BigInteger;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'admin::transfer-token',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'admin::transfer-token',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AdminTransferTokenPermission extends Schema.CollectionType {
|
||||||
|
collectionName: 'strapi_transfer_token_permissions';
|
||||||
|
info: {
|
||||||
|
name: 'Transfer Token Permission';
|
||||||
|
description: '';
|
||||||
|
singularName: 'transfer-token-permission';
|
||||||
|
pluralName: 'transfer-token-permissions';
|
||||||
|
displayName: 'Transfer Token Permission';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
action: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.SetMinMaxLength<{
|
||||||
|
minLength: 1;
|
||||||
|
}>;
|
||||||
|
token: Attribute.Relation<
|
||||||
|
'admin::transfer-token-permission',
|
||||||
|
'manyToOne',
|
||||||
|
'admin::transfer-token'
|
||||||
|
>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'admin::transfer-token-permission',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'admin::transfer-token-permission',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ApiMessageMessage extends Schema.CollectionType {
|
||||||
|
collectionName: 'messages';
|
||||||
|
info: {
|
||||||
|
singularName: 'message';
|
||||||
|
pluralName: 'messages';
|
||||||
|
displayName: 'message';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: false;
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
title: Attribute.String;
|
||||||
|
name: Attribute.String & Attribute.Required;
|
||||||
|
email: Attribute.Email & Attribute.Required;
|
||||||
|
phone: Attribute.String;
|
||||||
|
description: Attribute.Text & Attribute.Required;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'api::message.message',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'api::message.message',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginUploadFile extends Schema.CollectionType {
|
||||||
|
collectionName: 'files';
|
||||||
|
info: {
|
||||||
|
singularName: 'file';
|
||||||
|
pluralName: 'files';
|
||||||
|
displayName: 'File';
|
||||||
|
description: '';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
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'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
folderPath: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.Private &
|
||||||
|
Attribute.SetMinMax<
|
||||||
|
{
|
||||||
|
min: 1;
|
||||||
|
},
|
||||||
|
number
|
||||||
|
>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'plugin::upload.file',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'plugin::upload.file',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginUploadFolder extends Schema.CollectionType {
|
||||||
|
collectionName: 'upload_folders';
|
||||||
|
info: {
|
||||||
|
singularName: 'folder';
|
||||||
|
pluralName: 'folders';
|
||||||
|
displayName: 'Folder';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
name: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.SetMinMax<
|
||||||
|
{
|
||||||
|
min: 1;
|
||||||
|
},
|
||||||
|
number
|
||||||
|
>;
|
||||||
|
pathId: Attribute.Integer & Attribute.Required & Attribute.Unique;
|
||||||
|
parent: Attribute.Relation<
|
||||||
|
'plugin::upload.folder',
|
||||||
|
'manyToOne',
|
||||||
|
'plugin::upload.folder'
|
||||||
|
>;
|
||||||
|
children: Attribute.Relation<
|
||||||
|
'plugin::upload.folder',
|
||||||
|
'oneToMany',
|
||||||
|
'plugin::upload.folder'
|
||||||
|
>;
|
||||||
|
files: Attribute.Relation<
|
||||||
|
'plugin::upload.folder',
|
||||||
|
'oneToMany',
|
||||||
|
'plugin::upload.file'
|
||||||
|
>;
|
||||||
|
path: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
Attribute.SetMinMax<
|
||||||
|
{
|
||||||
|
min: 1;
|
||||||
|
},
|
||||||
|
number
|
||||||
|
>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'plugin::upload.folder',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'plugin::upload.folder',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginContentReleasesRelease extends Schema.CollectionType {
|
||||||
|
collectionName: 'strapi_releases';
|
||||||
|
info: {
|
||||||
|
singularName: 'release';
|
||||||
|
pluralName: 'releases';
|
||||||
|
displayName: 'Release';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: false;
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
name: Attribute.String & Attribute.Required;
|
||||||
|
releasedAt: Attribute.DateTime;
|
||||||
|
scheduledAt: Attribute.DateTime;
|
||||||
|
timezone: Attribute.String;
|
||||||
|
status: Attribute.Enumeration<
|
||||||
|
['ready', 'blocked', 'failed', 'done', 'empty']
|
||||||
|
> &
|
||||||
|
Attribute.Required;
|
||||||
|
actions: Attribute.Relation<
|
||||||
|
'plugin::content-releases.release',
|
||||||
|
'oneToMany',
|
||||||
|
'plugin::content-releases.release-action'
|
||||||
|
>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'plugin::content-releases.release',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'plugin::content-releases.release',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginContentReleasesReleaseAction
|
||||||
|
extends Schema.CollectionType {
|
||||||
|
collectionName: 'strapi_release_actions';
|
||||||
|
info: {
|
||||||
|
singularName: 'release-action';
|
||||||
|
pluralName: 'release-actions';
|
||||||
|
displayName: 'Release Action';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: false;
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
type: Attribute.Enumeration<['publish', 'unpublish']> & Attribute.Required;
|
||||||
|
entry: Attribute.Relation<
|
||||||
|
'plugin::content-releases.release-action',
|
||||||
|
'morphToOne'
|
||||||
|
>;
|
||||||
|
contentType: Attribute.String & Attribute.Required;
|
||||||
|
locale: Attribute.String;
|
||||||
|
release: Attribute.Relation<
|
||||||
|
'plugin::content-releases.release-action',
|
||||||
|
'manyToOne',
|
||||||
|
'plugin::content-releases.release'
|
||||||
|
>;
|
||||||
|
isEntryValid: Attribute.Boolean;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'plugin::content-releases.release-action',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'plugin::content-releases.release-action',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginI18NLocale extends Schema.CollectionType {
|
||||||
|
collectionName: 'i18n_locale';
|
||||||
|
info: {
|
||||||
|
singularName: 'locale';
|
||||||
|
pluralName: 'locales';
|
||||||
|
collectionName: 'locales';
|
||||||
|
displayName: 'Locale';
|
||||||
|
description: '';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: false;
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
name: Attribute.String &
|
||||||
|
Attribute.SetMinMax<
|
||||||
|
{
|
||||||
|
min: 1;
|
||||||
|
max: 50;
|
||||||
|
},
|
||||||
|
number
|
||||||
|
>;
|
||||||
|
code: Attribute.String & Attribute.Unique;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'plugin::i18n.locale',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'plugin::i18n.locale',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginUsersPermissionsPermission
|
||||||
|
extends Schema.CollectionType {
|
||||||
|
collectionName: 'up_permissions';
|
||||||
|
info: {
|
||||||
|
name: 'permission';
|
||||||
|
description: '';
|
||||||
|
singularName: 'permission';
|
||||||
|
pluralName: 'permissions';
|
||||||
|
displayName: 'Permission';
|
||||||
|
};
|
||||||
|
pluginOptions: {
|
||||||
|
'content-manager': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
action: Attribute.String & Attribute.Required;
|
||||||
|
role: Attribute.Relation<
|
||||||
|
'plugin::users-permissions.permission',
|
||||||
|
'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'
|
||||||
|
> &
|
||||||
|
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 &
|
||||||
|
Attribute.Required &
|
||||||
|
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<
|
||||||
|
'plugin::users-permissions.role',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'plugin::users-permissions.role',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginUsersPermissionsUser extends Schema.CollectionType {
|
||||||
|
collectionName: 'up_users';
|
||||||
|
info: {
|
||||||
|
name: 'user';
|
||||||
|
description: '';
|
||||||
|
singularName: 'user';
|
||||||
|
pluralName: 'users';
|
||||||
|
displayName: 'User';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: false;
|
||||||
|
timestamps: true;
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
username: Attribute.String &
|
||||||
|
Attribute.Required &
|
||||||
|
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<false>;
|
||||||
|
blocked: Attribute.Boolean & Attribute.DefaultTo<false>;
|
||||||
|
role: Attribute.Relation<
|
||||||
|
'plugin::users-permissions.user',
|
||||||
|
'manyToOne',
|
||||||
|
'plugin::users-permissions.role'
|
||||||
|
>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'plugin::users-permissions.user',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'plugin::users-permissions.user',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module '@strapi/types' {
|
||||||
|
export module Shared {
|
||||||
|
export interface ContentTypes {
|
||||||
|
'admin::permission': AdminPermission;
|
||||||
|
'admin::user': AdminUser;
|
||||||
|
'admin::role': AdminRole;
|
||||||
|
'admin::api-token': AdminApiToken;
|
||||||
|
'admin::api-token-permission': AdminApiTokenPermission;
|
||||||
|
'admin::transfer-token': AdminTransferToken;
|
||||||
|
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
||||||
|
'api::message.message': ApiMessageMessage;
|
||||||
|
'plugin::upload.file': PluginUploadFile;
|
||||||
|
'plugin::upload.folder': PluginUploadFolder;
|
||||||
|
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||||
|
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||||
|
'plugin::i18n.locale': PluginI18NLocale;
|
||||||
|
'plugin::users-permissions.permission': PluginUsersPermissionsPermission;
|
||||||
|
'plugin::users-permissions.role': PluginUsersPermissionsRole;
|
||||||
|
'plugin::users-permissions.user': PluginUsersPermissionsUser;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user