Adjust checklist item api to support audits trail

This commit is contained in:
Johannes Zellner
2024-06-24 18:39:37 +02:00
parent 8510b12841
commit 20396a8c7d
7 changed files with 41 additions and 16 deletions

View File

@@ -982,6 +982,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.ackAppChecklistItem = function (appId, key, acknowledged, callback) {
put('/api/v1/apps/' + appId + '/checklist/' + key, { done: acknowledged }, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));
callback(null);
});
};
Client.prototype.updateApp = function (id, manifest, options, callback) {
var data = {
appStoreId: manifest.id + '@' + manifest.version,