-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmappingPackage.ts
More file actions
72 lines (62 loc) · 1.88 KB
/
Copy pathmappingPackage.ts
File metadata and controls
72 lines (62 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
export type MappingPackageArtifactKind =
'sample' | 'layout' | 'spec' | 'xsd' | 'expectedXml' | 'fiscalContext';
export type ArtifactInspectionStatus = 'pending' | 'clean' | 'rejected';
export interface MappingPackageArtifactSummary {
artifactId: string;
kind: MappingPackageArtifactKind;
sha256: string;
sizeBytes: number;
originalFileName: string;
inspectionStatus: ArtifactInspectionStatus;
uploadedAt: string;
}
export interface MappingPackageRevisionSummary {
revisionId: string;
revisionNumber: number;
createdAt: string;
artifacts: MappingPackageArtifactSummary[];
}
export interface FiscalMappingPackageDetail {
packageId: string;
workspaceId: string;
projectId: string;
name: string;
createdAt: string;
revisions: MappingPackageRevisionSummary[];
}
export interface MappingPackageArtifactUpload {
kind: MappingPackageArtifactKind;
file: File;
}
export interface CreateMappingPackageInput {
workspaceId: string;
projectId: string;
name?: string;
idempotencyKey: string;
artifacts: MappingPackageArtifactUpload[];
onProgress?: (percentage: number) => void;
}
/** Projeto fiscal do workspace (Gap 1 — issue #201). Leitura pura, sem CRUD. */
export interface FiscalProjectSummary {
projectId: string;
workspaceId: string;
name: string;
createdAt: string;
}
/** Cria uma nova revisão de um pacote já existente (Gap 2 — issue #201). */
export interface CreateMappingPackageRevisionInput {
workspaceId: string;
packageId: string;
artifacts: MappingPackageArtifactUpload[];
onProgress?: (percentage: number) => void;
}
/** Inventário de uma aba do Excel reconhecida como tabela de decisão fiscal (Gap 3 — issue #201). */
export interface ExcelSheetInventory {
sheetName: string;
columns: string[];
ruleCount: number;
}
export interface ExcelInventoryResult {
decisionSheets: ExcelSheetInventory[];
skippedSheets: string[];
}