Refer to ticket API: Export Daily Calibration Data #3896
Scope: export Daily Test Summary Data from global and workspace
The emissions-api should follow the same approach as qa-certifications-api for the emissions module as far as the official vs workspace behavior within ECMPS.
It is recommended to complete the official endpoint first and then copy to the workspace since the logic is the same but just uses different references to the workspace entities, repos, etc.
Both of the endpoints should return the top level EmissionsDTO created in ticket #3902
Required parameters: monitorPlanId, year, and quarter
parameters are single select
Context
Refer to ticket API: Export Daily Calibration Data #3896
Scope: export Daily Test Summary Data from global and workspace
The emissions-api should follow the same approach as qa-certifications-api for the emissions module as far as the official vs workspace behavior within ECMPS.
It is recommended to complete the official endpoint first and then copy to the workspace since the logic is the same but just uses different references to the workspace entities, repos, etc.
Both of the endpoints should return the top level EmissionsDTO created in ticket #3902
Required parameters: monitorPlanId, year, and quarter parameters are single select
Data being returned:
Daily Test Summary Data: stackPipeId: string; unitId: string; date: Date; hour: number; minute: number; monitoringSystemId?: string; componentId?: string; testTypeCode: string; testResultCode: string; spanScaleCode?: string; id: string; reportingPeriodId: number; monitoringLocationId: string; calcTestResultCode: string; userId?: string; addDate?: Date; updateDate?: Date;
Daily Calibration Data: onLineOffLineIndicator?: number; upscaleGasCode?: string; zeroInjectionDate?: Date; zeroInjectionHour?: number; zeroInjectionMinute?: number; upscaleInjectionDate?: Date; upscaleInjectionHour?: number; upscaleInjectionMinute?: number; zeroMeasuredValue?: number; upscaleMeasuredValue?: number; zeroAPSIndicator?: number; upscaleAPSIndicator?: number; zeroCalibrationError?: number; upscaleCalibrationError?: number; zeroReferenceValue?: number; upscaleReferenceValue?: number; upscaleGasTypeCode?: string; cylinderIdentifier?: string; vendorIdentifier?: string; expirationDate?: Date; injectionProtocolCode?: string;