@vendasta/developer-training 0.21.0 → 0.22.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.
@@ -625,6 +625,9 @@ class KOdlandTask {
625
625
  if (typeof this.taskCompleted !== 'undefined') {
626
626
  toReturn['taskCompleted'] = this.taskCompleted;
627
627
  }
628
+ if (typeof this.taskDeleted !== 'undefined') {
629
+ toReturn['taskDeleted'] = this.taskDeleted;
630
+ }
628
631
  return toReturn;
629
632
  }
630
633
  }
@@ -1485,6 +1488,9 @@ class SPrajapatiCreateToDoRequest {
1485
1488
  static fromProto(proto) {
1486
1489
  let m = new SPrajapatiCreateToDoRequest();
1487
1490
  m = Object.assign(m, proto);
1491
+ if (proto.duedate) {
1492
+ m.duedate = new Date(proto.duedate);
1493
+ }
1488
1494
  return m;
1489
1495
  }
1490
1496
  constructor(kwargs) {
@@ -1507,6 +1513,9 @@ class SPrajapatiCreateToDoRequest {
1507
1513
  if (typeof this.deleted !== 'undefined') {
1508
1514
  toReturn['deleted'] = this.deleted;
1509
1515
  }
1516
+ if (typeof this.duedate !== 'undefined' && this.duedate !== null) {
1517
+ toReturn['duedate'] = 'toApiJson' in this.duedate ? this.duedate.toApiJson() : this.duedate;
1518
+ }
1510
1519
  return toReturn;
1511
1520
  }
1512
1521
  }
@@ -1629,6 +1638,9 @@ class SPrajapatiToDo {
1629
1638
  static fromProto(proto) {
1630
1639
  let m = new SPrajapatiToDo();
1631
1640
  m = Object.assign(m, proto);
1641
+ if (proto.duedate) {
1642
+ m.duedate = new Date(proto.duedate);
1643
+ }
1632
1644
  return m;
1633
1645
  }
1634
1646
  constructor(kwargs) {
@@ -1654,6 +1666,9 @@ class SPrajapatiToDo {
1654
1666
  if (typeof this.deleted !== 'undefined') {
1655
1667
  toReturn['deleted'] = this.deleted;
1656
1668
  }
1669
+ if (typeof this.duedate !== 'undefined' && this.duedate !== null) {
1670
+ toReturn['duedate'] = 'toApiJson' in this.duedate ? this.duedate.toApiJson() : this.duedate;
1671
+ }
1657
1672
  return toReturn;
1658
1673
  }
1659
1674
  }
@@ -1661,6 +1676,9 @@ class SPrajapatiUpdateToDoRequest {
1661
1676
  static fromProto(proto) {
1662
1677
  let m = new SPrajapatiUpdateToDoRequest();
1663
1678
  m = Object.assign(m, proto);
1679
+ if (proto.duedate) {
1680
+ m.duedate = new Date(proto.duedate);
1681
+ }
1664
1682
  return m;
1665
1683
  }
1666
1684
  constructor(kwargs) {
@@ -1686,6 +1704,9 @@ class SPrajapatiUpdateToDoRequest {
1686
1704
  if (typeof this.deleted !== 'undefined') {
1687
1705
  toReturn['deleted'] = this.deleted;
1688
1706
  }
1707
+ if (typeof this.duedate !== 'undefined' && this.duedate !== null) {
1708
+ toReturn['duedate'] = 'toApiJson' in this.duedate ? this.duedate.toApiJson() : this.duedate;
1709
+ }
1689
1710
  return toReturn;
1690
1711
  }
1691
1712
  }