@longtable/core 0.1.47 → 0.1.48
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/types.d.ts +65 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -206,6 +206,64 @@ export interface DecisionRecord {
|
|
|
206
206
|
explicitStateUpdates?: Record<string, unknown>;
|
|
207
207
|
studyContractId?: string;
|
|
208
208
|
}
|
|
209
|
+
export type EvidenceSourceKind = "interview_turn" | "panel" | "critic" | "reviewer" | "decision" | "question" | "invocation" | "manual" | "system";
|
|
210
|
+
export interface EvidenceRecord {
|
|
211
|
+
id: string;
|
|
212
|
+
createdAt: string;
|
|
213
|
+
sourceKind: EvidenceSourceKind;
|
|
214
|
+
summary: string;
|
|
215
|
+
rawText?: string;
|
|
216
|
+
sourceId?: string;
|
|
217
|
+
sourceHookId?: string;
|
|
218
|
+
role?: string;
|
|
219
|
+
linkedQuestionRecordIds?: string[];
|
|
220
|
+
linkedDecisionRecordIds?: string[];
|
|
221
|
+
linkedInvocationRecordIds?: string[];
|
|
222
|
+
incorporatedAt?: string;
|
|
223
|
+
incorporatedByPatchId?: string;
|
|
224
|
+
incorporatedByRevisionId?: string;
|
|
225
|
+
}
|
|
226
|
+
export type ResearchSpecificationPatchSource = "interview" | "panel" | "critic" | "reviewer" | "decision" | "manual" | "system";
|
|
227
|
+
export type ResearchSpecificationPatchStatus = "proposed" | "applied" | "rejected" | "superseded";
|
|
228
|
+
export type ResearchSpecificationChangeKind = "set" | "append" | "remove" | "replace";
|
|
229
|
+
export interface ResearchSpecificationChange {
|
|
230
|
+
path: string;
|
|
231
|
+
kind: ResearchSpecificationChangeKind;
|
|
232
|
+
summary: string;
|
|
233
|
+
before?: unknown;
|
|
234
|
+
after?: unknown;
|
|
235
|
+
evidenceRecordIds?: string[];
|
|
236
|
+
}
|
|
237
|
+
export interface ResearchSpecificationPatch {
|
|
238
|
+
id: string;
|
|
239
|
+
createdAt: string;
|
|
240
|
+
updatedAt: string;
|
|
241
|
+
status: ResearchSpecificationPatchStatus;
|
|
242
|
+
source: ResearchSpecificationPatchSource;
|
|
243
|
+
title: string;
|
|
244
|
+
rationale?: string;
|
|
245
|
+
changes: ResearchSpecificationChange[];
|
|
246
|
+
sourceEvidenceIds: string[];
|
|
247
|
+
targetSpecification?: ResearchSpecification;
|
|
248
|
+
appliedAt?: string;
|
|
249
|
+
appliedRevisionId?: string;
|
|
250
|
+
questionRecordId?: string;
|
|
251
|
+
decisionRecordId?: string;
|
|
252
|
+
}
|
|
253
|
+
export interface ResearchSpecificationRevision {
|
|
254
|
+
id: string;
|
|
255
|
+
index: number;
|
|
256
|
+
createdAt: string;
|
|
257
|
+
source: ResearchSpecificationPatchSource;
|
|
258
|
+
title: string;
|
|
259
|
+
status: NonNullable<ResearchSpecification["status"]>;
|
|
260
|
+
patchId?: string;
|
|
261
|
+
questionRecordId?: string;
|
|
262
|
+
decisionRecordId?: string;
|
|
263
|
+
sourceEvidenceIds: string[];
|
|
264
|
+
changeSummary: string[];
|
|
265
|
+
specification: ResearchSpecification;
|
|
266
|
+
}
|
|
209
267
|
export interface QuestionOption {
|
|
210
268
|
value: string;
|
|
211
269
|
label: string;
|
|
@@ -368,6 +426,9 @@ export interface ResearchSpecification {
|
|
|
368
426
|
createdAt?: string;
|
|
369
427
|
updatedAt?: string;
|
|
370
428
|
sourceHookId?: string;
|
|
429
|
+
latestRevisionId?: string;
|
|
430
|
+
sourceEvidenceIds?: string[];
|
|
431
|
+
sectionEvidence?: Record<string, string[]>;
|
|
371
432
|
researchDirection: {
|
|
372
433
|
question?: string;
|
|
373
434
|
purpose: string;
|
|
@@ -479,6 +540,10 @@ export interface ResearchState {
|
|
|
479
540
|
hooks?: LongTableHookRun[];
|
|
480
541
|
firstResearchShape?: FirstResearchShape;
|
|
481
542
|
researchSpecification?: ResearchSpecification;
|
|
543
|
+
interviewTurns?: LongTableInterviewTurn[];
|
|
544
|
+
evidenceRecords?: EvidenceRecord[];
|
|
545
|
+
specPatches?: ResearchSpecificationPatch[];
|
|
546
|
+
specRevisions?: ResearchSpecificationRevision[];
|
|
482
547
|
questionObligations?: LongTableQuestionObligation[];
|
|
483
548
|
inferredHypotheses: InferredHypothesis[];
|
|
484
549
|
openTensions: string[];
|