@ironcode/vas-lib 1.3.1 → 1.4.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.
@@ -1544,6 +1544,84 @@ class VasInstructionModel extends VasAccountObjectModel {
1544
1544
  }
1545
1545
  }
1546
1546
 
1547
+ class VasJobEmailModel extends VasJobDataModel {
1548
+ constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, body, cc, files, message, recipients, replyTo, reports, sender, sentTime, subject, succeeded) {
1549
+ super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job);
1550
+ this.id = id;
1551
+ this.created = created;
1552
+ this.serverCreated = serverCreated;
1553
+ this.createdBy = createdBy;
1554
+ this.modified = modified;
1555
+ this.serverModified = serverModified;
1556
+ this.modifiedBy = modifiedBy;
1557
+ this.createdByName = createdByName;
1558
+ this.modifiedByName = modifiedByName;
1559
+ this.account = account;
1560
+ this.job = job;
1561
+ this.body = body;
1562
+ this.cc = cc;
1563
+ this.files = files;
1564
+ this.message = message;
1565
+ this.recipients = recipients;
1566
+ this.replyTo = replyTo;
1567
+ this.reports = reports;
1568
+ this.sender = sender;
1569
+ this.sentTime = sentTime;
1570
+ this.subject = subject;
1571
+ this.succeeded = succeeded;
1572
+ }
1573
+ static fromDto(dto) {
1574
+ 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);
1575
+ }
1576
+ toDto() {
1577
+ return {
1578
+ id: this.id,
1579
+ created: this.created,
1580
+ serverCreated: this.serverCreated,
1581
+ createdBy: this.createdBy,
1582
+ modified: this.modified,
1583
+ serverModified: this.serverModified,
1584
+ modifiedBy: this.modifiedBy,
1585
+ createdByName: this.createdByName,
1586
+ modifiedByName: this.modifiedByName,
1587
+ account: this.account,
1588
+ job: this.job,
1589
+ body: this.body,
1590
+ cc: this.cc,
1591
+ files: this.files,
1592
+ message: this.message,
1593
+ recipients: this.recipients,
1594
+ replyTo: this.replyTo,
1595
+ reports: this.reports,
1596
+ sender: this.sender,
1597
+ sentTime: this.sentTime,
1598
+ subject: this.subject,
1599
+ succeeded: this.succeeded,
1600
+ };
1601
+ }
1602
+ toApiDto(options) {
1603
+ return {
1604
+ id: this.id,
1605
+ created: this.created,
1606
+ createdBy: this.createdBy,
1607
+ modified: this.modified,
1608
+ account: this.account,
1609
+ job: this.job,
1610
+ body: this.body,
1611
+ cc: this.cc,
1612
+ files: this.files,
1613
+ message: this.message,
1614
+ recipients: this.recipients,
1615
+ replyTo: this.replyTo,
1616
+ reports: this.reports,
1617
+ sender: this.sender,
1618
+ sentTime: this.sentTime,
1619
+ subject: this.subject,
1620
+ succeeded: this.succeeded,
1621
+ };
1622
+ }
1623
+ }
1624
+
1547
1625
  /**
1548
1626
  * A non sophisticated way to get values from the job via paths. For example:
1549
1627
  *
@@ -2289,5 +2367,5 @@ class VasVehicleModel extends VasAccountObjectModel {
2289
2367
  * Generated bundle index. Do not edit.
2290
2368
  */
2291
2369
 
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 };
2370
+ 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
2371
  //# sourceMappingURL=ironcode-vas-lib.mjs.map