You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deadlines/deadlines-library/index/classes/CalendarProvider.md
+20-42Lines changed: 20 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
# Class: CalendarProvider
8
8
9
-
Defined in: [calendar-provider.ts:41](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L41)
9
+
Defined in: [calendar-provider.ts:68](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L68)
10
10
11
11
Calendar provider that manages holidays, working days, and date calculations.
Defined in: [calendar-provider.ts:81](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L81)
42
+
Defined in: [calendar-provider.ts:104](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L104)
Defined in: [calendar-provider.ts:278](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L278)
83
+
Defined in: [calendar-provider.ts:295](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L295)
106
84
107
85
Adds a specified number of working days to a date, skipping weekends and holidays.
Defined in: [calendar-provider.ts:387](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L387)
124
+
Defined in: [calendar-provider.ts:404](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L404)
147
125
148
126
Counts the number of working days between two dates (inclusive).
Defined in: [calendar-provider.ts:460](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L460)
164
+
Defined in: [calendar-provider.ts:477](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L477)
Defined in: [calendar-provider.ts:235](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L235)
188
+
Defined in: [calendar-provider.ts:252](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L252)
211
189
212
190
Gets detailed information about a specific day including working day status and holiday information.
213
191
@@ -243,7 +221,7 @@ console.log(dayInfo);
243
221
244
222
> **getNextWorkingDay**(`date`): `Date`
245
223
246
-
Defined in: [calendar-provider.ts:410](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L410)
224
+
Defined in: [calendar-provider.ts:427](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L427)
Defined in: [calendar-provider.ts:351](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L351)
259
+
Defined in: [calendar-provider.ts:368](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L368)
282
260
283
261
Gets all non-working days (weekends and holidays) between two dates (inclusive).
Defined in: [calendar-provider.ts:437](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L437)
302
+
Defined in: [calendar-provider.ts:454](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L454)
Defined in: [calendar-provider.ts:312](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L312)
337
+
Defined in: [calendar-provider.ts:329](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L329)
360
338
361
339
Gets all working days between two dates (inclusive).
Defined in: [calendar-provider.ts:178](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L178)
378
+
Defined in: [calendar-provider.ts:195](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L195)
Defined in: [calendar-provider.ts:202](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L202)
413
+
Defined in: [calendar-provider.ts:219](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L219)
436
414
437
415
Checks if a specific date is a working day (not a weekend or holiday).
Defined in: [calendar-provider.ts:487](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/calendar-provider.ts#L487)
445
+
Defined in: [calendar-provider.ts:504](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/calendar-provider.ts#L504)
468
446
469
447
Updates the custom holidays configuration and clears the holiday cache.
Copy file name to clipboardExpand all lines: docs/deadlines/deadlines-library/index/classes/DeadlineCalculator.md
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
# Class: DeadlineCalculator
8
8
9
-
Defined in: [deadlines-calculator.ts:32](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/deadlines-calculator.ts#L32)
9
+
Defined in: [deadlines-calculator.ts:47](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/deadlines-calculator.ts#L47)
10
10
11
11
Calculator for determining deadline dates and validating start dates for utility switching cases.
Defined in: [deadlines-calculator.ts:43](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/deadlines-calculator.ts#L43)
38
+
Defined in: [deadlines-calculator.ts:68](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/deadlines-calculator.ts#L68)
Defined in: [deadlines-calculator.ts:72](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/deadlines-calculator.ts#L72)
73
+
Defined in: [deadlines-calculator.ts:91](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/deadlines-calculator.ts#L91)
71
74
72
75
Calculate the earliest possible start date for a contract
73
76
@@ -139,7 +142,7 @@ When no applicable rule is found for the switching case
Defined in: [deadlines-calculator.ts:201](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/deadlines-calculator.ts#L201)
145
+
Defined in: [deadlines-calculator.ts:220](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/deadlines-calculator.ts#L220)
143
146
144
147
Get a specific rule for a switching case
145
148
@@ -166,7 +169,7 @@ The matching deadline rule or undefined if none found
Defined in: [deadlines-calculator.ts:185](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/deadlines-calculator.ts#L185)
172
+
Defined in: [deadlines-calculator.ts:204](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/deadlines-calculator.ts#L204)
170
173
171
174
Get all configured rules
172
175
@@ -185,7 +188,7 @@ Array of all configured deadline rules
Defined in: [deadlines-calculator.ts:148](https://github.com/epilot-dev/switching-deadlines/blob/6764c18ea2525d949c8b9824eea28bc98b53665e/src/deadlines-calculator.ts#L148)
191
+
Defined in: [deadlines-calculator.ts:167](https://github.com/epilot-dev/switching-deadlines/blob/3e728b5f762c5b978f43c05453d07a8b73878933/src/deadlines-calculator.ts#L167)
0 commit comments