@zerocarbon/erp-config-sdk 1.0.4 → 1.0.5
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 +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ interface ApiEndpointConfig {
|
|
|
144
144
|
description: string;
|
|
145
145
|
mappingFunction: (data: StrapiItem<any>[]) => ProcessedEmissionItem[];
|
|
146
146
|
}
|
|
147
|
-
interface IndustryConfig
|
|
147
|
+
interface IndustryConfig {
|
|
148
148
|
industry: string;
|
|
149
149
|
displayName: string;
|
|
150
150
|
apiEndpoints: ApiEndpointConfig[];
|
|
@@ -357,7 +357,7 @@ interface FormValidationResult {
|
|
|
357
357
|
isValid: boolean;
|
|
358
358
|
errors: ValidationError[];
|
|
359
359
|
}
|
|
360
|
-
interface
|
|
360
|
+
interface FrontendIndustryConfig {
|
|
361
361
|
name: IndustryType;
|
|
362
362
|
displayName: string;
|
|
363
363
|
requiredFields: string[];
|
|
@@ -366,7 +366,7 @@ interface IndustryConfig {
|
|
|
366
366
|
fieldTypes: Record<string, "number" | "text">;
|
|
367
367
|
placeholders: Record<string, string>;
|
|
368
368
|
}
|
|
369
|
-
declare const FRONTEND_INDUSTRY_CONFIGS: Record<IndustryType,
|
|
369
|
+
declare const FRONTEND_INDUSTRY_CONFIGS: Record<IndustryType, FrontendIndustryConfig>;
|
|
370
370
|
declare const API_ENDPOINTS: {
|
|
371
371
|
readonly CALCULATE: "/carbon-intensity/calculate";
|
|
372
372
|
readonly INDUSTRIES: "/carbon-intensity/industries";
|
|
@@ -2456,8 +2456,8 @@ declare const WATER_MANAGEMENT_SCOPE: {
|
|
|
2456
2456
|
}[];
|
|
2457
2457
|
desc: string;
|
|
2458
2458
|
};
|
|
2459
|
-
declare const CEMENT_INDUSTRY_CONFIG: IndustryConfig
|
|
2460
|
-
declare const getIndustryConfig: (industry: string) => IndustryConfig
|
|
2459
|
+
declare const CEMENT_INDUSTRY_CONFIG: IndustryConfig;
|
|
2460
|
+
declare const getIndustryConfig: (industry: string) => IndustryConfig | null;
|
|
2461
2461
|
declare const getEndpointConfig: (industry: string, endpointName: string) => ApiEndpointConfig | undefined;
|
|
2462
2462
|
|
|
2463
2463
|
type EmissionItem$f = {
|
|
@@ -4008,4 +4008,4 @@ declare namespace index {
|
|
|
4008
4008
|
}
|
|
4009
4009
|
|
|
4010
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 };
|
|
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 };
|
|
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, FrontendIndustryConfig, HospitalityRequest, HospitalityResponse, IndustryConfig, 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 };
|