@tulipnpm/timekit_project_selector 3.0.0-rc.1 → 3.0.0-rc.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.
@@ -25455,25 +25455,25 @@ var TimekitApiClient = /*#__PURE__*/function () {
25455
25455
  }() // New function
25456
25456
 
25457
25457
  }, {
25458
- key: "getLocationByServices",
25458
+ key: "getServicesByLocationId",
25459
25459
  value: function () {
25460
- var _getLocationByServices = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee7() {
25461
- var serviceId,
25460
+ var _getServicesByLocationId = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee7() {
25461
+ var locationId,
25462
25462
  query,
25463
25463
  _args7 = arguments;
25464
25464
  return regenerator_default().wrap(function _callee7$(_context7) {
25465
25465
  while (1) {
25466
25466
  switch (_context7.prev = _context7.next) {
25467
25467
  case 0:
25468
- serviceId = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : null;
25469
- query = this.getMetaQueryForLocations();
25468
+ locationId = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : null;
25469
+ query = this.getMetaQueryForServices();
25470
25470
 
25471
- if (serviceId) {
25472
- query = query + ";services.uuid:".concat(serviceId);
25471
+ if (locationId) {
25472
+ query = query + ";locations.uuid:".concat(locationId);
25473
25473
  }
25474
25474
 
25475
25475
  _context7.next = 5;
25476
- return this.getLocationsByMetaQuery(query);
25476
+ return this.getServicesByMetaQuery(query);
25477
25477
 
25478
25478
  case 5:
25479
25479
  return _context7.abrupt("return", _context7.sent);
@@ -25486,21 +25486,60 @@ var TimekitApiClient = /*#__PURE__*/function () {
25486
25486
  }, _callee7, this);
25487
25487
  }));
25488
25488
 
25489
- function getLocationByServices() {
25490
- return _getLocationByServices.apply(this, arguments);
25489
+ function getServicesByLocationId() {
25490
+ return _getServicesByLocationId.apply(this, arguments);
25491
25491
  }
25492
25492
 
25493
- return getLocationByServices;
25493
+ return getServicesByLocationId;
25494
25494
  }() // New function
25495
25495
 
25496
25496
  }, {
25497
- key: "getServiceLocations",
25497
+ key: "getLocationsByServiceId",
25498
25498
  value: function () {
25499
- var _getServiceLocations = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee8(includePrivate) {
25500
- var query;
25499
+ var _getLocationsByServiceId = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee8() {
25500
+ var serviceId,
25501
+ query,
25502
+ _args8 = arguments;
25501
25503
  return regenerator_default().wrap(function _callee8$(_context8) {
25502
25504
  while (1) {
25503
25505
  switch (_context8.prev = _context8.next) {
25506
+ case 0:
25507
+ serviceId = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : null;
25508
+ query = this.getMetaQueryForLocations();
25509
+
25510
+ if (serviceId) {
25511
+ query = query + ";services.uuid:".concat(serviceId);
25512
+ }
25513
+
25514
+ _context8.next = 5;
25515
+ return this.getLocationsByMetaQuery(query);
25516
+
25517
+ case 5:
25518
+ return _context8.abrupt("return", _context8.sent);
25519
+
25520
+ case 6:
25521
+ case "end":
25522
+ return _context8.stop();
25523
+ }
25524
+ }
25525
+ }, _callee8, this);
25526
+ }));
25527
+
25528
+ function getLocationsByServiceId() {
25529
+ return _getLocationsByServiceId.apply(this, arguments);
25530
+ }
25531
+
25532
+ return getLocationsByServiceId;
25533
+ }() // New function
25534
+
25535
+ }, {
25536
+ key: "getServiceLocations",
25537
+ value: function () {
25538
+ var _getServiceLocations = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee9(includePrivate) {
25539
+ var query;
25540
+ return regenerator_default().wrap(function _callee9$(_context9) {
25541
+ while (1) {
25542
+ switch (_context9.prev = _context9.next) {
25504
25543
  case 0:
25505
25544
  query = this.getMetaQueryForServiceLocations();
25506
25545
 
@@ -25508,18 +25547,18 @@ var TimekitApiClient = /*#__PURE__*/function () {
25508
25547
  query = query + ';meta.t_private:0';
25509
25548
  }
25510
25549
 
25511
- _context8.next = 4;
25550
+ _context9.next = 4;
25512
25551
  return this.getProjectsByMetaQuery(query);
25513
25552
 
25514
25553
  case 4:
25515
- return _context8.abrupt("return", _context8.sent);
25554
+ return _context9.abrupt("return", _context9.sent);
25516
25555
 
25517
25556
  case 5:
25518
25557
  case "end":
25519
- return _context8.stop();
25558
+ return _context9.stop();
25520
25559
  }
25521
25560
  }
25522
- }, _callee8, this);
25561
+ }, _callee9, this);
25523
25562
  }));
25524
25563
 
25525
25564
  function getServiceLocations(_x5) {
@@ -25532,11 +25571,11 @@ var TimekitApiClient = /*#__PURE__*/function () {
25532
25571
  }, {
25533
25572
  key: "getServices",
25534
25573
  value: function () {
25535
- var _getServices = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee9(includePrivate) {
25574
+ var _getServices = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee10(includePrivate) {
25536
25575
  var query;
25537
- return regenerator_default().wrap(function _callee9$(_context9) {
25576
+ return regenerator_default().wrap(function _callee10$(_context10) {
25538
25577
  while (1) {
25539
- switch (_context9.prev = _context9.next) {
25578
+ switch (_context10.prev = _context10.next) {
25540
25579
  case 0:
25541
25580
  query = this.getMetaQueryForServices();
25542
25581
 
@@ -25544,18 +25583,18 @@ var TimekitApiClient = /*#__PURE__*/function () {
25544
25583
  query = query + ';meta.t_private:0';
25545
25584
  }
25546
25585
 
25547
- _context9.next = 4;
25586
+ _context10.next = 4;
25548
25587
  return this.getServicesByMetaQuery(query + '&include=locations');
25549
25588
 
25550
25589
  case 4:
25551
- return _context9.abrupt("return", _context9.sent);
25590
+ return _context10.abrupt("return", _context10.sent);
25552
25591
 
25553
25592
  case 5:
25554
25593
  case "end":
25555
- return _context9.stop();
25594
+ return _context10.stop();
25556
25595
  }
25557
25596
  }
25558
- }, _callee9, this);
25597
+ }, _callee10, this);
25559
25598
  }));
25560
25599
 
25561
25600
  function getServices(_x6) {
@@ -25568,33 +25607,33 @@ var TimekitApiClient = /*#__PURE__*/function () {
25568
25607
  }, {
25569
25608
  key: "getStoreProjects",
25570
25609
  value: function () {
25571
- var _getStoreProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee10() {
25610
+ var _getStoreProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee11() {
25572
25611
  var storeQuery,
25573
25612
  query,
25574
- _args10 = arguments;
25575
- return regenerator_default().wrap(function _callee10$(_context10) {
25613
+ _args11 = arguments;
25614
+ return regenerator_default().wrap(function _callee11$(_context11) {
25576
25615
  while (1) {
25577
- switch (_context10.prev = _context10.next) {
25616
+ switch (_context11.prev = _context11.next) {
25578
25617
  case 0:
25579
- storeQuery = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : null;
25618
+ storeQuery = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : null;
25580
25619
  query = this.getMetaQueryForStores();
25581
25620
 
25582
25621
  if (storeQuery) {
25583
25622
  query = query + ";".concat(storeQuery);
25584
25623
  }
25585
25624
 
25586
- _context10.next = 5;
25625
+ _context11.next = 5;
25587
25626
  return this.getProjectsByMetaQuery(query);
25588
25627
 
25589
25628
  case 5:
25590
- return _context10.abrupt("return", _context10.sent);
25629
+ return _context11.abrupt("return", _context11.sent);
25591
25630
 
25592
25631
  case 6:
25593
25632
  case "end":
25594
- return _context10.stop();
25633
+ return _context11.stop();
25595
25634
  }
25596
25635
  }
25597
- }, _callee10, this);
25636
+ }, _callee11, this);
25598
25637
  }));
25599
25638
 
25600
25639
  function getStoreProjects() {
@@ -25607,11 +25646,11 @@ var TimekitApiClient = /*#__PURE__*/function () {
25607
25646
  }, {
25608
25647
  key: "getStoreAppointmentProjects",
25609
25648
  value: function () {
25610
- var _getStoreAppointmentProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee11(includePrivate) {
25649
+ var _getStoreAppointmentProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee12(includePrivate) {
25611
25650
  var query;
25612
- return regenerator_default().wrap(function _callee11$(_context11) {
25651
+ return regenerator_default().wrap(function _callee12$(_context12) {
25613
25652
  while (1) {
25614
- switch (_context11.prev = _context11.next) {
25653
+ switch (_context12.prev = _context12.next) {
25615
25654
  case 0:
25616
25655
  query = this.getMetaQueryForServiceLocations();
25617
25656
 
@@ -25619,18 +25658,18 @@ var TimekitApiClient = /*#__PURE__*/function () {
25619
25658
  query = query + ';meta.t_private:0';
25620
25659
  }
25621
25660
 
25622
- _context11.next = 4;
25661
+ _context12.next = 4;
25623
25662
  return this.getProjectsByMetaQuery(query);
25624
25663
 
25625
25664
  case 4:
25626
- return _context11.abrupt("return", _context11.sent);
25665
+ return _context12.abrupt("return", _context12.sent);
25627
25666
 
25628
25667
  case 5:
25629
25668
  case "end":
25630
- return _context11.stop();
25669
+ return _context12.stop();
25631
25670
  }
25632
25671
  }
25633
- }, _callee11, this);
25672
+ }, _callee12, this);
25634
25673
  }));
25635
25674
 
25636
25675
  function getStoreAppointmentProjects(_x7) {
@@ -25643,11 +25682,11 @@ var TimekitApiClient = /*#__PURE__*/function () {
25643
25682
  }, {
25644
25683
  key: "getGlobalAppointmentProjects",
25645
25684
  value: function () {
25646
- var _getGlobalAppointmentProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee12(includePrivate) {
25685
+ var _getGlobalAppointmentProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee13(includePrivate) {
25647
25686
  var query;
25648
- return regenerator_default().wrap(function _callee12$(_context12) {
25687
+ return regenerator_default().wrap(function _callee13$(_context13) {
25649
25688
  while (1) {
25650
- switch (_context12.prev = _context12.next) {
25689
+ switch (_context13.prev = _context13.next) {
25651
25690
  case 0:
25652
25691
  query = this.getMetaQueryForGlobalAppointments();
25653
25692
 
@@ -25655,18 +25694,18 @@ var TimekitApiClient = /*#__PURE__*/function () {
25655
25694
  query = query + ';meta.t_private:0';
25656
25695
  }
25657
25696
 
25658
- _context12.next = 4;
25697
+ _context13.next = 4;
25659
25698
  return this.getProjectsByMetaQuery(query);
25660
25699
 
25661
25700
  case 4:
25662
- return _context12.abrupt("return", _context12.sent);
25701
+ return _context13.abrupt("return", _context13.sent);
25663
25702
 
25664
25703
  case 5:
25665
25704
  case "end":
25666
- return _context12.stop();
25705
+ return _context13.stop();
25667
25706
  }
25668
25707
  }
25669
- }, _callee12, this);
25708
+ }, _callee13, this);
25670
25709
  }));
25671
25710
 
25672
25711
  function getGlobalAppointmentProjects(_x8) {
@@ -25678,10 +25717,10 @@ var TimekitApiClient = /*#__PURE__*/function () {
25678
25717
  }, {
25679
25718
  key: "getGlobalAppointments",
25680
25719
  value: function () {
25681
- var _getGlobalAppointments = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee13(includePrivate) {
25682
- return regenerator_default().wrap(function _callee13$(_context13) {
25720
+ var _getGlobalAppointments = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee14(includePrivate) {
25721
+ return regenerator_default().wrap(function _callee14$(_context14) {
25683
25722
  while (1) {
25684
- switch (_context13.prev = _context13.next) {
25723
+ switch (_context14.prev = _context14.next) {
25685
25724
  case 0:
25686
25725
  if (!includePrivate) {
25687
25726
  query = query + 'meta.t_private:0';
@@ -25689,10 +25728,10 @@ var TimekitApiClient = /*#__PURE__*/function () {
25689
25728
 
25690
25729
  case 1:
25691
25730
  case "end":
25692
- return _context13.stop();
25731
+ return _context14.stop();
25693
25732
  }
25694
25733
  }
25695
- }, _callee13);
25734
+ }, _callee14);
25696
25735
  }));
25697
25736
 
25698
25737
  function getGlobalAppointments(_x9) {
@@ -25705,34 +25744,34 @@ var TimekitApiClient = /*#__PURE__*/function () {
25705
25744
  }, {
25706
25745
  key: "getLocationsByMetaQuery",
25707
25746
  value: function () {
25708
- var _getLocationsByMetaQuery = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee15(query) {
25747
+ var _getLocationsByMetaQuery = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee16(query) {
25709
25748
  var _this = this;
25710
25749
 
25711
25750
  var limit,
25712
- _args15 = arguments;
25713
- return regenerator_default().wrap(function _callee15$(_context15) {
25751
+ _args16 = arguments;
25752
+ return regenerator_default().wrap(function _callee16$(_context16) {
25714
25753
  while (1) {
25715
- switch (_context15.prev = _context15.next) {
25754
+ switch (_context16.prev = _context16.next) {
25716
25755
  case 0:
25717
- limit = _args15.length > 1 && _args15[1] !== undefined ? _args15[1] : 100;
25718
- return _context15.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25719
- var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee14(page) {
25720
- return regenerator_default().wrap(function _callee14$(_context14) {
25756
+ limit = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : 100;
25757
+ return _context16.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25758
+ var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee15(page) {
25759
+ return regenerator_default().wrap(function _callee15$(_context15) {
25721
25760
  while (1) {
25722
- switch (_context14.prev = _context14.next) {
25761
+ switch (_context15.prev = _context15.next) {
25723
25762
  case 0:
25724
- _context14.next = 2;
25763
+ _context15.next = 2;
25725
25764
  return _this.getLocationsEndpoint("search=".concat(query, "&limit=").concat(limit, "&page=").concat(page));
25726
25765
 
25727
25766
  case 2:
25728
- return _context14.abrupt("return", _context14.sent);
25767
+ return _context15.abrupt("return", _context15.sent);
25729
25768
 
25730
25769
  case 3:
25731
25770
  case "end":
25732
- return _context14.stop();
25771
+ return _context15.stop();
25733
25772
  }
25734
25773
  }
25735
- }, _callee14);
25774
+ }, _callee15);
25736
25775
  }));
25737
25776
 
25738
25777
  return function (_x11) {
@@ -25742,10 +25781,10 @@ var TimekitApiClient = /*#__PURE__*/function () {
25742
25781
 
25743
25782
  case 2:
25744
25783
  case "end":
25745
- return _context15.stop();
25784
+ return _context16.stop();
25746
25785
  }
25747
25786
  }
25748
- }, _callee15, this);
25787
+ }, _callee16, this);
25749
25788
  }));
25750
25789
 
25751
25790
  function getLocationsByMetaQuery(_x10) {
@@ -25758,34 +25797,34 @@ var TimekitApiClient = /*#__PURE__*/function () {
25758
25797
  }, {
25759
25798
  key: "getServicesByMetaQuery",
25760
25799
  value: function () {
25761
- var _getServicesByMetaQuery = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee17(query) {
25800
+ var _getServicesByMetaQuery = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee18(query) {
25762
25801
  var _this2 = this;
25763
25802
 
25764
25803
  var limit,
25765
- _args17 = arguments;
25766
- return regenerator_default().wrap(function _callee17$(_context17) {
25804
+ _args18 = arguments;
25805
+ return regenerator_default().wrap(function _callee18$(_context18) {
25767
25806
  while (1) {
25768
- switch (_context17.prev = _context17.next) {
25807
+ switch (_context18.prev = _context18.next) {
25769
25808
  case 0:
25770
- limit = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : 100;
25771
- return _context17.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25772
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee16(page) {
25773
- return regenerator_default().wrap(function _callee16$(_context16) {
25809
+ limit = _args18.length > 1 && _args18[1] !== undefined ? _args18[1] : 100;
25810
+ return _context18.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25811
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee17(page) {
25812
+ return regenerator_default().wrap(function _callee17$(_context17) {
25774
25813
  while (1) {
25775
- switch (_context16.prev = _context16.next) {
25814
+ switch (_context17.prev = _context17.next) {
25776
25815
  case 0:
25777
- _context16.next = 2;
25816
+ _context17.next = 2;
25778
25817
  return _this2.getServicesEndpoint("search=".concat(query, "&limit=").concat(limit, "&page=").concat(page));
25779
25818
 
25780
25819
  case 2:
25781
- return _context16.abrupt("return", _context16.sent);
25820
+ return _context17.abrupt("return", _context17.sent);
25782
25821
 
25783
25822
  case 3:
25784
25823
  case "end":
25785
- return _context16.stop();
25824
+ return _context17.stop();
25786
25825
  }
25787
25826
  }
25788
- }, _callee16);
25827
+ }, _callee17);
25789
25828
  }));
25790
25829
 
25791
25830
  return function (_x13) {
@@ -25795,10 +25834,10 @@ var TimekitApiClient = /*#__PURE__*/function () {
25795
25834
 
25796
25835
  case 2:
25797
25836
  case "end":
25798
- return _context17.stop();
25837
+ return _context18.stop();
25799
25838
  }
25800
25839
  }
25801
- }, _callee17, this);
25840
+ }, _callee18, this);
25802
25841
  }));
25803
25842
 
25804
25843
  function getServicesByMetaQuery(_x12) {
@@ -25810,34 +25849,34 @@ var TimekitApiClient = /*#__PURE__*/function () {
25810
25849
  }, {
25811
25850
  key: "getProjectsByMetaQuery",
25812
25851
  value: function () {
25813
- var _getProjectsByMetaQuery = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee19(query) {
25852
+ var _getProjectsByMetaQuery = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee20(query) {
25814
25853
  var _this3 = this;
25815
25854
 
25816
25855
  var limit,
25817
- _args19 = arguments;
25818
- return regenerator_default().wrap(function _callee19$(_context19) {
25856
+ _args20 = arguments;
25857
+ return regenerator_default().wrap(function _callee20$(_context20) {
25819
25858
  while (1) {
25820
- switch (_context19.prev = _context19.next) {
25859
+ switch (_context20.prev = _context20.next) {
25821
25860
  case 0:
25822
- limit = _args19.length > 1 && _args19[1] !== undefined ? _args19[1] : 100;
25823
- return _context19.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25824
- var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee18(page) {
25825
- return regenerator_default().wrap(function _callee18$(_context18) {
25861
+ limit = _args20.length > 1 && _args20[1] !== undefined ? _args20[1] : 100;
25862
+ return _context20.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25863
+ var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee19(page) {
25864
+ return regenerator_default().wrap(function _callee19$(_context19) {
25826
25865
  while (1) {
25827
- switch (_context18.prev = _context18.next) {
25866
+ switch (_context19.prev = _context19.next) {
25828
25867
  case 0:
25829
- _context18.next = 2;
25868
+ _context19.next = 2;
25830
25869
  return _this3.getProjects("search=".concat(query, "&limit=").concat(limit, "&page=").concat(page, "&include=locations"));
25831
25870
 
25832
25871
  case 2:
25833
- return _context18.abrupt("return", _context18.sent);
25872
+ return _context19.abrupt("return", _context19.sent);
25834
25873
 
25835
25874
  case 3:
25836
25875
  case "end":
25837
- return _context18.stop();
25876
+ return _context19.stop();
25838
25877
  }
25839
25878
  }
25840
- }, _callee18);
25879
+ }, _callee19);
25841
25880
  }));
25842
25881
 
25843
25882
  return function (_x15) {
@@ -25847,10 +25886,10 @@ var TimekitApiClient = /*#__PURE__*/function () {
25847
25886
 
25848
25887
  case 2:
25849
25888
  case "end":
25850
- return _context19.stop();
25889
+ return _context20.stop();
25851
25890
  }
25852
25891
  }
25853
- }, _callee19, this);
25892
+ }, _callee20, this);
25854
25893
  }));
25855
25894
 
25856
25895
  function getProjectsByMetaQuery(_x14) {
@@ -25863,34 +25902,34 @@ var TimekitApiClient = /*#__PURE__*/function () {
25863
25902
  }, {
25864
25903
  key: "getProjectsByMetaValue",
25865
25904
  value: function () {
25866
- var _getProjectsByMetaValue = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee21(key, value) {
25905
+ var _getProjectsByMetaValue = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee22(key, value) {
25867
25906
  var _this4 = this;
25868
25907
 
25869
25908
  var limit,
25870
- _args21 = arguments;
25871
- return regenerator_default().wrap(function _callee21$(_context21) {
25909
+ _args22 = arguments;
25910
+ return regenerator_default().wrap(function _callee22$(_context22) {
25872
25911
  while (1) {
25873
- switch (_context21.prev = _context21.next) {
25912
+ switch (_context22.prev = _context22.next) {
25874
25913
  case 0:
25875
- limit = _args21.length > 2 && _args21[2] !== undefined ? _args21[2] : 100;
25876
- return _context21.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25877
- var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee20(page) {
25878
- return regenerator_default().wrap(function _callee20$(_context20) {
25914
+ limit = _args22.length > 2 && _args22[2] !== undefined ? _args22[2] : 100;
25915
+ return _context22.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25916
+ var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee21(page) {
25917
+ return regenerator_default().wrap(function _callee21$(_context21) {
25879
25918
  while (1) {
25880
- switch (_context20.prev = _context20.next) {
25919
+ switch (_context21.prev = _context21.next) {
25881
25920
  case 0:
25882
- _context20.next = 2;
25921
+ _context21.next = 2;
25883
25922
  return _this4.getProjects("search=meta.".concat(key, ":").concat(value, "&limit=").concat(limit, "&page=").concat(page));
25884
25923
 
25885
25924
  case 2:
25886
- return _context20.abrupt("return", _context20.sent);
25925
+ return _context21.abrupt("return", _context21.sent);
25887
25926
 
25888
25927
  case 3:
25889
25928
  case "end":
25890
- return _context20.stop();
25929
+ return _context21.stop();
25891
25930
  }
25892
25931
  }
25893
- }, _callee20);
25932
+ }, _callee21);
25894
25933
  }));
25895
25934
 
25896
25935
  return function (_x18) {
@@ -25900,10 +25939,10 @@ var TimekitApiClient = /*#__PURE__*/function () {
25900
25939
 
25901
25940
  case 2:
25902
25941
  case "end":
25903
- return _context21.stop();
25942
+ return _context22.stop();
25904
25943
  }
25905
25944
  }
25906
- }, _callee21, this);
25945
+ }, _callee22, this);
25907
25946
  }));
25908
25947
 
25909
25948
  function getProjectsByMetaValue(_x16, _x17) {
@@ -25915,34 +25954,34 @@ var TimekitApiClient = /*#__PURE__*/function () {
25915
25954
  }, {
25916
25955
  key: "getLocationProjects",
25917
25956
  value: function () {
25918
- var _getLocationProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee23(locationId) {
25957
+ var _getLocationProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee24(locationId) {
25919
25958
  var _this5 = this;
25920
25959
 
25921
25960
  var limit,
25922
- _args23 = arguments;
25923
- return regenerator_default().wrap(function _callee23$(_context23) {
25961
+ _args24 = arguments;
25962
+ return regenerator_default().wrap(function _callee24$(_context24) {
25924
25963
  while (1) {
25925
- switch (_context23.prev = _context23.next) {
25964
+ switch (_context24.prev = _context24.next) {
25926
25965
  case 0:
25927
- limit = _args23.length > 1 && _args23[1] !== undefined ? _args23[1] : 100;
25928
- return _context23.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25929
- var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee22(page) {
25930
- return regenerator_default().wrap(function _callee22$(_context22) {
25966
+ limit = _args24.length > 1 && _args24[1] !== undefined ? _args24[1] : 100;
25967
+ return _context24.abrupt("return", this.timeKitPaginate( /*#__PURE__*/function () {
25968
+ var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee23(page) {
25969
+ return regenerator_default().wrap(function _callee23$(_context23) {
25931
25970
  while (1) {
25932
- switch (_context22.prev = _context22.next) {
25971
+ switch (_context23.prev = _context23.next) {
25933
25972
  case 0:
25934
- _context22.next = 2;
25973
+ _context23.next = 2;
25935
25974
  return _this5.getProjects("search=locations.uuid:".concat(locationId, "&limit=").concat(limit, "&page=").concat(page));
25936
25975
 
25937
25976
  case 2:
25938
- return _context22.abrupt("return", _context22.sent);
25977
+ return _context23.abrupt("return", _context23.sent);
25939
25978
 
25940
25979
  case 3:
25941
25980
  case "end":
25942
- return _context22.stop();
25981
+ return _context23.stop();
25943
25982
  }
25944
25983
  }
25945
- }, _callee22);
25984
+ }, _callee23);
25946
25985
  }));
25947
25986
 
25948
25987
  return function (_x20) {
@@ -25952,10 +25991,10 @@ var TimekitApiClient = /*#__PURE__*/function () {
25952
25991
 
25953
25992
  case 2:
25954
25993
  case "end":
25955
- return _context23.stop();
25994
+ return _context24.stop();
25956
25995
  }
25957
25996
  }
25958
- }, _callee23, this);
25997
+ }, _callee24, this);
25959
25998
  }));
25960
25999
 
25961
26000
  function getLocationProjects(_x19) {
@@ -26522,7 +26561,7 @@ var ServiceProjectsStatergy = /*#__PURE__*/function () {
26522
26561
  }();
26523
26562
 
26524
26563
  /* harmony default export */ const Strategy_ServiceProjectsStatergy = (ServiceProjectsStatergy);
26525
- ;// CONCATENATED MODULE: ./src/Strategy/ServiceLocationStatergy.js
26564
+ ;// CONCATENATED MODULE: ./src/Strategy/LocationServiceStatergy.js
26526
26565
 
26527
26566
 
26528
26567
 
@@ -26538,7 +26577,7 @@ var LocationServiceStatergy = /*#__PURE__*/function () {
26538
26577
  createClass_default()(LocationServiceStatergy, [{
26539
26578
  key: "getProjects",
26540
26579
  value: function () {
26541
- var _getProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee(serviceId) {
26580
+ var _getProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee(locationId) {
26542
26581
  var apiClient;
26543
26582
  return regenerator_default().wrap(function _callee$(_context) {
26544
26583
  while (1) {
@@ -26547,7 +26586,7 @@ var LocationServiceStatergy = /*#__PURE__*/function () {
26547
26586
  apiClient = new TimekitApiClient();
26548
26587
  apiClient.setAppKey(instance.app_key);
26549
26588
  _context.next = 4;
26550
- return apiClient.getLocationByServices(serviceId);
26589
+ return apiClient.getServicesByLocationId(locationId);
26551
26590
 
26552
26591
  case 4:
26553
26592
  return _context.abrupt("return", _context.sent);
@@ -26571,7 +26610,57 @@ var LocationServiceStatergy = /*#__PURE__*/function () {
26571
26610
  return LocationServiceStatergy;
26572
26611
  }();
26573
26612
 
26574
- /* harmony default export */ const ServiceLocationStatergy = (LocationServiceStatergy);
26613
+ /* harmony default export */ const Strategy_LocationServiceStatergy = (LocationServiceStatergy);
26614
+ ;// CONCATENATED MODULE: ./src/Strategy/ServiceLocationsStatergy.js
26615
+
26616
+
26617
+
26618
+
26619
+
26620
+
26621
+
26622
+ var ServiceLocationsStatergy = /*#__PURE__*/function () {
26623
+ function ServiceLocationsStatergy() {
26624
+ classCallCheck_default()(this, ServiceLocationsStatergy);
26625
+ }
26626
+
26627
+ createClass_default()(ServiceLocationsStatergy, [{
26628
+ key: "getProjects",
26629
+ value: function () {
26630
+ var _getProjects = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee(serviceId) {
26631
+ var apiClient;
26632
+ return regenerator_default().wrap(function _callee$(_context) {
26633
+ while (1) {
26634
+ switch (_context.prev = _context.next) {
26635
+ case 0:
26636
+ apiClient = new TimekitApiClient();
26637
+ apiClient.setAppKey(instance.app_key);
26638
+ _context.next = 4;
26639
+ return apiClient.getLocationsByServiceId(serviceId);
26640
+
26641
+ case 4:
26642
+ return _context.abrupt("return", _context.sent);
26643
+
26644
+ case 5:
26645
+ case "end":
26646
+ return _context.stop();
26647
+ }
26648
+ }
26649
+ }, _callee);
26650
+ }));
26651
+
26652
+ function getProjects(_x) {
26653
+ return _getProjects.apply(this, arguments);
26654
+ }
26655
+
26656
+ return getProjects;
26657
+ }()
26658
+ }]);
26659
+
26660
+ return ServiceLocationsStatergy;
26661
+ }();
26662
+
26663
+ /* harmony default export */ const Strategy_ServiceLocationsStatergy = (ServiceLocationsStatergy);
26575
26664
  ;// CONCATENATED MODULE: ./src/Strategy/ProjectsStrategy.js
26576
26665
 
26577
26666
 
@@ -26581,6 +26670,7 @@ var LocationServiceStatergy = /*#__PURE__*/function () {
26581
26670
 
26582
26671
 
26583
26672
 
26673
+
26584
26674
  var ProjectsStrategy = /*#__PURE__*/function () {
26585
26675
  function ProjectsStrategy() {
26586
26676
  classCallCheck_default()(this, ProjectsStrategy);
@@ -26589,7 +26679,8 @@ var ProjectsStrategy = /*#__PURE__*/function () {
26589
26679
  this.storeProjectsStrategy = new Strategy_StoreProjectsStrategy();
26590
26680
  this.defaultStrategy = new Strategy_DefaultProjectStrategy();
26591
26681
  this.serviceProjectsStrategy = new Strategy_ServiceProjectsStatergy();
26592
- this.serviceLocationStatergy = new ServiceLocationStatergy();
26682
+ this.locationServicesStatergy = new Strategy_LocationServiceStatergy();
26683
+ this.serviceLocationsStatergy = new Strategy_ServiceLocationsStatergy();
26593
26684
  }
26594
26685
 
26595
26686
  createClass_default()(ProjectsStrategy, [{
@@ -26607,7 +26698,11 @@ var ProjectsStrategy = /*#__PURE__*/function () {
26607
26698
  break;
26608
26699
 
26609
26700
  case 'service_location':
26610
- strategy = this.serviceLocationStatergy;
26701
+ strategy = this.serviceLocationsStatergy;
26702
+ break;
26703
+
26704
+ case 'location_service':
26705
+ strategy = this.locationServicesStatergy;
26611
26706
  break;
26612
26707
 
26613
26708
  default: