import FilterBuilder from "./filter-builder";
import OrderBuilder from "./order-builder";
import { AxiosInstance } from "axios";
-
-export interface Resource {
- uuid: string;
- ownerUuid: string;
- createdAt: string;
- modifiedByClientUuid: string;
- modifiedByUserUuid: string;
- modifiedAt: string;
- href: string;
- kind: string;
- etag: string;
-}
+import { Resource } from "../../models/resource";
export interface ListArguments {
limit?: number;
create(data: Partial<T>) {
return this.serverApi
- .post<T>(this.resourceType, data)
+ .post<T>(this.resourceType, CommonResourceService.mapKeys(_.snakeCase)(data))
.then(CommonResourceService.mapResponseKeys);
}