Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
[ADF-3289] AppsDefinitionApi contains two methods with same name and …
Browse files Browse the repository at this point in the history
…different firms (#347)

* remove duplicate methods firms

* changelog

* fix travis pipeline
  • Loading branch information
eromano committed Jun 29, 2018
1 parent 92eae7d commit 3a53a7c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

# Alfresco JS API

<a name="2.5.0"></a>
# [2.5.0](https://github.com/Alfresco/alfresco-js-api/releases/tag/2.4.0) (xx-xx-2018)

## Features

## Fixes
[AppsDefinitionApi contains two methods with same name and different firms](https://issues.alfresco.com/jira/browse/ADF-3289)


<a name="2.4.0"></a>
# [2.4.0](https://github.com/Alfresco/alfresco-js-api/releases/tag/2.4.0) (25-06-2018)

Expand Down
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,8 @@ declare namespace AlfrescoApi {

importAppDefinition(file?: File): Promise<AppDefinitionRepresentation>;

importNewAppDefinition(modelId?: number, file?: File): Promise<AppDefinitionRepresentation>;

publishAppDefinition(modelId?: number, publishModel?: AppDefinitionPublishRepresentation): Promise<AppDefinitionUpdateResultRepresentation>;
}

Expand All @@ -2553,7 +2555,7 @@ declare namespace AlfrescoApi {

importAppDefinition(file?: File): Promise<AppDefinitionRepresentation>;

importAppDefinition(modelId?: number, file?: File): Promise<AppDefinitionRepresentation>;
importNewAppDefinition(modelId?: number, file?: File): Promise<AppDefinitionRepresentation>;

publishAppDefinition(modelId?: number, publishModel?: AppDefinitionPublishRepresentation): Promise<AppDefinitionUpdateResultRepresentation>;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-demo-shell-adf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rm -rf $TEMP_ADF_DIR;
echo "====== CLONE ADF ====="

git clone https://$TOKEN@github.com/Alfresco/alfresco-ng2-components.git $TEMP_ADF_DIR
cd $TEMP_ADF_DIR/demo-shell/
cd $TEMP_ADF_DIR/
git checkout master

echo "====== INSTALL Demo Shell ====="
Expand Down
2 changes: 1 addition & 1 deletion src/alfresco-activiti-rest-api/src/api/AppsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
* @param {File} file file
* data is of type: {module:model/AppDefinitionRepresentation}
*/
this.importAppDefinition = function(modelId, file) {
this.importNewAppDefinition = function(modelId, file) {
var postBody = null;

// verify the required parameter 'modelId' is set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
* @param {File} file file
* data is of type: {module:model/AppDefinitionRepresentation}
*/
this.importAppDefinition = function(modelId, file) {
this.importNewAppDefinition = function(modelId, file) {
var postBody = null;

// verify the required parameter 'modelId' is set
Expand Down
2 changes: 1 addition & 1 deletion src/alfresco-core-rest-api/src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
*/
exports.prototype.isFileParam = function(param) {
// fs.ReadStream in Node.js (but not in runtime like browserify)
if(typeof require('fs').ReadStream === 'object') {
if(typeof require('fs').ReadStream) {
if (typeof window === 'undefined' &&
typeof require === 'function' &&
require('fs') &&
Expand Down

0 comments on commit 3a53a7c

Please sign in to comment.