@zerocarbon/erp-config-sdk 1.0.32 → 1.0.34

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/index.d.ts CHANGED
@@ -163,11 +163,13 @@ interface Bill {
163
163
  nestedSubCategory: string;
164
164
  amountCalculated: number;
165
165
  multiplicationFactor: number;
166
+ billAmount?: number;
166
167
  massData?: number;
167
168
  config?: {
168
169
  type?: string;
169
170
  id?: string;
170
171
  name?: string;
172
+ [key: string]: any;
171
173
  };
172
174
  }
173
175
  interface Meta {
@@ -1205,6 +1207,10 @@ interface BillMatchingConfig {
1205
1207
  type: boolean;
1206
1208
  };
1207
1209
  }
1210
+ interface CreateBillOptions {
1211
+ billAmount?: number;
1212
+ config?: Record<string, any>;
1213
+ }
1208
1214
  declare const BILL_CALCULATION_CONFIGS: BillCalculationConfig[];
1209
1215
  declare const DEFAULT_BILL_MATCHING_CONFIG: BillMatchingConfig;
1210
1216
  declare class BillManager {
@@ -1214,7 +1220,7 @@ declare class BillManager {
1214
1220
  filterBills(options: BillFilterOptions): Bill[];
1215
1221
  private matchField;
1216
1222
  findBillsForEmissionItem(emissionItem: ProcessedEmissionItem, category: string, year: number, month: number, scope: string, plantId?: string): Bill[];
1217
- createBill(userId: string, category: string, activityData: number, emissionItem: ProcessedEmissionItem, year: number, month: number, scope: string, industry?: string, vendorConfig?: any, massData?: number, plantId?: string): Omit<Bill, "_id">;
1223
+ createBill(userId: string, category: string, activityData: number, emissionItem: ProcessedEmissionItem, year: number, month: number, scope: string, industry?: string, vendorConfig?: any, massData?: number, plantId?: string, options?: CreateBillOptions): Omit<Bill, "_id">;
1218
1224
  private getCalculationConfig;
1219
1225
  private calculateEmissions;
1220
1226
  private getMultiplicationFactor;
@@ -1257,6 +1263,7 @@ interface EmissionSource {
1257
1263
  totalEmissions: number;
1258
1264
  amount: string;
1259
1265
  activityData: number;
1266
+ billAmount?: number;
1260
1267
  isEditing: boolean;
1261
1268
  tempActivityData?: number;
1262
1269
  bill?: Bill;
@@ -2034,6 +2041,26 @@ declare const UI_FEATURES: {
2034
2041
  */
2035
2042
  declare const isUIFeatureEnabled: (featureConstant: string, username?: string) => boolean;
2036
2043
 
2044
+ type WaterFieldType = "number" | "currency" | "percentage" | "boolean" | "composite" | "text";
2045
+ type WaterMetricItem = {
2046
+ key: string;
2047
+ label: string;
2048
+ unit: string;
2049
+ fieldType: WaterFieldType;
2050
+ acceptsBillAmount: boolean;
2051
+ acceptsSupportingDocs: boolean;
2052
+ aliases?: string[];
2053
+ };
2054
+ type WaterMetricCategory = {
2055
+ key: string;
2056
+ label: string;
2057
+ sourceSheet: string;
2058
+ items: WaterMetricItem[];
2059
+ };
2060
+ declare const WATER_MANAGEMENT_CATEGORIES: WaterMetricCategory[];
2061
+ declare const WATER_MANAGEMENT_CATEGORY_KEYS: string[];
2062
+ declare const WATER_MANAGEMENT_ITEM_KEYS: string[];
2063
+
2037
2064
  declare const ELECTRIC_PRODUCTS$5: {
2038
2065
  name: string;
2039
2066
  unit: string;
@@ -6538,5 +6565,5 @@ declare namespace index {
6538
6565
  };
6539
6566
  }
6540
6567
 
6541
- export { ALL_SCOPES_3_RCO, API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, BILL_CALCULATION_CONFIGS, BULK_BILL_AGENT_PROFILES, BillManager, CCTS_ALLSCOPES_CEMENT, CCTS_CALCINATION_PRODUCTS, CCTS_ELECTRICITY_PRODUCTS, CCTS_FIRE_EXTINGUISHER_PRODUCTS, CCTS_FUEL_COMBUSTION_PRODUCTS, CCTS_LPG_PRODUCTS, CCTS_MINING_OPERATIONS_PRODUCTS, CCTS_ONSITE_POWER_PRODUCTS, CCTS_PURCHASED_ELECTRICITY, CCTS_REFRIGERANTS, CCTS_SCOPE1_CEMENT, CCTS_SCOPE2_CEMENT, CCTS_SF6_PRODUCTS, CCTS_TABLE_COLUMNS, DEFAULT_BILL_MATCHING_CONFIG, EmissionSourceGenerator, FRONTEND_INDUSTRY_CONFIGS, HTTP_STATUS, INDUSTRIES_CONFIG, INDUSTRY_MAPPING, INDUSTRY_SPECIFIC_FIELDS, INTENSITY_FIELD_LABELS, ISO_CATEGORIES_PACKAGING, index as Industries, UI_FEATURES, WATER_PRODUCTS$5 as WATER_PRODUCTS, addItemForUser, buildBulkBillAgentFinalizerPrompt, buildBulkBillAgentPromptConfig, buildBulkBillAgentRouterPrompt, buildBulkBillAgentSystemPrompt, buildBulkBillAgentWorkerPrompt, buildUserConfigItemKey, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, cleanValue, createBillManager, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractBulkBillAgentProfileCandidates, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getAllConfig, getApiIndustryType, getAvailableFieldsForIndustry, getBulkBillAgentProfile, getBulkBillAgentProfilesForMappingContext, getCombinedBackendConfig, getIndustryBackendConfig, getIndustryConfig$1 as getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getItemsForUser, getPlantNameConfig, getPrimaryBulkBillAgentProfile, getRCOConfigByName, getScope3ConfigByName, getUserNameBackendConfig, getUserNameScopeConfig, hasIntensities, isUIFeatureEnabled, listBulkBillAgentProfiles, mapIndustryToApiType, mergeUserItemsIntoIndustryConfig, normalizeConfigKeyText, normalizeConfigText, resolveEmissionFactorsForUser, sameUserConfigText, sanitizeNumber, scoreBulkBillAgentProfile, supportsIntensityCalculations, updateItemEmissionFactorForUser, updateSdkItemEmissionFactorForUser, validateCarbonIntensityData };
6542
- export type { AllConfigurations, AlloyRequest, AlloyResponse, AluminiumRequest, AluminiumResponse, ApiEndpointConfig, ApiResponse, AutomobileRequest, AutomobileResponse, AviationRequest, AviationResponse, BackendAdditionalScopeItem, BackendEmissionItem, BackendEmissions, BackendEquipmentCategory, BackendIndustries, BackendIndustryConfig, BackendProduct, BackendScope, BackendScope3Item, BackendUserConfig, BackendUserConfigs, BaseRequest, BaseResponse, Bill, BillCalculationConfig, BillFilterOptions, BillMatchingConfig, BulkBillAgentAllowedItem, BulkBillAgentMappingContext, BulkBillAgentProfile, BulkBillAgentProfileCandidate, BulkBillAgentProfileExtractionInput, BulkBillAgentProfileGroup, BulkBillAgentProfileId, BulkBillAgentProfilePage, BulkBillAgentPromptConfig, BulkBillAgentWorkerPromptInput, BusinessTravelEmission, BusinessTravelEmissionAttributes, BusinessTravelEmissionsResponse, BillsAnalyzed$1 as CarbonIntensityBillsAnalyzed, Calculations$1 as CarbonIntensityCalculations, EmissionData$2 as CarbonIntensityEmissionData, ErrorResponse$1 as CarbonIntensityErrorResponse, CarbonIntensityRequest, CarbonIntensityResponse, ChemicalRequest, ChemicalResponse, DetailedCarbonIntensityResponse, EditableItem, EmissionData$3 as EmissionData, EmissionSource, Emissions$j as Emissions, EmissionsDataAttributes, EmissionsDataResponse, FieldConfig, FoodBeveragesRequest, FoodBeveragesResponse, FormData, FormValidationResult, FrontendIndustryConfig, HospitalityRequest, HospitalityResponse, IndustryConfig$1 as IndustryConfig, EmissionData as IndustryEmissionData, IndustryFieldConfig, IndustryFieldSection, ProductionData as IndustryProductionData, IndustryType, IntensityCalculation, IntensityValue, LogisticsRequest, LogisticsResponse, ManufacturingRequest, ManufacturingResponse, Meta, MetalEnergyRequest, MetalEnergyResponse, PackagingRequest, PackagingResponse, Pagination, PetrochemicalRequest, PetrochemicalResponse, PharmaRequest, PharmaResponse, PlantNameConfig, ProcessedEmissionCategory, ProcessedEmissionItem, ProcessedScope3Data, RealEstateRequest, RealEstateResponse, BillsAnalyzed as ResponseBillsAnalyzed, Calculations as ResponseCalculations, EmissionData$1 as ResponseEmissionData, ErrorResponse as ResponseErrorResponse, ScopeConfig, ScopeProduct, ShippingRequest, ShippingResponse, SteelRequest, SteelResponse, StrapiItem, StrapiResponse, TelecommunicationRequest, TelecommunicationResponse, TextileRequest, TextileResponse, TransportationEmission, TransportationEmissionAttributes, TransportationEmissionsResponse, UserConfigApiClient, UserConfigItem, UserData, UserEmissionFactorApprovalResponse, UserEmissionFactorResolution, UtilitiesRequest, UtilitiesResponse, ValidationError, VehicleEmission, VehicleEmissionAttributes, VehicleEmissionsResponse };
6568
+ export { ALL_SCOPES_3_RCO, API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, BILL_CALCULATION_CONFIGS, BULK_BILL_AGENT_PROFILES, BillManager, CCTS_ALLSCOPES_CEMENT, CCTS_CALCINATION_PRODUCTS, CCTS_ELECTRICITY_PRODUCTS, CCTS_FIRE_EXTINGUISHER_PRODUCTS, CCTS_FUEL_COMBUSTION_PRODUCTS, CCTS_LPG_PRODUCTS, CCTS_MINING_OPERATIONS_PRODUCTS, CCTS_ONSITE_POWER_PRODUCTS, CCTS_PURCHASED_ELECTRICITY, CCTS_REFRIGERANTS, CCTS_SCOPE1_CEMENT, CCTS_SCOPE2_CEMENT, CCTS_SF6_PRODUCTS, CCTS_TABLE_COLUMNS, DEFAULT_BILL_MATCHING_CONFIG, EmissionSourceGenerator, FRONTEND_INDUSTRY_CONFIGS, HTTP_STATUS, INDUSTRIES_CONFIG, INDUSTRY_MAPPING, INDUSTRY_SPECIFIC_FIELDS, INTENSITY_FIELD_LABELS, ISO_CATEGORIES_PACKAGING, index as Industries, UI_FEATURES, WATER_MANAGEMENT_CATEGORIES, WATER_MANAGEMENT_CATEGORY_KEYS, WATER_MANAGEMENT_ITEM_KEYS, WATER_PRODUCTS$5 as WATER_PRODUCTS, addItemForUser, buildBulkBillAgentFinalizerPrompt, buildBulkBillAgentPromptConfig, buildBulkBillAgentRouterPrompt, buildBulkBillAgentSystemPrompt, buildBulkBillAgentWorkerPrompt, buildUserConfigItemKey, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, cleanValue, createBillManager, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractBulkBillAgentProfileCandidates, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getAllConfig, getApiIndustryType, getAvailableFieldsForIndustry, getBulkBillAgentProfile, getBulkBillAgentProfilesForMappingContext, getCombinedBackendConfig, getIndustryBackendConfig, getIndustryConfig$1 as getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getItemsForUser, getPlantNameConfig, getPrimaryBulkBillAgentProfile, getRCOConfigByName, getScope3ConfigByName, getUserNameBackendConfig, getUserNameScopeConfig, hasIntensities, isUIFeatureEnabled, listBulkBillAgentProfiles, mapIndustryToApiType, mergeUserItemsIntoIndustryConfig, normalizeConfigKeyText, normalizeConfigText, resolveEmissionFactorsForUser, sameUserConfigText, sanitizeNumber, scoreBulkBillAgentProfile, supportsIntensityCalculations, updateItemEmissionFactorForUser, updateSdkItemEmissionFactorForUser, validateCarbonIntensityData };
6569
+ export type { AllConfigurations, AlloyRequest, AlloyResponse, AluminiumRequest, AluminiumResponse, ApiEndpointConfig, ApiResponse, AutomobileRequest, AutomobileResponse, AviationRequest, AviationResponse, BackendAdditionalScopeItem, BackendEmissionItem, BackendEmissions, BackendEquipmentCategory, BackendIndustries, BackendIndustryConfig, BackendProduct, BackendScope, BackendScope3Item, BackendUserConfig, BackendUserConfigs, BaseRequest, BaseResponse, Bill, BillCalculationConfig, BillFilterOptions, BillMatchingConfig, BulkBillAgentAllowedItem, BulkBillAgentMappingContext, BulkBillAgentProfile, BulkBillAgentProfileCandidate, BulkBillAgentProfileExtractionInput, BulkBillAgentProfileGroup, BulkBillAgentProfileId, BulkBillAgentProfilePage, BulkBillAgentPromptConfig, BulkBillAgentWorkerPromptInput, BusinessTravelEmission, BusinessTravelEmissionAttributes, BusinessTravelEmissionsResponse, BillsAnalyzed$1 as CarbonIntensityBillsAnalyzed, Calculations$1 as CarbonIntensityCalculations, EmissionData$2 as CarbonIntensityEmissionData, ErrorResponse$1 as CarbonIntensityErrorResponse, CarbonIntensityRequest, CarbonIntensityResponse, ChemicalRequest, ChemicalResponse, CreateBillOptions, DetailedCarbonIntensityResponse, EditableItem, EmissionData$3 as EmissionData, EmissionSource, Emissions$j as Emissions, EmissionsDataAttributes, EmissionsDataResponse, FieldConfig, FoodBeveragesRequest, FoodBeveragesResponse, FormData, FormValidationResult, FrontendIndustryConfig, HospitalityRequest, HospitalityResponse, IndustryConfig$1 as IndustryConfig, EmissionData as IndustryEmissionData, IndustryFieldConfig, IndustryFieldSection, ProductionData as IndustryProductionData, IndustryType, IntensityCalculation, IntensityValue, LogisticsRequest, LogisticsResponse, ManufacturingRequest, ManufacturingResponse, Meta, MetalEnergyRequest, MetalEnergyResponse, PackagingRequest, PackagingResponse, Pagination, PetrochemicalRequest, PetrochemicalResponse, PharmaRequest, PharmaResponse, PlantNameConfig, ProcessedEmissionCategory, ProcessedEmissionItem, ProcessedScope3Data, RealEstateRequest, RealEstateResponse, BillsAnalyzed as ResponseBillsAnalyzed, Calculations as ResponseCalculations, EmissionData$1 as ResponseEmissionData, ErrorResponse as ResponseErrorResponse, ScopeConfig, ScopeProduct, ShippingRequest, ShippingResponse, SteelRequest, SteelResponse, StrapiItem, StrapiResponse, TelecommunicationRequest, TelecommunicationResponse, TextileRequest, TextileResponse, TransportationEmission, TransportationEmissionAttributes, TransportationEmissionsResponse, UserConfigApiClient, UserConfigItem, UserData, UserEmissionFactorApprovalResponse, UserEmissionFactorResolution, UtilitiesRequest, UtilitiesResponse, ValidationError, VehicleEmission, VehicleEmissionAttributes, VehicleEmissionsResponse, WaterFieldType, WaterMetricCategory, WaterMetricItem };
package/dist/index.esm.js CHANGED
@@ -38890,7 +38890,7 @@ class BillManager {
38890
38890
  return matchingBills;
38891
38891
  }
38892
38892
  // Create a bill object with proper calculation
38893
- createBill(userId, category, activityData, emissionItem, year, month, scope, industry = "cement", vendorConfig, massData, plantId) {
38893
+ createBill(userId, category, activityData, emissionItem, year, month, scope, industry = "cement", vendorConfig, massData, plantId, options = {}) {
38894
38894
  const calculationConfig = this.getCalculationConfig(industry, scope, category);
38895
38895
  const amountCalculated = this.calculateEmissions(activityData, emissionItem.emissionFactor, calculationConfig, massData);
38896
38896
  const multiplicationFactor = this.getMultiplicationFactor(emissionItem.emissionFactor, calculationConfig);
@@ -38907,8 +38907,12 @@ class BillManager {
38907
38907
  nestedSubCategory: emissionItem.item,
38908
38908
  amountCalculated: amountCalculated,
38909
38909
  multiplicationFactor: multiplicationFactor,
38910
+ billAmount: sanitizeNumber(options.billAmount),
38910
38911
  massData: massData,
38911
- config: vendorConfig || {},
38912
+ config: {
38913
+ ...(vendorConfig || {}),
38914
+ ...(options.config || {}),
38915
+ },
38912
38916
  };
38913
38917
  }
38914
38918
  // Get calculation configuration for specific context
@@ -39085,6 +39089,7 @@ const formatKPIEmission = (value) => {
39085
39089
  }
39086
39090
  };
39087
39091
 
39092
+ const sumBillAmounts = (bills) => bills.reduce((sum, bill) => sum + sanitizeNumber(bill.billAmount), 0);
39088
39093
  class EmissionSourceGenerator {
39089
39094
  constructor(billManager) {
39090
39095
  this.billManager = billManager;
@@ -39108,6 +39113,7 @@ class EmissionSourceGenerator {
39108
39113
  });
39109
39114
  const totalEmissions = matchingBills.reduce((sum, bill) => sum + sanitizeNumber(bill.amountCalculated), 0);
39110
39115
  const totalActivityData = matchingBills.reduce((sum, bill) => sum + sanitizeNumber(bill.amount), 0);
39116
+ const totalBillAmount = sumBillAmounts(matchingBills);
39111
39117
  sources.push({
39112
39118
  id: sourceId,
39113
39119
  itemName: subProduct.name,
@@ -39118,6 +39124,7 @@ class EmissionSourceGenerator {
39118
39124
  totalEmissions,
39119
39125
  amount: totalActivityData.toString(),
39120
39126
  activityData: totalActivityData,
39127
+ billAmount: totalBillAmount,
39121
39128
  isEditing: false,
39122
39129
  bill: matchingBills[0],
39123
39130
  scope: scopeConfig.scope || "scope1",
@@ -39143,6 +39150,7 @@ class EmissionSourceGenerator {
39143
39150
  const matchingBills = this.billManager.findBillsForEmissionItem(apiItem, scopeConfig.name, year, monthNumber, scopeConfig.scope || "scope3");
39144
39151
  const totalEmissions = matchingBills.reduce((sum, bill) => sum + sanitizeNumber(bill.amountCalculated), 0);
39145
39152
  const totalActivityData = matchingBills.reduce((sum, bill) => sum + sanitizeNumber(bill.amount), 0);
39153
+ const totalBillAmount = sumBillAmounts(matchingBills);
39146
39154
  sources.push({
39147
39155
  id: sourceId,
39148
39156
  itemName: apiItem.item,
@@ -39153,6 +39161,7 @@ class EmissionSourceGenerator {
39153
39161
  totalEmissions,
39154
39162
  amount: totalActivityData.toString(),
39155
39163
  activityData: totalActivityData,
39164
+ billAmount: totalBillAmount,
39156
39165
  isEditing: false,
39157
39166
  bill: matchingBills[0],
39158
39167
  scope: scopeConfig.scope || "scope3",
@@ -39185,6 +39194,7 @@ class EmissionSourceGenerator {
39185
39194
  });
39186
39195
  const totalEmissions = matchingBills.reduce((sum, bill) => sum + sanitizeNumber(bill.amountCalculated), 0);
39187
39196
  const totalActivityData = matchingBills.reduce((sum, bill) => sum + sanitizeNumber(bill.amount), 0);
39197
+ const totalBillAmount = sumBillAmounts(matchingBills);
39188
39198
  sources.push({
39189
39199
  id: sourceId,
39190
39200
  itemName: item.item,
@@ -39195,6 +39205,7 @@ class EmissionSourceGenerator {
39195
39205
  totalEmissions,
39196
39206
  amount: totalActivityData.toString(),
39197
39207
  activityData: totalActivityData,
39208
+ billAmount: totalBillAmount,
39198
39209
  isEditing: false,
39199
39210
  bill: matchingBills[0],
39200
39211
  scope: scopeConfig.scope || "scope3",
@@ -43520,6 +43531,79 @@ const isUIFeatureEnabled = (featureConstant, username) => {
43520
43531
  ],
43521
43532
  });
43522
43533
 
43534
+ const WATER_MANAGEMENT_CATEGORIES = [
43535
+ {
43536
+ key: "water-consumption",
43537
+ label: "Water Consumption",
43538
+ sourceSheet: "Water Consumption",
43539
+ items: [
43540
+ { key: "total-water-withdrawal", label: "Total water withdrawal", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["water withdrawal", "total withdrawal"] },
43541
+ { key: "groundwater-withdrawal", label: "Groundwater withdrawal", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["ground water withdrawal", "borewell water"] },
43542
+ { key: "municipal-water-consumption", label: "Municipal water consumption", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["municipal water", "third party water"] },
43543
+ { key: "surface-water-consumption", label: "Surface water consumption", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["surface water"] },
43544
+ { key: "rainwater-harvested", label: "Rainwater harvested", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["rain water harvested", "rainwater harvesting"] },
43545
+ { key: "total-water-consumed", label: "Total water consumed", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["water consumed", "water consumption"] },
43546
+ ],
43547
+ },
43548
+ {
43549
+ key: "water-discharge",
43550
+ label: "Water Discharge",
43551
+ sourceSheet: "Water Discharge",
43552
+ items: [
43553
+ { key: "wastewater-generated", label: "Wastewater generated", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["waste water generated", "effluent generated"] },
43554
+ { key: "wastewater-treated", label: "Wastewater treated", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["waste water treated", "treated effluent"] },
43555
+ { key: "wastewater-discharged", label: "Wastewater discharged", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["waste water discharged", "effluent discharged"] },
43556
+ ],
43557
+ },
43558
+ {
43559
+ key: "water-circularity",
43560
+ label: "Water Circularity",
43561
+ sourceSheet: "Water Circularity",
43562
+ items: [
43563
+ { key: "water-recycled-reused", label: "Water recycled/reused", unit: "m³", fieldType: "number", acceptsBillAmount: true, acceptsSupportingDocs: true, aliases: ["recycled water", "reused water"] },
43564
+ { key: "water-reuse-rate", label: "Water reuse rate", unit: "%", fieldType: "percentage", acceptsBillAmount: false, acceptsSupportingDocs: true },
43565
+ { key: "rainwater-harvesting-contribution", label: "Rainwater harvesting contribution", unit: "%", fieldType: "percentage", acceptsBillAmount: false, acceptsSupportingDocs: true },
43566
+ ],
43567
+ },
43568
+ {
43569
+ key: "water-intensity-metrics",
43570
+ label: "Water Intensity Metrics",
43571
+ sourceSheet: "Water Intensity Metrics",
43572
+ items: [
43573
+ { key: "water-consumption-per-tonne-product", label: "Water consumption per tonne of product", unit: "m³/t", fieldType: "number", acceptsBillAmount: false, acceptsSupportingDocs: true },
43574
+ { key: "water-consumption-per-unit-produced", label: "Water consumption per unit produced", unit: "m³/unit", fieldType: "number", acceptsBillAmount: false, acceptsSupportingDocs: true },
43575
+ { key: "water-consumption-per-crore-revenue", label: "Water consumption per ₹ crore revenue", unit: "m³/₹ crore", fieldType: "number", acceptsBillAmount: false, acceptsSupportingDocs: true },
43576
+ ],
43577
+ },
43578
+ {
43579
+ key: "water-risk-stewardship",
43580
+ label: "Water Risk and Stewardship",
43581
+ sourceSheet: "Water Risk and Stewardship",
43582
+ items: [
43583
+ { key: "sites-water-stressed-regions", label: "Sites located in water-stressed regions", unit: "Number/%", fieldType: "composite", acceptsBillAmount: false, acceptsSupportingDocs: true },
43584
+ { key: "water-risk-assessment-conducted", label: "Water risk assessment conducted", unit: "Yes/No", fieldType: "boolean", acceptsBillAmount: false, acceptsSupportingDocs: true },
43585
+ { key: "water-reduction-target", label: "Water reduction target", unit: "%", fieldType: "percentage", acceptsBillAmount: false, acceptsSupportingDocs: true },
43586
+ { key: "water-stewardship-programme", label: "Water stewardship programme", unit: "Yes/No", fieldType: "boolean", acceptsBillAmount: false, acceptsSupportingDocs: true },
43587
+ { key: "watershed-restoration-initiatives", label: "Watershed restoration initiatives", unit: "Yes/No", fieldType: "boolean", acceptsBillAmount: false, acceptsSupportingDocs: true },
43588
+ { key: "community-water-projects", label: "Community water projects", unit: "Number/Investment", fieldType: "composite", acceptsBillAmount: true, acceptsSupportingDocs: true },
43589
+ ],
43590
+ },
43591
+ {
43592
+ key: "compliance-governance",
43593
+ label: "Compliance and Governance",
43594
+ sourceSheet: "SheetCompliance and Governance6",
43595
+ items: [
43596
+ { key: "water-permits-available", label: "Water permits available", unit: "Yes/No", fieldType: "boolean", acceptsBillAmount: false, acceptsSupportingDocs: true },
43597
+ { key: "water-environmental-violations", label: "Water-related environmental violations", unit: "Number", fieldType: "number", acceptsBillAmount: false, acceptsSupportingDocs: true },
43598
+ { key: "water-related-fines", label: "Water-related fines", unit: "₹", fieldType: "currency", acceptsBillAmount: true, acceptsSupportingDocs: true },
43599
+ { key: "board-oversight-water-issues", label: "Board oversight of water issues", unit: "Yes/No", fieldType: "boolean", acceptsBillAmount: false, acceptsSupportingDocs: true },
43600
+ { key: "water-management-policy", label: "Water management policy", unit: "Yes/No", fieldType: "boolean", acceptsBillAmount: false, acceptsSupportingDocs: true },
43601
+ ],
43602
+ },
43603
+ ];
43604
+ const WATER_MANAGEMENT_CATEGORY_KEYS = WATER_MANAGEMENT_CATEGORIES.map((category) => category.key);
43605
+ const WATER_MANAGEMENT_ITEM_KEYS = WATER_MANAGEMENT_CATEGORIES.flatMap((category) => category.items.map((item) => item.key));
43606
+
43523
43607
  const ELECTRIC_PRODUCTS = [
43524
43608
  // Scope 1 - Direct Emissions
43525
43609
  {
@@ -45201,5 +45285,5 @@ var index = /*#__PURE__*/Object.freeze({
45201
45285
  getRCOConfigByName: getRCOConfigByName
45202
45286
  });
45203
45287
 
45204
- export { ALL_SCOPES_3_RCO, API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, BILL_CALCULATION_CONFIGS, BULK_BILL_AGENT_PROFILES, BillManager, CCTS_ALLSCOPES_CEMENT, CCTS_CALCINATION_PRODUCTS, CCTS_ELECTRICITY_PRODUCTS, CCTS_FIRE_EXTINGUISHER_PRODUCTS, CCTS_FUEL_COMBUSTION_PRODUCTS, CCTS_LPG_PRODUCTS, CCTS_MINING_OPERATIONS_PRODUCTS, CCTS_ONSITE_POWER_PRODUCTS, CCTS_PURCHASED_ELECTRICITY, CCTS_REFRIGERANTS, CCTS_SCOPE1_CEMENT, CCTS_SCOPE2_CEMENT, CCTS_SF6_PRODUCTS, CCTS_TABLE_COLUMNS, DEFAULT_BILL_MATCHING_CONFIG, EmissionSourceGenerator, FRONTEND_INDUSTRY_CONFIGS, HTTP_STATUS, INDUSTRIES_CONFIG, INDUSTRY_MAPPING, INDUSTRY_SPECIFIC_FIELDS, INTENSITY_FIELD_LABELS, ISO_CATEGORIES_PACKAGING, index as Industries, UI_FEATURES, WATER_PRODUCTS$2 as WATER_PRODUCTS, addItemForUser, buildBulkBillAgentFinalizerPrompt, buildBulkBillAgentPromptConfig, buildBulkBillAgentRouterPrompt, buildBulkBillAgentSystemPrompt, buildBulkBillAgentWorkerPrompt, buildUserConfigItemKey, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, cleanValue, createBillManager, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractBulkBillAgentProfileCandidates, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getAllConfig, getApiIndustryType, getAvailableFieldsForIndustry, getBulkBillAgentProfile, getBulkBillAgentProfilesForMappingContext, getCombinedBackendConfig, getIndustryBackendConfig, getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getItemsForUser, getPlantNameConfig, getPrimaryBulkBillAgentProfile, getRCOConfigByName, getScope3ConfigByName, getUserNameBackendConfig, getUserNameScopeConfig, hasIntensities, isUIFeatureEnabled, listBulkBillAgentProfiles, mapIndustryToApiType, mergeUserItemsIntoIndustryConfig, normalizeConfigKeyText, normalizeConfigText, resolveEmissionFactorsForUser, sameUserConfigText, sanitizeNumber, scoreBulkBillAgentProfile, supportsIntensityCalculations, updateItemEmissionFactorForUser, updateSdkItemEmissionFactorForUser, validateCarbonIntensityData };
45288
+ export { ALL_SCOPES_3_RCO, API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, BILL_CALCULATION_CONFIGS, BULK_BILL_AGENT_PROFILES, BillManager, CCTS_ALLSCOPES_CEMENT, CCTS_CALCINATION_PRODUCTS, CCTS_ELECTRICITY_PRODUCTS, CCTS_FIRE_EXTINGUISHER_PRODUCTS, CCTS_FUEL_COMBUSTION_PRODUCTS, CCTS_LPG_PRODUCTS, CCTS_MINING_OPERATIONS_PRODUCTS, CCTS_ONSITE_POWER_PRODUCTS, CCTS_PURCHASED_ELECTRICITY, CCTS_REFRIGERANTS, CCTS_SCOPE1_CEMENT, CCTS_SCOPE2_CEMENT, CCTS_SF6_PRODUCTS, CCTS_TABLE_COLUMNS, DEFAULT_BILL_MATCHING_CONFIG, EmissionSourceGenerator, FRONTEND_INDUSTRY_CONFIGS, HTTP_STATUS, INDUSTRIES_CONFIG, INDUSTRY_MAPPING, INDUSTRY_SPECIFIC_FIELDS, INTENSITY_FIELD_LABELS, ISO_CATEGORIES_PACKAGING, index as Industries, UI_FEATURES, WATER_MANAGEMENT_CATEGORIES, WATER_MANAGEMENT_CATEGORY_KEYS, WATER_MANAGEMENT_ITEM_KEYS, WATER_PRODUCTS$2 as WATER_PRODUCTS, addItemForUser, buildBulkBillAgentFinalizerPrompt, buildBulkBillAgentPromptConfig, buildBulkBillAgentRouterPrompt, buildBulkBillAgentSystemPrompt, buildBulkBillAgentWorkerPrompt, buildUserConfigItemKey, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, cleanValue, createBillManager, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractBulkBillAgentProfileCandidates, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getAllConfig, getApiIndustryType, getAvailableFieldsForIndustry, getBulkBillAgentProfile, getBulkBillAgentProfilesForMappingContext, getCombinedBackendConfig, getIndustryBackendConfig, getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getItemsForUser, getPlantNameConfig, getPrimaryBulkBillAgentProfile, getRCOConfigByName, getScope3ConfigByName, getUserNameBackendConfig, getUserNameScopeConfig, hasIntensities, isUIFeatureEnabled, listBulkBillAgentProfiles, mapIndustryToApiType, mergeUserItemsIntoIndustryConfig, normalizeConfigKeyText, normalizeConfigText, resolveEmissionFactorsForUser, sameUserConfigText, sanitizeNumber, scoreBulkBillAgentProfile, supportsIntensityCalculations, updateItemEmissionFactorForUser, updateSdkItemEmissionFactorForUser, validateCarbonIntensityData };
45205
45289
  //# sourceMappingURL=index.esm.js.map