@markwharton/liquidplanner 1.6.0 → 1.6.1
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.
- package/dist/client.d.ts +6 -0
- package/dist/client.js +8 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -46,6 +46,12 @@ export declare class LPClient {
|
|
|
46
46
|
* Useful after external changes that the cache wouldn't know about.
|
|
47
47
|
*/
|
|
48
48
|
clearCache(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Invalidate cached timesheet entries only.
|
|
51
|
+
* Use when an external event (e.g., SignalR broadcast) indicates timesheet
|
|
52
|
+
* data changed but the write didn't go through this client instance.
|
|
53
|
+
*/
|
|
54
|
+
invalidateTimesheetCache(): void;
|
|
49
55
|
/**
|
|
50
56
|
* Make an authenticated request to the LP API
|
|
51
57
|
*/
|
package/dist/client.js
CHANGED
|
@@ -77,6 +77,14 @@ export class LPClient {
|
|
|
77
77
|
clearCache() {
|
|
78
78
|
this.cache?.clear();
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Invalidate cached timesheet entries only.
|
|
82
|
+
* Use when an external event (e.g., SignalR broadcast) indicates timesheet
|
|
83
|
+
* data changed but the write didn't go through this client instance.
|
|
84
|
+
*/
|
|
85
|
+
invalidateTimesheetCache() {
|
|
86
|
+
this.cache?.invalidate('timesheet:');
|
|
87
|
+
}
|
|
80
88
|
/**
|
|
81
89
|
* Make an authenticated request to the LP API
|
|
82
90
|
*/
|