@mapomodule/core
Advanced tools
Comparing version 1.0.0-alpha.13 to 1.0.0-alpha.15
@@ -108,3 +108,18 @@ const transformRequestInMultipart = require('@mapomodule/core/api/multipart') | ||
return endpoint !== null ? func : Promise.reject(endpointError) | ||
} | ||
}, | ||
/** | ||
* This makes a POST http call to the crud endpoint slash update_order. Returns as a promise the server response. | ||
* Use this endpoint to change the order of the items in the list. | ||
* @alias $api.crud.update_order | ||
* @param {String} startId The id of the item we want to move in the list. | ||
* @param {String} endId The id of the item in the position where we want to move. | ||
* @param {external:AxiosRequestConfig} [config] This is a further axios configuration object that allows you to override the options previously setted. | ||
* @returns {Promise<external:AxiosResponse>} | ||
*/ | ||
update_order(startId, endId, config) { | ||
const func = $axios.$post(`/${trimslashes(endpoint)}/update_order/`, { startId, endId }, { ...higherConf, ...config }) | ||
return endpoint !== null ? func : Promise.reject(endpointError) | ||
}, | ||
}) | ||
@@ -111,0 +126,0 @@ /** |
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-alpha.15](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-11) | ||
### Features | ||
* **ordering:** added sortablejs to drag and reorder list ([eb8bf21](https://github.com/lotrekagency/mapo/commit/eb8bf21c3178c3ad62db5aa7c06c0562e944dea6)) | ||
# [1.0.0-alpha.13](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-01) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@mapomodule/core", | ||
"version": "1.0.0-alpha.13", | ||
"version": "1.0.0-alpha.15", | ||
"description": "This is part of Mapo nuxt module. Injects the core mapo plugin helpers.", | ||
@@ -16,3 +16,3 @@ "author": "bnznamco <gabriele.baldi.01@gmail.com>", | ||
"dependencies": { | ||
"@mapomodule/utils": "^1.0.0-alpha.13" | ||
"@mapomodule/utils": "^1.0.0-alpha.15" | ||
}, | ||
@@ -22,3 +22,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "b0fac0f5ebde4c65cc5347dbb841392dc04ef5e8" | ||
"gitHead": "cd42b3dd094ef3bf743c67819e6059bf9ccac491" | ||
} |
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
22923
374