@wirecat/cli-core 0.664.0 → 0.665.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/CHANGELOG.md +16 -0
- package/dist/calendar/index.d.ts +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/prepare.d.ts +2 -2
- package/dist/calendar/reads.d.ts +5 -5
- package/dist/calendar/writes.d.ts +4 -4
- package/dist/entities/listings.d.ts +60 -0
- package/dist/entities/listings.js +15 -0
- package/dist/meetings/event-store.d.ts +2 -1
- package/dist/meetings/event-store.js +6 -0
- package/dist/meetings/index.d.ts +1 -1
- package/dist/meetings/index.js +1 -1
- package/dist/search/question-plan.d.ts +4 -1
- package/dist/search/question-plan.js +5 -2
- package/dist/services/listings.js +17 -2
- package/dist/store/sqlite/meeting-listing.d.ts +12 -0
- package/dist/store/sqlite/meeting-listing.js +20 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
|
|
|
5
5
|
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
|
|
6
6
|
shape of this file.
|
|
7
7
|
|
|
8
|
+
## 0.665.0 — 14.11.2026
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`meeting_entry` carries what the calendar knows about the invitation.** Each calendar source has the copy's own
|
|
13
|
+
page (`page_url`, Google's `htmlLink`, `https` only), the owner's answer in that calendar (`own_response`) and the
|
|
14
|
+
conference's product (`conference`). Each participant has their `response` (`null` for a meeting's participant).
|
|
15
|
+
A row has `series_id` and `recurrence` (the series' `RRULE:` line), and `meeting_entry_details` lists the calendar's
|
|
16
|
+
Drive files under `attachments`. memo's `meetings list|show` and WireCat Desktop's meeting card read them.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- `search messages --discover` no longer reads a date or another field value written with hyphens
|
|
21
|
+
(`date:2026-10-08`) as a word to look up joined: only words with letters on both sides of a hyphen are (0.664.0
|
|
22
|
+
lowered a dated question's `coverage` with a made-up `20261008`).
|
|
23
|
+
|
|
8
24
|
## 0.664.0 — 14.11.2026
|
|
9
25
|
|
|
10
26
|
### Added
|
package/dist/calendar/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { expandSeries, localMoment, unexpandable } from "./expand.js";
|
|
|
3
3
|
export { type CalendarFeeds, FEED_LIMITS, FEED_PREFIX, type FeedLimits, type FeedRecord, type FeedRegistry, type FeedSyncStats, type FeedsSyncReport, feedAddress, fetchFeed, icsFeeds, isFeedCalendar, readFeed, syncWithFeeds, } from "./feeds.js";
|
|
4
4
|
export { type IcsEvent, type IcsOverride, type IcsRead, type IcsSkip, readIcs, writeIcs } from "./ics.js";
|
|
5
5
|
export { accountsMeta, EVENT_TYPES, EVENTS_QUERY, EVENTS_QUERY_NOTE, eventAnswer, eventIdOf, eventOf, eventsAnswer, eventsFilter, localDate, plusDays, type ReadAccount, sourceAccounts, } from "./reads.js";
|
|
6
|
-
export { repeatRule } from "./recurrence.js";
|
|
6
|
+
export { repeatRule, ruleLine } from "./recurrence.js";
|
|
7
7
|
export type { BusyTimes, CalendarExpander, CalendarSource, CalendarSourceTraits, ChangePage, ChangeResult, FreeBusyRequest, SearchPage, SyncWindow, } from "./source.js";
|
|
8
8
|
export { type CalendarCursor, type CalendarSyncOptions, type CalendarSyncReport, type CalendarSyncResult, calendarStatus, calendarSyncWindow, type PendingRound, parseCalendarCursor, syncCalendars, } from "./sync.js";
|
|
9
9
|
export { CALENDAR_WRITE_DEFAULTS, CALENDAR_WRITE_KEYS, type CalendarWrite, type CalendarWriter, calendarConflict, EVENTS_DELETE_SERIES_KEY, EVENTS_NOTIFY_KEY, EVENTS_REMIND_HOOK_KEY, type EventDraft, type EventPatch, type EventResponse, type FollowingScope, type WriteScope, } from "./writer.js";
|
package/dist/calendar/index.js
CHANGED
|
@@ -2,6 +2,6 @@ export { expandSeries, localMoment, unexpandable } from "./expand.js";
|
|
|
2
2
|
export { FEED_LIMITS, FEED_PREFIX, feedAddress, fetchFeed, icsFeeds, isFeedCalendar, readFeed, syncWithFeeds, } from "./feeds.js";
|
|
3
3
|
export { readIcs, writeIcs } from "./ics.js";
|
|
4
4
|
export { accountsMeta, EVENT_TYPES, EVENTS_QUERY, EVENTS_QUERY_NOTE, eventAnswer, eventIdOf, eventOf, eventsAnswer, eventsFilter, localDate, plusDays, sourceAccounts, } from "./reads.js";
|
|
5
|
-
export { repeatRule } from "./recurrence.js";
|
|
5
|
+
export { repeatRule, ruleLine } from "./recurrence.js";
|
|
6
6
|
export { calendarStatus, calendarSyncWindow, parseCalendarCursor, syncCalendars, } from "./sync.js";
|
|
7
7
|
export { CALENDAR_WRITE_DEFAULTS, CALENDAR_WRITE_KEYS, calendarConflict, EVENTS_DELETE_SERIES_KEY, EVENTS_NOTIFY_KEY, EVENTS_REMIND_HOOK_KEY, } from "./writer.js";
|
|
@@ -67,7 +67,7 @@ export declare const eventPreparation: (details: EventDetails, options: Preparat
|
|
|
67
67
|
title: string | null;
|
|
68
68
|
status: import("../meetings/event-store.js").EntryStatus;
|
|
69
69
|
event_type: import("../meetings/event-store.js").EntryEventType | null;
|
|
70
|
-
own_response:
|
|
70
|
+
own_response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
71
71
|
starts_at: string | null;
|
|
72
72
|
ends_at: string | null;
|
|
73
73
|
join_url: string | null;
|
|
@@ -77,7 +77,7 @@ export declare const eventPreparation: (details: EventDetails, options: Preparat
|
|
|
77
77
|
attendees: {
|
|
78
78
|
email: string;
|
|
79
79
|
name: string | null;
|
|
80
|
-
response:
|
|
80
|
+
response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
81
81
|
organizer: boolean;
|
|
82
82
|
optional: boolean;
|
|
83
83
|
resource: boolean;
|
package/dist/calendar/reads.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare const entryItem: (entry: StoredEntry) => {
|
|
|
57
57
|
title: string | null;
|
|
58
58
|
status: import("../meetings/event-store.js").EntryStatus;
|
|
59
59
|
event_type: EntryEventType | null;
|
|
60
|
-
own_response:
|
|
60
|
+
own_response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
61
61
|
starts_at: string | null;
|
|
62
62
|
ends_at: string | null;
|
|
63
63
|
join_url: string | null;
|
|
@@ -98,7 +98,7 @@ export declare const eventAnswer: (details: EventDetails, personOf?: PersonOfEma
|
|
|
98
98
|
title: string | null;
|
|
99
99
|
status: import("../meetings/event-store.js").EntryStatus;
|
|
100
100
|
event_type: EntryEventType | null;
|
|
101
|
-
own_response:
|
|
101
|
+
own_response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
102
102
|
starts_at: string | null;
|
|
103
103
|
ends_at: string | null;
|
|
104
104
|
join_url: string | null;
|
|
@@ -108,7 +108,7 @@ export declare const eventAnswer: (details: EventDetails, personOf?: PersonOfEma
|
|
|
108
108
|
attendees: {
|
|
109
109
|
email: string;
|
|
110
110
|
name: string | null;
|
|
111
|
-
response:
|
|
111
|
+
response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
112
112
|
organizer: boolean;
|
|
113
113
|
optional: boolean;
|
|
114
114
|
resource: boolean;
|
|
@@ -140,7 +140,7 @@ export declare const peopleAnswer: (store: EventStore, accountId: number, option
|
|
|
140
140
|
items: {
|
|
141
141
|
email: string;
|
|
142
142
|
name: string | null;
|
|
143
|
-
response:
|
|
143
|
+
response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
144
144
|
organizer: boolean;
|
|
145
145
|
optional: boolean;
|
|
146
146
|
resource: boolean;
|
|
@@ -154,7 +154,7 @@ export declare const peopleAnswer: (store: EventStore, accountId: number, option
|
|
|
154
154
|
items: {
|
|
155
155
|
email: string;
|
|
156
156
|
name: string | null;
|
|
157
|
-
response:
|
|
157
|
+
response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
158
158
|
organizer: boolean;
|
|
159
159
|
optional: boolean;
|
|
160
160
|
resource: boolean;
|
|
@@ -75,7 +75,7 @@ export declare const createEvent: (context: WriteContext, calendarReference: str
|
|
|
75
75
|
title: string | null;
|
|
76
76
|
status: import("../meetings/event-store.js").EntryStatus;
|
|
77
77
|
event_type: import("../meetings/event-store.js").EntryEventType | null;
|
|
78
|
-
own_response:
|
|
78
|
+
own_response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
79
79
|
starts_at: string | null;
|
|
80
80
|
ends_at: string | null;
|
|
81
81
|
join_url: string | null;
|
|
@@ -103,7 +103,7 @@ export declare const createEventFromText: (context: WriteContext, calendarRefere
|
|
|
103
103
|
title: string | null;
|
|
104
104
|
status: import("../meetings/event-store.js").EntryStatus;
|
|
105
105
|
event_type: import("../meetings/event-store.js").EntryEventType | null;
|
|
106
|
-
own_response:
|
|
106
|
+
own_response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
107
107
|
starts_at: string | null;
|
|
108
108
|
ends_at: string | null;
|
|
109
109
|
join_url: string | null;
|
|
@@ -156,7 +156,7 @@ export declare const respondToEvent: (context: WriteContext, reference: string,
|
|
|
156
156
|
title: string | null;
|
|
157
157
|
status: import("../meetings/event-store.js").EntryStatus;
|
|
158
158
|
event_type: import("../meetings/event-store.js").EntryEventType | null;
|
|
159
|
-
own_response:
|
|
159
|
+
own_response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
160
160
|
starts_at: string | null;
|
|
161
161
|
ends_at: string | null;
|
|
162
162
|
join_url: string | null;
|
|
@@ -184,7 +184,7 @@ export declare const moveEvent: (context: WriteContext, reference: string, toCal
|
|
|
184
184
|
title: string | null;
|
|
185
185
|
status: import("../meetings/event-store.js").EntryStatus;
|
|
186
186
|
event_type: import("../meetings/event-store.js").EntryEventType | null;
|
|
187
|
-
own_response:
|
|
187
|
+
own_response: "accepted" | "declined" | "delegated" | "needs-action" | "tentative" | null;
|
|
188
188
|
starts_at: string | null;
|
|
189
189
|
ends_at: string | null;
|
|
190
190
|
join_url: string | null;
|
|
@@ -135,6 +135,12 @@ export declare const meetingEntry: v.StrictObjectSchema<{
|
|
|
135
135
|
readonly via: v.PicklistSchema<["calendar", "meeting"], undefined>;
|
|
136
136
|
readonly calendar: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
137
137
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
138
|
+
/** A calendar copy's own page at its provider (Google's `htmlLink`); a meeting's record keeps none. */
|
|
139
|
+
readonly page_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
140
|
+
/** How this calendar's owner answered the invitation. */
|
|
141
|
+
readonly own_response: v.NullableSchema<v.PicklistSchema<readonly ["needs-action", "accepted", "tentative", "declined", "delegated"], undefined>, undefined>;
|
|
142
|
+
/** The conference's product, as the calendar names it (`Google Meet`, `Zoom Meeting`). */
|
|
143
|
+
readonly conference: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
138
144
|
}, undefined>, undefined>;
|
|
139
145
|
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
140
146
|
readonly meetings: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
@@ -146,6 +152,8 @@ export declare const meetingEntry: v.StrictObjectSchema<{
|
|
|
146
152
|
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
147
153
|
}, undefined>, undefined>;
|
|
148
154
|
readonly organizer: v.BooleanSchema<undefined>;
|
|
155
|
+
/** The answer to a calendar's invitation; `null` for a meeting's participant, who was not asked. */
|
|
156
|
+
readonly response: v.NullableSchema<v.PicklistSchema<readonly ["needs-action", "accepted", "tentative", "declined", "delegated"], undefined>, undefined>;
|
|
149
157
|
}, undefined>, undefined>;
|
|
150
158
|
readonly participants_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
151
159
|
readonly has_recording: v.BooleanSchema<undefined>;
|
|
@@ -156,6 +164,10 @@ export declare const meetingEntry: v.StrictObjectSchema<{
|
|
|
156
164
|
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
157
165
|
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
158
166
|
}, undefined>, undefined>;
|
|
167
|
+
/** The calendar series the event is an occurrence of. */
|
|
168
|
+
readonly series_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
169
|
+
/** That series' repeat rule, its RFC 5545 `RRULE:` line. */
|
|
170
|
+
readonly recurrence: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
159
171
|
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
160
172
|
readonly pending_findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
161
173
|
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -189,6 +201,12 @@ export declare const meetingEntryDetails: v.StrictObjectSchema<{
|
|
|
189
201
|
readonly via: v.PicklistSchema<["calendar", "meeting"], undefined>;
|
|
190
202
|
readonly calendar: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
191
203
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
204
|
+
/** A calendar copy's own page at its provider (Google's `htmlLink`); a meeting's record keeps none. */
|
|
205
|
+
readonly page_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
206
|
+
/** How this calendar's owner answered the invitation. */
|
|
207
|
+
readonly own_response: v.NullableSchema<v.PicklistSchema<readonly ["needs-action", "accepted", "tentative", "declined", "delegated"], undefined>, undefined>;
|
|
208
|
+
/** The conference's product, as the calendar names it (`Google Meet`, `Zoom Meeting`). */
|
|
209
|
+
readonly conference: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
192
210
|
}, undefined>, undefined>;
|
|
193
211
|
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
194
212
|
readonly meetings: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
@@ -200,6 +218,8 @@ export declare const meetingEntryDetails: v.StrictObjectSchema<{
|
|
|
200
218
|
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
201
219
|
}, undefined>, undefined>;
|
|
202
220
|
readonly organizer: v.BooleanSchema<undefined>;
|
|
221
|
+
/** The answer to a calendar's invitation; `null` for a meeting's participant, who was not asked. */
|
|
222
|
+
readonly response: v.NullableSchema<v.PicklistSchema<readonly ["needs-action", "accepted", "tentative", "declined", "delegated"], undefined>, undefined>;
|
|
203
223
|
}, undefined>, undefined>;
|
|
204
224
|
readonly participants_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
205
225
|
readonly has_recording: v.BooleanSchema<undefined>;
|
|
@@ -210,11 +230,21 @@ export declare const meetingEntryDetails: v.StrictObjectSchema<{
|
|
|
210
230
|
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
211
231
|
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
212
232
|
}, undefined>, undefined>;
|
|
233
|
+
/** The calendar series the event is an occurrence of. */
|
|
234
|
+
readonly series_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
235
|
+
/** That series' repeat rule, its RFC 5545 `RRULE:` line. */
|
|
236
|
+
readonly recurrence: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
213
237
|
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
214
238
|
readonly pending_findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
215
239
|
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
216
240
|
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
217
241
|
readonly location: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
242
|
+
/** The calendar's Drive files; `document` once a Drive account has stored the file. */
|
|
243
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
244
|
+
readonly file_id: v.StringSchema<undefined>;
|
|
245
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
246
|
+
readonly document: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
247
|
+
}, undefined>, undefined>;
|
|
218
248
|
readonly summaries: v.ArraySchema<v.StrictObjectSchema<{
|
|
219
249
|
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
220
250
|
readonly source: v.StringSchema<undefined>;
|
|
@@ -392,6 +422,12 @@ export declare const LISTING_ENTITIES: {
|
|
|
392
422
|
readonly via: v.PicklistSchema<["calendar", "meeting"], undefined>;
|
|
393
423
|
readonly calendar: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
394
424
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
425
|
+
/** A calendar copy's own page at its provider (Google's `htmlLink`); a meeting's record keeps none. */
|
|
426
|
+
readonly page_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
427
|
+
/** How this calendar's owner answered the invitation. */
|
|
428
|
+
readonly own_response: v.NullableSchema<v.PicklistSchema<readonly ["needs-action", "accepted", "tentative", "declined", "delegated"], undefined>, undefined>;
|
|
429
|
+
/** The conference's product, as the calendar names it (`Google Meet`, `Zoom Meeting`). */
|
|
430
|
+
readonly conference: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
395
431
|
}, undefined>, undefined>;
|
|
396
432
|
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
397
433
|
readonly meetings: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
@@ -403,6 +439,8 @@ export declare const LISTING_ENTITIES: {
|
|
|
403
439
|
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
404
440
|
}, undefined>, undefined>;
|
|
405
441
|
readonly organizer: v.BooleanSchema<undefined>;
|
|
442
|
+
/** The answer to a calendar's invitation; `null` for a meeting's participant, who was not asked. */
|
|
443
|
+
readonly response: v.NullableSchema<v.PicklistSchema<readonly ["needs-action", "accepted", "tentative", "declined", "delegated"], undefined>, undefined>;
|
|
406
444
|
}, undefined>, undefined>;
|
|
407
445
|
readonly participants_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
408
446
|
readonly has_recording: v.BooleanSchema<undefined>;
|
|
@@ -413,6 +451,10 @@ export declare const LISTING_ENTITIES: {
|
|
|
413
451
|
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
414
452
|
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
415
453
|
}, undefined>, undefined>;
|
|
454
|
+
/** The calendar series the event is an occurrence of. */
|
|
455
|
+
readonly series_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
456
|
+
/** That series' repeat rule, its RFC 5545 `RRULE:` line. */
|
|
457
|
+
readonly recurrence: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
416
458
|
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
417
459
|
readonly pending_findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
418
460
|
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -445,6 +487,12 @@ export declare const LISTING_ENTITIES: {
|
|
|
445
487
|
readonly via: v.PicklistSchema<["calendar", "meeting"], undefined>;
|
|
446
488
|
readonly calendar: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
447
489
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
490
|
+
/** A calendar copy's own page at its provider (Google's `htmlLink`); a meeting's record keeps none. */
|
|
491
|
+
readonly page_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
492
|
+
/** How this calendar's owner answered the invitation. */
|
|
493
|
+
readonly own_response: v.NullableSchema<v.PicklistSchema<readonly ["needs-action", "accepted", "tentative", "declined", "delegated"], undefined>, undefined>;
|
|
494
|
+
/** The conference's product, as the calendar names it (`Google Meet`, `Zoom Meeting`). */
|
|
495
|
+
readonly conference: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
448
496
|
}, undefined>, undefined>;
|
|
449
497
|
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
450
498
|
readonly meetings: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
@@ -456,6 +504,8 @@ export declare const LISTING_ENTITIES: {
|
|
|
456
504
|
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
457
505
|
}, undefined>, undefined>;
|
|
458
506
|
readonly organizer: v.BooleanSchema<undefined>;
|
|
507
|
+
/** The answer to a calendar's invitation; `null` for a meeting's participant, who was not asked. */
|
|
508
|
+
readonly response: v.NullableSchema<v.PicklistSchema<readonly ["needs-action", "accepted", "tentative", "declined", "delegated"], undefined>, undefined>;
|
|
459
509
|
}, undefined>, undefined>;
|
|
460
510
|
readonly participants_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
461
511
|
readonly has_recording: v.BooleanSchema<undefined>;
|
|
@@ -466,11 +516,21 @@ export declare const LISTING_ENTITIES: {
|
|
|
466
516
|
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
467
517
|
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
468
518
|
}, undefined>, undefined>;
|
|
519
|
+
/** The calendar series the event is an occurrence of. */
|
|
520
|
+
readonly series_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
521
|
+
/** That series' repeat rule, its RFC 5545 `RRULE:` line. */
|
|
522
|
+
readonly recurrence: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
469
523
|
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
470
524
|
readonly pending_findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
471
525
|
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
472
526
|
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
473
527
|
readonly location: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
528
|
+
/** The calendar's Drive files; `document` once a Drive account has stored the file. */
|
|
529
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
530
|
+
readonly file_id: v.StringSchema<undefined>;
|
|
531
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
532
|
+
readonly document: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
533
|
+
}, undefined>, undefined>;
|
|
474
534
|
readonly summaries: v.ArraySchema<v.StrictObjectSchema<{
|
|
475
535
|
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
476
536
|
readonly source: v.StringSchema<undefined>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
+
import { PARTICIPANT_RESPONSES } from "../meetings/index.js";
|
|
2
3
|
import { DOCUMENT_KINDS } from "../store/sqlite/document-listing.js";
|
|
3
4
|
import { MEETING_ROW_KINDS } from "../store/sqlite/meeting-listing.js";
|
|
4
5
|
import { count, id, reference, text, time, untrusted } from "./fields.js";
|
|
@@ -71,6 +72,8 @@ const participant = v.strictObject({
|
|
|
71
72
|
email: v.nullable(text),
|
|
72
73
|
person: v.nullable(personLink),
|
|
73
74
|
organizer: v.boolean(),
|
|
75
|
+
/** The answer to a calendar's invitation; `null` for a meeting's participant, who was not asked. */
|
|
76
|
+
response: v.nullable(v.picklist(PARTICIPANT_RESPONSES)),
|
|
74
77
|
});
|
|
75
78
|
/** One real meeting, call or calendar event: a calendar's event and its Zoom or Meet record are one row. */
|
|
76
79
|
export const meetingEntry = v.strictObject({
|
|
@@ -94,6 +97,12 @@ export const meetingEntry = v.strictObject({
|
|
|
94
97
|
via: v.picklist(["calendar", "meeting"]),
|
|
95
98
|
calendar: v.nullable(text),
|
|
96
99
|
ref: reference,
|
|
100
|
+
/** A calendar copy's own page at its provider (Google's `htmlLink`); a meeting's record keeps none. */
|
|
101
|
+
page_url: v.nullable(text),
|
|
102
|
+
/** How this calendar's owner answered the invitation. */
|
|
103
|
+
own_response: v.nullable(v.picklist(PARTICIPANT_RESPONSES)),
|
|
104
|
+
/** The conference's product, as the calendar names it (`Google Meet`, `Zoom Meeting`). */
|
|
105
|
+
conference: v.nullable(text),
|
|
97
106
|
})),
|
|
98
107
|
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
99
108
|
meetings: v.array(reference),
|
|
@@ -103,6 +112,10 @@ export const meetingEntry = v.strictObject({
|
|
|
103
112
|
has_transcript: v.boolean(),
|
|
104
113
|
has_summary: v.boolean(),
|
|
105
114
|
documents: v.array(v.strictObject({ ref: reference, title: v.nullable(text), role: v.nullable(text) })),
|
|
115
|
+
/** The calendar series the event is an occurrence of. */
|
|
116
|
+
series_id: v.nullable(id),
|
|
117
|
+
/** That series' repeat rule, its RFC 5545 `RRULE:` line. */
|
|
118
|
+
recurrence: v.nullable(text),
|
|
106
119
|
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
107
120
|
pending_findings: count,
|
|
108
121
|
untrusted,
|
|
@@ -112,6 +125,8 @@ export const meetingEntryDetails = v.strictObject({
|
|
|
112
125
|
...meetingEntry.entries,
|
|
113
126
|
description: v.nullable(text),
|
|
114
127
|
location: v.nullable(text),
|
|
128
|
+
/** The calendar's Drive files; `document` once a Drive account has stored the file. */
|
|
129
|
+
attachments: v.array(v.strictObject({ file_id: text, title: v.nullable(text), document: v.nullable(reference) })),
|
|
115
130
|
summaries: v.array(v.strictObject({
|
|
116
131
|
meeting: reference,
|
|
117
132
|
source: text,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Event } from "./model.js";
|
|
2
2
|
/** RFC 5545 PARTSTAT: a participant's answer, and the owner's own. */
|
|
3
|
-
export
|
|
3
|
+
export declare const PARTICIPANT_RESPONSES: readonly ["needs-action", "accepted", "tentative", "declined", "delegated"];
|
|
4
|
+
export type ParticipantResponse = (typeof PARTICIPANT_RESPONSES)[number];
|
|
4
5
|
/** What kind of entry it is. `default`, `from-mail` and `call` are searched (requirements 3.4); `call` is a phone's. */
|
|
5
6
|
export type EntryEventType = "default" | "out-of-office" | "focus" | "working-location" | "birthday" | "from-mail" | "call";
|
|
6
7
|
/** RFC 5545 TRANSP. */
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Calendar words are stored in one neutral spelling, RFC 5545 where it has one, lower case with hyphens. Each
|
|
3
|
+
* adapter translates its provider's words; a provider's own spelling never reaches a column.
|
|
4
|
+
*/
|
|
5
|
+
/** RFC 5545 PARTSTAT: a participant's answer, and the owner's own. */
|
|
6
|
+
export const PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
|
|
1
7
|
const UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
2
8
|
/** The last moment a series can have a slot, when its rule says; a COUNT rule or none repeats as far as this knows. */
|
|
3
9
|
const seriesEnd = (entry) => {
|
package/dist/meetings/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type { MeetingContextStore, MeetingEventLinkInput, MeetingEventLinkReceip
|
|
|
9
9
|
export { type MeetingCueIdentity, meetingCueFingerprint } from "./cue-fingerprint.js";
|
|
10
10
|
export { EVENT_QUERY } from "./event-query.js";
|
|
11
11
|
export type { CalendarAccessRole, CalendarInput, EntryAttachment, EntryAttachmentInput, EntryEventType, EntryInput, EntryKind, EntryParticipantInput, EntryRevision, EntryStatus, EntryTransparency, EntryVisibility, EventChange, EventDetails, EventFilter, EventStore, LinkReview, ParticipantResponse, ReviewDecision, SeriesSlots, StoredCalendar, StoredEntry, StoredParticipant, } from "./event-store.js";
|
|
12
|
-
export { entryInWindow, eventChange } from "./event-store.js";
|
|
12
|
+
export { entryInWindow, eventChange, PARTICIPANT_RESPONSES } from "./event-store.js";
|
|
13
13
|
export { linkEvent } from "./events.js";
|
|
14
14
|
export { exportMeeting, type MeetingExport, type MeetingExportFormat, type MeetingExportOptions, serializeVtt, } from "./export.js";
|
|
15
15
|
export { type FindingEvidence, type FindingOutcome, findingHash, MEETING_FINDINGS_KIND, type MeetingFactFinding, type MeetingFinding, type MeetingFindingsInput, type MeetingFindingsReceipt, type MeetingTaskFinding, meetingFindingFingerprint, validateMeetingFindings, } from "./findings.js";
|
package/dist/meetings/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { aggregateCallStats, CALLBACK_WITHIN_MS, SHORT_CALL_UNDER_MS, } from "./
|
|
|
6
6
|
export { CALL_DIRECTIONS, CALL_OUTCOMES, callOf, MISSED_OUTCOMES, } from "./calls.js";
|
|
7
7
|
export { meetingCueFingerprint } from "./cue-fingerprint.js";
|
|
8
8
|
export { EVENT_QUERY } from "./event-query.js";
|
|
9
|
-
export { entryInWindow, eventChange } from "./event-store.js";
|
|
9
|
+
export { entryInWindow, eventChange, PARTICIPANT_RESPONSES } from "./event-store.js";
|
|
10
10
|
export { linkEvent } from "./events.js";
|
|
11
11
|
export { exportMeeting, serializeVtt, } from "./export.js";
|
|
12
12
|
export { findingHash, MEETING_FINDINGS_KIND, meetingFindingFingerprint, validateMeetingFindings, } from "./findings.js";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const words: (text: string) => RegExpMatchArray | [];
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* `альфа-банк` also as `альфабанк`: people write one name both ways, and the index keeps each as typed. Only letters
|
|
4
|
+
* on both sides of a hyphen, and never a field's value: `date:2026-10-08` is no word.
|
|
5
|
+
*/
|
|
3
6
|
export declare const joinedHyphens: (text: string) => string[];
|
|
4
7
|
/** Words that carry no topic of their own: widening one to a prefix (`про*`) finds only noise. */
|
|
5
8
|
export declare const isFunctionWord: (word: string) => boolean;
|
|
@@ -3,8 +3,11 @@ import { implicitTextTerms, parseLucene, walkQuery } from "@wirecat/cli-base/que
|
|
|
3
3
|
import { normalize } from "../store/normalize.js";
|
|
4
4
|
import { MESSAGE_PARSING } from "./lucene/types.js";
|
|
5
5
|
export const words = (text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [];
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* `альфа-банк` also as `альфабанк`: people write one name both ways, and the index keeps each as typed. Only letters
|
|
8
|
+
* on both sides of a hyphen, and never a field's value: `date:2026-10-08` is no word.
|
|
9
|
+
*/
|
|
10
|
+
export const joinedHyphens = (text) => (normalize(text).match(/(?<![:\p{L}\p{N}-])\p{L}[\p{L}\p{N}]*(?:-\p{L}[\p{L}\p{N}]*)+/gu) ?? []).map((word) => word.replaceAll("-", ""));
|
|
8
11
|
const scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have сколько какой какая какие какое кто кому кем где когда как что во по на в к с у через ли должен должна нужно идёт идет можно может могут"));
|
|
9
12
|
const questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
10
13
|
const QUESTION_STARTS = new Set(words("what which how who whom whose where when why can could should would did do does is are was were will " +
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { CliError } from "@wirecat/cli-base";
|
|
2
|
-
import { eventIdOf } from "../calendar/index.js";
|
|
2
|
+
import { eventIdOf, ruleLine } from "../calendar/index.js";
|
|
3
3
|
import { providerLabel } from "../domain/providers.js";
|
|
4
4
|
import { formatMeetingReference, parseMeetingReference } from "../meetings/index.js";
|
|
5
5
|
import { TOTAL_CAP } from "../search/total.js";
|
|
6
6
|
import { storeQuery } from "./notes-search.js";
|
|
7
7
|
/** How many documents a text term may match before the list counts them as "at least". */
|
|
8
8
|
export const DOCUMENT_TEXT_CANDIDATES = 2_000;
|
|
9
|
+
/** A page link a caller may open: `https` only, so a stored `javascript:` or `file:` link never reaches a button. */
|
|
10
|
+
const webUrl = (url) => (url !== null && /^https:\/\//iu.test(url) ? url : null);
|
|
9
11
|
const iso = (ms) => (ms === null ? null : new Date(ms).toISOString());
|
|
10
12
|
const sourceName = ({ provider, account }) => `${provider}:${account}`;
|
|
11
13
|
const sourceOf = (account) => ({
|
|
@@ -156,6 +158,9 @@ const meetingItem = (row, accounts) => {
|
|
|
156
158
|
via: source.via,
|
|
157
159
|
calendar: source.calendar,
|
|
158
160
|
ref: source.ref,
|
|
161
|
+
page_url: webUrl(source.pageUrl),
|
|
162
|
+
own_response: source.ownResponse,
|
|
163
|
+
conference: source.conference,
|
|
159
164
|
})),
|
|
160
165
|
meetings,
|
|
161
166
|
participants: row.participants,
|
|
@@ -164,8 +169,10 @@ const meetingItem = (row, accounts) => {
|
|
|
164
169
|
has_transcript: row.hasTranscript,
|
|
165
170
|
has_summary: row.hasSummary,
|
|
166
171
|
documents: row.documents,
|
|
172
|
+
series_id: row.seriesId === null ? null : String(row.seriesId),
|
|
173
|
+
recurrence: ruleLine(row.recurrence ?? []) ?? null,
|
|
167
174
|
pending_findings: row.pendingFindings,
|
|
168
|
-
untrusted: ["title", "participants.name", "sources.calendar", "documents.title"],
|
|
175
|
+
untrusted: ["title", "participants.name", "sources.calendar", "sources.conference", "documents.title"],
|
|
169
176
|
};
|
|
170
177
|
};
|
|
171
178
|
const personIdOf = (value) => {
|
|
@@ -231,6 +238,7 @@ export const showMeetingEntry = async (store, reference, lines) => {
|
|
|
231
238
|
details.push(one);
|
|
232
239
|
}
|
|
233
240
|
const live = event?.entries.find(({ deletedAt }) => deletedAt === null) ?? event?.entries[0];
|
|
241
|
+
const files = new Map((event?.attachments ?? []).map((one) => [one.fileId, one]));
|
|
234
242
|
const first = details[0]?.meeting;
|
|
235
243
|
const spoken = details.flatMap((one) => one.transcripts
|
|
236
244
|
.filter(({ transcript }) => transcript.deletedAt === null && transcript.supersededAt === null)
|
|
@@ -240,6 +248,11 @@ export const showMeetingEntry = async (store, reference, lines) => {
|
|
|
240
248
|
...meetingItem(row, byName),
|
|
241
249
|
description: live?.description ?? event?.event.description ?? first?.description ?? null,
|
|
242
250
|
location: live?.location ?? event?.event.location ?? first?.location ?? null,
|
|
251
|
+
attachments: [...files.values()].map(({ fileId, title, documentId }) => ({
|
|
252
|
+
file_id: fileId,
|
|
253
|
+
title,
|
|
254
|
+
document: documentId === null ? null : `document:${documentId}`,
|
|
255
|
+
})),
|
|
243
256
|
summaries: details.flatMap((one) => one.summaries.map((summary) => ({
|
|
244
257
|
meeting: ref(one.meeting),
|
|
245
258
|
source: summary.source,
|
|
@@ -277,7 +290,9 @@ export const showMeetingEntry = async (store, reference, lines) => {
|
|
|
277
290
|
"location",
|
|
278
291
|
"participants.name",
|
|
279
292
|
"sources.calendar",
|
|
293
|
+
"sources.conference",
|
|
280
294
|
"documents.title",
|
|
295
|
+
"attachments.title",
|
|
281
296
|
"summaries",
|
|
282
297
|
"transcript.lines.speaker",
|
|
283
298
|
"transcript.lines.text",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ParticipantResponse } from "../../meetings/index.js";
|
|
1
2
|
import type { StoreContext } from "./open.js";
|
|
2
3
|
export declare const MEETING_ROW_KINDS: readonly ["meeting", "call", "event"];
|
|
3
4
|
export type MeetingRowKind = (typeof MEETING_ROW_KINDS)[number];
|
|
@@ -30,6 +31,12 @@ export interface MeetingRowSource {
|
|
|
30
31
|
calendar: string | null;
|
|
31
32
|
/** `meeting:<account>/<id>` for a meeting, `event:<id>` for a calendar copy. */
|
|
32
33
|
ref: string;
|
|
34
|
+
/** A calendar copy's own page at its provider (Google's `htmlLink`). */
|
|
35
|
+
pageUrl: string | null;
|
|
36
|
+
/** How the calendar's owner answered the invitation. */
|
|
37
|
+
ownResponse: ParticipantResponse | null;
|
|
38
|
+
/** The conference's product, as the calendar names it (`Google Meet`, `Zoom Meeting`). */
|
|
39
|
+
conference: string | null;
|
|
33
40
|
}
|
|
34
41
|
export interface MeetingRowParticipant {
|
|
35
42
|
name: string | null;
|
|
@@ -40,6 +47,8 @@ export interface MeetingRowParticipant {
|
|
|
40
47
|
name: string | null;
|
|
41
48
|
} | null;
|
|
42
49
|
organizer: boolean;
|
|
50
|
+
/** The answer to a calendar's invitation; `null` for a meeting's participant, who was not asked. */
|
|
51
|
+
response: ParticipantResponse | null;
|
|
43
52
|
}
|
|
44
53
|
export interface MeetingRowDocument {
|
|
45
54
|
ref: string;
|
|
@@ -73,6 +82,9 @@ export interface MeetingRow {
|
|
|
73
82
|
hasTranscript: boolean;
|
|
74
83
|
hasSummary: boolean;
|
|
75
84
|
documents: MeetingRowDocument[];
|
|
85
|
+
/** The calendar series the event is an occurrence of, and that series' RFC 5545 lines. */
|
|
86
|
+
seriesId: number | null;
|
|
87
|
+
recurrence: string[] | null;
|
|
76
88
|
/** Findings in batches still waiting for the owner that cite one of the row's meetings. */
|
|
77
89
|
pendingFindings: number;
|
|
78
90
|
/** Every findings batch citing one of its meetings, newest first, with how many of its findings do. */
|
|
@@ -210,11 +210,16 @@ const hydrate = (database, page) => {
|
|
|
210
210
|
.all(ids(eventIds))
|
|
211
211
|
.map((row) => [Number(row.id), row]));
|
|
212
212
|
const entries = database
|
|
213
|
-
.prepare(`SELECT ce.id, ce.event_id, ce.join_url, ce.timezone, ce.status, ce.deleted_at, ce.event_type,
|
|
214
|
-
c.title AS calendar, a.provider, a.external_id AS account FROM calendar_entries ce JOIN calendars c ON c.id = ce.calendar_id
|
|
213
|
+
.prepare(`SELECT ce.id, ce.event_id, ce.join_url, ce.timezone, ce.status, ce.deleted_at, ce.event_type, ce.url,
|
|
214
|
+
ce.own_response, ce.conference, c.title AS calendar, a.provider, a.external_id AS account FROM calendar_entries ce JOIN calendars c ON c.id = ce.calendar_id
|
|
215
215
|
JOIN accounts a ON a.id = c.account_id WHERE ce.event_id IN (SELECT value FROM json_each(?))
|
|
216
216
|
ORDER BY ce.deleted_at IS NOT NULL, ce.id`)
|
|
217
217
|
.all(ids(eventIds));
|
|
218
|
+
const series = new Map(database
|
|
219
|
+
.prepare("SELECT id, recurrence FROM event_series WHERE id IN (SELECT event_series_id FROM events " +
|
|
220
|
+
"WHERE id IN (SELECT value FROM json_each(?)))")
|
|
221
|
+
.all(ids(eventIds))
|
|
222
|
+
.map((row) => [Number(row.id), row.recurrence == null ? null : JSON.parse(String(row.recurrence))]));
|
|
218
223
|
const meetings = new Map(database
|
|
219
224
|
.prepare(`SELECT m.*, a.provider, a.external_id AS account,
|
|
220
225
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -228,17 +233,18 @@ const hydrate = (database, page) => {
|
|
|
228
233
|
.all(ids(meetingIds))
|
|
229
234
|
.map((row) => [Number(row.id), row]));
|
|
230
235
|
const people = database
|
|
231
|
-
.prepare(`SELECT 'event' AS type, ce.event_id AS owner, p.name, p.email, p.organizer, l.person_id, pn.name AS person_name
|
|
236
|
+
.prepare(`SELECT 'event' AS type, ce.event_id AS owner, p.name, p.email, p.organizer, l.person_id, pn.name AS person_name,
|
|
237
|
+
p.response
|
|
232
238
|
FROM calendar_entries ce JOIN calendar_entry_participants p ON p.entry_id = ce.id
|
|
233
239
|
LEFT JOIN identity_links l ON l.identity_id = p.identity_id LEFT JOIN persons pn ON pn.id = l.person_id
|
|
234
240
|
WHERE ce.event_id IN (SELECT value FROM json_each(?)) AND ce.deleted_at IS NULL AND p.resource = 0
|
|
235
241
|
UNION ALL
|
|
236
|
-
SELECT 'meeting', mp.meeting_id, mp.display_name, mp.email, mp.role = 'host', l.person_id, pn.name
|
|
242
|
+
SELECT 'meeting', mp.meeting_id, mp.display_name, mp.email, mp.role = 'host', l.person_id, pn.name, NULL
|
|
237
243
|
FROM meeting_participants mp LEFT JOIN identity_links l ON l.identity_id = mp.identity_id
|
|
238
244
|
LEFT JOIN persons pn ON pn.id = l.person_id
|
|
239
245
|
WHERE mp.meeting_id IN (SELECT value FROM json_each(?))
|
|
240
246
|
UNION ALL
|
|
241
|
-
SELECT 'event', cl.from_id, pe.name, NULL, 0, cl.to_id, pe.name FROM links cl JOIN persons pe ON pe.id = cl.to_id
|
|
247
|
+
SELECT 'event', cl.from_id, pe.name, NULL, 0, cl.to_id, pe.name, NULL FROM links cl JOIN persons pe ON pe.id = cl.to_id
|
|
242
248
|
WHERE cl.from_type = 'event' AND cl.from_id IN (SELECT value FROM json_each(?)) AND cl.to_type = 'person'
|
|
243
249
|
AND cl.kind = ${linkKind("related-to")} AND cl.role = '${COUNTERPART_ROLE}'`)
|
|
244
250
|
.all(ids(eventIds), ids(meetingIds), ids(eventIds));
|
|
@@ -271,6 +277,9 @@ const hydrate = (database, page) => {
|
|
|
271
277
|
via: "calendar",
|
|
272
278
|
calendar: str(entry.calendar),
|
|
273
279
|
ref: `event:${id}`,
|
|
280
|
+
pageUrl: str(entry.url),
|
|
281
|
+
ownResponse: str(entry.own_response),
|
|
282
|
+
conference: str(entry.conference),
|
|
274
283
|
})),
|
|
275
284
|
...held.map((meeting) => ({
|
|
276
285
|
provider: String(meeting.provider),
|
|
@@ -282,6 +291,9 @@ const hydrate = (database, page) => {
|
|
|
282
291
|
accountId: Number(meeting.account_id),
|
|
283
292
|
meetingId: Number(meeting.id),
|
|
284
293
|
}),
|
|
294
|
+
pageUrl: null,
|
|
295
|
+
ownResponse: null,
|
|
296
|
+
conference: null,
|
|
285
297
|
})),
|
|
286
298
|
].filter((source, index, all) => all.findIndex((other) => other.provider === source.provider &&
|
|
287
299
|
other.account === source.account &&
|
|
@@ -302,6 +314,7 @@ const hydrate = (database, page) => {
|
|
|
302
314
|
email: held?.email ?? email,
|
|
303
315
|
person: ref === null ? null : { ref, name: str(person.person_name) },
|
|
304
316
|
organizer: (held?.organizer ?? false) || Number(person.organizer) === 1,
|
|
317
|
+
response: held?.response ?? str(person.response),
|
|
305
318
|
});
|
|
306
319
|
}
|
|
307
320
|
const linked = new Map();
|
|
@@ -348,6 +361,8 @@ const hydrate = (database, page) => {
|
|
|
348
361
|
hasTranscript: held.some((meeting) => Number(meeting.has_transcript) === 1),
|
|
349
362
|
hasSummary: held.some((meeting) => Number(meeting.has_summary) === 1),
|
|
350
363
|
documents: [...linked.values()],
|
|
364
|
+
seriesId: num(event?.event_series_id),
|
|
365
|
+
recurrence: event?.event_series_id == null ? null : (series.get(Number(event.event_series_id)) ?? null),
|
|
351
366
|
pendingFindings: batches.reduce((sum, { pending }) => sum + countOf(pending), 0),
|
|
352
367
|
findings: batches.flatMap(({ id, status, cited, pending }) => {
|
|
353
368
|
const findings = countOf(cited);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.665.0",
|
|
4
4
|
"description": "The messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|