@markwharton/liquidplanner 1.10.0 → 1.11.0
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
|
@@ -53,6 +53,12 @@ export declare class LPClient {
|
|
|
53
53
|
* data changed but the write didn't go through this client instance.
|
|
54
54
|
*/
|
|
55
55
|
invalidateTimesheetCache(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Invalidate cached assignments only.
|
|
58
|
+
* Use when an external event indicates assignment data changed
|
|
59
|
+
* (e.g., after logging time which updates loggedHoursRollup).
|
|
60
|
+
*/
|
|
61
|
+
invalidateAssignmentsCache(): void;
|
|
56
62
|
/**
|
|
57
63
|
* Make an authenticated request to the LP API
|
|
58
64
|
*
|
package/dist/client.js
CHANGED
|
@@ -137,6 +137,14 @@ export class LPClient {
|
|
|
137
137
|
invalidateTimesheetCache() {
|
|
138
138
|
this.cache?.invalidate('timesheet:');
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Invalidate cached assignments only.
|
|
142
|
+
* Use when an external event indicates assignment data changed
|
|
143
|
+
* (e.g., after logging time which updates loggedHoursRollup).
|
|
144
|
+
*/
|
|
145
|
+
invalidateAssignmentsCache() {
|
|
146
|
+
this.cache?.invalidate('assignments:');
|
|
147
|
+
}
|
|
140
148
|
/**
|
|
141
149
|
* Make an authenticated request to the LP API
|
|
142
150
|
*
|