@ironcode/vas-lib 0.0.21 → 0.0.23
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-fire-user.model.js +1 -1
- package/cjs/lib/entity/vas-fire-user.model.js.map +1 -1
- package/cjs/lib/entity/vas-job.model.d.ts +3 -1
- package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.js +3 -1
- package/cjs/lib/entity/vas-job.model.js.map +1 -1
- package/cjs/lib/entity/vas-report-request.dto.d.ts +2 -2
- package/cjs/lib/entity/vas-report-request.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-report-request.dto.js.map +1 -1
- package/cjs/lib/entity/vas-report-request.model.d.ts +4 -3
- package/cjs/lib/entity/vas-report-request.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-report-request.model.js +7 -5
- package/cjs/lib/entity/vas-report-request.model.js.map +1 -1
- package/cjs/lib/entity/vas-report.dto.d.ts +13 -0
- package/cjs/lib/entity/vas-report.dto.d.ts.map +1 -0
- package/cjs/lib/entity/vas-report.dto.js +3 -0
- package/cjs/lib/entity/vas-report.dto.js.map +1 -0
- package/cjs/lib/entity/vas-report.model.d.ts +27 -0
- package/cjs/lib/entity/vas-report.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-report.model.js +63 -0
- package/cjs/lib/entity/vas-report.model.js.map +1 -0
- package/esm2020/lib/entity/index.mjs +3 -1
- package/esm2020/lib/entity/vas-fire-user.model.mjs +2 -2
- package/esm2020/lib/entity/vas-job.model.mjs +4 -2
- package/esm2020/lib/entity/vas-report-request.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-report-request.model.mjs +8 -6
- package/esm2020/lib/entity/vas-report.dto.mjs +2 -0
- package/esm2020/lib/entity/vas-report.model.mjs +59 -0
- package/fesm2015/ironcode-vas-lib.mjs +68 -7
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +68 -7
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/index.d.ts +2 -0
- package/lib/entity/vas-job.model.d.ts +3 -1
- package/lib/entity/vas-report-request.dto.d.ts +2 -2
- package/lib/entity/vas-report-request.model.d.ts +4 -3
- package/lib/entity/vas-report.dto.d.ts +12 -0
- package/lib/entity/vas-report.model.d.ts +26 -0
- package/package.json +1 -1
|
@@ -80,7 +80,7 @@ class VasFireUserModel extends VasUserModel {
|
|
|
80
80
|
this.accounts = accounts;
|
|
81
81
|
}
|
|
82
82
|
static fromDto(dto) {
|
|
83
|
-
return new VasFireUserModel(dto.id, dto.created, dto.serverCreated, dto.createdBy, dto.modified, dto.serverModified, dto.modifiedBy, dto.email, dto.username, dto.accounts);
|
|
83
|
+
return new VasFireUserModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.email || '', dto.username || '', dto.accounts || {});
|
|
84
84
|
}
|
|
85
85
|
static newUser(uid, displayName, email) {
|
|
86
86
|
return new VasFireUserModel(uid, moment().toISOString(), uid, moment().toISOString(), uid, moment().toISOString(), moment().toISOString(), email, displayName, {});
|
|
@@ -1067,7 +1067,9 @@ class VasJobModel extends VasRestrictedAccountObjectModel {
|
|
|
1067
1067
|
* @param {string} childModified
|
|
1068
1068
|
* @param {number} version
|
|
1069
1069
|
* @param {Array<VasFieldDto>} fields
|
|
1070
|
-
* @param {Array<VasFileDto>} files
|
|
1070
|
+
* @param {Array<VasFileDto>} files,
|
|
1071
|
+
* @param {string} createdByDisplayName
|
|
1072
|
+
* @param {string} modifiedByDisplayName
|
|
1071
1073
|
*/
|
|
1072
1074
|
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, accessGroup, reference, jobDate, jobStatus, jobType, assigneeId, formId, timeZoneOffset, pendingFields, childModified, version, fields, files, createdByDisplayName, modifiedByDisplayName) {
|
|
1073
1075
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, accessGroup);
|
|
@@ -1542,6 +1544,63 @@ class VasMembershipModel extends VasAccountObjectModel {
|
|
|
1542
1544
|
}
|
|
1543
1545
|
}
|
|
1544
1546
|
|
|
1547
|
+
class VasReportModel extends VasJobDataModel {
|
|
1548
|
+
constructor(id, created, createdBy, modified, modifiedBy, serverCreated, serverModified, account, job, reportLayoutId, title, sendEmail, message, attempted, completed, succeeded, attempts, notificationId) {
|
|
1549
|
+
super(id, created, createdBy, modified, modifiedBy, serverCreated, serverModified, account, job);
|
|
1550
|
+
this.id = id;
|
|
1551
|
+
this.created = created;
|
|
1552
|
+
this.createdBy = createdBy;
|
|
1553
|
+
this.modified = modified;
|
|
1554
|
+
this.modifiedBy = modifiedBy;
|
|
1555
|
+
this.serverCreated = serverCreated;
|
|
1556
|
+
this.serverModified = serverModified;
|
|
1557
|
+
this.account = account;
|
|
1558
|
+
this.job = job;
|
|
1559
|
+
this.reportLayoutId = reportLayoutId;
|
|
1560
|
+
this.title = title;
|
|
1561
|
+
this.sendEmail = sendEmail;
|
|
1562
|
+
this.message = message;
|
|
1563
|
+
this.attempted = attempted;
|
|
1564
|
+
this.completed = completed;
|
|
1565
|
+
this.succeeded = succeeded;
|
|
1566
|
+
this.attempts = attempts;
|
|
1567
|
+
this.notificationId = notificationId;
|
|
1568
|
+
}
|
|
1569
|
+
static empty() {
|
|
1570
|
+
return VasReportModel.fromDto({
|
|
1571
|
+
// eslint-disable-next-line new-cap
|
|
1572
|
+
id: UUID.UUID()
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
static fromDto(dto) {
|
|
1576
|
+
return new VasReportModel(
|
|
1577
|
+
// eslint-disable-next-line new-cap
|
|
1578
|
+
dto.id || UUID.UUID(), dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.account || '', dto.job || '', dto.reportLayoutId || '', dto.title || '', dto.sendEmail || '', dto.message || '', dto.attempted || '', dto.completed || '', dto.succeeded || '', dto.attempts || 0, dto.notificationId || '');
|
|
1579
|
+
}
|
|
1580
|
+
toDto() {
|
|
1581
|
+
return {
|
|
1582
|
+
id: this.id,
|
|
1583
|
+
created: this.created,
|
|
1584
|
+
serverCreated: this.serverCreated,
|
|
1585
|
+
createdBy: this.createdBy,
|
|
1586
|
+
modified: this.modified,
|
|
1587
|
+
serverModified: this.serverModified,
|
|
1588
|
+
modifiedBy: this.modifiedBy,
|
|
1589
|
+
account: this.account,
|
|
1590
|
+
job: this.job,
|
|
1591
|
+
reportLayoutId: this.reportLayoutId,
|
|
1592
|
+
title: this.title,
|
|
1593
|
+
sendEmail: this.sendEmail,
|
|
1594
|
+
message: this.message,
|
|
1595
|
+
attempted: this.attempted,
|
|
1596
|
+
completed: this.completed,
|
|
1597
|
+
succeeded: this.succeeded,
|
|
1598
|
+
attempts: this.attempts,
|
|
1599
|
+
notificationId: this.notificationId,
|
|
1600
|
+
};
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1545
1604
|
class VasReportLayoutModel extends VasRestrictedAccountObjectModel {
|
|
1546
1605
|
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, accessGroup, jobType, title, description, entryPoint) {
|
|
1547
1606
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, accessGroup);
|
|
@@ -1561,9 +1620,9 @@ class VasReportLayoutModel extends VasRestrictedAccountObjectModel {
|
|
|
1561
1620
|
}
|
|
1562
1621
|
}
|
|
1563
1622
|
|
|
1564
|
-
class VasReportRequestModel extends
|
|
1565
|
-
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, error, jobId, title, url, reportId) {
|
|
1566
|
-
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy);
|
|
1623
|
+
class VasReportRequestModel extends VasAccountObjectModel {
|
|
1624
|
+
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, error, jobId, title, url, reportId) {
|
|
1625
|
+
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account);
|
|
1567
1626
|
this.id = id;
|
|
1568
1627
|
this.created = created;
|
|
1569
1628
|
this.serverCreated = serverCreated;
|
|
@@ -1571,6 +1630,7 @@ class VasReportRequestModel extends VasBaseModel {
|
|
|
1571
1630
|
this.modified = modified;
|
|
1572
1631
|
this.serverModified = serverModified;
|
|
1573
1632
|
this.modifiedBy = modifiedBy;
|
|
1633
|
+
this.account = account;
|
|
1574
1634
|
this.error = error;
|
|
1575
1635
|
this.jobId = jobId;
|
|
1576
1636
|
this.title = title;
|
|
@@ -1578,7 +1638,7 @@ class VasReportRequestModel extends VasBaseModel {
|
|
|
1578
1638
|
this.reportId = reportId;
|
|
1579
1639
|
}
|
|
1580
1640
|
static fromDto(dto) {
|
|
1581
|
-
return new VasReportRequestModel(dto.id || UUID.UUID(), dto.created || moment$1().toISOString(), dto.serverCreated || '', dto.createdBy || '', dto.modified || moment$1().toISOString(), dto.serverModified || '', dto.modifiedBy || '', dto.error || '', dto.jobId || '', dto.title || '', dto.url || '', dto.reportId || '');
|
|
1641
|
+
return new VasReportRequestModel(dto.id || UUID.UUID(), dto.created || moment$1().toISOString(), dto.serverCreated || '', dto.createdBy || '', dto.modified || moment$1().toISOString(), dto.serverModified || '', dto.modifiedBy || '', dto.account || '', dto.error || '', dto.jobId || '', dto.title || '', dto.url || '', dto.reportId || '');
|
|
1582
1642
|
}
|
|
1583
1643
|
toDto() {
|
|
1584
1644
|
return {
|
|
@@ -1589,6 +1649,7 @@ class VasReportRequestModel extends VasBaseModel {
|
|
|
1589
1649
|
modified: this.modified,
|
|
1590
1650
|
serverModified: this.serverModified,
|
|
1591
1651
|
modifiedBy: this.modifiedBy,
|
|
1652
|
+
account: this.account,
|
|
1592
1653
|
error: this.error,
|
|
1593
1654
|
jobId: this.jobId,
|
|
1594
1655
|
title: this.title,
|
|
@@ -1602,5 +1663,5 @@ class VasReportRequestModel extends VasBaseModel {
|
|
|
1602
1663
|
* Generated bundle index. Do not edit.
|
|
1603
1664
|
*/
|
|
1604
1665
|
|
|
1605
|
-
export { VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormModel, VasGroupModel, VasJobDataModel, VasJobModel, VasMembershipModel, VasReportLayoutModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasUserModel };
|
|
1666
|
+
export { VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormModel, VasGroupModel, VasJobDataModel, VasJobModel, VasMembershipModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasUserModel };
|
|
1606
1667
|
//# sourceMappingURL=ironcode-vas-lib.mjs.map
|