@zerocarbon/erp-config-sdk 1.0.27 → 1.0.29

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.
@@ -0,0 +1,93 @@
1
+ type BulkBillAgentProfileId = 'electricity' | 'fuel_combustion' | 'refrigerants' | 'industrial_gases' | 'employee_commuting' | 'business_travel' | 'lpg_usage' | 'fire_extinguisher' | 'sf6_usage' | 'water' | 'waste' | 'purchased_goods' | 'process_emissions' | 'generic_material';
2
+ interface BulkBillAgentAllowedItem {
3
+ itemKey?: string;
4
+ sourceId?: string;
5
+ itemName?: string;
6
+ billCategory?: string;
7
+ billSubCategory?: string;
8
+ billNestedSubCategory?: string;
9
+ billType?: string;
10
+ unit?: string;
11
+ emissionFactor?: number;
12
+ requiresMassData?: boolean;
13
+ }
14
+ interface BulkBillAgentMappingContext {
15
+ locked?: boolean;
16
+ scope?: string;
17
+ category?: string;
18
+ route?: string;
19
+ plant?: string;
20
+ year?: number | string;
21
+ month?: number | string;
22
+ yearType?: string;
23
+ allowedItems?: BulkBillAgentAllowedItem[];
24
+ }
25
+ interface BulkBillAgentProfile {
26
+ id: BulkBillAgentProfileId;
27
+ label: string;
28
+ description: string;
29
+ documentTypes: string[];
30
+ itemSignals: string[];
31
+ documentSignals: string[];
32
+ preferredUnits: string[];
33
+ extractionRules: string[];
34
+ rejectRules: string[];
35
+ }
36
+ interface BulkBillAgentPromptConfig {
37
+ profile: BulkBillAgentProfile;
38
+ allowedItemCount: number;
39
+ allowedItemSummaries: string[];
40
+ uploadContext: {
41
+ scope: string;
42
+ category: string;
43
+ plant: string;
44
+ year: string;
45
+ month: string;
46
+ yearType: string;
47
+ route: string;
48
+ };
49
+ }
50
+ declare const BULK_BILL_AGENT_PROFILES: Record<BulkBillAgentProfileId, BulkBillAgentProfile>;
51
+ declare const getBulkBillAgentProfile: (profileId: BulkBillAgentProfileId) => BulkBillAgentProfile;
52
+ declare const listBulkBillAgentProfiles: () => BulkBillAgentProfile[];
53
+ declare const scoreBulkBillAgentProfile: (profile: BulkBillAgentProfile, context?: BulkBillAgentMappingContext, documentText?: string) => number;
54
+ declare const getBulkBillAgentProfilesForMappingContext: (context?: BulkBillAgentMappingContext, documentText?: string) => {
55
+ profile: BulkBillAgentProfile;
56
+ score: number;
57
+ }[];
58
+ declare const getPrimaryBulkBillAgentProfile: (context?: BulkBillAgentMappingContext, documentText?: string) => BulkBillAgentProfile;
59
+ declare const buildBulkBillAgentPromptConfig: (context?: BulkBillAgentMappingContext, documentText?: string) => BulkBillAgentPromptConfig;
60
+ interface BulkBillAgentProfilePage {
61
+ pageNumber: number | string;
62
+ text?: string;
63
+ }
64
+ interface BulkBillAgentProfileGroup {
65
+ groupId: string;
66
+ pageNumbers: Array<number | string>;
67
+ }
68
+ interface BulkBillAgentProfileCandidate {
69
+ candidateId: string;
70
+ groupId: string;
71
+ profileId: BulkBillAgentProfileId;
72
+ itemName: string;
73
+ quantity: string;
74
+ unit: string;
75
+ role: string;
76
+ confidence: number;
77
+ pageNumber: number;
78
+ evidenceText: string;
79
+ matchedAllowedItemName?: string;
80
+ matchedAllowedItemKey?: string;
81
+ matchedAllowedItemSourceId?: string;
82
+ mappingConfidence?: number;
83
+ }
84
+ interface BulkBillAgentProfileExtractionInput {
85
+ mappingContext?: BulkBillAgentMappingContext;
86
+ pages?: BulkBillAgentProfilePage[];
87
+ group: BulkBillAgentProfileGroup;
88
+ documentText?: string;
89
+ }
90
+ declare const extractBulkBillAgentProfileCandidates: ({ mappingContext, pages, group, documentText, }: BulkBillAgentProfileExtractionInput) => BulkBillAgentProfileCandidate[];
91
+
92
+ export { BULK_BILL_AGENT_PROFILES, buildBulkBillAgentPromptConfig, extractBulkBillAgentProfileCandidates, getBulkBillAgentProfile, getBulkBillAgentProfilesForMappingContext, getPrimaryBulkBillAgentProfile, listBulkBillAgentProfiles, scoreBulkBillAgentProfile };
93
+ export type { BulkBillAgentAllowedItem, BulkBillAgentMappingContext, BulkBillAgentProfile, BulkBillAgentProfileCandidate, BulkBillAgentProfileExtractionInput, BulkBillAgentProfileGroup, BulkBillAgentProfileId, BulkBillAgentProfilePage, BulkBillAgentPromptConfig };