fix: integration tests
parent
c913705752
commit
645580b5ca
|
@ -3,18 +3,7 @@ module.exports = {
|
|||
enabled: true,
|
||||
config: {
|
||||
importOnBootstrap: false,
|
||||
minify: false,
|
||||
customTypes: [
|
||||
{
|
||||
configName: "home",
|
||||
queryString: "api::home.home",
|
||||
uid: ["slug"],
|
||||
components: [
|
||||
"Profile",
|
||||
"Profile.ContactInfo",
|
||||
],
|
||||
}
|
||||
]
|
||||
minify: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -15,11 +15,6 @@
|
|||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"Profile": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "core.profile"
|
||||
},
|
||||
"slug": {
|
||||
"type": "uid",
|
||||
"targetField": "title"
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
"collectionName": "components_core_contact_infos",
|
||||
"info": {
|
||||
"displayName": "ContactInfo"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"Phonenumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"Email": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"collectionName": "components_core_profiles",
|
||||
"info": {
|
||||
"displayName": "Profile",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"ContactInfo": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "core.contact-info"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,33 +1,5 @@
|
|||
import type { Schema, Attribute } from '@strapi/strapi';
|
||||
|
||||
export interface CoreProfile extends Schema.Component {
|
||||
collectionName: 'components_core_profiles';
|
||||
info: {
|
||||
displayName: 'Profile';
|
||||
description: '';
|
||||
};
|
||||
attributes: {
|
||||
title: Attribute.String;
|
||||
ContactInfo: Attribute.Component<'core.contact-info', true>;
|
||||
};
|
||||
}
|
||||
|
||||
export interface CoreContactInfo extends Schema.Component {
|
||||
collectionName: 'components_core_contact_infos';
|
||||
info: {
|
||||
displayName: 'ContactInfo';
|
||||
};
|
||||
attributes: {
|
||||
Phonenumber: Attribute.String;
|
||||
Email: Attribute.String;
|
||||
};
|
||||
}
|
||||
|
||||
declare module '@strapi/types' {
|
||||
export module Shared {
|
||||
export interface Components {
|
||||
'core.profile': CoreProfile;
|
||||
'core.contact-info': CoreContactInfo;
|
||||
}
|
||||
}
|
||||
export module Shared {}
|
||||
}
|
||||
|
|
|
@ -362,6 +362,50 @@ export interface AdminTransferTokenPermission extends Schema.CollectionType {
|
|||
};
|
||||
}
|
||||
|
||||
export interface ApiHomeHome extends Schema.SingleType {
|
||||
collectionName: 'homes';
|
||||
info: {
|
||||
singularName: 'home';
|
||||
pluralName: 'homes';
|
||||
displayName: 'Home';
|
||||
description: '';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
title: Attribute.String;
|
||||
slug: Attribute.UID<'api::home.home', 'title'>;
|
||||
createdAt: Attribute.DateTime;
|
||||
updatedAt: Attribute.DateTime;
|
||||
createdBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
|
||||
Attribute.Private;
|
||||
updatedBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
|
||||
Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiPagePage extends Schema.CollectionType {
|
||||
collectionName: 'pages';
|
||||
info: {
|
||||
singularName: 'page';
|
||||
pluralName: 'pages';
|
||||
displayName: 'Page';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
title: Attribute.String & Attribute.Required;
|
||||
createdAt: Attribute.DateTime;
|
||||
updatedAt: Attribute.DateTime;
|
||||
createdBy: Attribute.Relation<'api::page.page', 'oneToOne', 'admin::user'> &
|
||||
Attribute.Private;
|
||||
updatedBy: Attribute.Relation<'api::page.page', 'oneToOne', 'admin::user'> &
|
||||
Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface PluginUploadFile extends Schema.CollectionType {
|
||||
collectionName: 'files';
|
||||
info: {
|
||||
|
@ -788,51 +832,6 @@ export interface PluginUsersPermissionsUser extends Schema.CollectionType {
|
|||
};
|
||||
}
|
||||
|
||||
export interface ApiHomeHome extends Schema.SingleType {
|
||||
collectionName: 'homes';
|
||||
info: {
|
||||
singularName: 'home';
|
||||
pluralName: 'homes';
|
||||
displayName: 'Home';
|
||||
description: '';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
title: Attribute.String;
|
||||
Profile: Attribute.Component<'core.profile'>;
|
||||
slug: Attribute.UID<'api::home.home', 'title'>;
|
||||
createdAt: Attribute.DateTime;
|
||||
updatedAt: Attribute.DateTime;
|
||||
createdBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
|
||||
Attribute.Private;
|
||||
updatedBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
|
||||
Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiPagePage extends Schema.CollectionType {
|
||||
collectionName: 'pages';
|
||||
info: {
|
||||
singularName: 'page';
|
||||
pluralName: 'pages';
|
||||
displayName: 'Page';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
title: Attribute.String & Attribute.Required;
|
||||
createdAt: Attribute.DateTime;
|
||||
updatedAt: Attribute.DateTime;
|
||||
createdBy: Attribute.Relation<'api::page.page', 'oneToOne', 'admin::user'> &
|
||||
Attribute.Private;
|
||||
updatedBy: Attribute.Relation<'api::page.page', 'oneToOne', 'admin::user'> &
|
||||
Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
declare module '@strapi/types' {
|
||||
export module Shared {
|
||||
export interface ContentTypes {
|
||||
|
@ -843,6 +842,8 @@ declare module '@strapi/types' {
|
|||
'admin::api-token-permission': AdminApiTokenPermission;
|
||||
'admin::transfer-token': AdminTransferToken;
|
||||
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
||||
'api::home.home': ApiHomeHome;
|
||||
'api::page.page': ApiPagePage;
|
||||
'plugin::upload.file': PluginUploadFile;
|
||||
'plugin::upload.folder': PluginUploadFolder;
|
||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||
|
@ -851,8 +852,6 @@ declare module '@strapi/types' {
|
|||
'plugin::users-permissions.permission': PluginUsersPermissionsPermission;
|
||||
'plugin::users-permissions.role': PluginUsersPermissionsRole;
|
||||
'plugin::users-permissions.user': PluginUsersPermissionsUser;
|
||||
'api::home.home': ApiHomeHome;
|
||||
'api::page.page': ApiPagePage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue