@ironcode/vas-lib 0.0.37 → 0.0.38

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.
@@ -671,10 +671,16 @@ class VasFileModel extends VasJobDataModel {
671
671
  this.status = status;
672
672
  this.uri = uri;
673
673
  }
674
- /**
675
- * @param {VasFieldDto} fileDto
676
- * @return {VasFieldModel}
677
- */
674
+ static empty() {
675
+ return new VasFileModel('', '', '', '', '', '', '', '', '', '', 0, '', 0, {
676
+ displayAs: 'grid',
677
+ embedLink: false,
678
+ group: 'photo',
679
+ description: '',
680
+ displayedName: '',
681
+ rotation: 0
682
+ }, '', '', '', '', '');
683
+ }
678
684
  static fromDto(fileDto) {
679
685
  return new VasFileModel(fileDto.id || UUID.UUID(), fileDto.created || '', fileDto.serverCreated || '', fileDto.createdBy || '', fileDto.modified || '', fileDto.serverModified || '', fileDto.modifiedBy || '', fileDto.account || '', fileDto.job || '', fileDto.name || '', fileDto.fileSize || 0, fileDto.mimeType || '', fileDto.sequence || 0, VasFileModel.parseConfig(fileDto.config), fileDto.url || '', fileDto.controlPath || '', fileDto.message || '', fileDto.status || '', fileDto.uri || '');
680
686
  }