@dereekb/date 10.0.4 → 10.0.6

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.
Files changed (136) hide show
  1. package/index.cjs.d.ts +1 -0
  2. package/index.cjs.default.js +1 -0
  3. package/index.cjs.js +9264 -0
  4. package/index.cjs.mjs +2 -0
  5. package/index.esm.js +9957 -0
  6. package/package.json +13 -3
  7. package/src/lib/date/date.calendar.d.ts +1 -1
  8. package/src/lib/date/date.cell.d.ts +3 -3
  9. package/src/lib/date/date.cell.factory.d.ts +5 -5
  10. package/src/lib/date/date.cell.filter.d.ts +3 -3
  11. package/src/lib/date/date.cell.index.d.ts +4 -3
  12. package/src/lib/date/date.cell.schedule.d.ts +7 -7
  13. package/src/lib/date/date.cell.schedule.day.d.ts +2 -2
  14. package/src/lib/date/date.cell.validator.d.ts +2 -2
  15. package/src/lib/date/date.cell.week.d.ts +3 -3
  16. package/src/lib/date/date.d.ts +1 -1
  17. package/src/lib/date/date.day.d.ts +3 -3
  18. package/src/lib/date/date.duration.d.ts +2 -2
  19. package/src/lib/date/date.format.d.ts +3 -4
  20. package/src/lib/date/date.logical.d.ts +1 -1
  21. package/src/lib/date/date.range.d.ts +1 -1
  22. package/src/lib/date/date.range.string.d.ts +2 -2
  23. package/src/lib/date/date.range.timezone.d.ts +2 -2
  24. package/src/lib/date/date.rxjs.d.ts +3 -3
  25. package/src/lib/date/date.sort.d.ts +2 -2
  26. package/src/lib/date/date.time.d.ts +3 -3
  27. package/src/lib/date/date.time.limit.d.ts +3 -3
  28. package/src/lib/date/date.time.minute.d.ts +4 -4
  29. package/src/lib/date/date.timezone.d.ts +2 -2
  30. package/src/lib/date/date.unix.d.ts +1 -1
  31. package/src/lib/date/date.week.d.ts +3 -3
  32. package/src/lib/expires/expires.d.ts +1 -1
  33. package/src/lib/expires/expires.rxjs.d.ts +3 -3
  34. package/src/lib/query/query.builder.d.ts +2 -2
  35. package/src/lib/query/query.builder.mongo.d.ts +2 -2
  36. package/src/lib/query/query.filter.d.ts +2 -2
  37. package/src/lib/query/query.request.d.ts +2 -2
  38. package/src/lib/rrule/date.recurrence.d.ts +4 -4
  39. package/src/lib/rrule/date.rrule.d.ts +5 -5
  40. package/src/lib/rrule/date.rrule.extension.d.ts +1 -1
  41. package/src/lib/rrule/date.rrule.parse.d.ts +2 -2
  42. package/src/lib/timezone/timezone.d.ts +1 -1
  43. package/src/lib/timezone/timezone.validator.d.ts +2 -2
  44. package/CHANGELOG.md +0 -1484
  45. package/src/index.js +0 -5
  46. package/src/index.js.map +0 -1
  47. package/src/lib/date/date.calendar.js +0 -65
  48. package/src/lib/date/date.calendar.js.map +0 -1
  49. package/src/lib/date/date.cell.factory.js +0 -493
  50. package/src/lib/date/date.cell.factory.js.map +0 -1
  51. package/src/lib/date/date.cell.filter.js +0 -65
  52. package/src/lib/date/date.cell.filter.js.map +0 -1
  53. package/src/lib/date/date.cell.index.js +0 -731
  54. package/src/lib/date/date.cell.index.js.map +0 -1
  55. package/src/lib/date/date.cell.js +0 -574
  56. package/src/lib/date/date.cell.js.map +0 -1
  57. package/src/lib/date/date.cell.schedule.day.js +0 -15
  58. package/src/lib/date/date.cell.schedule.day.js.map +0 -1
  59. package/src/lib/date/date.cell.schedule.js +0 -711
  60. package/src/lib/date/date.cell.schedule.js.map +0 -1
  61. package/src/lib/date/date.cell.validator.js +0 -67
  62. package/src/lib/date/date.cell.validator.js.map +0 -1
  63. package/src/lib/date/date.cell.week.js +0 -40
  64. package/src/lib/date/date.cell.week.js.map +0 -1
  65. package/src/lib/date/date.day.js +0 -207
  66. package/src/lib/date/date.day.js.map +0 -1
  67. package/src/lib/date/date.duration.js +0 -56
  68. package/src/lib/date/date.duration.js.map +0 -1
  69. package/src/lib/date/date.format.js +0 -231
  70. package/src/lib/date/date.format.js.map +0 -1
  71. package/src/lib/date/date.hashset.js +0 -11
  72. package/src/lib/date/date.hashset.js.map +0 -1
  73. package/src/lib/date/date.js +0 -267
  74. package/src/lib/date/date.js.map +0 -1
  75. package/src/lib/date/date.logical.js +0 -61
  76. package/src/lib/date/date.logical.js.map +0 -1
  77. package/src/lib/date/date.range.js +0 -643
  78. package/src/lib/date/date.range.js.map +0 -1
  79. package/src/lib/date/date.range.string.js +0 -19
  80. package/src/lib/date/date.range.string.js.map +0 -1
  81. package/src/lib/date/date.range.timezone.js +0 -29
  82. package/src/lib/date/date.range.timezone.js.map +0 -1
  83. package/src/lib/date/date.round.js +0 -49
  84. package/src/lib/date/date.round.js.map +0 -1
  85. package/src/lib/date/date.rxjs.js +0 -40
  86. package/src/lib/date/date.rxjs.js.map +0 -1
  87. package/src/lib/date/date.sort.js +0 -43
  88. package/src/lib/date/date.sort.js.map +0 -1
  89. package/src/lib/date/date.time.js +0 -240
  90. package/src/lib/date/date.time.js.map +0 -1
  91. package/src/lib/date/date.time.limit.js +0 -99
  92. package/src/lib/date/date.time.limit.js.map +0 -1
  93. package/src/lib/date/date.time.minute.js +0 -144
  94. package/src/lib/date/date.time.minute.js.map +0 -1
  95. package/src/lib/date/date.timezone.js +0 -494
  96. package/src/lib/date/date.timezone.js.map +0 -1
  97. package/src/lib/date/date.unix.js +0 -41
  98. package/src/lib/date/date.unix.js.map +0 -1
  99. package/src/lib/date/date.week.js +0 -263
  100. package/src/lib/date/date.week.js.map +0 -1
  101. package/src/lib/date/index.js +0 -30
  102. package/src/lib/date/index.js.map +0 -1
  103. package/src/lib/expires/expires.js +0 -81
  104. package/src/lib/expires/expires.js.map +0 -1
  105. package/src/lib/expires/expires.rxjs.js +0 -61
  106. package/src/lib/expires/expires.rxjs.js.map +0 -1
  107. package/src/lib/expires/index.js +0 -6
  108. package/src/lib/expires/index.js.map +0 -1
  109. package/src/lib/index.js +0 -9
  110. package/src/lib/index.js.map +0 -1
  111. package/src/lib/query/index.js +0 -8
  112. package/src/lib/query/index.js.map +0 -1
  113. package/src/lib/query/query.builder.js +0 -85
  114. package/src/lib/query/query.builder.js.map +0 -1
  115. package/src/lib/query/query.builder.mongo.js +0 -41
  116. package/src/lib/query/query.builder.mongo.js.map +0 -1
  117. package/src/lib/query/query.filter.js +0 -3
  118. package/src/lib/query/query.filter.js.map +0 -1
  119. package/src/lib/query/query.request.js +0 -3
  120. package/src/lib/query/query.request.js.map +0 -1
  121. package/src/lib/rrule/date.recurrence.js +0 -93
  122. package/src/lib/rrule/date.recurrence.js.map +0 -1
  123. package/src/lib/rrule/date.rrule.extension.js +0 -151
  124. package/src/lib/rrule/date.rrule.extension.js.map +0 -1
  125. package/src/lib/rrule/date.rrule.js +0 -187
  126. package/src/lib/rrule/date.rrule.js.map +0 -1
  127. package/src/lib/rrule/date.rrule.parse.js +0 -135
  128. package/src/lib/rrule/date.rrule.parse.js.map +0 -1
  129. package/src/lib/rrule/index.js +0 -8
  130. package/src/lib/rrule/index.js.map +0 -1
  131. package/src/lib/timezone/index.js +0 -6
  132. package/src/lib/timezone/index.js.map +0 -1
  133. package/src/lib/timezone/timezone.js +0 -66
  134. package/src/lib/timezone/timezone.js.map +0 -1
  135. package/src/lib/timezone/timezone.validator.js +0 -26
  136. package/src/lib/timezone/timezone.validator.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,17 @@
1
1
  {
2
2
  "name": "@dereekb/date",
3
- "version": "10.0.4",
4
- "type": "commonjs",
3
+ "version": "10.0.6",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "module": "./index.esm.js",
8
+ "import": "./index.cjs.mjs",
9
+ "default": "./index.cjs.js"
10
+ },
11
+ "./package.json": "./package.json"
12
+ },
13
+ "main": "./index.cjs.js",
14
+ "types": "./index.cjs.js",
5
15
  "peerDependencies": {
6
16
  "@dereekb/util": "*",
7
17
  "class-transformer": "^0.5.1",
@@ -13,5 +23,5 @@
13
23
  "@vvo/tzdb": "^6.0.0"
14
24
  },
15
25
  "dependencies": {},
16
- "main": "./src/index.js"
26
+ "module": "./index.esm.js"
17
27
  }
@@ -1,4 +1,4 @@
1
- import { ISO8601DayString } from '@dereekb/util';
1
+ import { type ISO8601DayString } from '@dereekb/util';
2
2
  import { DateDurationSpan } from './date.duration';
3
3
  /**
4
4
  * CalendarDateType
@@ -1,7 +1,7 @@
1
- import { IndexRef, Maybe, TimezoneString, Minutes, FractionalHour, TimezoneStringRef, ISO8601DayString } from '@dereekb/util';
2
- import { DateRange, DateRangeDayDistanceInput } from './date.range';
1
+ import { type IndexRef, type Maybe, type TimezoneString, type Minutes, type FractionalHour, type TimezoneStringRef, type ISO8601DayString } from '@dereekb/util';
2
+ import { type DateRange, type DateRangeDayDistanceInput } from './date.range';
3
3
  import { DateDurationSpan } from './date.duration';
4
- import { DateTimezoneUtcNormalFunctionInput, DateTimezoneUtcNormalInstance } from './date.timezone';
4
+ import { type DateTimezoneUtcNormalFunctionInput, type DateTimezoneUtcNormalInstance } from './date.timezone';
5
5
  /**
6
6
  * Index from 0 of which day this block represents.
7
7
  */
@@ -1,8 +1,8 @@
1
- import { Maybe, ArrayOrValue, FilterFunction, IndexRange, ISO8601DayString, IndexNumber } from '@dereekb/util';
2
- import { DateCell, DateCellIndex, DateOrDateCellIndex, DateCellTiming, DateCellArrayRef, DateCellArray, DateCellTimingRangeInput, DateCellCollection, DateCellDurationSpan, DateCellTimingStartsAt, DateCellTimingEvent, DateCellTimingStartsAtEndRange, FullDateCellTiming } from './date.cell';
3
- import { DateCellRange, DateCellRangeWithRange, DateOrDateRangeOrDateCellIndexOrDateCellRange } from './date.cell.index';
4
- import { DateRange, DateRangeStart } from './date.range';
5
- import { DateTimezoneConversionConfigUseSystemTimezone, DateTimezoneUtcNormalInstance } from './date.timezone';
1
+ import { type Maybe, type ArrayOrValue, type FilterFunction, type IndexRange, type ISO8601DayString, type IndexNumber } from '@dereekb/util';
2
+ import { type DateCell, type DateCellIndex, type DateOrDateCellIndex, type DateCellTiming, type DateCellArrayRef, type DateCellArray, type DateCellTimingRangeInput, type DateCellCollection, type DateCellDurationSpan, type DateCellTimingStartsAt, type DateCellTimingEvent, type DateCellTimingStartsAtEndRange, type FullDateCellTiming } from './date.cell';
3
+ import { type DateCellRange, type DateCellRangeWithRange, type DateOrDateRangeOrDateCellIndexOrDateCellRange } from './date.cell.index';
4
+ import { type DateRange, type DateRangeStart } from './date.range';
5
+ import { type DateTimezoneConversionConfigUseSystemTimezone, type DateTimezoneUtcNormalInstance } from './date.timezone';
6
6
  /**
7
7
  * IndexRange used with DateCells.
8
8
  *
@@ -1,6 +1,6 @@
1
- import { FilterFunction, Maybe } from '@dereekb/util';
2
- import { DateCell, DateCellDurationSpan } from './date.cell';
3
- import { DateCellRange, UniqueDateCell } from './date.cell.index';
1
+ import { type FilterFunction, type Maybe } from '@dereekb/util';
2
+ import { type DateCell, type DateCellDurationSpan } from './date.cell';
3
+ import { type DateCellRange, type UniqueDateCell } from './date.cell.index';
4
4
  export type DateCellDurationSpanFilterFunction<B extends DateCell = DateCell> = FilterFunction<DateCellDurationSpan<B>>;
5
5
  export declare function dateCellDurationSpanHasStartedFilterFunction<B extends DateCell = DateCell>(now?: Date): DateCellDurationSpanFilterFunction<B>;
6
6
  export declare function dateCellDurationSpanHasNotStartedFilterFunction<B extends DateCell = DateCell>(now?: Date): DateCellDurationSpanFilterFunction<B>;
@@ -1,6 +1,7 @@
1
- import { Maybe, SortCompareFunction, RequiredOnKeys, ArrayOrValue, UniqueModel, IndexNumber, FactoryWithRequiredInput, DateRelativeState } from '@dereekb/util';
2
- import { DateCell, DateCellIndex, DateOrDateCellIndex } from './date.cell';
3
- import { DateRange } from './date.range';
1
+ import { type Maybe, type SortCompareFunction, type RequiredOnKeys, type ArrayOrValue, type UniqueModel, type IndexNumber, type FactoryWithRequiredInput, type DateRelativeState } from '@dereekb/util';
2
+ import { DateCell } from './date.cell';
3
+ import { type DateOrDateCellIndex, type DateCellIndex } from './date.cell';
4
+ import { type DateRange } from './date.range';
4
5
  /**
5
6
  * Represents a range of DateCell values.
6
7
  */
@@ -1,10 +1,10 @@
1
- import { DateRange } from '@dereekb/date';
2
- import { StringOrder, Maybe, DayOfWeek, DecisionFunction, FilterFunction, IndexRange, EnabledDays, ArrayOrValue, TimezoneStringRef } from '@dereekb/util';
3
- import { DateCell, DateCellDurationSpan, DateCellIndex, DateCellTiming, DateCellTimingDateRange, DateCellTimingStartsAtEndRange, FullDateCellTiming, DateCellTimingEventStartsAt, DateCellTimingTimezoneInput } from './date.cell';
4
- import { DateCellTimingRelativeIndexFactoryInput, DateCellTimingExpansionFactory } from './date.cell.factory';
5
- import { DateCellRangeOrDateRange, DateCellRangeWithRange } from './date.cell.index';
6
- import { DateTimezoneUtcNormalInstance } from './date.timezone';
7
- import { YearWeekCodeConfig } from './date.week';
1
+ import { type DateRange } from '@dereekb/date';
2
+ import { type StringOrder, type Maybe, type DayOfWeek, type DecisionFunction, type FilterFunction, type IndexRange, type EnabledDays, type ArrayOrValue, type TimezoneStringRef } from '@dereekb/util';
3
+ import { type DateCell, type DateCellDurationSpan, type DateCellIndex, type DateCellTiming, type DateCellTimingDateRange, type DateCellTimingStartsAtEndRange, type FullDateCellTiming, type DateCellTimingEventStartsAt, type DateCellTimingTimezoneInput } from './date.cell';
4
+ import { type DateCellTimingRelativeIndexFactoryInput, type DateCellTimingExpansionFactory } from './date.cell.factory';
5
+ import { type DateCellRangeOrDateRange, type DateCellRangeWithRange } from './date.cell.index';
6
+ import { type DateTimezoneUtcNormalInstance } from './date.timezone';
7
+ import { type YearWeekCodeConfig } from './date.week';
8
8
  export declare enum DateCellScheduleDayCode {
9
9
  /**
10
10
  * Special no-op/unused code
@@ -1,5 +1,5 @@
1
- import { DateCellIndex } from './date.cell';
2
- import { DateCellScheduleDayCodesInput } from './date.cell.schedule';
1
+ import { type DateCellIndex } from './date.cell';
2
+ import { type DateCellScheduleDayCodesInput } from './date.cell.schedule';
3
3
  /**
4
4
  * Converts the input day codes into DateCellIndex values.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { ObjectWithConstructor } from '@dereekb/util';
2
- import { ValidationOptions } from 'class-validator';
1
+ import { type ObjectWithConstructor } from '@dereekb/util';
2
+ import { type ValidationOptions } from 'class-validator';
3
3
  /**
4
4
  * isValidDateCellTiming validator
5
5
  */
@@ -1,6 +1,6 @@
1
- import { DayOfWeek, MapFunction, Maybe } from '@dereekb/util';
2
- import { DateCellIndex, DateCellTiming } from './date.cell';
3
- import { YearWeekCode, YearWeekCodeGroupFactory } from './date.week';
1
+ import { type DayOfWeek, type MapFunction, type Maybe } from '@dereekb/util';
2
+ import { type DateCellIndex, type DateCellTiming } from './date.cell';
3
+ import { type YearWeekCode, type YearWeekCodeGroupFactory } from './date.week';
4
4
  /**
5
5
  * Converts the input index into the DayOfWeek that it represents.
6
6
  */
@@ -1,4 +1,4 @@
1
- import { DayOfWeekNameFunction, DateOrDateString, ISO8601DateString, Maybe, Minutes, Seconds, TimezoneString, ArrayOrValue, MapFunction, ISO8601DateStringUTCFull, UTCDateString, DayOfWeek } from '@dereekb/util';
1
+ import { type DayOfWeekNameFunction, type DateOrDateString, type ISO8601DateString, type Maybe, type Minutes, type Seconds, type TimezoneString, type ArrayOrValue, type MapFunction, type ISO8601DateStringUTCFull, type UTCDateString, type DayOfWeek } from '@dereekb/util';
2
2
  export declare const MAX_FUTURE_DATE: Date;
3
3
  /**
4
4
  * Reads a date from the input value
@@ -1,6 +1,6 @@
1
- import { DayOfMonth, MapFunction, Maybe, MonthOfYear, YearNumber } from '@dereekb/util';
2
- import { DateOrDateRange } from './date.range';
3
- import { DateTimezoneUtcNormalInstance, DateTimezoneUtcNormalInstanceInput } from './date.timezone';
1
+ import { type DayOfMonth, type MapFunction, type Maybe, type MonthOfYear, type YearNumber } from '@dereekb/util';
2
+ import { type DateOrDateRange } from './date.range';
3
+ import { DateTimezoneUtcNormalInstance, type DateTimezoneUtcNormalInstanceInput } from './date.timezone';
4
4
  /**
5
5
  * A Day/Month/Year number combination used to refer to a specific Day on a specific Year.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { DateRelativeState, FractionalHour, Minutes as UtilMinutes } from '@dereekb/util';
2
- import { DateRange } from './date.range';
1
+ import { type DateRelativeState, type FractionalHour, type Minutes as UtilMinutes } from '@dereekb/util';
2
+ import { type DateRange } from './date.range';
3
3
  export type Minutes = UtilMinutes;
4
4
  export interface DateDurationSpan {
5
5
  startsAt: Date;
@@ -1,7 +1,7 @@
1
- import { DateOrDateString, DateOrDayString, ISO8601DateString, ISO8601DayString, MapFunction, Maybe, UTCDateString } from '@dereekb/util';
1
+ import { type DateOrDateString, type DateOrDayString, type ISO8601DateString, type ISO8601DayString, type MapFunction, type Maybe, type UTCDateString } from '@dereekb/util';
2
2
  import { formatDistance, formatDistanceStrict } from 'date-fns';
3
- import { DateRange } from './date.range';
4
- import { DateTimezoneUtcNormalFunctionInput } from './date.timezone';
3
+ import { type DateRange } from './date.range';
4
+ import { type DateTimezoneUtcNormalFunctionInput } from './date.timezone';
5
5
  export type FormatDateFunction = MapFunction<Date, string>;
6
6
  export type FormatStrictDateRangeFunction = (startOrDateRange: DateRange) => string;
7
7
  export type FormatDateRangeFunction = FormatStrictDateRangeFunction & ((startOrDateRange: Date, inputEnd?: Date) => string);
@@ -141,4 +141,3 @@ export declare function formatStartedEndedDistanceString({ start, end }: DateRan
141
141
  */
142
142
  export declare function toJsDayDate(input: DateOrDayString): Date;
143
143
  export declare function parseISO8601DayStringToDate(dayString: ISO8601DayString | ISO8601DateString): Date;
144
- export declare function parseISO8601DayStringToUTCDate(inputDateString: ISO8601DayString): Date;
@@ -1,4 +1,4 @@
1
- import { DateNow, Maybe, FactoryWithInput } from '@dereekb/util';
1
+ import { type DateNow, type Maybe, type FactoryWithInput } from '@dereekb/util';
2
2
  export declare const DATE_TODAY_START_VALUE = "today_start";
3
3
  export type DateTodayStart = typeof DATE_TODAY_START_VALUE;
4
4
  export declare const DATE_TODAY_END_VALUE = "today_end";
@@ -1,4 +1,4 @@
1
- import { DateOrDateString, DateRelativeState, FactoryWithRequiredInput, MapFunction, Maybe, ISO8601DayString, DayOfWeek } from '@dereekb/util';
1
+ import { type DateOrDateString, type DateRelativeState, type FactoryWithRequiredInput, type MapFunction, type Maybe, type ISO8601DayString, type DayOfWeek } from '@dereekb/util';
2
2
  /**
3
3
  * Represents a start date.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { ISO8601DayString, DateOrDayString } from '@dereekb/util';
2
- import { DateRange } from './date.range';
1
+ import { type ISO8601DayString, type DateOrDayString } from '@dereekb/util';
2
+ import { type DateRange } from './date.range';
3
3
  export interface ISO8601DayStringStart {
4
4
  start: ISO8601DayString;
5
5
  }
@@ -1,5 +1,5 @@
1
- import { DateTimezoneUtcNormalFunctionInput, DateTimezoneUtcNormalInstance } from './date.timezone';
2
- import { DateRange } from './date.range';
1
+ import { type DateTimezoneUtcNormalFunctionInput, type DateTimezoneUtcNormalInstance } from './date.timezone';
2
+ import { type DateRange } from './date.range';
3
3
  /**
4
4
  * Modifies the input DateRange to fit within a 24 hour period.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { FactoryWithRequiredInput, IndexNumber, Maybe, Milliseconds } from '@dereekb/util';
2
- import { Observable, SchedulerLike } from 'rxjs';
3
- import { LogicalDateStringCode } from './date.logical';
1
+ import { type FactoryWithRequiredInput, type IndexNumber, type Maybe, type Milliseconds } from '@dereekb/util';
2
+ import { type Observable, type SchedulerLike } from 'rxjs';
3
+ import { type LogicalDateStringCode } from './date.logical';
4
4
  export interface DateIntervalConfig {
5
5
  /**
6
6
  * How often to emit the date.
@@ -1,5 +1,5 @@
1
- import { SortingOrder, SortCompareFunction } from '@dereekb/util';
2
- import { ReadDateFunction, ReadISO8601DateStringUTCFullFunction } from './date';
1
+ import { type SortingOrder, type SortCompareFunction } from '@dereekb/util';
2
+ import { type ReadDateFunction, type ReadISO8601DateStringUTCFullFunction } from './date';
3
3
  /**
4
4
  * SortCompareFunction by Date
5
5
  */
@@ -1,6 +1,6 @@
1
- import { LogicalDateStringCode, Maybe, ReadableTimeString, TimeAM, TimezoneString } from '@dereekb/util';
2
- import { LimitDateTimeConfig, LimitDateTimeInstance } from './date.time.limit';
3
- import { DateTimezoneConversionConfig, DateTimezoneUtcNormalInstance } from './date.timezone';
1
+ import { type LogicalDateStringCode, type Maybe, type ReadableTimeString, TimeAM, type TimezoneString } from '@dereekb/util';
2
+ import { type LimitDateTimeConfig, LimitDateTimeInstance } from './date.time.limit';
3
+ import { type DateTimezoneConversionConfig, DateTimezoneUtcNormalInstance } from './date.timezone';
4
4
  export interface ParsedTimeString {
5
5
  /**
6
6
  * Parsed "raw" date in UTC.
@@ -1,6 +1,6 @@
1
- import { Minutes, Hours, Days, Maybe } from '@dereekb/util';
2
- import { DateRange } from './date.range';
3
- import { LogicalDate } from './date.logical';
1
+ import { type Minutes, type Hours, type Days, type Maybe } from '@dereekb/util';
2
+ import { type DateRange } from './date.range';
3
+ import { type LogicalDate } from './date.logical';
4
4
  export interface LimitDateTimeConfig {
5
5
  /**
6
6
  * The relative instant to use when deriving limits.
@@ -1,7 +1,7 @@
1
- import { Minutes, DecisionFunction } from '@dereekb/util';
2
- import { StepRoundDateTimeDown } from './date.round';
3
- import { DateCellScheduleDateFilterConfig } from './date.cell.schedule';
4
- import { LimitDateTimeConfig } from './date.time.limit';
1
+ import { type Minutes, type DecisionFunction } from '@dereekb/util';
2
+ import { type StepRoundDateTimeDown } from './date.round';
3
+ import { type DateCellScheduleDateFilterConfig } from './date.cell.schedule';
4
+ import { type LimitDateTimeConfig } from './date.time.limit';
5
5
  export interface DateTimeMinuteConfig extends LimitDateTimeConfig {
6
6
  /**
7
7
  * Default date to consider.
@@ -1,5 +1,5 @@
1
- import { MapFunction, Maybe, Milliseconds, TimezoneString, ISO8601DayString, YearNumber, MapSameFunction } from '@dereekb/util';
2
- import { DateRange, TransformDateRangeDatesFunction } from './date.range';
1
+ import { type MapFunction, type Maybe, type Milliseconds, type TimezoneString, type ISO8601DayString, type YearNumber, type MapSameFunction } from '@dereekb/util';
2
+ import { type DateRange, type TransformDateRangeDatesFunction } from './date.range';
3
3
  /**
4
4
  * Inherited from the RRule library where RRule only deals with UTC date/times, dates going into it must always be in UTC.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { MaybeNot, Maybe, DateOrUnixDateTimeNumber, UnixDateTimeNumber } from '@dereekb/util';
1
+ import { type MaybeNot, type Maybe, type DateOrUnixDateTimeNumber, type UnixDateTimeNumber } from '@dereekb/util';
2
2
  export declare function unixTimeNumberFromDateOrTimeNumber(input: Maybe<DateOrUnixDateTimeNumber>): Maybe<UnixDateTimeNumber>;
3
3
  export declare function dateFromDateOrTimeNumber(input: Maybe<DateOrUnixDateTimeNumber>): Maybe<Date>;
4
4
  export declare function unixTimeNumberToDate(dateTimeNumber: Maybe<UnixDateTimeNumber>): Maybe<Date>;
@@ -1,6 +1,6 @@
1
- import { MapFunction, Maybe } from '@dereekb/util';
2
- import { DateRange } from './date.range';
3
- import { DateTimezoneUtcNormalInstance, DateTimezoneUtcNormalInstanceInput } from './date.timezone';
1
+ import { type MapFunction, type Maybe } from '@dereekb/util';
2
+ import { type DateRange } from './date.range';
3
+ import { DateTimezoneUtcNormalInstance, type DateTimezoneUtcNormalInstanceInput } from './date.timezone';
4
4
  /**
5
5
  * A Week/Year number combination used to refer to a specific Week on a specific Year.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { DateOrUnixDateTimeNumber, Maybe, Milliseconds } from '@dereekb/util';
1
+ import { type DateOrUnixDateTimeNumber, type Maybe, type Milliseconds } from '@dereekb/util';
2
2
  /**
3
3
  * An object that can expire.
4
4
  */
@@ -1,6 +1,6 @@
1
- import { Milliseconds, DateOrUnixDateTimeNumber } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction, Observable, OperatorFunction } from 'rxjs';
3
- import { Expires } from './expires';
1
+ import { type Milliseconds, type DateOrUnixDateTimeNumber } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction, type Observable, type OperatorFunction } from 'rxjs';
3
+ import { type Expires } from './expires';
4
4
  /**
5
5
  * Creates a new Expires object at the current time on emission that will expire in the set amount of time.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { Maybe, TimezoneString } from '@dereekb/util';
2
- import { DateDayTimezoneHintFilter, DateItemOccuringFilter, DateItemQueryStartsEndsFilter, DateItemRangeFilter } from './query.filter';
1
+ import { type Maybe, type TimezoneString } from '@dereekb/util';
2
+ import { type DateDayTimezoneHintFilter, type DateItemOccuringFilter, type DateItemQueryStartsEndsFilter, type DateItemRangeFilter } from './query.filter';
3
3
  export interface DaysAndTimeFilter<F> {
4
4
  /**
5
5
  * The time filter is the primary filter.
@@ -1,5 +1,5 @@
1
- import { Maybe } from '@dereekb/util';
2
- import { DateQueryBuilder } from './query.builder';
1
+ import { type Maybe } from '@dereekb/util';
2
+ import { type DateQueryBuilder } from './query.builder';
3
3
  export interface TimeFieldsNameSet {
4
4
  start: string;
5
5
  end?: string;
@@ -1,5 +1,5 @@
1
- import { Maybe, TimezoneString } from '@dereekb/util';
2
- import { DateRangeParams } from '../date/date.range';
1
+ import { type Maybe, type TimezoneString } from '@dereekb/util';
2
+ import { type DateRangeParams } from '../date/date.range';
3
3
  export interface FindEqualsDateParam {
4
4
  /**
5
5
  * Date exactly equals this.
@@ -1,5 +1,5 @@
1
- import { ISO8601DateString } from '@dereekb/util';
2
- import { DateRangeType } from '../date';
1
+ import { type ISO8601DateString } from '@dereekb/util';
2
+ import { type DateRangeType } from '../date';
3
3
  export interface FindDateParamRequest {
4
4
  before?: ISO8601DateString;
5
5
  after?: ISO8601DateString;
@@ -1,7 +1,7 @@
1
- import { CalendarDate, DateRange } from '../date';
2
- import { DateRRuleInstance } from './date.rrule';
3
- import { RRuleLines, RRuleStringLineSet } from './date.rrule.parse';
4
- import { TimezoneString as UtilTimezoneString } from '@dereekb/util';
1
+ import { type CalendarDate, type DateRange } from '../date';
2
+ import { type DateRRuleInstance } from './date.rrule';
3
+ import { type RRuleLines, type RRuleStringLineSet } from './date.rrule.parse';
4
+ import { type TimezoneString as UtilTimezoneString } from '@dereekb/util';
5
5
  export type TimezoneString = UtilTimezoneString;
6
6
  export interface RecurrenceModel {
7
7
  recur?: ModelRecurrenceInfo;
@@ -1,9 +1,9 @@
1
- import { Maybe, TimezoneString } from '@dereekb/util';
2
- import { RRule, Options } from 'rrule';
3
- import { CalendarDate, DateSet, DateRange, DateRangeParams } from '../date';
4
- import { BaseDateAsUTC, DateTimezoneUtcNormalInstance } from '../date/date.timezone';
1
+ import { type Maybe, type TimezoneString } from '@dereekb/util';
2
+ import { RRule, type Options } from 'rrule';
3
+ import { type CalendarDate, type DateSet, type DateRange, type DateRangeParams } from '../date';
4
+ import { type BaseDateAsUTC, DateTimezoneUtcNormalInstance } from '../date/date.timezone';
5
5
  import { DateRRule } from './date.rrule.extension';
6
- import { RRuleLines, RRuleStringLineSet, RRuleStringSetSeparation } from './date.rrule.parse';
6
+ import { type RRuleLines, type RRuleStringLineSet, type RRuleStringSetSeparation } from './date.rrule.parse';
7
7
  /**
8
8
  * Since RRule only deals with UTC date/times, dates going into it must always be in UTC.
9
9
  */
@@ -1,4 +1,4 @@
1
- import { Maybe } from '@dereekb/util';
1
+ import { type Maybe } from '@dereekb/util';
2
2
  import { RRule } from 'rrule';
3
3
  export interface IterArgs {
4
4
  inc: boolean;
@@ -1,6 +1,6 @@
1
- import { CommaSeparatedString, Maybe } from '@dereekb/util';
1
+ import { type CommaSeparatedString, type Maybe } from '@dereekb/util';
2
2
  import { DateSet } from '../date';
3
- import { DateTimezoneBaseDateConverter } from '../date/date.timezone';
3
+ import { type DateTimezoneBaseDateConverter } from '../date/date.timezone';
4
4
  /**
5
5
  * Denotes a single RRule rules string.
6
6
  */
@@ -1,4 +1,4 @@
1
- import { Maybe, TimezoneAbbreviation, TimezoneString, TimezoneStringRef, UTCTimezoneAbbreviation } from '@dereekb/util';
1
+ import { type Maybe, type TimezoneAbbreviation, type TimezoneString, type TimezoneStringRef, type UTCTimezoneAbbreviation } from '@dereekb/util';
2
2
  export declare function allTimezoneStrings(): TimezoneString[];
3
3
  export declare const allKnownTimezoneStrings: import("@dereekb/util").CachedFactoryWithInput<Set<string>, unknown>;
4
4
  export declare const allTimezoneInfos: import("@dereekb/util").CachedFactoryWithInput<TimezoneInfo[], unknown>;
@@ -1,5 +1,5 @@
1
- import { ObjectWithConstructor } from '@dereekb/util';
2
- import { ValidationOptions } from 'class-validator';
1
+ import { type ObjectWithConstructor } from '@dereekb/util';
2
+ import { type ValidationOptions } from 'class-validator';
3
3
  /**
4
4
  * isKnownTimezone validator
5
5
  */