-
- trash(uuid: string): Promise<CollectionResource> {
- return this.serverApi
- .post(this.resourceType + `${uuid}/trash`)
- .then(CommonResourceService.mapResponseKeys);
- }
-
- untrash(uuid: string): Promise<CollectionResource> {
- const params = {
- ensure_unique_name: true
- };
- return this.serverApi
- .post(this.resourceType + `${uuid}/untrash`, {
- params: CommonResourceService.mapKeys(_.snakeCase)(params)
- })
- .then(CommonResourceService.mapResponseKeys);
- }
-