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

Commit 8b96367

Browse files
author
Denys Vuika
committed
Add missing typing api, changelog updates
1 parent 5860259 commit 8b96367

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

CHANGELOG.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ _This project provides a JavaScript client API into the v1 Alfresco REST API_
1010
# [0.3.1](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.3.1) (2016-xx-xx)
1111

1212
## Fix
13+
- [Date parser error with Safari](https://github.com/Alfresco/alfresco-js-api/issues/43)
1314

15+
## Features
16+
17+
- Various improvements for TypeScript declaration files
1418

1519
<a name="0.3.0"></a>
1620
# [0.3.0](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.3.0) (2016-08-22)
@@ -30,7 +34,7 @@ this.alfrescoJsApi.loginTicket(ticket).then(function (data) {
3034
console.error(error);
3135
});
3236
```
33-
37+
3438
## Fix
3539

3640
- [Node properties never parsed #35](https://github.com/Alfresco/alfresco-js-api/issues/35)
@@ -49,19 +53,19 @@ Before:
4953
this.alfrescoJsApi = new AlfrescoApi({username, password, alfrescoHost, contextRoot, ticket});
5054
this.alfrescoJsApi.login();
5155
```
52-
56+
5357
After:
54-
58+
5559
```javascript
5660
this.alfrescoJsApi = new AlfrescoApi({hostECM, hostBPM, contextRoot, ticket});
5761
this.alfrescoJsApi.login(username, password);
5862
```
5963

60-
- Hosts configuration
64+
- Hosts configuration
6165

62-
alfrescoHost parameter is now split in two different parameter
66+
alfrescoHost parameter is now split in two different parameter
6367

64-
Property | Description | default value|
68+
Property | Description | default value|
6569
------------- | ------------- | -------------|
6670
hostEcm| (Optional value The Ip or Name of the host where your Alfresco instance is running )|http://127.0.0.1:8080 |
6771
hostBpm| (Optional value The Ip or Name of the host where your Activiti instance is running )|http://127.0.0.1:9999 |
@@ -76,7 +80,7 @@ Before:
7680
```javascript
7781
this.alfrescoJsApi.getTicket();
7882
```
79-
83+
8084
After:
8185

8286
```javascript
@@ -115,7 +119,7 @@ Before:
115119
```javascript
116120
this.alfrescoJsApi.node
117121
```
118-
122+
119123
After:
120124

121125
```javascript
@@ -139,14 +143,14 @@ Before:
139143
loginRequest.password = password;
140144
return apiInstance.createTicket(loginRequest);
141145
```
142-
146+
143147
After:
144-
148+
145149
```javascript
146150
this.alfrescoJsApi = new AlfrescoApi({ username:'admin', password:'admin', host:'http://127.0.0.1:8080'});
147-
//note you don't need anymore to keep the client
151+
//note you don't need anymore to keep the client
148152
```
149-
153+
150154
- Bundle File is now in the dist folder and the name is changed
151155

152156
Before:
@@ -173,7 +177,7 @@ After:
173177

174178
```javascript
175179
this.alfrescoJsApi = new AlfrescoApi({ ticket:'TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1', host:'http://127.0.0.1:8080'});
176-
//note you don't need anymore to keep the client
180+
//note you don't need anymore to keep the client
177181
```
178182
- Login changed
179183

@@ -186,16 +190,16 @@ Before:
186190
loginRequest.userId = username;
187191
loginRequest.password = password;
188192
return apiInstance.createTicket(loginRequest);
189-
193+
190194
```
191195

192196
After:
193197

194198
```javascript
195199
this.alfrescoJsApi = new AlfrescoApi({ username:'admin', password:'admin', host:'http://127.0.0.1:8080'});
196-
200+
197201
this.alfrescoJsApi.login();
198-
```
202+
```
199203
## Features
200204

201205
- Logout
@@ -214,4 +218,3 @@ After:
214218

215219
- chore add alfresco log anf gitter chat in readme
216220
([9547122b](https://github.com/Alfresco/dev-platform-js-api/commit/9547122bc1609c898382016481e6867934e95b73))
217-

typescript/alfresco-js-api.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ interface NodesApi {
234234
getNodeInfo(nodeId: string): Promise<MinimalNodeEntryEntity>;
235235
getNodeChildren(nodeId: string, opts: any): Promise<NodePaging>;
236236
deleteNode(nodeId: string): Promise<any>;
237+
createFolder(name: string, relativePath: string, nodeId?: string, opts?: any): Promise<MinimalNodeEntryEntity>
237238
}
238239

239240
interface ApiClient {

0 commit comments

Comments
 (0)