@xtreamr/spark-api
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -6,2 +6,19 @@ # Change Log | ||
# [1.1.0](https://github.com/mancas/spark_libs/compare/v1.0.2...v1.1.0) (2019-06-27) | ||
### Bug Fixes | ||
* **spark-scripts:** remove prepublishOnly hook ([878ac50](https://github.com/mancas/spark_libs/commit/878ac50)) | ||
* presets api moved to common API ([0d5141d](https://github.com/mancas/spark_libs/commit/0d5141d)) | ||
### Features | ||
* add presets crud to backoffice api ([5fe097e](https://github.com/mancas/spark_libs/commit/5fe097e)) | ||
# [1.0.0](https://github.com/mancas/spark_libs/compare/v0.3.1...v1.0.0) (2019-05-16) | ||
@@ -8,0 +25,0 @@ |
@@ -152,2 +152,40 @@ import request from '@xtreamr/spark-request'; | ||
}); | ||
}, | ||
getPresets: function getPresets() { | ||
return request({ | ||
method: 'GET', | ||
path: '/presets' | ||
}); | ||
}, | ||
getPreset: function getPreset(presentId) { | ||
return request({ | ||
method: 'GET', | ||
path: '/presets/' + presentId | ||
}); | ||
}, | ||
addPreset: function addPreset(preset) { | ||
return request({ | ||
method: 'POST', | ||
path: '/presets', | ||
body: preset | ||
}); | ||
}, | ||
updatePreset: function updatePreset(presetId, preset) { | ||
return request({ | ||
method: 'POST', | ||
path: '/presets/' + presetId, | ||
body: preset | ||
}); | ||
}, | ||
deletePreset: function deletePreset(presetId) { | ||
return request({ | ||
method: 'DELETE', | ||
path: '/presets/' + presetId | ||
}); | ||
} | ||
@@ -154,0 +192,0 @@ }; |
@@ -163,2 +163,40 @@ 'use strict'; | ||
}); | ||
}, | ||
getPresets: function getPresets() { | ||
return (0, _sparkRequest2.default)({ | ||
method: 'GET', | ||
path: '/presets' | ||
}); | ||
}, | ||
getPreset: function getPreset(presentId) { | ||
return (0, _sparkRequest2.default)({ | ||
method: 'GET', | ||
path: '/presets/' + presentId | ||
}); | ||
}, | ||
addPreset: function addPreset(preset) { | ||
return (0, _sparkRequest2.default)({ | ||
method: 'POST', | ||
path: '/presets', | ||
body: preset | ||
}); | ||
}, | ||
updatePreset: function updatePreset(presetId, preset) { | ||
return (0, _sparkRequest2.default)({ | ||
method: 'POST', | ||
path: '/presets/' + presetId, | ||
body: preset | ||
}); | ||
}, | ||
deletePreset: function deletePreset(presetId) { | ||
return (0, _sparkRequest2.default)({ | ||
method: 'DELETE', | ||
path: '/presets/' + presetId | ||
}); | ||
} | ||
@@ -165,0 +203,0 @@ }; |
{ | ||
"name": "@xtreamr/spark-api", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Describe spark-api here", | ||
@@ -17,3 +17,2 @@ "main": "lib/index.js", | ||
"prepublish": "npm run build", | ||
"prepublishOnly": "npm run build", | ||
"test": "nwb test", | ||
@@ -24,4 +23,4 @@ "test:coverage": "nwb test --coverage", | ||
"dependencies": { | ||
"@xtreamr/spark-polyglot": "^1.0.0", | ||
"@xtreamr/spark-request": "^1.0.0", | ||
"@xtreamr/spark-polyglot": "^1.1.0", | ||
"@xtreamr/spark-request": "^1.1.0", | ||
"moment": "^2.24.0" | ||
@@ -37,3 +36,4 @@ }, | ||
"license": "MIT", | ||
"repository": "" | ||
"repository": "", | ||
"gitHead": "8fd3efaf224059764b073845e278536e4c8b0119" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29378
838