add support for multiple request methods

This commit is contained in:
Art Lowel
2017-11-29 16:47:40 +01:00
parent 84ea88c56b
commit 98a49b3191
5 changed files with 95 additions and 12 deletions

View File

@@ -5,6 +5,12 @@ import {
import { hasValue } from '../../shared/empty.util';
import { CacheEntry } from './cache-entry';
export enum DirtyType {
Created = 'Created',
Updated = 'Updated',
Deleted = 'Deleted'
}
/**
* An interface to represent objects that can be cached
*
@@ -13,6 +19,11 @@ import { CacheEntry } from './cache-entry';
export interface CacheableObject {
uuid?: string;
self: string;
// isNew: boolean;
// dirtyType: DirtyType;
// hasDirtyAttributes: boolean;
// changedAttributes: AttributeDiffh;
// save(): void;
}
/**