feat: implement entity patch
Build Test / test (pull_request) Successful in 35s
JS Unit Tests / test (pull_request) Failing after 34s
PHP Unit Tests / test (pull_request) Successful in 1m9s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-05-20 21:37:14 -04:00
parent aff17840ed
commit 453d720046
5 changed files with 117 additions and 43 deletions
+17 -2
View File
@@ -128,15 +128,30 @@ export interface EntityUpdateRequest<T = MessageInterface> {
export interface EntityUpdateResponse<T = MessageInterface> extends EntityInterface<T> {}
/**
* Entity patch
*/
export interface EntityPatchRequest<T = MessageInterface> {
properties: T;
targets: EntityIdentifier[];
}
export interface EntityPatchResponse{
[targetIdentifier: EntityIdentifier]: {
disposition: 'patched' | 'error';
error?: string;
};
}
/**
* Entity delete
*/
export interface EntityDeleteRequest {
sources: EntityIdentifier[];
targets: EntityIdentifier[];
}
export interface EntityDeleteResponse {
[sourceIdentifier: EntityIdentifier]: {
[targetIdentifier: EntityIdentifier]: {
disposition: 'deleted' | 'moved' | 'error';
destination: CollectionIdentifier | null;
mutation: EntityIdentifier | null;