Use alfresco-core-rest-api to fetch doclib items

Refs #7
This commit is contained in:
Will Abson
2016-05-06 13:48:00 +01:00
parent a8ba9203de
commit e619ff661c
12 changed files with 187 additions and 76 deletions

View File

@@ -65,3 +65,53 @@ export class LocationEntity {
export class LocationParentEntity {
nodeRef: string;
}
export class NodePaging {
list: NodePagingList;
}
export class NodePagingList {
entries: MinimalNodeEntity[];
}
export class MinimalNodeEntity {
entry: MinimalNodeEntryEntity;
}
export class MinimalNodeEntryEntity {
id: string;
parentId: string;
name: string;
nodeType: string;
isFolder: boolean;
isFile: boolean;
modifiedAt: string;
modifiedByUser: UserInfo;
createdAt: string;
createdByUser: UserInfo;
content: ContentInfo;
path: PathInfoEntity
}
export class UserInfo {
displayName: string;
id: string;
}
export class ContentInfo {
mimeType: string;
mimeTypeName: string;
sizeInBytes: number;
encoding: string;
}
export class PathInfoEntity {
elements: PathElementEntity;
isComplete: boolean;
name: string
}
export class PathElementEntity {
id: string;
name: string;
}