mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
workaround for enum issue in js-api
This commit is contained in:
@@ -26,7 +26,7 @@ import {
|
|||||||
PersonEntry,
|
PersonEntry,
|
||||||
SitePaging,
|
SitePaging,
|
||||||
DeletedNodesPaging,
|
DeletedNodesPaging,
|
||||||
SortDefinitionType
|
SearchRequest
|
||||||
} from 'alfresco-js-api';
|
} from 'alfresco-js-api';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
@@ -45,7 +45,7 @@ export class CustomResourcesService {
|
|||||||
this.apiService.peopleApi.getPerson(personId)
|
this.apiService.peopleApi.getPerson(personId)
|
||||||
.then((person: PersonEntry) => {
|
.then((person: PersonEntry) => {
|
||||||
const username = person.entry.id;
|
const username = person.entry.id;
|
||||||
const query = {
|
const query: SearchRequest = {
|
||||||
query: {
|
query: {
|
||||||
query: '*',
|
query: '*',
|
||||||
language: 'afts'
|
language: 'afts'
|
||||||
@@ -57,7 +57,7 @@ export class CustomResourcesService {
|
|||||||
],
|
],
|
||||||
include: ['path', 'properties', 'allowableOperations'],
|
include: ['path', 'properties', 'allowableOperations'],
|
||||||
sort: [{
|
sort: [{
|
||||||
type: SortDefinitionType.FIELD,
|
type: 'FIELD',
|
||||||
field: 'cm:modified',
|
field: 'cm:modified',
|
||||||
ascending: false
|
ascending: false
|
||||||
}],
|
}],
|
||||||
|
Reference in New Issue
Block a user