@resolveio/server-lib 22.3.200 → 22.3.201

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.
@@ -6979,7 +6979,14 @@ function resolveAssistantDataIntentDateWindow(message) {
6979
6979
  year: now.getUTCFullYear()
6980
6980
  };
6981
6981
  }
6982
- if (/\bthis\s+week\b/.test(text)) {
6982
+ if (/\b(?:this|current)\s+month\b/.test(text)) {
6983
+ return {
6984
+ start: new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 1, 0, 0, 0, 0)).toISOString(),
6985
+ end: new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 23, 59, 59, 999)).toISOString(),
6986
+ year: now.getUTCFullYear()
6987
+ };
6988
+ }
6989
+ if (/\b(?:this|current)\s+week\b/.test(text)) {
6983
6990
  var start = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 0, 0, 0, 0));
6984
6991
  var day = start.getUTCDay();
6985
6992
  var offset = day === 0 ? 6 : day - 1;
@@ -7074,6 +7081,9 @@ function isAssistantEmptyPipelineObject(value) {
7074
7081
  }
7075
7082
  function removeUndefinedAssistantPipelineValues(value, parentKey) {
7076
7083
  if (parentKey === void 0) { parentKey = ''; }
7084
+ if (value instanceof Date) {
7085
+ return value;
7086
+ }
7077
7087
  if (Array.isArray(value)) {
7078
7088
  return value
7079
7089
  .map(function (entry) { return removeUndefinedAssistantPipelineValues(entry, parentKey); })