@yuuvis/client-core 2.3.24 → 2.3.26

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.
@@ -162,6 +162,7 @@ var ContentStreamAllowed;
162
162
  // classifications applied to object type fields
163
163
  var Classification;
164
164
  (function (Classification) {
165
+ Classification["STRING_CATALOG_I18N"] = "i18n:catalog";
165
166
  Classification["STRING_CATALOG_CUSTOM"] = "custom:catalog";
166
167
  Classification["STRING_CATALOG_DYNAMIC"] = "dynamic:catalog";
167
168
  Classification["STRING_CATALOG"] = "catalog";
@@ -205,6 +206,7 @@ var InternalFieldType;
205
206
  InternalFieldType["STRING_ORGANIZATION"] = "string:organization";
206
207
  InternalFieldType["STRING_REFERENCE"] = "string:reference";
207
208
  InternalFieldType["STRING_CATALOG"] = "string:catalog";
209
+ InternalFieldType["STRING_CATALOG_I18N"] = "string:catalog:i18n";
208
210
  InternalFieldType["STRING_DYNAMIC_CATALOG"] = "string:catalog:dynamic";
209
211
  InternalFieldType["BOOLEAN_SWITCH"] = "boolean:switch";
210
212
  })(InternalFieldType || (InternalFieldType = {}));
@@ -1828,6 +1830,9 @@ class SystemService {
1828
1830
  else if (type === 'string' && _classifications.has(Classification.STRING_ORGANIZATION_SET)) {
1829
1831
  return InternalFieldType.STRING_ORGANIZATION_SET;
1830
1832
  }
1833
+ else if (type === 'string' && _classifications.has(Classification.STRING_CATALOG_I18N)) {
1834
+ return InternalFieldType.STRING_CATALOG_I18N;
1835
+ }
1831
1836
  else if (type === 'string' && _classifications.has(Classification.STRING_CATALOG)) {
1832
1837
  return InternalFieldType.STRING_CATALOG;
1833
1838
  }
@@ -4886,21 +4891,27 @@ class SearchUtils {
4886
4891
  switch (dateRange) {
4887
4892
  case 'today': {
4888
4893
  start = new Date();
4894
+ start.setHours(0, 0, 0, 0);
4889
4895
  end = new Date();
4896
+ end.setHours(23, 59, 59, 999);
4890
4897
  break;
4891
4898
  }
4892
4899
  case 'yesterday': {
4893
4900
  const yesterday = new Date();
4894
4901
  yesterday.setDate(yesterday.getDate() - 1);
4895
4902
  start = yesterday;
4903
+ start.setHours(0, 0, 0, 0);
4896
4904
  end = yesterday;
4905
+ end.setHours(23, 59, 59, 999);
4897
4906
  break;
4898
4907
  }
4899
4908
  case 'thisWeek': {
4900
4909
  const firstDay = new Date();
4901
4910
  firstDay.setDate(firstDay.getDate() - firstDay.getDay());
4902
4911
  start = firstDay;
4912
+ start.setHours(0, 0, 0, 0);
4903
4913
  end = new Date();
4914
+ end.setHours(23, 59, 59, 999);
4904
4915
  break;
4905
4916
  }
4906
4917
  case 'lastWeek': {
@@ -4909,14 +4920,18 @@ class SearchUtils {
4909
4920
  const lastDay = new Date();
4910
4921
  lastDay.setDate(lastDay.getDate() - lastDay.getDay() - 1);
4911
4922
  start = firstDay;
4923
+ start.setHours(0, 0, 0, 0);
4912
4924
  end = lastDay;
4925
+ end.setHours(23, 59, 59, 999);
4913
4926
  break;
4914
4927
  }
4915
4928
  case 'thisMonth': {
4916
4929
  const firstDay = new Date();
4917
4930
  firstDay.setDate(1);
4918
4931
  start = firstDay;
4932
+ start.setHours(0, 0, 0, 0);
4919
4933
  end = new Date();
4934
+ end.setHours(23, 59, 59, 999);
4920
4935
  break;
4921
4936
  }
4922
4937
  case 'lastMonth': {
@@ -4926,7 +4941,9 @@ class SearchUtils {
4926
4941
  const lastDay = new Date();
4927
4942
  lastDay.setDate(0);
4928
4943
  start = firstDay;
4944
+ start.setHours(0, 0, 0, 0);
4929
4945
  end = lastDay;
4946
+ end.setHours(23, 59, 59, 999);
4930
4947
  break;
4931
4948
  }
4932
4949
  case 'thisYear': {
@@ -4934,7 +4951,9 @@ class SearchUtils {
4934
4951
  firstDay.setMonth(0);
4935
4952
  firstDay.setDate(1);
4936
4953
  start = firstDay;
4954
+ start.setHours(0, 0, 0, 0);
4937
4955
  end = new Date();
4956
+ end.setHours(23, 59, 59, 999);
4938
4957
  break;
4939
4958
  }
4940
4959
  case 'lastYear': {
@@ -4947,7 +4966,9 @@ class SearchUtils {
4947
4966
  lastDay.setMonth(11);
4948
4967
  lastDay.setDate(31);
4949
4968
  start = firstDay;
4969
+ start.setHours(0, 0, 0, 0);
4950
4970
  end = lastDay;
4971
+ end.setHours(23, 59, 59, 999);
4951
4972
  break;
4952
4973
  }
4953
4974
  }