@hestia-earth/api 0.16.0 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144,6 +144,7 @@ exports.validPathChars = 'A-Za-z\\d.\\-_';
144
144
  exports.replaceInvalidChars = function (value) {
145
145
  return value
146
146
  .replace(/\s/g, '_')
147
+ .replace(/\.$/g, '')
147
148
  .replace(new RegExp("[^" + exports.validPathChars + "]", 'g'), '')
148
149
  .replace(new RegExp("(\\.)[^(" + Object.values(SupportedExtensions).map(function (v) { return "." + v; }).join('|') + ")]", 'g'), function (v) { return v.replace('.', '_'); })
149
150
  .replace(/\^/g, '');
@@ -207,7 +208,15 @@ exports.canSubmit = function (file, user) {
207
208
  !file.userValidatedAt && (exports.isOwner(file, user) || exports.isAuthorized(file, user));
208
209
  };
209
210
  var feedbackStatuses = [
211
+ FileStatus.checkExistingDone,
212
+ FileStatus.extendBibliographyDone,
213
+ FileStatus.addMetadataDone,
214
+ FileStatus.validateHestiaDone,
210
215
  FileStatus.validateDataDone,
216
+ FileError.checkExistingError,
217
+ FileError.extendBibliographyError,
218
+ FileError.addMetadataError,
219
+ FileError.validateHestiaError,
211
220
  FileError.validateDataError
212
221
  ];
213
222
  exports.canFeedback = function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",