@zerocarbon/erp-config-sdk 1.0.2 → 1.0.3
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 +101 -94
- package/dist/index.esm.js +62 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +63 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1688,6 +1688,106 @@ declare const CCTS_TABLE_COLUMNS: {
|
|
|
1688
1688
|
}[];
|
|
1689
1689
|
declare const calculateCCTSEmission: (bill: any) => number;
|
|
1690
1690
|
|
|
1691
|
+
declare const WATER_PRODUCTS: {
|
|
1692
|
+
name: string;
|
|
1693
|
+
unit: string;
|
|
1694
|
+
type: string;
|
|
1695
|
+
calorificValue: number;
|
|
1696
|
+
emissionFactor: number;
|
|
1697
|
+
}[];
|
|
1698
|
+
declare const SCOPE1_PACKAGING: {
|
|
1699
|
+
name: string;
|
|
1700
|
+
icon: react_icons_lib.IconType;
|
|
1701
|
+
scope: string;
|
|
1702
|
+
unit: string;
|
|
1703
|
+
subProducts: {
|
|
1704
|
+
name: string;
|
|
1705
|
+
unit: string;
|
|
1706
|
+
type: string;
|
|
1707
|
+
calorificValue: number;
|
|
1708
|
+
emissionFactor: number;
|
|
1709
|
+
}[];
|
|
1710
|
+
desc: string;
|
|
1711
|
+
}[];
|
|
1712
|
+
declare const SCOPE2_PACKAGING: {
|
|
1713
|
+
name: string;
|
|
1714
|
+
icon: react_icons_lib.IconType;
|
|
1715
|
+
scope: string;
|
|
1716
|
+
unit: string;
|
|
1717
|
+
subProducts: {
|
|
1718
|
+
name: string;
|
|
1719
|
+
unit: string;
|
|
1720
|
+
type: string;
|
|
1721
|
+
renewable: boolean;
|
|
1722
|
+
calorificValue: number;
|
|
1723
|
+
emissionFactor: number;
|
|
1724
|
+
}[];
|
|
1725
|
+
desc: string;
|
|
1726
|
+
}[];
|
|
1727
|
+
declare const ALLSCOPES_PACKAGING: {
|
|
1728
|
+
name: string;
|
|
1729
|
+
icon: react_icons_lib.IconType;
|
|
1730
|
+
scope: string;
|
|
1731
|
+
unit: string;
|
|
1732
|
+
subProducts: {
|
|
1733
|
+
name: string;
|
|
1734
|
+
unit: string;
|
|
1735
|
+
type: string;
|
|
1736
|
+
calorificValue: number;
|
|
1737
|
+
emissionFactor: number;
|
|
1738
|
+
}[];
|
|
1739
|
+
desc: string;
|
|
1740
|
+
}[];
|
|
1741
|
+
declare const EMPLOYEE_COMMUTING_EMISSIONS: {
|
|
1742
|
+
category: string;
|
|
1743
|
+
items: {
|
|
1744
|
+
item: string;
|
|
1745
|
+
emissionFactor: number;
|
|
1746
|
+
unit: string;
|
|
1747
|
+
}[];
|
|
1748
|
+
}[];
|
|
1749
|
+
declare const WATER_CONSUMPTION_EMISSIONS: {
|
|
1750
|
+
category: string;
|
|
1751
|
+
items: {
|
|
1752
|
+
item: string;
|
|
1753
|
+
emissionFactor: number;
|
|
1754
|
+
unit: string;
|
|
1755
|
+
}[];
|
|
1756
|
+
}[];
|
|
1757
|
+
declare const ALL_SCOPES_3_PACKAGING: {
|
|
1758
|
+
name: string;
|
|
1759
|
+
displayName: string;
|
|
1760
|
+
icon: react_icons_lib.IconType;
|
|
1761
|
+
scope: string;
|
|
1762
|
+
unit: string;
|
|
1763
|
+
subProducts: {
|
|
1764
|
+
category: string;
|
|
1765
|
+
items: {
|
|
1766
|
+
item: string;
|
|
1767
|
+
emissionFactor: number;
|
|
1768
|
+
unit: string;
|
|
1769
|
+
}[];
|
|
1770
|
+
}[];
|
|
1771
|
+
desc: string;
|
|
1772
|
+
}[];
|
|
1773
|
+
declare const ISO_CATEGORIES_PACKAGING: {
|
|
1774
|
+
name: string;
|
|
1775
|
+
displayName: string;
|
|
1776
|
+
type: string;
|
|
1777
|
+
icon: react_icons_lib.IconType;
|
|
1778
|
+
scope: string;
|
|
1779
|
+
unit: string;
|
|
1780
|
+
desc: string;
|
|
1781
|
+
subProducts: {
|
|
1782
|
+
category: string;
|
|
1783
|
+
items: {
|
|
1784
|
+
item: string;
|
|
1785
|
+
unit: string;
|
|
1786
|
+
emissionFactor: number;
|
|
1787
|
+
}[];
|
|
1788
|
+
}[];
|
|
1789
|
+
}[];
|
|
1790
|
+
|
|
1691
1791
|
declare const SCOPE1_ALLOY: {
|
|
1692
1792
|
name: string;
|
|
1693
1793
|
icon: react_icons_lib.IconType;
|
|
@@ -2965,99 +3065,6 @@ declare const ALL_SCOPES_3_METAL: {
|
|
|
2965
3065
|
desc: string;
|
|
2966
3066
|
}[];
|
|
2967
3067
|
|
|
2968
|
-
declare const SCOPE1_PACKAGING: {
|
|
2969
|
-
name: string;
|
|
2970
|
-
icon: react_icons_lib.IconType;
|
|
2971
|
-
scope: string;
|
|
2972
|
-
unit: string;
|
|
2973
|
-
subProducts: {
|
|
2974
|
-
name: string;
|
|
2975
|
-
unit: string;
|
|
2976
|
-
type: string;
|
|
2977
|
-
calorificValue: number;
|
|
2978
|
-
emissionFactor: number;
|
|
2979
|
-
}[];
|
|
2980
|
-
desc: string;
|
|
2981
|
-
}[];
|
|
2982
|
-
declare const SCOPE2_PACKAGING: {
|
|
2983
|
-
name: string;
|
|
2984
|
-
icon: react_icons_lib.IconType;
|
|
2985
|
-
scope: string;
|
|
2986
|
-
unit: string;
|
|
2987
|
-
subProducts: {
|
|
2988
|
-
name: string;
|
|
2989
|
-
unit: string;
|
|
2990
|
-
type: string;
|
|
2991
|
-
renewable: boolean;
|
|
2992
|
-
calorificValue: number;
|
|
2993
|
-
emissionFactor: number;
|
|
2994
|
-
}[];
|
|
2995
|
-
desc: string;
|
|
2996
|
-
}[];
|
|
2997
|
-
declare const ALLSCOPES_PACKAGING: {
|
|
2998
|
-
name: string;
|
|
2999
|
-
icon: react_icons_lib.IconType;
|
|
3000
|
-
scope: string;
|
|
3001
|
-
unit: string;
|
|
3002
|
-
subProducts: {
|
|
3003
|
-
name: string;
|
|
3004
|
-
unit: string;
|
|
3005
|
-
type: string;
|
|
3006
|
-
calorificValue: number;
|
|
3007
|
-
emissionFactor: number;
|
|
3008
|
-
}[];
|
|
3009
|
-
desc: string;
|
|
3010
|
-
}[];
|
|
3011
|
-
declare const EMPLOYEE_COMMUTING_EMISSIONS: {
|
|
3012
|
-
category: string;
|
|
3013
|
-
items: {
|
|
3014
|
-
item: string;
|
|
3015
|
-
emissionFactor: number;
|
|
3016
|
-
unit: string;
|
|
3017
|
-
}[];
|
|
3018
|
-
}[];
|
|
3019
|
-
declare const WATER_CONSUMPTION_EMISSIONS: {
|
|
3020
|
-
category: string;
|
|
3021
|
-
items: {
|
|
3022
|
-
item: string;
|
|
3023
|
-
emissionFactor: number;
|
|
3024
|
-
unit: string;
|
|
3025
|
-
}[];
|
|
3026
|
-
}[];
|
|
3027
|
-
declare const ALL_SCOPES_3_PACKAGING: {
|
|
3028
|
-
name: string;
|
|
3029
|
-
displayName: string;
|
|
3030
|
-
icon: react_icons_lib.IconType;
|
|
3031
|
-
scope: string;
|
|
3032
|
-
unit: string;
|
|
3033
|
-
subProducts: {
|
|
3034
|
-
category: string;
|
|
3035
|
-
items: {
|
|
3036
|
-
item: string;
|
|
3037
|
-
emissionFactor: number;
|
|
3038
|
-
unit: string;
|
|
3039
|
-
}[];
|
|
3040
|
-
}[];
|
|
3041
|
-
desc: string;
|
|
3042
|
-
}[];
|
|
3043
|
-
declare const ISO_CATEGORIES_PACKAGING: {
|
|
3044
|
-
name: string;
|
|
3045
|
-
displayName: string;
|
|
3046
|
-
type: string;
|
|
3047
|
-
icon: react_icons_lib.IconType;
|
|
3048
|
-
scope: string;
|
|
3049
|
-
unit: string;
|
|
3050
|
-
desc: string;
|
|
3051
|
-
subProducts: {
|
|
3052
|
-
category: string;
|
|
3053
|
-
items: {
|
|
3054
|
-
item: string;
|
|
3055
|
-
unit: string;
|
|
3056
|
-
emissionFactor: number;
|
|
3057
|
-
}[];
|
|
3058
|
-
}[];
|
|
3059
|
-
}[];
|
|
3060
|
-
|
|
3061
3068
|
declare const SCOPE1_PETRO_CHEMICAL: {
|
|
3062
3069
|
name: string;
|
|
3063
3070
|
icon: react_icons_lib.IconType;
|
|
@@ -4000,5 +4007,5 @@ declare namespace index {
|
|
|
4000
4007
|
};
|
|
4001
4008
|
}
|
|
4002
4009
|
|
|
4003
|
-
export { API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, CARBON_INTENSITY_FIELD_MAPPINGS, 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, EmissionSourceGenerator, FRONTEND_INDUSTRY_CONFIGS, HTTP_STATUS, INDUSTRIES_CONFIG, INDUSTRY_MAPPING, INDUSTRY_SPECIFIC_FIELDS, INTENSITY_FIELD_LABELS, index as Industries, UI_FEATURES, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getApiIndustryType, getAvailableFieldsForIndustry, getIndustryConfig$1 as getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getNestedValue, getPlantNameConfig, getScope3ConfigByName, getUserNameWaterManagementConfig, hasIntensities, isUIFeatureEnabled, mapIndustryToApiType, supportsIntensityCalculations, validateCarbonIntensityData };
|
|
4010
|
+
export { API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, CARBON_INTENSITY_FIELD_MAPPINGS, 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, 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, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getApiIndustryType, getAvailableFieldsForIndustry, getIndustryConfig$1 as getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getNestedValue, getPlantNameConfig, getScope3ConfigByName, getUserNameWaterManagementConfig, hasIntensities, isUIFeatureEnabled, mapIndustryToApiType, supportsIntensityCalculations, validateCarbonIntensityData };
|
|
4004
4011
|
export type { AlloyRequest, AlloyResponse, AluminiumRequest, AluminiumResponse, ApiEndpointConfig, ApiResponse, AutomobileRequest, AutomobileResponse, AviationRequest, AviationResponse, BaseRequest, BaseResponse, Bill, BusinessTravelEmission, BusinessTravelEmissionAttributes, BusinessTravelEmissionsResponse, CarbonIntensityApiMapping, CarbonIntensityRequest, CarbonIntensityResponse, ChemicalRequest, ChemicalResponse, DetailedCarbonIntensityResponse, EditableItem, EmissionSource, Emissions$j as Emissions, EmissionsDataAttributes, EmissionsDataResponse, FieldConfig, FieldOption, FieldType, FoodBeveragesRequest, FoodBeveragesResponse, FormData, FormValidationResult, HospitalityRequest, HospitalityResponse, IndustryFieldConfig, IndustryFieldSection, IndustryType, IntensityCalculation, IntensityValue, LogisticsRequest, LogisticsResponse, ManufacturingRequest, ManufacturingResponse, Meta, MetalEnergyRequest, MetalEnergyResponse, PackagingRequest, PackagingResponse, Pagination, PetrochemicalRequest, PetrochemicalResponse, PharmaRequest, PharmaResponse, PlantNameConfig, ProcessedEmissionCategory, ProcessedEmissionItem, ProcessedScope3Data, ProductionData, RealEstateRequest, RealEstateResponse, ScopeConfig, ScopeProduct, ShippingRequest, ShippingResponse, SteelRequest, SteelResponse, StrapiItem, StrapiResponse, TelecommunicationRequest, TelecommunicationResponse, TextileRequest, TextileResponse, TransportationEmission, TransportationEmissionAttributes, TransportationEmissionsResponse, UserData, UtilitiesRequest, UtilitiesResponse, ValidationError, VehicleEmission, VehicleEmissionAttributes, VehicleEmissionsResponse };
|
package/dist/index.esm.js
CHANGED
|
@@ -9030,7 +9030,7 @@ const WATER_MANAGEMENT_GAS_LAB = {
|
|
|
9030
9030
|
desc: "Water withdrawal, consumption, and discharge tracking for gas lab operations",
|
|
9031
9031
|
};
|
|
9032
9032
|
|
|
9033
|
-
const WATER_PRODUCTS = [
|
|
9033
|
+
const WATER_PRODUCTS$1 = [
|
|
9034
9034
|
// Water Withdrawal by Source
|
|
9035
9035
|
{
|
|
9036
9036
|
name: "Surface Water",
|
|
@@ -11197,7 +11197,7 @@ const WATER_MANAGEMENT_SCOPE = {
|
|
|
11197
11197
|
icon: GiElectric,
|
|
11198
11198
|
scope: "other",
|
|
11199
11199
|
unit: "kilolitres",
|
|
11200
|
-
subProducts: WATER_PRODUCTS,
|
|
11200
|
+
subProducts: WATER_PRODUCTS$1,
|
|
11201
11201
|
desc: "Water withdrawal, consumption, and discharge tracking",
|
|
11202
11202
|
};
|
|
11203
11203
|
// Helper function to clean values
|
|
@@ -20774,6 +20774,65 @@ const FIRE_EXTINGUISHER_PRODUCTS$8 = [
|
|
|
20774
20774
|
emissionFactor: 1,
|
|
20775
20775
|
},
|
|
20776
20776
|
];
|
|
20777
|
+
// WATER PRODUCTS
|
|
20778
|
+
const WATER_PRODUCTS = [
|
|
20779
|
+
{
|
|
20780
|
+
name: "Discharged to Surface Water",
|
|
20781
|
+
unit: "m^3",
|
|
20782
|
+
type: "direct",
|
|
20783
|
+
calorificValue: 1,
|
|
20784
|
+
emissionFactor: 0,
|
|
20785
|
+
},
|
|
20786
|
+
{
|
|
20787
|
+
name: "Ground Water",
|
|
20788
|
+
unit: "m^3",
|
|
20789
|
+
type: "direct",
|
|
20790
|
+
calorificValue: 1,
|
|
20791
|
+
emissionFactor: 0,
|
|
20792
|
+
},
|
|
20793
|
+
{
|
|
20794
|
+
name: "Rain Water",
|
|
20795
|
+
unit: "m^3",
|
|
20796
|
+
type: "direct",
|
|
20797
|
+
calorificValue: 1,
|
|
20798
|
+
emissionFactor: 0,
|
|
20799
|
+
},
|
|
20800
|
+
{
|
|
20801
|
+
name: "Municipal Water",
|
|
20802
|
+
unit: "m^3",
|
|
20803
|
+
type: "direct",
|
|
20804
|
+
calorificValue: 1,
|
|
20805
|
+
emissionFactor: 0,
|
|
20806
|
+
},
|
|
20807
|
+
{
|
|
20808
|
+
name: "Tanker Water",
|
|
20809
|
+
unit: "m^3",
|
|
20810
|
+
type: "direct",
|
|
20811
|
+
calorificValue: 1,
|
|
20812
|
+
emissionFactor: 0,
|
|
20813
|
+
},
|
|
20814
|
+
{
|
|
20815
|
+
name: "Recycled Water",
|
|
20816
|
+
unit: "m^3",
|
|
20817
|
+
type: "direct",
|
|
20818
|
+
calorificValue: 1,
|
|
20819
|
+
emissionFactor: 0,
|
|
20820
|
+
},
|
|
20821
|
+
{
|
|
20822
|
+
name: "Surface Water",
|
|
20823
|
+
unit: "m^3",
|
|
20824
|
+
type: "direct",
|
|
20825
|
+
calorificValue: 1,
|
|
20826
|
+
emissionFactor: 0,
|
|
20827
|
+
},
|
|
20828
|
+
{
|
|
20829
|
+
name: "Desalinated Water",
|
|
20830
|
+
unit: "m^3",
|
|
20831
|
+
type: "direct",
|
|
20832
|
+
calorificValue: 1,
|
|
20833
|
+
emissionFactor: 0,
|
|
20834
|
+
},
|
|
20835
|
+
];
|
|
20777
20836
|
const FUEL_COMBUSTION_PRODUCTS$6 = [
|
|
20778
20837
|
{
|
|
20779
20838
|
name: "Diesel",
|
|
@@ -40300,5 +40359,5 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
40300
40359
|
getUserNameScope3Config: getUserNameScope3Config
|
|
40301
40360
|
});
|
|
40302
40361
|
|
|
40303
|
-
export { API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, CARBON_INTENSITY_FIELD_MAPPINGS, 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, EmissionSourceGenerator, FRONTEND_INDUSTRY_CONFIGS, HTTP_STATUS, INDUSTRIES_CONFIG, INDUSTRY_MAPPING, INDUSTRY_SPECIFIC_FIELDS, INTENSITY_FIELD_LABELS, index as Industries, UI_FEATURES, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getApiIndustryType, getAvailableFieldsForIndustry, getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getNestedValue, getPlantNameConfig, getScope3ConfigByName, getUserNameWaterManagementConfig, hasIntensities, isUIFeatureEnabled, mapIndustryToApiType, supportsIntensityCalculations, validateCarbonIntensityData };
|
|
40362
|
+
export { API_ENDPOINTS, API_SCOPE3_CEMENT_CONFIG, CARBON_INTENSITY_FIELD_MAPPINGS, 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, 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, calculateCCTSEmission, calculateIntensityMetrics, categorizeApiItem, createCapitalizedMonthMapping, createEmissionSourceGenerator, createMonthMapping, debugCarbonIntensityMapping, extractCarbonIntensityData, formatEmissionValue, formatIntensityValue, formatKPIEmission, formatMonthlyEmission, formatPercentage, getApiIndustryType, getAvailableFieldsForIndustry, getIndustryConfig, getIndustryFieldConfig, getIntensityFormulas, getNestedValue, getPlantNameConfig, getScope3ConfigByName, getUserNameWaterManagementConfig, hasIntensities, isUIFeatureEnabled, mapIndustryToApiType, supportsIntensityCalculations, validateCarbonIntensityData };
|
|
40304
40363
|
//# sourceMappingURL=index.esm.js.map
|