0.12.5
Some checks failed
Build release Docker image / Build Docker Images (push) Failing after 2m4s
Some checks failed
Build release Docker image / Build Docker Images (push) Failing after 2m4s
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "chat_conversation_members",
|
||||
"info": {
|
||||
"singularName": "chat-conversation-member",
|
||||
"pluralName": "chat-conversation-members",
|
||||
"displayName": "ChatConversationMember"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"user": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
},
|
||||
"role": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"member",
|
||||
"admin",
|
||||
"owner"
|
||||
]
|
||||
},
|
||||
"joinedAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"lastReadAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"conversation": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::chat-conversation.chat-conversation"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation-member controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::chat-conversation-member.chat-conversation-member');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation-member router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::chat-conversation-member.chat-conversation-member');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation-member service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::chat-conversation-member.chat-conversation-member');
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "chat_conversations",
|
||||
"info": {
|
||||
"singularName": "chat-conversation",
|
||||
"pluralName": "chat-conversations",
|
||||
"displayName": "ChatConversation",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"isGroup": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"creator": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
},
|
||||
"messages": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::chat-message.chat-message"
|
||||
},
|
||||
"users": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "plugin::users-permissions.user"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::chat-conversation.chat-conversation');
|
||||
7
src/api/chat-conversation/routes/chat-conversation.ts
Normal file
7
src/api/chat-conversation/routes/chat-conversation.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::chat-conversation.chat-conversation');
|
||||
7
src/api/chat-conversation/services/chat-conversation.ts
Normal file
7
src/api/chat-conversation/services/chat-conversation.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::chat-conversation.chat-conversation');
|
||||
31
src/api/chat-message/content-types/chat-message/schema.json
Normal file
31
src/api/chat-message/content-types/chat-message/schema.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "chat_messages",
|
||||
"info": {
|
||||
"singularName": "chat-message",
|
||||
"pluralName": "chat-messages",
|
||||
"displayName": "ChatMessage"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"sender": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
},
|
||||
"content": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"isEdited": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"deletedAt": {
|
||||
"type": "datetime"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/api/chat-message/controllers/chat-message.ts
Normal file
7
src/api/chat-message/controllers/chat-message.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-message controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::chat-message.chat-message');
|
||||
7
src/api/chat-message/routes/chat-message.ts
Normal file
7
src/api/chat-message/routes/chat-message.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-message router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::chat-message.chat-message');
|
||||
7
src/api/chat-message/services/chat-message.ts
Normal file
7
src/api/chat-message/services/chat-message.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-message service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::chat-message.chat-message');
|
||||
File diff suppressed because it is too large
Load Diff
119
types/generated/contentTypes.d.ts
vendored
119
types/generated/contentTypes.d.ts
vendored
@@ -584,6 +584,122 @@ export interface ApiChannelChannel extends Struct.CollectionTypeSchema {
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiChatConversationMemberChatConversationMember
|
||||
extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'chat_conversation_members';
|
||||
info: {
|
||||
displayName: 'ChatConversationMember';
|
||||
pluralName: 'chat-conversation-members';
|
||||
singularName: 'chat-conversation-member';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
conversation: Schema.Attribute.Relation<
|
||||
'oneToOne',
|
||||
'api::chat-conversation.chat-conversation'
|
||||
>;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
joinedAt: Schema.Attribute.DateTime;
|
||||
lastReadAt: Schema.Attribute.DateTime;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::chat-conversation-member.chat-conversation-member'
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
role: Schema.Attribute.Enumeration<['member', 'admin', 'owner']>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
user: Schema.Attribute.Relation<
|
||||
'oneToOne',
|
||||
'plugin::users-permissions.user'
|
||||
>;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiChatConversationChatConversation
|
||||
extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'chat_conversations';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'ChatConversation';
|
||||
pluralName: 'chat-conversations';
|
||||
singularName: 'chat-conversation';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
creator: Schema.Attribute.Relation<
|
||||
'oneToOne',
|
||||
'plugin::users-permissions.user'
|
||||
>;
|
||||
isGroup: Schema.Attribute.Boolean;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::chat-conversation.chat-conversation'
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
messages: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::chat-message.chat-message'
|
||||
>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
title: Schema.Attribute.String;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
users: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'plugin::users-permissions.user'
|
||||
>;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiChatMessageChatMessage extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'chat_messages';
|
||||
info: {
|
||||
displayName: 'ChatMessage';
|
||||
pluralName: 'chat-messages';
|
||||
singularName: 'chat-message';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: false;
|
||||
};
|
||||
attributes: {
|
||||
content: Schema.Attribute.String & Schema.Attribute.Required;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
deletedAt: Schema.Attribute.DateTime;
|
||||
isEdited: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<false>;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::chat-message.chat-message'
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
sender: Schema.Attribute.Relation<
|
||||
'oneToOne',
|
||||
'plugin::users-permissions.user'
|
||||
>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiChoralMembershipChoralMembership
|
||||
extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'choral_memberships';
|
||||
@@ -1947,6 +2063,9 @@ declare module '@strapi/strapi' {
|
||||
'api::board-list.board-list': ApiBoardListBoardList;
|
||||
'api::board.board': ApiBoardBoard;
|
||||
'api::channel.channel': ApiChannelChannel;
|
||||
'api::chat-conversation-member.chat-conversation-member': ApiChatConversationMemberChatConversationMember;
|
||||
'api::chat-conversation.chat-conversation': ApiChatConversationChatConversation;
|
||||
'api::chat-message.chat-message': ApiChatMessageChatMessage;
|
||||
'api::choral-membership.choral-membership': ApiChoralMembershipChoralMembership;
|
||||
'api::choral-permission.choral-permission': ApiChoralPermissionChoralPermission;
|
||||
'api::choral.choral': ApiChoralChoral;
|
||||
|
||||
Reference in New Issue
Block a user