kui-crm 0.0.313 → 0.0.314

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.
package/cjs/index.js CHANGED
@@ -706,6 +706,16 @@ var getBodyForImageRequest = function (file, res) {
706
706
  }
707
707
  : null;
708
708
  };
709
+ var getPatchFileParams = function (file) {
710
+ if (file && "name" in file && "file" in file && file.file) {
711
+ return {
712
+ name: file.name,
713
+ visibility: matchesAPIVisibilityVariants[file
714
+ .visibility],
715
+ };
716
+ }
717
+ return null;
718
+ };
709
719
  var getBodyForCleanFileRequest = function (file, res) {
710
720
  return res ? { temp_file_id: res.id, name: file.name } : null;
711
721
  };
@@ -4977,6 +4987,7 @@ exports.getMeterFields = getMeterFields;
4977
4987
  exports.getMeterValuesFieldsSchema = getMeterValuesFieldsSchema;
4978
4988
  exports.getNumbersValues = getNumbersValues;
4979
4989
  exports.getPartialMeterInfoFields = getPartialMeterInfoFields;
4990
+ exports.getPatchFileParams = getPatchFileParams;
4980
4991
  exports.matchesAPICompanyTypes = matchesAPICompanyTypes;
4981
4992
  exports.matchesAPIFillingTypes = matchesAPIFillingTypes;
4982
4993
  exports.matchesAPISubjectRoles = matchesAPISubjectRoles;