@campfire-interactive/volume-intelligence-ui 0.1.0 → 0.3.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +36 -1
  2. package/dist/index.js +936 -459
  3. package/package.json +43 -43
package/dist/index.d.ts CHANGED
@@ -298,6 +298,41 @@ interface SourceAdminTransport {
298
298
  clearSourceData(sourceId: string, confirm: string): Promise<ClearSourceDataResult>;
299
299
  }
300
300
 
301
+ interface VolumeFilesTransport {
302
+ /** Every source the tenant has (for the upload dialog's source picker). */
303
+ listSources(): Promise<VolumeSource[]>;
304
+ /** The tenant's active base source id, to default the picker. */
305
+ getActiveSourceId(): Promise<string | null>;
306
+ /** Whether the source has ≥1 hierarchy_level mapping (an upload blocker). */
307
+ isHierarchyMapped(sourceId: string): Promise<boolean>;
308
+ /** Optional calendar-seeded probe (an upload blocker). Omit to skip the check. */
309
+ isCalendarSeeded?(): Promise<boolean>;
310
+ /** The paged upload list + total. */
311
+ listUploads(params: UploadListParams): Promise<UploadListResponse>;
312
+ /** Refresh a single upload's live state (used while polling active rows). */
313
+ getUpload(id: string): Promise<Upload>;
314
+ /** Create an upload (multipart file → host backend → VI). */
315
+ createUpload(input: UploadInput): Promise<Upload>;
316
+ /** Re-run processing for a failed/complete upload. */
317
+ reprocessUpload(id: string): Promise<void>;
318
+ /** Row errors (lazy-loaded when a row is expanded). */
319
+ getUploadErrors(id: string, params?: {
320
+ limit?: number;
321
+ offset?: number;
322
+ }): Promise<{
323
+ items: UploadError[];
324
+ total: number;
325
+ }>;
326
+ /** A short-lived URL to download the original file. */
327
+ getUploadDownloadUrl(id: string): Promise<string>;
328
+ }
329
+
330
+ interface VolumeFilesProps {
331
+ transport: VolumeFilesTransport;
332
+ className?: string;
333
+ }
334
+ declare function VolumeFiles({ transport, className }: VolumeFilesProps): react.JSX.Element;
335
+
301
336
  interface VolumeSourcesListProps {
302
337
  transport: SourceAdminTransport;
303
338
  /** Open a source's detail view. The host owns routing. */
@@ -398,4 +433,4 @@ declare const DEFAULT_LEVEL_NAMES: Record<number, string>;
398
433
  declare const AUTOMOTIVE_SLOTS: AutomotiveSlot[];
399
434
  declare const AUTOMOTIVE_TRANSFORM_LABELS: Record<string, string>;
400
435
 
401
- export { AUTOMOTIVE_SLOTS, AUTOMOTIVE_TRANSFORM_LABELS, type AutomotiveSlot, type ClearSourceDataResult, type CreateSegmentInput, type CreateSourceInput, DEFAULT_LEVEL_NAMES, type DetectSegmentsResult, HIERARCHY_LEVEL_COUNT, type ListErrorsResult, type RelinkResult, type SegmentMappingCategory, type SegmentMappingCategoryKeys, type SegmentMappingEntry, type SegmentMappingKeys, type SegmentMappingRow, type SourceAdminTransport, type SourceLayout, type SourceTemplateSummary, type SourceValueAlias, type SourceWithSegments, TallLayoutMappings, type TallLayoutMappingsProps, type TenantVolumeConfig, UnifiedSegmentMapper, type UnifiedSegmentMapperProps, type UpdateSourceInput, type Upload, type UploadError, type UploadErrorRow, type UploadInput, type UploadListParams, type UploadListResponse, type UploadRecord, type UploadStats, type UploadStatus, type ValueAliasEntry, ValueAliasesCard, type ValueAliasesCardProps, VolumeImport, type VolumeImportProps, type VolumeSource$1 as VolumeImportSource, type VolumeImportTransport, type UploadStatus$1 as VolumeImportUploadStatus, type VolumeSource, VolumeSourceDetail, type VolumeSourceDetailProps, type VolumeSourceKind, type VolumeSourceLayout, type VolumeSourceSegment, VolumeSourcesList, type VolumeSourcesListProps };
436
+ export { AUTOMOTIVE_SLOTS, AUTOMOTIVE_TRANSFORM_LABELS, type AutomotiveSlot, type ClearSourceDataResult, type CreateSegmentInput, type CreateSourceInput, DEFAULT_LEVEL_NAMES, type DetectSegmentsResult, HIERARCHY_LEVEL_COUNT, type ListErrorsResult, type RelinkResult, type SegmentMappingCategory, type SegmentMappingCategoryKeys, type SegmentMappingEntry, type SegmentMappingKeys, type SegmentMappingRow, type SourceAdminTransport, type SourceLayout, type SourceTemplateSummary, type SourceValueAlias, type SourceWithSegments, TallLayoutMappings, type TallLayoutMappingsProps, type TenantVolumeConfig, UnifiedSegmentMapper, type UnifiedSegmentMapperProps, type UpdateSourceInput, type Upload, type UploadError, type UploadErrorRow, type UploadInput, type UploadListParams, type UploadListResponse, type UploadRecord, type UploadStats, type UploadStatus, type ValueAliasEntry, ValueAliasesCard, type ValueAliasesCardProps, VolumeFiles, type VolumeFilesProps, type VolumeFilesTransport, VolumeImport, type VolumeImportProps, type VolumeSource$1 as VolumeImportSource, type VolumeImportTransport, type UploadStatus$1 as VolumeImportUploadStatus, type VolumeSource, VolumeSourceDetail, type VolumeSourceDetailProps, type VolumeSourceKind, type VolumeSourceLayout, type VolumeSourceSegment, VolumeSourcesList, type VolumeSourcesListProps };