@vendasta/developer-training 0.12.2 → 0.12.3
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/esm2020/lib/_internal/interfaces/tkabakovtodo.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/tkabakovtodo.mjs +7 -1
- package/fesm2015/vendasta-developer-training.mjs +6 -0
- package/fesm2015/vendasta-developer-training.mjs.map +1 -1
- package/fesm2020/vendasta-developer-training.mjs +6 -0
- package/fesm2020/vendasta-developer-training.mjs.map +1 -1
- package/lib/_internal/interfaces/tkabakovtodo.interface.d.ts +1 -0
- package/lib/_internal/objects/tkabakovtodo.d.ts +1 -0
- package/package.json +1 -1
@@ -339,6 +339,9 @@ class TKabakovAddToDoItemRequest {
|
|
339
339
|
static fromProto(proto) {
|
340
340
|
let m = new TKabakovAddToDoItemRequest();
|
341
341
|
m = Object.assign(m, proto);
|
342
|
+
if (proto.dueDate) {
|
343
|
+
m.dueDate = new Date(proto.dueDate);
|
344
|
+
}
|
342
345
|
return m;
|
343
346
|
}
|
344
347
|
constructor(kwargs) {
|
@@ -355,6 +358,9 @@ class TKabakovAddToDoItemRequest {
|
|
355
358
|
if (typeof this.description !== 'undefined') {
|
356
359
|
toReturn['description'] = this.description;
|
357
360
|
}
|
361
|
+
if (typeof this.dueDate !== 'undefined' && this.dueDate !== null) {
|
362
|
+
toReturn['dueDate'] = 'toApiJson' in this.dueDate ? this.dueDate.toApiJson() : this.dueDate;
|
363
|
+
}
|
358
364
|
return toReturn;
|
359
365
|
}
|
360
366
|
}
|