@ironcode/vas-lib 0.0.36 → 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.dto.d.ts +5 -0
- package/cjs/lib/entity/vas-file.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.dto.js +9 -0
- package/cjs/lib/entity/vas-file.dto.js.map +1 -1
- package/cjs/lib/entity/vas-file.model.d.ts +6 -5
- package/cjs/lib/entity/vas-file.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.model.js +20 -6
- package/cjs/lib/entity/vas-file.model.js.map +1 -1
- package/esm2020/lib/entity/vas-file.dto.mjs +8 -2
- package/esm2020/lib/entity/vas-file.model.mjs +21 -7
- package/fesm2015/ironcode-vas-lib.mjs +29 -7
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +29 -7
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-file.dto.d.ts +5 -0
- package/lib/entity/vas-file.model.d.ts +6 -5
- package/package.json +1 -1
|
@@ -637,11 +637,19 @@ class VasFieldModel extends VasJobDataModel {
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
|
|
640
|
+
function isFileDto(object) {
|
|
641
|
+
return 'url' in object
|
|
642
|
+
&& 'uri' in object
|
|
643
|
+
&& 'message' in object
|
|
644
|
+
&& 'status' in object
|
|
645
|
+
&& 'controlPath' in object;
|
|
646
|
+
}
|
|
647
|
+
|
|
640
648
|
/**
|
|
641
649
|
* VasFileDto
|
|
642
650
|
*/
|
|
643
651
|
class VasFileModel extends VasJobDataModel {
|
|
644
|
-
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, job, name, fileSize, mimeType, sequence, config, url) {
|
|
652
|
+
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, job, name, fileSize, mimeType, sequence, config, url, controlPath, message, status, uri) {
|
|
645
653
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, job);
|
|
646
654
|
this.id = id;
|
|
647
655
|
this.created = created;
|
|
@@ -658,13 +666,23 @@ class VasFileModel extends VasJobDataModel {
|
|
|
658
666
|
this.sequence = sequence;
|
|
659
667
|
this.config = config;
|
|
660
668
|
this.url = url;
|
|
669
|
+
this.controlPath = controlPath;
|
|
670
|
+
this.message = message;
|
|
671
|
+
this.status = status;
|
|
672
|
+
this.uri = uri;
|
|
673
|
+
}
|
|
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
|
+
}, '', '', '', '', '');
|
|
661
683
|
}
|
|
662
|
-
/**
|
|
663
|
-
* @param {VasFieldDto} fileDto
|
|
664
|
-
* @return {VasFieldModel}
|
|
665
|
-
*/
|
|
666
684
|
static fromDto(fileDto) {
|
|
667
|
-
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 || '');
|
|
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 || '');
|
|
668
686
|
}
|
|
669
687
|
static parseConfig(config = '') {
|
|
670
688
|
try {
|
|
@@ -701,6 +719,10 @@ class VasFileModel extends VasJobDataModel {
|
|
|
701
719
|
sequence: this.sequence,
|
|
702
720
|
config: this.stringifyConfig(this.config),
|
|
703
721
|
url: this.url,
|
|
722
|
+
controlPath: this.controlPath,
|
|
723
|
+
message: this.message,
|
|
724
|
+
status: this.status,
|
|
725
|
+
uri: this.uri,
|
|
704
726
|
};
|
|
705
727
|
}
|
|
706
728
|
stringifyConfig(config) {
|
|
@@ -1774,5 +1796,5 @@ class VasReportRequestModel extends VasAccountObjectModel {
|
|
|
1774
1796
|
* Generated bundle index. Do not edit.
|
|
1775
1797
|
*/
|
|
1776
1798
|
|
|
1777
|
-
export { VasAccountIndexingMode, VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormModel, VasGroupModel, VasInvitationModel, VasJobDataModel, VasJobModel, VasMembershipModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasUserModel, getEmptyGeoLocation };
|
|
1799
|
+
export { VasAccountIndexingMode, VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormModel, VasGroupModel, VasInvitationModel, VasJobDataModel, VasJobModel, VasMembershipModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasUserModel, getEmptyGeoLocation, isFileDto };
|
|
1778
1800
|
//# sourceMappingURL=ironcode-vas-lib.mjs.map
|