@rjromeoent/ein-supabase 0.2.4 → 0.2.6
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/document-intake.d.ts +50 -0
- package/package.json +1 -1
|
@@ -402,6 +402,54 @@ export interface AvailabilityReviewRowDto<TEvidenceRef extends JsonRecord = Json
|
|
|
402
402
|
raw_source_excerpt?: string | null;
|
|
403
403
|
evidence_refs?: TEvidenceRef[];
|
|
404
404
|
}
|
|
405
|
+
export type DocumentIntakeReviewEntityRole = "agency" | "artist" | "market" | "venue" | string;
|
|
406
|
+
export interface DocumentIntakeReviewEntityGroupDto<TMetadata extends JsonRecord = JsonRecord> {
|
|
407
|
+
role: DocumentIntakeReviewEntityRole;
|
|
408
|
+
key: string;
|
|
409
|
+
label: string;
|
|
410
|
+
secondary_label?: string | null;
|
|
411
|
+
row_count: number;
|
|
412
|
+
open_finding_count: number;
|
|
413
|
+
finding_count: number;
|
|
414
|
+
missing: boolean;
|
|
415
|
+
unconfirmed: boolean;
|
|
416
|
+
resolution_status?: string | null;
|
|
417
|
+
review_status?: string | null;
|
|
418
|
+
sample_record_id?: string | null;
|
|
419
|
+
finding_ids?: string[];
|
|
420
|
+
metadata?: TMetadata | null;
|
|
421
|
+
}
|
|
422
|
+
export interface DocumentIntakeReviewSummaryDto<TMetadata extends JsonRecord = JsonRecord> {
|
|
423
|
+
version: "document_intake_review_summary_v1" | string;
|
|
424
|
+
batch_id: string;
|
|
425
|
+
generated_at: string;
|
|
426
|
+
scope?: {
|
|
427
|
+
file_id?: string | null;
|
|
428
|
+
};
|
|
429
|
+
counts: {
|
|
430
|
+
total_rows: number;
|
|
431
|
+
needs_review_rows: number;
|
|
432
|
+
accepted_rows: number;
|
|
433
|
+
rejected_rows: number;
|
|
434
|
+
submitted_rows: number;
|
|
435
|
+
open_findings: number;
|
|
436
|
+
blocking_open_findings: number;
|
|
437
|
+
attention_rows: number;
|
|
438
|
+
missing_required_rows: number;
|
|
439
|
+
low_confidence_rows: number;
|
|
440
|
+
clean_review_rows: number;
|
|
441
|
+
};
|
|
442
|
+
review_status_counts: Array<{
|
|
443
|
+
status: string;
|
|
444
|
+
count: number;
|
|
445
|
+
}>;
|
|
446
|
+
entity_groups: {
|
|
447
|
+
artists: Array<DocumentIntakeReviewEntityGroupDto<TMetadata>>;
|
|
448
|
+
markets: Array<DocumentIntakeReviewEntityGroupDto<TMetadata>>;
|
|
449
|
+
venues: Array<DocumentIntakeReviewEntityGroupDto<TMetadata>>;
|
|
450
|
+
agencies?: Array<DocumentIntakeReviewEntityGroupDto<TMetadata>>;
|
|
451
|
+
};
|
|
452
|
+
}
|
|
405
453
|
export interface DocumentIntakeBatchDetailsDto<TRow = JsonRecord> {
|
|
406
454
|
batch: DocumentIntakeBatchDto;
|
|
407
455
|
files: DocumentIntakeReviewFileDto[];
|
|
@@ -411,6 +459,7 @@ export interface DocumentIntakeBatchDetailsDto<TRow = JsonRecord> {
|
|
|
411
459
|
document_finding_action_events?: DocumentFindingActionEventDto[];
|
|
412
460
|
document_reconciliation_operations?: DocumentReconciliationOperationDto[];
|
|
413
461
|
model_invocations?: AiModelInvocationSummaryDto[];
|
|
462
|
+
review_summary?: DocumentIntakeReviewSummaryDto | null;
|
|
414
463
|
rowPage?: DocumentIntakeReviewPageDto;
|
|
415
464
|
rows: TRow[];
|
|
416
465
|
}
|
|
@@ -473,6 +522,7 @@ export interface DocumentIntakeGetBatchRequest {
|
|
|
473
522
|
rowOffset?: number;
|
|
474
523
|
rowLimit?: number | null;
|
|
475
524
|
rowFileId?: string | null;
|
|
525
|
+
rowFocus?: "all" | "attention" | "unreviewed" | "accepted" | "rejected" | "published" | string;
|
|
476
526
|
}
|
|
477
527
|
export type DocumentIntakeGetBatchResponse<TRow = JsonRecord> = DocumentIntakeBatchDetailsDto<TRow>;
|
|
478
528
|
export interface DocumentIntakeListBatchesRequest {
|