resource provider and service improvements

This commit is contained in:
root
2026-01-04 21:43:20 -05:00
parent 8f35442335
commit 965d839a8c
9 changed files with 64 additions and 127 deletions

View File

@@ -34,31 +34,28 @@ interface ServiceBaseInterface extends ResourceServiceBaseInterface {
public const CAPABILITY_COLLECTION_LIST_SORT = 'CollectionListSort';
public const CAPABILITY_COLLECTION_EXTANT = 'CollectionExtant';
public const CAPABILITY_COLLECTION_FETCH = 'CollectionFetch';
// Message capabilities
public const CAPABILITY_MESSAGE_LIST = 'MessageList';
public const CAPABILITY_MESSAGE_LIST_FILTER = 'MessageListFilter';
public const CAPABILITY_MESSAGE_LIST_SORT = 'MessageListSort';
public const CAPABILITY_MESSAGE_LIST_RANGE = 'MessageListRange';
public const CAPABILITY_MESSAGE_DELTA = 'MessageDelta';
public const CAPABILITY_MESSAGE_EXTANT = 'MessageExtant';
public const CAPABILITY_MESSAGE_FETCH = 'MessageFetch';
public const CAPABILITY_ENTITY_LIST = 'EntityList';
public const CAPABILITY_ENTITY_LIST_FILTER = 'EntityListFilter';
public const CAPABILITY_ENTITY_LIST_SORT = 'EntityListSort';
public const CAPABILITY_ENTITY_LIST_RANGE = 'EntityListRange';
public const CAPABILITY_ENTITY_DELTA = 'EntityDelta';
public const CAPABILITY_ENTITY_EXTANT = 'EntityExtant';
public const CAPABILITY_ENTITY_FETCH = 'EntityFetch';
// Filter capabilities
public const CAPABILITY_FILTER_ID = 'FilterId';
public const CAPABILITY_FILTER_SUBJECT = 'FilterSubject';
public const CAPABILITY_FILTER_FROM = 'FilterFrom';
public const CAPABILITY_FILTER_TO = 'FilterTo';
public const CAPABILITY_FILTER_DATE = 'FilterDate';
public const CAPABILITY_FILTER_FLAG = 'FilterFlag';
public const CAPABILITY_FILTER_SIZE = 'FilterSize';
public const CAPABILITY_FILTER_BODY = 'FilterBody';
public const CAPABILITY_FILTER_ID = 'id';
public const CAPABILITY_FILTER_SUBJECT = 'subject';
public const CAPABILITY_FILTER_FROM = 'from';
public const CAPABILITY_FILTER_TO = 'to';
public const CAPABILITY_FILTER_DATE = 'date';
public const CAPABILITY_FILTER_FLAG = 'flag';
public const CAPABILITY_FILTER_SIZE = 'size';
public const CAPABILITY_FILTER_BODY = 'body';
// Sort capabilities
public const CAPABILITY_SORT_DATE = 'SortDate';
public const CAPABILITY_SORT_SUBJECT = 'SortSubject';
public const CAPABILITY_SORT_FROM = 'SortFrom';
public const CAPABILITY_SORT_SIZE = 'SortSize';
public const CAPABILITY_SORT_DATE = 'date';
public const CAPABILITY_SORT_SUBJECT = 'subject';
public const CAPABILITY_SORT_FROM = 'from';
public const CAPABILITY_SORT_SIZE = 'size';
public const JSON_TYPE = 'mail.service';
public const JSON_PROPERTY_PRIMARY_ADDRESS = 'primaryAddress';

View File

@@ -22,12 +22,12 @@ use KTXF\Mail\Entity\IMessageMutable;
*/
interface ServiceMessageMutableInterface extends ServiceBaseInterface {
public const CAPABILITY_MESSAGE_CREATE = 'MessageCreate';
public const CAPABILITY_MESSAGE_MODIFY = 'MessageModify';
public const CAPABILITY_MESSAGE_DESTROY = 'MessageDestroy';
public const CAPABILITY_MESSAGE_COPY = 'MessageCopy';
public const CAPABILITY_MESSAGE_MOVE = 'MessageMove';
public const CAPABILITY_MESSAGE_FLAG = 'MessageFlag';
public const CAPABILITY_ENTITY_CREATE = 'EntityCreate';
public const CAPABILITY_ENTITY_MODIFY = 'EntityModify';
public const CAPABILITY_ENTITY_DESTROY = 'EntityDestroy';
public const CAPABILITY_ENTITY_COPY = 'EntityCopy';
public const CAPABILITY_ENTITY_MOVE = 'EntityMove';
public const CAPABILITY_ENTITY_FLAG = 'EntityFlag';
/**
* Creates a fresh message instance for composition