@azrico/webobject 1.5.10 → 1.5.12

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.
@@ -512,24 +512,25 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
512
512
  return get_basicObject;
513
513
  }()
514
514
  /**
515
- * calls the `get_deltaObject` with `allProperties=true` `extraProperties=true`
515
+ * calls the `get_deltaObject` with
516
+ * `allProperties` `extraProperties`
517
+ * set to true
516
518
  *
517
- * useful in server applications
518
519
  * @returns
519
520
  */
520
521
  )
521
522
  }, {
522
- key: "get_fullObject",
523
+ key: "get_fullDeltaObject",
523
524
  value: (function () {
524
- var _get_fullObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(p) {
525
+ var _get_fullDeltaObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(p) {
525
526
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
526
527
  while (1) switch (_context9.prev = _context9.next) {
527
528
  case 0:
528
529
  _context9.next = 2;
529
- return this.get_deltaObject({
530
+ return this.get_deltaObject(_objectSpread({
530
531
  allProperties: true,
531
532
  extraProperties: true
532
- });
533
+ }, p));
533
534
  case 2:
534
535
  return _context9.abrupt("return", _context9.sent);
535
536
  case 3:
@@ -538,7 +539,41 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
538
539
  }
539
540
  }, _callee9, this);
540
541
  }));
541
- function get_fullObject(_x3) {
542
+ function get_fullDeltaObject(_x3) {
543
+ return _get_fullDeltaObject.apply(this, arguments);
544
+ }
545
+ return get_fullDeltaObject;
546
+ }()
547
+ /**
548
+ * calls the `get_deltaObject` with
549
+ * `allProperties` `extraProperties` `tempProperties`
550
+ * set to true
551
+ *
552
+ * @returns
553
+ */
554
+ )
555
+ }, {
556
+ key: "get_fullObject",
557
+ value: (function () {
558
+ var _get_fullObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(p) {
559
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
560
+ while (1) switch (_context10.prev = _context10.next) {
561
+ case 0:
562
+ _context10.next = 2;
563
+ return this.get_deltaObject(_objectSpread({
564
+ allProperties: true,
565
+ extraProperties: true,
566
+ tempProperties: true
567
+ }, p));
568
+ case 2:
569
+ return _context10.abrupt("return", _context10.sent);
570
+ case 3:
571
+ case "end":
572
+ return _context10.stop();
573
+ }
574
+ }, _callee10, this);
575
+ }));
576
+ function get_fullObject(_x4) {
542
577
  return _get_fullObject.apply(this, arguments);
543
578
  }
544
579
  return get_fullObject;
@@ -552,183 +587,171 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
552
587
  }, {
553
588
  key: "get_deltaObject",
554
589
  value: (function () {
555
- var _get_deltaObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(p) {
556
- var final_object, isChild, useDelta, allProperties, needId, chkChangables, useExtraProps, dlt, key, changableKeys, functionProps, index, fp, parseObj, _parseObj, _iterator, _step, _key, gotIndex, gotId, tempusers;
557
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
558
- while (1) switch (_context12.prev = _context12.next) {
590
+ var _get_deltaObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(p) {
591
+ var final_object, useDelta, chkChangables, changedFields, key, changableKeys, functionProps, index, fp, parseObj, _parseObj, _iterator, _step, _key, gotIndex, gotId, tempusers;
592
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
593
+ while (1) switch (_context13.prev = _context13.next) {
559
594
  case 0:
560
595
  _parseObj = function _parseObj3() {
561
- _parseObj = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(obj) {
596
+ _parseObj = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(obj) {
562
597
  var newobj_dlt;
563
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
564
- while (1) switch (_context11.prev = _context11.next) {
598
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
599
+ while (1) switch (_context12.prev = _context12.next) {
565
600
  case 0:
566
601
  if (!(obj == null)) {
567
- _context11.next = 2;
602
+ _context12.next = 2;
568
603
  break;
569
604
  }
570
- return _context11.abrupt("return", undefined);
605
+ return _context12.abrupt("return", undefined);
571
606
  case 2:
572
607
  if (!Array.isArray(obj)) {
573
- _context11.next = 6;
608
+ _context12.next = 6;
574
609
  break;
575
610
  }
576
- _context11.next = 5;
611
+ _context12.next = 5;
577
612
  return Promise.all(obj.map( /*#__PURE__*/function () {
578
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(r) {
579
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
580
- while (1) switch (_context10.prev = _context10.next) {
613
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(r) {
614
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
615
+ while (1) switch (_context11.prev = _context11.next) {
581
616
  case 0:
582
- _context10.next = 2;
617
+ _context11.next = 2;
583
618
  return parseObj(r);
584
619
  case 2:
585
- return _context10.abrupt("return", _context10.sent);
620
+ return _context11.abrupt("return", _context11.sent);
586
621
  case 3:
587
622
  case "end":
588
- return _context10.stop();
623
+ return _context11.stop();
589
624
  }
590
- }, _callee10);
625
+ }, _callee11);
591
626
  }));
592
- return function (_x6) {
627
+ return function (_x7) {
593
628
  return _ref.apply(this, arguments);
594
629
  };
595
630
  }()));
596
631
  case 5:
597
- return _context11.abrupt("return", _context11.sent);
632
+ return _context12.abrupt("return", _context12.sent);
598
633
  case 6:
599
634
  if (!(obj instanceof WebObject && typeof obj.get_deltaObject === "function")) {
600
- _context11.next = 15;
635
+ _context12.next = 15;
601
636
  break;
602
637
  }
603
- _context11.next = 9;
638
+ _context12.next = 9;
604
639
  return obj.get_deltaObject(_objectSpread(_objectSpread({}, p), {}, {
605
640
  isChild: true
606
641
  }));
607
642
  case 9:
608
- newobj_dlt = _context11.sent;
643
+ newobj_dlt = _context12.sent;
609
644
  if ((0, _object.object_isEmpty)(newobj_dlt)) {
610
- _context11.next = 14;
645
+ _context12.next = 14;
611
646
  break;
612
647
  }
613
- return _context11.abrupt("return", newobj_dlt);
648
+ return _context12.abrupt("return", newobj_dlt);
614
649
  case 14:
615
- return _context11.abrupt("return", obj);
650
+ return _context12.abrupt("return", obj);
616
651
  case 15:
617
- return _context11.abrupt("return", obj);
652
+ return _context12.abrupt("return", obj);
618
653
  case 16:
619
654
  case "end":
620
- return _context11.stop();
655
+ return _context12.stop();
621
656
  }
622
- }, _callee11);
657
+ }, _callee12);
623
658
  }));
624
659
  return _parseObj.apply(this, arguments);
625
660
  };
626
- parseObj = function _parseObj2(_x5) {
661
+ parseObj = function _parseObj2(_x6) {
627
662
  return _parseObj.apply(this, arguments);
628
663
  };
629
664
  if (!p) p = {};
630
665
  final_object = {}; //@ts-ignore
631
- isChild = Boolean(p.isChild || p.ischild); //@ts-ignore
632
- useDelta = this.__use_delta || Boolean(p.useDelta || p.usedelta);
633
- allProperties = Boolean(
634
- //@ts-ignore
635
- p.allProperties || p.allproperties || isChild); //@ts-ignore
636
- needId = Boolean(p.needId || p.needid);
666
+ useDelta = this.__use_delta || p.useDelta;
637
667
  chkChangables = this.__changeables != null || this.__unchangeables != null;
638
- useExtraProps = Boolean(p.extraProperties); //child objects usually dont update their __delta, so we read info from all of its properties
639
- dlt = allProperties || !useDelta && isChild && chkChangables ? _objectSpread({}, this.allproperties) : _objectSpread({}, this.__delta);
668
+ /**
669
+ * child objects usually dont update their __delta
670
+ * so we read info from all of its properties
671
+ */
672
+ changedFields = p.allProperties || !useDelta && p.isChild && chkChangables ? _objectSpread({}, this.allproperties) : _objectSpread({}, this.__delta);
640
673
  /* ------------- parse children that have WebObject as delta ------------- */
641
- _context12.t0 = _regeneratorRuntime().keys(this);
642
- case 12:
643
- if ((_context12.t1 = _context12.t0()).done) {
644
- _context12.next = 19;
674
+ _context13.t0 = _regeneratorRuntime().keys(this);
675
+ case 8:
676
+ if ((_context13.t1 = _context13.t0()).done) {
677
+ _context13.next = 15;
645
678
  break;
646
679
  }
647
- key = _context12.t1.value;
648
- if (!(key.startsWith("__") || key in dlt)) {
649
- _context12.next = 16;
680
+ key = _context13.t1.value;
681
+ if (!(key.startsWith("__") || key in changedFields)) {
682
+ _context13.next = 12;
650
683
  break;
651
684
  }
652
- return _context12.abrupt("continue", 12);
653
- case 16:
685
+ return _context13.abrupt("continue", 8);
686
+ case 12:
654
687
  if (_WebObjectHelper["default"].isChangedWebObjectField(this[key])) {
655
688
  /**
656
- * if an array child has any change we must change the whole array to database
689
+ * if a child has any change we must add it into our delta
690
+ * notice that the changes may not be saved to database depending on __changeables
691
+ * but they are changes nevertheless
657
692
  */
658
- dlt[key] = this[key];
693
+ changedFields[key] = this[key];
659
694
  }
660
- _context12.next = 12;
695
+ _context13.next = 8;
661
696
  break;
662
- case 19:
697
+ case 15:
663
698
  /* ------------------------- get all changeable keys ------------------------ */
664
- changableKeys = (0, _object.array_intersection)(Object.keys(dlt), WebObject.getChangeableKeys(this, {
665
- useExtraProps: useExtraProps,
666
- ignoreProtected: allProperties
667
- })); // chkChangables
668
- // ? allkeys.filter((s) =>
669
- // SimpleObject.canChangeKey(this, s, {
670
- // useExtraProps: useExtraProps,
671
- // ignoreProtected: allProperties,
672
- // }),
673
- // )
674
- // : allkeys;
675
- _context12.next = 22;
699
+ changableKeys = (0, _object.array_intersection)(Object.keys(changedFields), WebObject.getChangeableKeys(this, p));
700
+ _context13.next = 18;
676
701
  return _convert["default"].applyFormats({
677
- inputobject: dlt,
702
+ inputobject: changedFields,
678
703
  formats: (0, _object.object_getStatic)(this, "__formatList"),
679
704
  changableKeys: changableKeys,
680
705
  applyDefaults: true
681
706
  });
682
- case 22:
707
+ case 18:
683
708
  /* -------------------------------------------------------------------------- */
684
709
  /* __functionProperties */
685
710
  /* -------------------------------------------------------------------------- */
686
711
  functionProps = (0, _object.object_getStatic)(this, "__functionProperties");
687
- if (Array.isArray(functionProps)) {
688
- for (index = 0; index < functionProps.length; index++) {
689
- fp = functionProps[index];
690
- if (dlt[fp]) dlt[fp] = (0, _object.fn_eval_this)(this, dlt[fp]);
691
- }
712
+ for (index = 0; index < functionProps.length; index++) {
713
+ fp = functionProps[index];
714
+ if (changedFields[fp]) changedFields[fp] = (0, _object.fn_eval_this)(this, changedFields[fp]);
692
715
  }
693
716
  /* -------------------------------------------------------------------------- */
694
717
  /* parse all changableKeys */
695
718
  /* -------------------------------------------------------------------------- */
696
719
  _iterator = _createForOfIteratorHelper(changableKeys);
697
- _context12.prev = 25;
720
+ _context13.prev = 21;
698
721
  _iterator.s();
699
- case 27:
722
+ case 23:
700
723
  if ((_step = _iterator.n()).done) {
701
- _context12.next = 34;
724
+ _context13.next = 30;
702
725
  break;
703
726
  }
704
727
  _key = _step.value;
705
- _context12.next = 31;
706
- return parseObj(dlt[_key]);
707
- case 31:
708
- final_object[_key] = _context12.sent;
709
- case 32:
710
- _context12.next = 27;
728
+ _context13.next = 27;
729
+ return parseObj(changedFields[_key]);
730
+ case 27:
731
+ final_object[_key] = _context13.sent;
732
+ case 28:
733
+ _context13.next = 23;
711
734
  break;
712
- case 34:
713
- _context12.next = 39;
735
+ case 30:
736
+ _context13.next = 35;
714
737
  break;
715
- case 36:
716
- _context12.prev = 36;
717
- _context12.t2 = _context12["catch"](25);
718
- _iterator.e(_context12.t2);
719
- case 39:
720
- _context12.prev = 39;
738
+ case 32:
739
+ _context13.prev = 32;
740
+ _context13.t2 = _context13["catch"](21);
741
+ _iterator.e(_context13.t2);
742
+ case 35:
743
+ _context13.prev = 35;
721
744
  _iterator.f();
722
- return _context12.finish(39);
723
- case 42:
745
+ return _context13.finish(35);
746
+ case 38:
724
747
  /* -------------------- add acrhived and date properties -------------------- */
725
- if (allProperties) {
748
+ if (p.allProperties) {
726
749
  final_object["_created_date"] = this["_created_date"];
727
750
  final_object["_archived"] = this.isArchived;
728
751
  final_object["_deleted"] = this.isDeleted;
729
752
  }
730
753
  /* ---------------------------- add id properties --------------------------- */
731
- if (allProperties || needId) {
754
+ if (p.allProperties || p.needId) {
732
755
  if (this["_index_key"]) final_object["_index_key"] = this["_index_key"];
733
756
  gotIndex = this.getIndex();
734
757
  gotId = this.getID();
@@ -745,14 +768,14 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
745
768
  });
746
769
  final_object["_users"] = (0, _object.wrap_array)(tempusers);
747
770
  }
748
- return _context12.abrupt("return", final_object);
749
- case 46:
771
+ return _context13.abrupt("return", final_object);
772
+ case 42:
750
773
  case "end":
751
- return _context12.stop();
774
+ return _context13.stop();
752
775
  }
753
- }, _callee12, this, [[25, 36, 39, 42]]);
776
+ }, _callee13, this, [[21, 32, 35, 38]]);
754
777
  }));
755
- function get_deltaObject(_x4) {
778
+ function get_deltaObject(_x5) {
756
779
  return _get_deltaObject.apply(this, arguments);
757
780
  }
758
781
  return get_deltaObject;
@@ -775,28 +798,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
775
798
  }, {
776
799
  key: "onDelete",
777
800
  value: ( /* -------------------------------------------------------------------------- */function () {
778
- var _onDelete = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
801
+ var _onDelete = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
779
802
  var _this$manager;
780
803
  var _len,
781
804
  p,
782
805
  _key2,
783
- _args13 = arguments;
784
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
785
- while (1) switch (_context13.prev = _context13.next) {
806
+ _args14 = arguments;
807
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
808
+ while (1) switch (_context14.prev = _context14.next) {
786
809
  case 0:
787
810
  if (this.isSaved) this.isDeleted = true;
788
- for (_len = _args13.length, p = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
789
- p[_key2] = _args13[_key2];
811
+ for (_len = _args14.length, p = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
812
+ p[_key2] = _args14[_key2];
790
813
  }
791
- _context13.next = 4;
814
+ _context14.next = 4;
792
815
  return (_this$manager = this.manager) === null || _this$manager === void 0 ? void 0 : _this$manager.onDelete.apply(_this$manager, p);
793
816
  case 4:
794
- return _context13.abrupt("return", _context13.sent);
817
+ return _context14.abrupt("return", _context14.sent);
795
818
  case 5:
796
819
  case "end":
797
- return _context13.stop();
820
+ return _context14.stop();
798
821
  }
799
- }, _callee13, this);
822
+ }, _callee14, this);
800
823
  }));
801
824
  function onDelete() {
802
825
  return _onDelete.apply(this, arguments);
@@ -806,28 +829,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
806
829
  }, {
807
830
  key: "onArchive",
808
831
  value: function () {
809
- var _onArchive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
832
+ var _onArchive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
810
833
  var _this$manager2;
811
834
  var _len2,
812
835
  p,
813
836
  _key3,
814
- _args14 = arguments;
815
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
816
- while (1) switch (_context14.prev = _context14.next) {
837
+ _args15 = arguments;
838
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
839
+ while (1) switch (_context15.prev = _context15.next) {
817
840
  case 0:
818
841
  if (this.isSaved) this.isArchived = true;
819
- for (_len2 = _args14.length, p = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
820
- p[_key3] = _args14[_key3];
842
+ for (_len2 = _args15.length, p = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
843
+ p[_key3] = _args15[_key3];
821
844
  }
822
- _context14.next = 4;
845
+ _context15.next = 4;
823
846
  return (_this$manager2 = this.manager) === null || _this$manager2 === void 0 ? void 0 : _this$manager2.onArchive.apply(_this$manager2, p);
824
847
  case 4:
825
- return _context14.abrupt("return", _context14.sent);
848
+ return _context15.abrupt("return", _context15.sent);
826
849
  case 5:
827
850
  case "end":
828
- return _context14.stop();
851
+ return _context15.stop();
829
852
  }
830
- }, _callee14, this);
853
+ }, _callee15, this);
831
854
  }));
832
855
  function onArchive() {
833
856
  return _onArchive.apply(this, arguments);
@@ -837,28 +860,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
837
860
  }, {
838
861
  key: "onUnArchive",
839
862
  value: function () {
840
- var _onUnArchive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
863
+ var _onUnArchive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
841
864
  var _this$manager3;
842
865
  var _len3,
843
866
  p,
844
867
  _key4,
845
- _args15 = arguments;
846
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
847
- while (1) switch (_context15.prev = _context15.next) {
868
+ _args16 = arguments;
869
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
870
+ while (1) switch (_context16.prev = _context16.next) {
848
871
  case 0:
849
872
  if (this.isSaved) this.isArchived = false;
850
- for (_len3 = _args15.length, p = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) {
851
- p[_key4] = _args15[_key4];
873
+ for (_len3 = _args16.length, p = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) {
874
+ p[_key4] = _args16[_key4];
852
875
  }
853
- _context15.next = 4;
876
+ _context16.next = 4;
854
877
  return (_this$manager3 = this.manager) === null || _this$manager3 === void 0 ? void 0 : _this$manager3.onUnArchive.apply(_this$manager3, p);
855
878
  case 4:
856
- return _context15.abrupt("return", _context15.sent);
879
+ return _context16.abrupt("return", _context16.sent);
857
880
  case 5:
858
881
  case "end":
859
- return _context15.stop();
882
+ return _context16.stop();
860
883
  }
861
- }, _callee15, this);
884
+ }, _callee16, this);
862
885
  }));
863
886
  function onUnArchive() {
864
887
  return _onUnArchive.apply(this, arguments);
@@ -868,28 +891,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
868
891
  }, {
869
892
  key: "onLock",
870
893
  value: function () {
871
- var _onLock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
894
+ var _onLock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
872
895
  var _this$manager4;
873
896
  var _len4,
874
897
  p,
875
898
  _key5,
876
- _args16 = arguments;
877
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
878
- while (1) switch (_context16.prev = _context16.next) {
899
+ _args17 = arguments;
900
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
901
+ while (1) switch (_context17.prev = _context17.next) {
879
902
  case 0:
880
903
  if (this.isSaved) this.isLocked = true;
881
- for (_len4 = _args16.length, p = new Array(_len4), _key5 = 0; _key5 < _len4; _key5++) {
882
- p[_key5] = _args16[_key5];
904
+ for (_len4 = _args17.length, p = new Array(_len4), _key5 = 0; _key5 < _len4; _key5++) {
905
+ p[_key5] = _args17[_key5];
883
906
  }
884
- _context16.next = 4;
907
+ _context17.next = 4;
885
908
  return (_this$manager4 = this.manager) === null || _this$manager4 === void 0 ? void 0 : _this$manager4.onLock.apply(_this$manager4, p);
886
909
  case 4:
887
- return _context16.abrupt("return", _context16.sent);
910
+ return _context17.abrupt("return", _context17.sent);
888
911
  case 5:
889
912
  case "end":
890
- return _context16.stop();
913
+ return _context17.stop();
891
914
  }
892
- }, _callee16, this);
915
+ }, _callee17, this);
893
916
  }));
894
917
  function onLock() {
895
918
  return _onLock.apply(this, arguments);
@@ -899,28 +922,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
899
922
  }, {
900
923
  key: "onUnLock",
901
924
  value: function () {
902
- var _onUnLock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
925
+ var _onUnLock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
903
926
  var _this$manager5;
904
927
  var _len5,
905
928
  p,
906
929
  _key6,
907
- _args17 = arguments;
908
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
909
- while (1) switch (_context17.prev = _context17.next) {
930
+ _args18 = arguments;
931
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
932
+ while (1) switch (_context18.prev = _context18.next) {
910
933
  case 0:
911
934
  if (this.isSaved) this.isLocked = false;
912
- for (_len5 = _args17.length, p = new Array(_len5), _key6 = 0; _key6 < _len5; _key6++) {
913
- p[_key6] = _args17[_key6];
935
+ for (_len5 = _args18.length, p = new Array(_len5), _key6 = 0; _key6 < _len5; _key6++) {
936
+ p[_key6] = _args18[_key6];
914
937
  }
915
- _context17.next = 4;
938
+ _context18.next = 4;
916
939
  return (_this$manager5 = this.manager) === null || _this$manager5 === void 0 ? void 0 : _this$manager5.onUnLock.apply(_this$manager5, p);
917
940
  case 4:
918
- return _context17.abrupt("return", _context17.sent);
941
+ return _context18.abrupt("return", _context18.sent);
919
942
  case 5:
920
943
  case "end":
921
- return _context17.stop();
944
+ return _context18.stop();
922
945
  }
923
- }, _callee17, this);
946
+ }, _callee18, this);
924
947
  }));
925
948
  function onUnLock() {
926
949
  return _onUnLock.apply(this, arguments);
@@ -930,28 +953,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
930
953
  }, {
931
954
  key: "onLoad",
932
955
  value: function () {
933
- var _onLoad = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
956
+ var _onLoad = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
934
957
  var _this$manager6;
935
958
  var _len6,
936
959
  p,
937
960
  _key7,
938
- _args18 = arguments;
939
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
940
- while (1) switch (_context18.prev = _context18.next) {
961
+ _args19 = arguments;
962
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
963
+ while (1) switch (_context19.prev = _context19.next) {
941
964
  case 0:
942
965
  this.isDeleted = false;
943
- for (_len6 = _args18.length, p = new Array(_len6), _key7 = 0; _key7 < _len6; _key7++) {
944
- p[_key7] = _args18[_key7];
966
+ for (_len6 = _args19.length, p = new Array(_len6), _key7 = 0; _key7 < _len6; _key7++) {
967
+ p[_key7] = _args19[_key7];
945
968
  }
946
- _context18.next = 4;
969
+ _context19.next = 4;
947
970
  return (_this$manager6 = this.manager) === null || _this$manager6 === void 0 ? void 0 : _this$manager6.onLoad.apply(_this$manager6, p);
948
971
  case 4:
949
- return _context18.abrupt("return", _context18.sent);
972
+ return _context19.abrupt("return", _context19.sent);
950
973
  case 5:
951
974
  case "end":
952
- return _context18.stop();
975
+ return _context19.stop();
953
976
  }
954
- }, _callee18, this);
977
+ }, _callee19, this);
955
978
  }));
956
979
  function onLoad() {
957
980
  return _onLoad.apply(this, arguments);
@@ -961,47 +984,47 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
961
984
  }, {
962
985
  key: "onSave",
963
986
  value: function () {
964
- var _onSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
987
+ var _onSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
965
988
  var _this$manager8;
966
989
  var srObject,
967
990
  _this$manager7,
968
991
  _len7,
969
992
  p,
970
993
  _key8,
971
- _args19 = arguments;
972
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
973
- while (1) switch (_context19.prev = _context19.next) {
994
+ _args20 = arguments;
995
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
996
+ while (1) switch (_context20.prev = _context20.next) {
974
997
  case 0:
975
998
  if (!this.isSaved) {
976
- _context19.next = 7;
999
+ _context20.next = 7;
977
1000
  break;
978
1001
  }
979
1002
  this.apply_changes();
980
1003
  srObject = this.getSaveResult(true);
981
1004
  if (!this.saveResultHasID(srObject)) {
982
- _context19.next = 7;
1005
+ _context20.next = 7;
983
1006
  break;
984
1007
  }
985
1008
  /* -------------------------------------------------------------------------- */
986
1009
  WebObject.LoadIdsFromSaveResult(this, srObject);
987
- _context19.next = 7;
1010
+ _context20.next = 7;
988
1011
  return (_this$manager7 = this.manager) === null || _this$manager7 === void 0 ? void 0 : _this$manager7.event_run("on_id_change");
989
1012
  case 7:
990
- for (_len7 = _args19.length, p = new Array(_len7), _key8 = 0; _key8 < _len7; _key8++) {
991
- p[_key8] = _args19[_key8];
1013
+ for (_len7 = _args20.length, p = new Array(_len7), _key8 = 0; _key8 < _len7; _key8++) {
1014
+ p[_key8] = _args20[_key8];
992
1015
  }
993
- _context19.next = 10;
1016
+ _context20.next = 10;
994
1017
  return (_this$manager8 = this.manager) === null || _this$manager8 === void 0 ? void 0 : _this$manager8.onSave.apply(_this$manager8, p);
995
1018
  case 10:
996
- _context19.next = 12;
1019
+ _context20.next = 12;
997
1020
  return this.onAfterSave();
998
1021
  case 12:
999
- return _context19.abrupt("return", true);
1022
+ return _context20.abrupt("return", true);
1000
1023
  case 13:
1001
1024
  case "end":
1002
- return _context19.stop();
1025
+ return _context20.stop();
1003
1026
  }
1004
- }, _callee19, this);
1027
+ }, _callee20, this);
1005
1028
  }));
1006
1029
  function onSave() {
1007
1030
  return _onSave.apply(this, arguments);
@@ -1011,27 +1034,27 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1011
1034
  }, {
1012
1035
  key: "onAfterSave",
1013
1036
  value: function () {
1014
- var _onAfterSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
1037
+ var _onAfterSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
1015
1038
  var _this$manager9;
1016
1039
  var _len8,
1017
1040
  p,
1018
1041
  _key9,
1019
- _args20 = arguments;
1020
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
1021
- while (1) switch (_context20.prev = _context20.next) {
1042
+ _args21 = arguments;
1043
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
1044
+ while (1) switch (_context21.prev = _context21.next) {
1022
1045
  case 0:
1023
- for (_len8 = _args20.length, p = new Array(_len8), _key9 = 0; _key9 < _len8; _key9++) {
1024
- p[_key9] = _args20[_key9];
1046
+ for (_len8 = _args21.length, p = new Array(_len8), _key9 = 0; _key9 < _len8; _key9++) {
1047
+ p[_key9] = _args21[_key9];
1025
1048
  }
1026
- _context20.next = 3;
1049
+ _context21.next = 3;
1027
1050
  return (_this$manager9 = this.manager) === null || _this$manager9 === void 0 ? void 0 : _this$manager9.onAfterSave.apply(_this$manager9, p);
1028
1051
  case 3:
1029
- return _context20.abrupt("return", true);
1052
+ return _context21.abrupt("return", true);
1030
1053
  case 4:
1031
1054
  case "end":
1032
- return _context20.stop();
1055
+ return _context21.stop();
1033
1056
  }
1034
- }, _callee20, this);
1057
+ }, _callee21, this);
1035
1058
  }));
1036
1059
  function onAfterSave() {
1037
1060
  return _onAfterSave.apply(this, arguments);
@@ -1056,27 +1079,27 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1056
1079
  }, {
1057
1080
  key: "onNew",
1058
1081
  value: function () {
1059
- var _onNew = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
1082
+ var _onNew = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
1060
1083
  var _this$manager10;
1061
1084
  var _len9,
1062
1085
  p,
1063
1086
  _key10,
1064
- _args21 = arguments;
1065
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
1066
- while (1) switch (_context21.prev = _context21.next) {
1087
+ _args22 = arguments;
1088
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
1089
+ while (1) switch (_context22.prev = _context22.next) {
1067
1090
  case 0:
1068
- for (_len9 = _args21.length, p = new Array(_len9), _key10 = 0; _key10 < _len9; _key10++) {
1069
- p[_key10] = _args21[_key10];
1091
+ for (_len9 = _args22.length, p = new Array(_len9), _key10 = 0; _key10 < _len9; _key10++) {
1092
+ p[_key10] = _args22[_key10];
1070
1093
  }
1071
- _context21.next = 3;
1094
+ _context22.next = 3;
1072
1095
  return (_this$manager10 = this.manager) === null || _this$manager10 === void 0 ? void 0 : _this$manager10.onNew.apply(_this$manager10, p);
1073
1096
  case 3:
1074
- return _context21.abrupt("return", _context21.sent);
1097
+ return _context22.abrupt("return", _context22.sent);
1075
1098
  case 4:
1076
1099
  case "end":
1077
- return _context21.stop();
1100
+ return _context22.stop();
1078
1101
  }
1079
- }, _callee21, this);
1102
+ }, _callee22, this);
1080
1103
  }));
1081
1104
  function onNew() {
1082
1105
  return _onNew.apply(this, arguments);
@@ -1132,7 +1155,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1132
1155
  }, {
1133
1156
  key: "saveList",
1134
1157
  value: function () {
1135
- var _saveList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(itemList) {
1158
+ var _saveList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(itemList) {
1136
1159
  var _extraOptions$chunksi;
1137
1160
  var extraOptions,
1138
1161
  chunks,
@@ -1149,11 +1172,11 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1149
1172
  _item,
1150
1173
  _index2,
1151
1174
  _item2,
1152
- _args22 = arguments;
1153
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
1154
- while (1) switch (_context22.prev = _context22.next) {
1175
+ _args23 = arguments;
1176
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
1177
+ while (1) switch (_context23.prev = _context23.next) {
1155
1178
  case 0:
1156
- extraOptions = _args22.length > 1 && _args22[1] !== undefined ? _args22[1] : {};
1179
+ extraOptions = _args23.length > 1 && _args23[1] !== undefined ? _args23[1] : {};
1157
1180
  if (!extraOptions) extraOptions = {};
1158
1181
  chunks = (0, _object.array_chunks)(itemList, (_extraOptions$chunksi = extraOptions.chunksize) !== null && _extraOptions$chunksi !== void 0 ? _extraOptions$chunksi : 50);
1159
1182
  delete extraOptions.chunksize;
@@ -1161,7 +1184,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1161
1184
  index = 0;
1162
1185
  case 6:
1163
1186
  if (!(index < chunks.length)) {
1164
- _context22.next = 36;
1187
+ _context23.next = 36;
1165
1188
  break;
1166
1189
  }
1167
1190
  items_to_save = chunks[index];
@@ -1169,83 +1192,83 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1169
1192
  k = 0;
1170
1193
  case 10:
1171
1194
  if (!(k < items_to_save.length)) {
1172
- _context22.next = 19;
1195
+ _context23.next = 19;
1173
1196
  break;
1174
1197
  }
1175
1198
  item = items_to_save[k];
1176
- _context22.next = 14;
1199
+ _context23.next = 14;
1177
1200
  return item.get_deltaObject();
1178
1201
  case 14:
1179
- dlt = _context22.sent;
1202
+ dlt = _context23.sent;
1180
1203
  save_array.push(item.isNew ? _objectSpread({}, dlt) : _objectSpread({
1181
1204
  _id: item.getID()
1182
1205
  }, dlt));
1183
1206
  case 16:
1184
1207
  k++;
1185
- _context22.next = 10;
1208
+ _context23.next = 10;
1186
1209
  break;
1187
1210
  case 19:
1188
- _context22.next = 21;
1211
+ _context23.next = 21;
1189
1212
  return _global.gfunc.run_action("post", putAddress, _objectSpread({
1190
1213
  __save_list: WebObject.zipSaveList(save_array)
1191
1214
  }, extraOptions));
1192
1215
  case 21:
1193
- resultObject = _context22.sent;
1216
+ resultObject = _context23.sent;
1194
1217
  if (!Array.isArray(resultObject)) {
1195
- _context22.next = 33;
1218
+ _context23.next = 33;
1196
1219
  break;
1197
1220
  }
1198
1221
  _index = 0;
1199
1222
  case 24:
1200
1223
  if (!(_index < Math.min(resultObject.length, items_to_save.length))) {
1201
- _context22.next = 33;
1224
+ _context23.next = 33;
1202
1225
  break;
1203
1226
  }
1204
1227
  res = resultObject[_index];
1205
1228
  _item = items_to_save[_index];
1206
1229
  _item.setSaveResult(res);
1207
- _context22.next = 30;
1230
+ _context23.next = 30;
1208
1231
  return _item.onSave();
1209
1232
  case 30:
1210
1233
  _index++;
1211
- _context22.next = 24;
1234
+ _context23.next = 24;
1212
1235
  break;
1213
1236
  case 33:
1214
1237
  index++;
1215
- _context22.next = 6;
1238
+ _context23.next = 6;
1216
1239
  break;
1217
1240
  case 36:
1218
1241
  _index2 = 0;
1219
1242
  case 37:
1220
1243
  if (!(_index2 < itemList.length)) {
1221
- _context22.next = 46;
1244
+ _context23.next = 46;
1222
1245
  break;
1223
1246
  }
1224
1247
  _item2 = itemList[_index2];
1225
1248
  if (_item2.isSaved) {
1226
- _context22.next = 41;
1249
+ _context23.next = 41;
1227
1250
  break;
1228
1251
  }
1229
- return _context22.abrupt("return", false);
1252
+ return _context23.abrupt("return", false);
1230
1253
  case 41:
1231
1254
  if (!(_item2.getSaveResultType() != "normal")) {
1232
- _context22.next = 43;
1255
+ _context23.next = 43;
1233
1256
  break;
1234
1257
  }
1235
- return _context22.abrupt("return", false);
1258
+ return _context23.abrupt("return", false);
1236
1259
  case 43:
1237
1260
  _index2++;
1238
- _context22.next = 37;
1261
+ _context23.next = 37;
1239
1262
  break;
1240
1263
  case 46:
1241
- return _context22.abrupt("return", true);
1264
+ return _context23.abrupt("return", true);
1242
1265
  case 47:
1243
1266
  case "end":
1244
- return _context22.stop();
1267
+ return _context23.stop();
1245
1268
  }
1246
- }, _callee22, this);
1269
+ }, _callee23, this);
1247
1270
  }));
1248
- function saveList(_x7) {
1271
+ function saveList(_x8) {
1249
1272
  return _saveList.apply(this, arguments);
1250
1273
  }
1251
1274
  return saveList;
@@ -1298,7 +1321,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1298
1321
  }, {
1299
1322
  key: "get_single",
1300
1323
  value: (function () {
1301
- var _get_single = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
1324
+ var _get_single = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
1302
1325
  var _p$shift;
1303
1326
  var _len10,
1304
1327
  p,
@@ -1309,61 +1332,61 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1309
1332
  res,
1310
1333
  params,
1311
1334
  usepath,
1312
- _args23 = arguments;
1313
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
1314
- while (1) switch (_context23.prev = _context23.next) {
1335
+ _args24 = arguments;
1336
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
1337
+ while (1) switch (_context24.prev = _context24.next) {
1315
1338
  case 0:
1316
- for (_len10 = _args23.length, p = new Array(_len10), _key11 = 0; _key11 < _len10; _key11++) {
1317
- p[_key11] = _args23[_key11];
1339
+ for (_len10 = _args24.length, p = new Array(_len10), _key11 = 0; _key11 < _len10; _key11++) {
1340
+ p[_key11] = _args24[_key11];
1318
1341
  }
1319
1342
  search = p.shift();
1320
1343
  readonly = (_p$shift = p.shift()) !== null && _p$shift !== void 0 ? _p$shift : false;
1321
1344
  fetchID = p.shift();
1322
1345
  if (!(0, _object.object_isEmpty)(search)) {
1323
- _context23.next = 6;
1346
+ _context24.next = 6;
1324
1347
  break;
1325
1348
  }
1326
- return _context23.abrupt("return", undefined);
1349
+ return _context24.abrupt("return", undefined);
1327
1350
  case 6:
1328
1351
  params = {};
1329
1352
  params.__context = readonly ? "view" : "edit";
1330
- _context23.t0 = _typeof(search);
1331
- _context23.next = _context23.t0 === "string" ? 11 : _context23.t0 === "number" ? 11 : _context23.t0 === "object" ? 22 : 22;
1353
+ _context24.t0 = _typeof(search);
1354
+ _context24.next = _context24.t0 === "string" ? 11 : _context24.t0 === "number" ? 11 : _context24.t0 === "object" ? 22 : 22;
1332
1355
  break;
1333
1356
  case 11:
1334
1357
  search = String(search);
1335
- _context23.next = 14;
1358
+ _context24.next = 14;
1336
1359
  return _WebObjectPathHelper["default"].get_path(this, "get");
1337
1360
  case 14:
1338
- _context23.t1 = _context23.sent;
1339
- _context23.t2 = _context23.t1 + "/";
1340
- _context23.t3 = search;
1341
- usepath = _context23.t2 + _context23.t3;
1342
- _context23.next = 20;
1361
+ _context24.t1 = _context24.sent;
1362
+ _context24.t2 = _context24.t1 + "/";
1363
+ _context24.t3 = search;
1364
+ usepath = _context24.t2 + _context24.t3;
1365
+ _context24.next = 20;
1343
1366
  return _global.gfunc.run_action("get", usepath, params, {
1344
1367
  fetchID: fetchID
1345
1368
  });
1346
1369
  case 20:
1347
- res = _context23.sent;
1348
- return _context23.abrupt("break", 26);
1370
+ res = _context24.sent;
1371
+ return _context24.abrupt("break", 26);
1349
1372
  case 22:
1350
- _context23.next = 24;
1373
+ _context24.next = 24;
1351
1374
  return this.get_list(search, readonly, fetchID);
1352
1375
  case 24:
1353
- res = _context23.sent;
1354
- return _context23.abrupt("break", 26);
1376
+ res = _context24.sent;
1377
+ return _context24.abrupt("break", 26);
1355
1378
  case 26:
1356
1379
  if (res) res = (0, _object.array_first)(res);
1357
1380
  if (!(0, _object.object_isEmpty)(res)) {
1358
1381
  res = this.ensure(this, res);
1359
1382
  WebObject.setReadonly(res, readonly);
1360
1383
  }
1361
- return _context23.abrupt("return", res);
1384
+ return _context24.abrupt("return", res);
1362
1385
  case 29:
1363
1386
  case "end":
1364
- return _context23.stop();
1387
+ return _context24.stop();
1365
1388
  }
1366
- }, _callee23, this);
1389
+ }, _callee24, this);
1367
1390
  }));
1368
1391
  function get_single() {
1369
1392
  return _get_single.apply(this, arguments);
@@ -1378,7 +1401,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1378
1401
  }, {
1379
1402
  key: "get_list",
1380
1403
  value: (function () {
1381
- var _get_list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
1404
+ var _get_list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
1382
1405
  var _p$shift2;
1383
1406
  var _len11,
1384
1407
  p,
@@ -1389,37 +1412,37 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1389
1412
  usepath,
1390
1413
  result_items,
1391
1414
  res,
1392
- _args24 = arguments;
1393
- return _regeneratorRuntime().wrap(function _callee24$(_context24) {
1394
- while (1) switch (_context24.prev = _context24.next) {
1415
+ _args25 = arguments;
1416
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
1417
+ while (1) switch (_context25.prev = _context25.next) {
1395
1418
  case 0:
1396
- for (_len11 = _args24.length, p = new Array(_len11), _key12 = 0; _key12 < _len11; _key12++) {
1397
- p[_key12] = _args24[_key12];
1419
+ for (_len11 = _args25.length, p = new Array(_len11), _key12 = 0; _key12 < _len11; _key12++) {
1420
+ p[_key12] = _args25[_key12];
1398
1421
  }
1399
1422
  search = p.shift();
1400
1423
  readonly = (_p$shift2 = p.shift()) !== null && _p$shift2 !== void 0 ? _p$shift2 : false;
1401
1424
  fetchID = p.shift();
1402
1425
  if (!search) search = {};
1403
- _context24.next = 7;
1426
+ _context25.next = 7;
1404
1427
  return _WebObjectPathHelper["default"].get_path(this, "get");
1405
1428
  case 7:
1406
- usepath = _context24.sent;
1407
- _context24.next = 10;
1429
+ usepath = _context25.sent;
1430
+ _context25.next = 10;
1408
1431
  return _global.gfunc.run_action("get", usepath, search, {
1409
1432
  fetchID: fetchID
1410
1433
  });
1411
1434
  case 10:
1412
- result_items = _context24.sent;
1435
+ result_items = _context25.sent;
1413
1436
  // const selftype = (this.constructor ||
1414
1437
  // Object.getPrototypeOf(this)) as any;
1415
1438
  res = WebObject.map_rowindex(WebObject.mapto(this, result_items, readonly));
1416
1439
  WebObject.setReadonly(res, readonly);
1417
- return _context24.abrupt("return", res);
1440
+ return _context25.abrupt("return", res);
1418
1441
  case 14:
1419
1442
  case "end":
1420
- return _context24.stop();
1443
+ return _context25.stop();
1421
1444
  }
1422
- }, _callee24, this);
1445
+ }, _callee25, this);
1423
1446
  }));
1424
1447
  function get_list() {
1425
1448
  return _get_list.apply(this, arguments);
@@ -1435,43 +1458,43 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1435
1458
  }, {
1436
1459
  key: "get_basicList",
1437
1460
  value: (function () {
1438
- var _get_basicList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
1461
+ var _get_basicList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
1439
1462
  var itemlist,
1440
- _args26 = arguments;
1441
- return _regeneratorRuntime().wrap(function _callee26$(_context26) {
1442
- while (1) switch (_context26.prev = _context26.next) {
1463
+ _args27 = arguments;
1464
+ return _regeneratorRuntime().wrap(function _callee27$(_context27) {
1465
+ while (1) switch (_context27.prev = _context27.next) {
1443
1466
  case 0:
1444
- _context26.next = 2;
1445
- return this.get_list.apply(this, _args26);
1467
+ _context27.next = 2;
1468
+ return this.get_list.apply(this, _args27);
1446
1469
  case 2:
1447
- itemlist = _context26.sent;
1448
- _context26.next = 5;
1470
+ itemlist = _context27.sent;
1471
+ _context27.next = 5;
1449
1472
  return Promise.all(itemlist.map( /*#__PURE__*/function () {
1450
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(r) {
1451
- return _regeneratorRuntime().wrap(function _callee25$(_context25) {
1452
- while (1) switch (_context25.prev = _context25.next) {
1473
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(r) {
1474
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
1475
+ while (1) switch (_context26.prev = _context26.next) {
1453
1476
  case 0:
1454
- _context25.next = 2;
1477
+ _context26.next = 2;
1455
1478
  return r.get_basicObject();
1456
1479
  case 2:
1457
- return _context25.abrupt("return", _context25.sent);
1480
+ return _context26.abrupt("return", _context26.sent);
1458
1481
  case 3:
1459
1482
  case "end":
1460
- return _context25.stop();
1483
+ return _context26.stop();
1461
1484
  }
1462
- }, _callee25);
1485
+ }, _callee26);
1463
1486
  }));
1464
- return function (_x8) {
1487
+ return function (_x9) {
1465
1488
  return _ref2.apply(this, arguments);
1466
1489
  };
1467
1490
  }()));
1468
1491
  case 5:
1469
- return _context26.abrupt("return", _context26.sent);
1492
+ return _context27.abrupt("return", _context27.sent);
1470
1493
  case 6:
1471
1494
  case "end":
1472
- return _context26.stop();
1495
+ return _context27.stop();
1473
1496
  }
1474
- }, _callee26, this);
1497
+ }, _callee27, this);
1475
1498
  }));
1476
1499
  function get_basicList() {
1477
1500
  return _get_basicList.apply(this, arguments);