@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.
- package/cjs/lib/entity/vas-file.model.d.ts +1 -4
- package/cjs/lib/entity/vas-file.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.model.js +10 -4
- package/cjs/lib/entity/vas-file.model.js.map +1 -1
- package/esm2020/lib/entity/vas-file.model.mjs +11 -5
- package/fesm2015/ironcode-vas-lib.mjs +10 -4
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +10 -4
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-file.model.d.ts +1 -4
- package/package.json +1 -1
|
@@ -671,10 +671,16 @@ class VasFileModel extends VasJobDataModel {
|
|
|
671
671
|
this.status = status;
|
|
672
672
|
this.uri = uri;
|
|
673
673
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
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
|
}
|