Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 729cf62

Browse files
authored
Merge pull request #115 from Alfresco/dev-eromano-description-improve
improve description file
2 parents 7a2d0a8 + d3e692f commit 729cf62

File tree

1 file changed

+7
-126
lines changed

1 file changed

+7
-126
lines changed

index.d.ts

Lines changed: 7 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ declare namespace AlfrescoApi {
99
Activiti: Activiti;
1010
Auth: Auth;
1111
Core: Core;
12-
Mock: Mock;
1312

1413
bpmAuth: BpmAuthApi;
1514
ecmAuth: EcmAuthApi;
@@ -23,9 +22,9 @@ declare namespace AlfrescoApi {
2322
upload: any;
2423
webScript: any;
2524

26-
changeEcmHost(ecmHost: string);
27-
changeBpmHost(bpmHost: string);
28-
changeCsrfConfig(disableCsrf: boolean);
25+
changeEcmHost(ecmHost: string): void;
26+
changeBpmHost(bpmHost: string): void;
27+
changeCsrfConfig(disableCsrf: boolean): void;
2928

3029
getNodeInfo(nodeId: string): Promise<MinimalNodeEntryEntity>;
3130
deleteNode(nodeId: string): any;
@@ -186,124 +185,6 @@ declare namespace AlfrescoApi {
186185
export interface Auth {
187186
}
188187

189-
export interface AuthMock {
190-
new(host: string, username: string, password: string): AuthMock;
191-
get201Response(forceTicket: string);
192-
get403Response();
193-
get400Response();
194-
get401Response();
195-
get204ResponseLogout();
196-
get404ResponseLogout();
197-
rec();
198-
play();
199-
clearAll();
200-
}
201-
202-
export interface NodeMock {
203-
new(host: string): NodeMock;
204-
get200ResponseChildren();
205-
get200ResponseSingleFileFolder();
206-
get404ChildrenNotExist();
207-
get404FileFolderNotExist();
208-
get204SuccessfullyDeleted();
209-
get403DeletePermissionDenied();
210-
get404DeleteNotFound();
211-
get404DeletePermanentlyNotFound() ;
212-
get200CreationFolder();
213-
get409CreationFolderNewNameClashes();
214-
get201CreationFolderNewNameNotClashes();
215-
rec();
216-
play();
217-
clearAll();
218-
}
219-
220-
export interface UploadMock {
221-
new(host: string): UploadMock;
222-
get201CreationFile();
223-
get201CreationFileAutoRename();
224-
get409CreationFileNewNameClashes();
225-
get401Response();
226-
rec();
227-
play();
228-
clearAll();
229-
}
230-
231-
export interface WebScriptMock {
232-
new(host: string): WebScriptMock;
233-
get200Response();
234-
get400Response();
235-
rec();
236-
play();
237-
clearAll();
238-
}
239-
240-
export interface TagMock {
241-
new(host: string): TagMock;
242-
get200Response();
243-
get401Response();
244-
rec();
245-
play();
246-
clearAll();
247-
}
248-
249-
export interface RenditionMock {
250-
new(host: string): RenditionMock;
251-
get200RenditionList();
252-
createRendition200();
253-
get200RenditionResponse();
254-
rec();
255-
play();
256-
clearAll();
257-
}
258-
259-
export interface ModelsMock {
260-
new(host: string): ModelsMock;
261-
get200Response();
262-
rec();
263-
play();
264-
clearAll();
265-
}
266-
267-
export interface Mock {
268-
Auth: AuthMock;
269-
Node: NodeMock;
270-
Upload: UploadMock;
271-
WebScript: WebScriptMock;
272-
ActivitiMock: ActivitiMock;
273-
Tag: TagMock;
274-
Models: ModelsMock;
275-
UserFilters: UserFiltersMock;
276-
Rendition: RenditionMock;
277-
}
278-
279-
export interface ActivitiMock {
280-
Auth: ActivitiAuthMock;
281-
Process: ProcessMock;
282-
Tasks: TasksMock;
283-
}
284-
285-
export interface UserFiltersMock {
286-
new(host: string, username: string, password: string): UserFiltersMock;
287-
get200getUserTaskFilters();
288-
}
289-
290-
export interface ActivitiAuthMock {
291-
new(host: string, username: string, password: string): ActivitiAuthMock;
292-
get200Response();
293-
get200ResponseLogout();
294-
get401Response();
295-
}
296-
297-
export interface ProcessMock {
298-
new(host: string): ProcessMock;
299-
get200Response();
300-
}
301-
302-
export interface TasksMock {
303-
new(host: string): TasksMock;
304-
get200Response();
305-
}
306-
307188
export interface NodesApi {
308189
new(client: ApiClient): NodesApi;
309190
getNodeInfo(nodeId: string): Promise<MinimalNodeEntryEntity>;
@@ -315,7 +196,7 @@ declare namespace AlfrescoApi {
315196
purgeDeletedNode(nodeId: string): Promise<any>;
316197
getDeletedNode(nodeId: string, opts: any): Promise<DeletedNodeEntity>;
317198
restoreNode(nodeId: string): Promise<MinimalNodeEntity>;
318-
addNode(nodeId: string, nodeBody: any, opts: any);
199+
addNode(nodeId: string, nodeBody: any, opts: any): any;
319200
}
320201

321202
export interface ApiClient {
@@ -596,7 +477,7 @@ declare namespace AlfrescoApi {
596477
}
597478

598479
export interface ContentApi {
599-
new(ecmAuth: any);
480+
new(ecmAuth: any): ContentApi;
600481

601482
getDocumentThumbnailUrl(documentId: string): string;
602483
getDocumentPreviewUrl(documentId: string): string;
@@ -606,10 +487,10 @@ declare namespace AlfrescoApi {
606487
export interface AuthApi {
607488
new(config: AlfrescoApiConfig): AuthApi;
608489

609-
changeHost(host: string);
490+
changeHost(host: string): void;
610491
login(username: string, password: string): Promise<string>;
611492
logout(): Promise<string>;
612-
setTicket(ticket: string);
493+
setTicket(ticket: string): void;
613494
getTicket(): string;
614495
isLoggedIn(): boolean;
615496

0 commit comments

Comments
 (0)