@zerocarbon/erp-config-sdk 1.0.24 → 1.0.26

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/README.md CHANGED
@@ -75,6 +75,7 @@ const rcoSheets = config.rco;
75
75
  - Cement Production
76
76
  - Chemical Manufacturing
77
77
  - Construction
78
+ - Electrical Equipments
78
79
  - Food & Beverage
79
80
  - Information Technology
80
81
  - Leather & Textiles
package/dist/index.d.ts CHANGED
@@ -1283,13 +1283,20 @@ declare const addItemForUser: (apiClient: UserConfigApiClient, options: {
1283
1283
  category: string;
1284
1284
  items: Partial<UserConfigItem>[];
1285
1285
  }) => Promise<UserConfigItem[]>;
1286
+ type UserEmissionFactorApprovalResponse = {
1287
+ success?: boolean;
1288
+ pendingApproval?: boolean;
1289
+ approvalId?: string;
1290
+ approverEmail?: string;
1291
+ message?: string;
1292
+ item?: UserConfigItem;
1293
+ updatedBills?: number;
1294
+ };
1286
1295
  declare const updateItemEmissionFactorForUser: (apiClient: UserConfigApiClient, options: {
1287
1296
  itemId: string;
1288
1297
  emissionFactor: number;
1289
- }) => Promise<{
1290
- item?: UserConfigItem;
1291
- updatedBills?: number;
1292
- }>;
1298
+ plant?: string;
1299
+ }) => Promise<UserEmissionFactorApprovalResponse>;
1293
1300
  declare const updateSdkItemEmissionFactorForUser: (apiClient: UserConfigApiClient, options: {
1294
1301
  industry: string;
1295
1302
  scope: string;
@@ -1300,10 +1307,8 @@ declare const updateSdkItemEmissionFactorForUser: (apiClient: UserConfigApiClien
1300
1307
  emissionFactor: number;
1301
1308
  baseEmissionFactor?: number;
1302
1309
  requiresMassData?: boolean;
1303
- }) => Promise<{
1304
- item?: UserConfigItem;
1305
- updatedBills?: number;
1306
- }>;
1310
+ plant?: string;
1311
+ }) => Promise<UserEmissionFactorApprovalResponse>;
1307
1312
 
1308
1313
  interface MappingRules {
1309
1314
  includeIfCategoryContains?: string[];
@@ -3051,6 +3056,81 @@ declare const ALL_SCOPES_3_CONSTRUCTION: ({
3051
3056
  displayName?: undefined;
3052
3057
  })[];
3053
3058
 
3059
+ declare const SCOPE1_ELECTRICAL_EQUIPMENTS: {
3060
+ name: string;
3061
+ icon: react_icons_lib.IconType;
3062
+ scope: string;
3063
+ unit: string;
3064
+ subProducts: {
3065
+ name: string;
3066
+ unit: string;
3067
+ type: string;
3068
+ calorificValue: number;
3069
+ emissionFactor: number;
3070
+ }[];
3071
+ desc: string;
3072
+ }[];
3073
+ declare const SCOPE2_ELECTRICAL_EQUIPMENTS: {
3074
+ name: string;
3075
+ icon: react_icons_lib.IconType;
3076
+ scope: string;
3077
+ unit: string;
3078
+ subProducts: {
3079
+ name: string;
3080
+ unit: string;
3081
+ type: string;
3082
+ renewable: boolean;
3083
+ calorificValue: number;
3084
+ emissionFactor: number;
3085
+ }[];
3086
+ desc: string;
3087
+ }[];
3088
+ declare const ALL_SCOPES_3_ELECTRICAL_EQUIPMENTS: {
3089
+ name: string;
3090
+ displayName?: string;
3091
+ icon: any;
3092
+ scope: string;
3093
+ unit: string;
3094
+ subProducts: {
3095
+ category: string;
3096
+ items: {
3097
+ item: string;
3098
+ emissionFactor: number;
3099
+ unit: string;
3100
+ }[];
3101
+ }[];
3102
+ desc: string;
3103
+ }[];
3104
+ declare const ALLSCOPES_ELECTRICAL_EQUIPMENTS: ({
3105
+ name: string;
3106
+ icon: react_icons_lib.IconType;
3107
+ scope: string;
3108
+ unit: string;
3109
+ subProducts: {
3110
+ name: string;
3111
+ unit: string;
3112
+ type: string;
3113
+ calorificValue: number;
3114
+ emissionFactor: number;
3115
+ }[];
3116
+ desc: string;
3117
+ } | {
3118
+ name: string;
3119
+ displayName?: string;
3120
+ icon: any;
3121
+ scope: string;
3122
+ unit: string;
3123
+ subProducts: {
3124
+ category: string;
3125
+ items: {
3126
+ item: string;
3127
+ emissionFactor: number;
3128
+ unit: string;
3129
+ }[];
3130
+ }[];
3131
+ desc: string;
3132
+ })[];
3133
+
3054
3134
  declare const SCOPE1_FOOD: {
3055
3135
  name: string;
3056
3136
  icon: react_icons_lib.IconType;
@@ -3979,6 +4059,7 @@ declare const index_ALLSCOPES_BATTERY_EV: typeof ALLSCOPES_BATTERY_EV;
3979
4059
  declare const index_ALLSCOPES_CEMENT: typeof ALLSCOPES_CEMENT;
3980
4060
  declare const index_ALLSCOPES_CHEMICAL: typeof ALLSCOPES_CHEMICAL;
3981
4061
  declare const index_ALLSCOPES_CONSTRUCTION: typeof ALLSCOPES_CONSTRUCTION;
4062
+ declare const index_ALLSCOPES_ELECTRICAL_EQUIPMENTS: typeof ALLSCOPES_ELECTRICAL_EQUIPMENTS;
3982
4063
  declare const index_ALLSCOPES_HOSPITALITY: typeof ALLSCOPES_HOSPITALITY;
3983
4064
  declare const index_ALLSCOPES_MANUFACTURING: typeof ALLSCOPES_MANUFACTURING;
3984
4065
  declare const index_ALLSCOPES_PACKAGING: typeof ALLSCOPES_PACKAGING;
@@ -3995,6 +4076,7 @@ declare const index_ALL_SCOPES_3_BATTERY_EV: typeof ALL_SCOPES_3_BATTERY_EV;
3995
4076
  declare const index_ALL_SCOPES_3_CEMENT: typeof ALL_SCOPES_3_CEMENT;
3996
4077
  declare const index_ALL_SCOPES_3_CHEMICAL: typeof ALL_SCOPES_3_CHEMICAL;
3997
4078
  declare const index_ALL_SCOPES_3_CONSTRUCTION: typeof ALL_SCOPES_3_CONSTRUCTION;
4079
+ declare const index_ALL_SCOPES_3_ELECTRICAL_EQUIPMENTS: typeof ALL_SCOPES_3_ELECTRICAL_EQUIPMENTS;
3998
4080
  declare const index_ALL_SCOPES_3_FOOD: typeof ALL_SCOPES_3_FOOD;
3999
4081
  declare const index_ALL_SCOPES_3_LOGISTICS: typeof ALL_SCOPES_3_LOGISTICS;
4000
4082
  declare const index_ALL_SCOPES_3_MANUFACTURING: typeof ALL_SCOPES_3_MANUFACTURING;
@@ -4067,6 +4149,7 @@ declare const index_SCOPE1_BATTERY_EV: typeof SCOPE1_BATTERY_EV;
4067
4149
  declare const index_SCOPE1_CEMENT: typeof SCOPE1_CEMENT;
4068
4150
  declare const index_SCOPE1_CHEMICAL: typeof SCOPE1_CHEMICAL;
4069
4151
  declare const index_SCOPE1_CONSTRUCTION: typeof SCOPE1_CONSTRUCTION;
4152
+ declare const index_SCOPE1_ELECTRICAL_EQUIPMENTS: typeof SCOPE1_ELECTRICAL_EQUIPMENTS;
4070
4153
  declare const index_SCOPE1_FOOD: typeof SCOPE1_FOOD;
4071
4154
  declare const index_SCOPE1_GAS_LAB: typeof SCOPE1_GAS_LAB;
4072
4155
  declare const index_SCOPE1_HOSPITALITY: typeof SCOPE1_HOSPITALITY;
@@ -4091,6 +4174,7 @@ declare const index_SCOPE2_BATTERY_EV: typeof SCOPE2_BATTERY_EV;
4091
4174
  declare const index_SCOPE2_CEMENT: typeof SCOPE2_CEMENT;
4092
4175
  declare const index_SCOPE2_CHEMICAL: typeof SCOPE2_CHEMICAL;
4093
4176
  declare const index_SCOPE2_CONSTRUCTION: typeof SCOPE2_CONSTRUCTION;
4177
+ declare const index_SCOPE2_ELECTRICAL_EQUIPMENTS: typeof SCOPE2_ELECTRICAL_EQUIPMENTS;
4094
4178
  declare const index_SCOPE2_FOOD: typeof SCOPE2_FOOD;
4095
4179
  declare const index_SCOPE2_GAS_LAB: typeof SCOPE2_GAS_LAB;
4096
4180
  declare const index_SCOPE2_HOSPITALITY: typeof SCOPE2_HOSPITALITY;
@@ -4145,6 +4229,7 @@ declare namespace index {
4145
4229
  index_ALLSCOPES_CEMENT as ALLSCOPES_CEMENT,
4146
4230
  index_ALLSCOPES_CHEMICAL as ALLSCOPES_CHEMICAL,
4147
4231
  index_ALLSCOPES_CONSTRUCTION as ALLSCOPES_CONSTRUCTION,
4232
+ index_ALLSCOPES_ELECTRICAL_EQUIPMENTS as ALLSCOPES_ELECTRICAL_EQUIPMENTS,
4148
4233
  index_ALLSCOPES_HOSPITALITY as ALLSCOPES_HOSPITALITY,
4149
4234
  index_ALLSCOPES_MANUFACTURING as ALLSCOPES_MANUFACTURING,
4150
4235
  index_ALLSCOPES_PACKAGING as ALLSCOPES_PACKAGING,
@@ -4161,6 +4246,7 @@ declare namespace index {
4161
4246
  index_ALL_SCOPES_3_CEMENT as ALL_SCOPES_3_CEMENT,
4162
4247
  index_ALL_SCOPES_3_CHEMICAL as ALL_SCOPES_3_CHEMICAL,
4163
4248
  index_ALL_SCOPES_3_CONSTRUCTION as ALL_SCOPES_3_CONSTRUCTION,
4249
+ index_ALL_SCOPES_3_ELECTRICAL_EQUIPMENTS as ALL_SCOPES_3_ELECTRICAL_EQUIPMENTS,
4164
4250
  index_ALL_SCOPES_3_FOOD as ALL_SCOPES_3_FOOD,
4165
4251
  index_ALL_SCOPES_3_LOGISTICS as ALL_SCOPES_3_LOGISTICS,
4166
4252
  index_ALL_SCOPES_3_MANUFACTURING as ALL_SCOPES_3_MANUFACTURING,
@@ -4233,6 +4319,7 @@ declare namespace index {
4233
4319
  index_SCOPE1_CEMENT as SCOPE1_CEMENT,
4234
4320
  index_SCOPE1_CHEMICAL as SCOPE1_CHEMICAL,
4235
4321
  index_SCOPE1_CONSTRUCTION as SCOPE1_CONSTRUCTION,
4322
+ index_SCOPE1_ELECTRICAL_EQUIPMENTS as SCOPE1_ELECTRICAL_EQUIPMENTS,
4236
4323
  index_SCOPE1_FOOD as SCOPE1_FOOD,
4237
4324
  index_SCOPE1_GAS_LAB as SCOPE1_GAS_LAB,
4238
4325
  index_SCOPE1_HOSPITALITY as SCOPE1_HOSPITALITY,
@@ -4257,6 +4344,7 @@ declare namespace index {
4257
4344
  index_SCOPE2_CEMENT as SCOPE2_CEMENT,
4258
4345
  index_SCOPE2_CHEMICAL as SCOPE2_CHEMICAL,
4259
4346
  index_SCOPE2_CONSTRUCTION as SCOPE2_CONSTRUCTION,
4347
+ index_SCOPE2_ELECTRICAL_EQUIPMENTS as SCOPE2_ELECTRICAL_EQUIPMENTS,
4260
4348
  index_SCOPE2_FOOD as SCOPE2_FOOD,
4261
4349
  index_SCOPE2_GAS_LAB as SCOPE2_GAS_LAB,
4262
4350
  index_SCOPE2_HOSPITALITY as SCOPE2_HOSPITALITY,
@@ -4305,4 +4393,4 @@ declare namespace index {
4305
4393
  }
4306
4394
 
4307
4395
  export { ALL_SCOPES_3_RCO, API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, BILL_CALCULATION_CONFIGS, 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, addItemForUser, buildUserConfigItemKey, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, cleanValue, createBillManager, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getAllConfig, getApiIndustryType, getAvailableFieldsForIndustry, getCombinedBackendConfig, getIndustryBackendConfig, getIndustryConfig$1 as getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getItemsForUser, getPlantNameConfig, getRCOConfigByName, getScope3ConfigByName, getUserNameBackendConfig, getUserNameScopeConfig, hasIntensities, isUIFeatureEnabled, mapIndustryToApiType, mergeUserItemsIntoIndustryConfig, normalizeConfigKeyText, normalizeConfigText, resolveEmissionFactorsForUser, sameUserConfigText, sanitizeNumber, supportsIntensityCalculations, updateItemEmissionFactorForUser, updateSdkItemEmissionFactorForUser, validateCarbonIntensityData };
4308
- 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, 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, UserEmissionFactorResolution, UtilitiesRequest, UtilitiesResponse, ValidationError, VehicleEmission, VehicleEmissionAttributes, VehicleEmissionsResponse };
4396
+ 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, 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 };