thm-p3-configurator 0.0.304 → 0.0.306

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.
@@ -88,9 +88,10 @@ const authenticatedProxyApi = exports.authenticatedProxyApi = {
88
88
  ownershipType,
89
89
  organisationType,
90
90
  searchTerm,
91
- isTmg = false
91
+ isTmg = false,
92
+ isTowCenterBranch = false
92
93
  } = _ref;
93
- return authenticateClient("api/v1/branches/by-type?searchTerm=".concat(searchTerm, "&formula=").concat(formula, "&ownershipType=").concat(ownershipType, "&organisationType=").concat(organisationType, "&isTmg=").concat(isTmg, " "), {
94
+ return authenticateClient("api/v1/branches/by-type?searchTerm=".concat(searchTerm, "&formula=").concat(formula, "&ownershipType=").concat(ownershipType, "&organisationType=").concat(organisationType, "&isTmg=").concat(isTmg, "&isTowCenterBranch=").concat(isTowCenterBranch), {
94
95
  method: 'GET'
95
96
  });
96
97
  },
@@ -640,16 +640,18 @@ const useBranchesByType = _ref3 => {
640
640
  ownershipType,
641
641
  organisationType,
642
642
  searchTerm,
643
- isTmg = false
643
+ isTmg = false,
644
+ isTowCenterBranch = false
644
645
  } = _ref3;
645
- const branchesByTypeQuery = (0, _reactQuery.useQuery)(['branchesByType', formula, ownershipType, organisationType, searchTerm, isTmg], {
646
+ const branchesByTypeQuery = (0, _reactQuery.useQuery)(['branchesByType', formula, ownershipType, organisationType, searchTerm, isTmg, isTowCenterBranch], {
646
647
  queryFn: async () => {
647
648
  const response = await _authenticatedProxyApi.authenticatedProxyApi.getBranchesByType({
648
649
  formula,
649
650
  ownershipType,
650
651
  organisationType,
651
652
  searchTerm,
652
- isTmg
653
+ isTmg,
654
+ isTowCenterBranch
653
655
  });
654
656
  if (response.data.length === 0) {
655
657
  return null;