@ironcode/vas-lib 1.3.1 → 1.5.0
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/index.d.ts +2 -0
- package/cjs/lib/entity/index.d.ts.map +1 -1
- package/cjs/lib/entity/index.js +2 -0
- package/cjs/lib/entity/index.js.map +1 -1
- package/cjs/lib/entity/vas-account-object.model.d.ts +1 -1
- package/cjs/lib/entity/vas-account-object.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-account-object.model.js.map +1 -1
- package/cjs/lib/entity/vas-control.model.d.ts +3 -3
- package/cjs/lib/entity/vas-control.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-control.model.js +5 -5
- package/cjs/lib/entity/vas-control.model.js.map +1 -1
- package/cjs/lib/entity/vas-file.dto.d.ts +2 -1
- package/cjs/lib/entity/vas-file.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.dto.js.map +1 -1
- package/cjs/lib/entity/vas-file.model.d.ts +3 -3
- package/cjs/lib/entity/vas-file.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.model.js +2 -2
- package/cjs/lib/entity/vas-file.model.js.map +1 -1
- package/cjs/lib/entity/vas-form.model.d.ts +1 -0
- package/cjs/lib/entity/vas-form.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-form.model.js +3 -0
- package/cjs/lib/entity/vas-form.model.js.map +1 -1
- package/cjs/lib/entity/vas-group.model.d.ts +3 -2
- package/cjs/lib/entity/vas-group.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-group.model.js +6 -3
- package/cjs/lib/entity/vas-group.model.js.map +1 -1
- package/cjs/lib/entity/vas-job-email.dto.d.ts +15 -0
- package/cjs/lib/entity/vas-job-email.dto.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-email.dto.js +3 -0
- package/cjs/lib/entity/vas-job-email.dto.js.map +1 -0
- package/cjs/lib/entity/vas-job-email.model.d.ts +31 -0
- package/cjs/lib/entity/vas-job-email.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-email.model.js +83 -0
- package/cjs/lib/entity/vas-job-email.model.js.map +1 -0
- package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.js.map +1 -1
- package/cjs/lib/entity/vas-restricted-account-object.model.d.ts +1 -0
- package/cjs/lib/entity/vas-restricted-account-object.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-restricted-account-object.model.js +3 -0
- package/cjs/lib/entity/vas-restricted-account-object.model.js.map +1 -1
- package/cjs/package.json +4 -4
- package/esm2020/lib/entity/index.mjs +3 -1
- package/esm2020/lib/entity/vas-account-object.model.mjs +1 -1
- package/esm2020/lib/entity/vas-control.model.mjs +14 -6
- package/esm2020/lib/entity/vas-file.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-file.model.mjs +3 -3
- package/esm2020/lib/entity/vas-form.model.mjs +9 -1
- package/esm2020/lib/entity/vas-group.model.mjs +13 -4
- package/esm2020/lib/entity/vas-job-email.dto.mjs +2 -0
- package/esm2020/lib/entity/vas-job-email.model.mjs +79 -0
- package/esm2020/lib/entity/vas-job.model.mjs +1 -1
- package/esm2020/lib/entity/vas-restricted-account-object.model.mjs +7 -1
- package/fesm2015/ironcode-vas-lib.mjs +96 -9
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +118 -9
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/index.d.ts +2 -0
- package/lib/entity/vas-account-object.model.d.ts +1 -1
- package/lib/entity/vas-control.model.d.ts +3 -3
- package/lib/entity/vas-file.dto.d.ts +2 -1
- package/lib/entity/vas-file.model.d.ts +3 -3
- package/lib/entity/vas-form.model.d.ts +1 -0
- package/lib/entity/vas-group.model.d.ts +3 -2
- package/lib/entity/vas-job-email.dto.d.ts +14 -0
- package/lib/entity/vas-job-email.model.d.ts +30 -0
- package/lib/entity/vas-restricted-account-object.model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -236,6 +236,12 @@ class VasRestrictedAccountObjectModel extends VasAccountObjectModel {
|
|
|
236
236
|
this.account = account;
|
|
237
237
|
this.accessGroup = accessGroup;
|
|
238
238
|
}
|
|
239
|
+
toApiDto(options) {
|
|
240
|
+
return {
|
|
241
|
+
...super.toApiDto(options),
|
|
242
|
+
accessGroup: this.accessGroup
|
|
243
|
+
};
|
|
244
|
+
}
|
|
239
245
|
}
|
|
240
246
|
|
|
241
247
|
class VasBranchModel extends VasRestrictedAccountObjectModel {
|
|
@@ -442,9 +448,9 @@ class VasControlTypeModel extends VasBaseModel {
|
|
|
442
448
|
/**
|
|
443
449
|
* ControlModel
|
|
444
450
|
*/
|
|
445
|
-
class VasControlModel extends
|
|
451
|
+
class VasControlModel extends VasRestrictedAccountObjectModel {
|
|
446
452
|
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, accessGroup, controlType, group, validators, name, title, linkable, sequence, description, defaultValue, config, descriptionImage, portalEnabled) {
|
|
447
|
-
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account);
|
|
453
|
+
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, accessGroup);
|
|
448
454
|
this.id = id;
|
|
449
455
|
this.created = created;
|
|
450
456
|
this.serverCreated = serverCreated;
|
|
@@ -534,7 +540,7 @@ class VasControlModel extends VasAccountObjectModel {
|
|
|
534
540
|
return VasControlTypeModel.empty();
|
|
535
541
|
}
|
|
536
542
|
else if (typeof c === 'string') {
|
|
537
|
-
return c;
|
|
543
|
+
return VasControlTypeModel.fromDto({ id: c });
|
|
538
544
|
}
|
|
539
545
|
else {
|
|
540
546
|
return VasControlTypeModel.fromDto(c);
|
|
@@ -593,8 +599,16 @@ class VasControlModel extends VasAccountObjectModel {
|
|
|
593
599
|
return {
|
|
594
600
|
...super.toApiDto(),
|
|
595
601
|
title: this.title || '~',
|
|
596
|
-
name: this.
|
|
602
|
+
name: this.name || '~',
|
|
597
603
|
portalEnabled: this.portalEnabled,
|
|
604
|
+
sequence: this.sequence,
|
|
605
|
+
description: this.description || '~',
|
|
606
|
+
defaultValue: this.defaultValue,
|
|
607
|
+
config: JSON.stringify(this.config),
|
|
608
|
+
controlType: this.controlType.id,
|
|
609
|
+
group: this.group,
|
|
610
|
+
validators: this.validators,
|
|
611
|
+
linkable: this.linkable
|
|
598
612
|
};
|
|
599
613
|
}
|
|
600
614
|
}
|
|
@@ -754,10 +768,10 @@ class VasFileModel extends VasJobDataModel {
|
|
|
754
768
|
description: '',
|
|
755
769
|
displayedName: '',
|
|
756
770
|
rotation: 0
|
|
757
|
-
}, '', '', '', '', '');
|
|
771
|
+
}, '', '', '', 'NEW', '');
|
|
758
772
|
}
|
|
759
773
|
static fromDto(dto) {
|
|
760
|
-
return new VasFileModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.name || '', dto.fileSize || 0, dto.mimeType || '', dto.sequence || 0, VasFileModel.parseConfig(dto.config), dto.url || '', dto.controlPath || '', dto.message || '', dto.status || '', dto.uri || '');
|
|
774
|
+
return new VasFileModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.name || '', dto.fileSize || 0, dto.mimeType || '', dto.sequence || 0, VasFileModel.parseConfig(dto.config), dto.url || '', dto.controlPath || '', dto.message || '', dto.status || 'NEW', dto.uri || '');
|
|
761
775
|
}
|
|
762
776
|
static parseConfig(config = '') {
|
|
763
777
|
try {
|
|
@@ -845,9 +859,9 @@ class VasFileModel extends VasJobDataModel {
|
|
|
845
859
|
/**
|
|
846
860
|
* GroupModel
|
|
847
861
|
*/
|
|
848
|
-
class VasGroupModel extends
|
|
862
|
+
class VasGroupModel extends VasRestrictedAccountObjectModel {
|
|
849
863
|
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, accessGroup, name, title, description, sequence, includeInSummary, forms, visibilityControl, visibleIfEquals, controls, scoreWeight) {
|
|
850
|
-
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName);
|
|
864
|
+
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, accessGroup);
|
|
851
865
|
this.id = id;
|
|
852
866
|
this.created = created;
|
|
853
867
|
this.serverCreated = serverCreated;
|
|
@@ -926,6 +940,15 @@ class VasGroupModel extends VasBaseModel {
|
|
|
926
940
|
scoreWeight: this.scoreWeight
|
|
927
941
|
};
|
|
928
942
|
}
|
|
943
|
+
toApiDto(options) {
|
|
944
|
+
return {
|
|
945
|
+
...super.toApiDto(options),
|
|
946
|
+
name: this.name || '~',
|
|
947
|
+
title: this.title || '~',
|
|
948
|
+
sequence: this.sequence || 0,
|
|
949
|
+
includeInSummary: this.includeInSummary
|
|
950
|
+
};
|
|
951
|
+
}
|
|
929
952
|
}
|
|
930
953
|
|
|
931
954
|
/**
|
|
@@ -1108,6 +1131,14 @@ class VasFormModel extends VasRestrictedAccountObjectModel {
|
|
|
1108
1131
|
filesEnabled: this.filesEnabled
|
|
1109
1132
|
};
|
|
1110
1133
|
}
|
|
1134
|
+
toApiDto(options) {
|
|
1135
|
+
return {
|
|
1136
|
+
...super.toApiDto(options),
|
|
1137
|
+
title: this.title || '~',
|
|
1138
|
+
description: this.description || '~',
|
|
1139
|
+
jobType: this.jobType
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1111
1142
|
}
|
|
1112
1143
|
|
|
1113
1144
|
var VasInvitationTypeEnum;
|
|
@@ -1544,6 +1575,84 @@ class VasInstructionModel extends VasAccountObjectModel {
|
|
|
1544
1575
|
}
|
|
1545
1576
|
}
|
|
1546
1577
|
|
|
1578
|
+
class VasJobEmailModel extends VasJobDataModel {
|
|
1579
|
+
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, body, cc, files, message, recipients, replyTo, reports, sender, sentTime, subject, succeeded) {
|
|
1580
|
+
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job);
|
|
1581
|
+
this.id = id;
|
|
1582
|
+
this.created = created;
|
|
1583
|
+
this.serverCreated = serverCreated;
|
|
1584
|
+
this.createdBy = createdBy;
|
|
1585
|
+
this.modified = modified;
|
|
1586
|
+
this.serverModified = serverModified;
|
|
1587
|
+
this.modifiedBy = modifiedBy;
|
|
1588
|
+
this.createdByName = createdByName;
|
|
1589
|
+
this.modifiedByName = modifiedByName;
|
|
1590
|
+
this.account = account;
|
|
1591
|
+
this.job = job;
|
|
1592
|
+
this.body = body;
|
|
1593
|
+
this.cc = cc;
|
|
1594
|
+
this.files = files;
|
|
1595
|
+
this.message = message;
|
|
1596
|
+
this.recipients = recipients;
|
|
1597
|
+
this.replyTo = replyTo;
|
|
1598
|
+
this.reports = reports;
|
|
1599
|
+
this.sender = sender;
|
|
1600
|
+
this.sentTime = sentTime;
|
|
1601
|
+
this.subject = subject;
|
|
1602
|
+
this.succeeded = succeeded;
|
|
1603
|
+
}
|
|
1604
|
+
static fromDto(dto) {
|
|
1605
|
+
return new VasJobEmailModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.body || '', dto.cc || [], dto.files || [], dto.message || '', dto.recipients || [], dto.replyTo || '', dto.reports || [], dto.sender || '', dto.sentTime || '', dto.subject || '', dto.succeeded || false);
|
|
1606
|
+
}
|
|
1607
|
+
toDto() {
|
|
1608
|
+
return {
|
|
1609
|
+
id: this.id,
|
|
1610
|
+
created: this.created,
|
|
1611
|
+
serverCreated: this.serverCreated,
|
|
1612
|
+
createdBy: this.createdBy,
|
|
1613
|
+
modified: this.modified,
|
|
1614
|
+
serverModified: this.serverModified,
|
|
1615
|
+
modifiedBy: this.modifiedBy,
|
|
1616
|
+
createdByName: this.createdByName,
|
|
1617
|
+
modifiedByName: this.modifiedByName,
|
|
1618
|
+
account: this.account,
|
|
1619
|
+
job: this.job,
|
|
1620
|
+
body: this.body,
|
|
1621
|
+
cc: this.cc,
|
|
1622
|
+
files: this.files,
|
|
1623
|
+
message: this.message,
|
|
1624
|
+
recipients: this.recipients,
|
|
1625
|
+
replyTo: this.replyTo,
|
|
1626
|
+
reports: this.reports,
|
|
1627
|
+
sender: this.sender,
|
|
1628
|
+
sentTime: this.sentTime,
|
|
1629
|
+
subject: this.subject,
|
|
1630
|
+
succeeded: this.succeeded,
|
|
1631
|
+
};
|
|
1632
|
+
}
|
|
1633
|
+
toApiDto(options) {
|
|
1634
|
+
return {
|
|
1635
|
+
id: this.id,
|
|
1636
|
+
created: this.created,
|
|
1637
|
+
createdBy: this.createdBy,
|
|
1638
|
+
modified: this.modified,
|
|
1639
|
+
account: this.account,
|
|
1640
|
+
job: this.job,
|
|
1641
|
+
body: this.body,
|
|
1642
|
+
cc: this.cc,
|
|
1643
|
+
files: this.files,
|
|
1644
|
+
message: this.message,
|
|
1645
|
+
recipients: this.recipients,
|
|
1646
|
+
replyTo: this.replyTo,
|
|
1647
|
+
reports: this.reports,
|
|
1648
|
+
sender: this.sender,
|
|
1649
|
+
sentTime: this.sentTime,
|
|
1650
|
+
subject: this.subject,
|
|
1651
|
+
succeeded: this.succeeded,
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1547
1656
|
/**
|
|
1548
1657
|
* A non sophisticated way to get values from the job via paths. For example:
|
|
1549
1658
|
*
|
|
@@ -2289,5 +2398,5 @@ class VasVehicleModel extends VasAccountObjectModel {
|
|
|
2289
2398
|
* Generated bundle index. Do not edit.
|
|
2290
2399
|
*/
|
|
2291
2400
|
|
|
2292
|
-
export { VasAccountIndexingMode, VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormModel, VasGroupModel, VasInstructionJobFieldModel, VasInstructionJobModel, VasInstructionModel, VasInstructionProviderModel, VasInvitationModel, VasInvitationTypeEnum, VasJobDataModel, VasJobModel, VasMembershipModel, VasNoteModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasUserModel, VasVehicleModel, getEmptyGeoLocation, isCameraControlValueV1, isFileDto };
|
|
2401
|
+
export { VasAccountIndexingMode, VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormModel, VasGroupModel, VasInstructionJobFieldModel, VasInstructionJobModel, VasInstructionModel, VasInstructionProviderModel, VasInvitationModel, VasInvitationTypeEnum, VasJobDataModel, VasJobEmailModel, VasJobModel, VasMembershipModel, VasNoteModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasUserModel, VasVehicleModel, getEmptyGeoLocation, isCameraControlValueV1, isFileDto };
|
|
2293
2402
|
//# sourceMappingURL=ironcode-vas-lib.mjs.map
|