@go-avro/avro-js 0.0.65 → 0.0.66
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/QueryClient.js +32 -3
- package/dist/types/api/Job.d.ts +2 -0
- package/dist/types/api.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -213,9 +213,38 @@ const SOCKET_EVENT_CONFIG = {
|
|
|
213
213
|
},
|
|
214
214
|
delete_bill: { entityKey: 'bills', action: 'delete', fetchPath: null },
|
|
215
215
|
update_bills: { invalidateKeys: [['bills']] },
|
|
216
|
-
// ── Check-ins
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
// ── Check-ins (also refresh the job — its payload embeds
|
|
217
|
+
// current_checkins for the on-site indicator) ──
|
|
218
|
+
create_checkin: {
|
|
219
|
+
entityKey: 'checkins',
|
|
220
|
+
action: 'create',
|
|
221
|
+
fetchPath: null,
|
|
222
|
+
alsoInvalidate: [['checkins']],
|
|
223
|
+
relatedRefetch: [
|
|
224
|
+
{
|
|
225
|
+
entityKey: 'jobs',
|
|
226
|
+
idField: 'job_id',
|
|
227
|
+
fetchPath: (id) => `/job/${id}`,
|
|
228
|
+
construct: (d) => new Job(d),
|
|
229
|
+
matchesQuery: matchesJobsListQuery,
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
},
|
|
233
|
+
update_checkin: {
|
|
234
|
+
entityKey: 'checkins',
|
|
235
|
+
action: 'update',
|
|
236
|
+
fetchPath: null,
|
|
237
|
+
alsoInvalidate: [['checkins']],
|
|
238
|
+
relatedRefetch: [
|
|
239
|
+
{
|
|
240
|
+
entityKey: 'jobs',
|
|
241
|
+
idField: 'job_id',
|
|
242
|
+
fetchPath: (id) => `/job/${id}`,
|
|
243
|
+
construct: (d) => new Job(d),
|
|
244
|
+
matchesQuery: matchesJobsListQuery,
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
},
|
|
219
248
|
// ── Sessions ──
|
|
220
249
|
create_session: {
|
|
221
250
|
entityKey: 'sessions',
|
package/dist/types/api/Job.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Task } from '../../types/api/Task';
|
|
2
2
|
import { _Event } from '../../types/api/_Event';
|
|
3
|
+
import type { CheckIn } from '../../types/api';
|
|
3
4
|
import { RouteJob } from '../../types/api/RouteJob';
|
|
4
5
|
import { Subscription } from '../../types/api/Subscription';
|
|
5
6
|
import { Route } from '../../types/api/Route';
|
|
@@ -25,6 +26,7 @@ declare module '../../types/api/Job' {
|
|
|
25
26
|
manual_emails: string[][];
|
|
26
27
|
last_completed_event: _Event | null;
|
|
27
28
|
current_event: _Event | null;
|
|
29
|
+
current_checkins: CheckIn[];
|
|
28
30
|
labels: string[];
|
|
29
31
|
owner: string | null;
|
|
30
32
|
}
|
package/dist/types/api.d.ts
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AVRO_JS_VERSION = "0.0.
|
|
1
|
+
export declare const AVRO_JS_VERSION = "0.0.66";
|
package/dist/version.js
CHANGED