This commit is contained in:
Grzegorz Michalski
2026-03-02 09:47:35 +01:00
commit 2c225d68ac
715 changed files with 130067 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
# Global configurations
tmpdir: /tmp
inbox_prefix: INBOX/LM/DistributeStandingFacilities
archive_prefix: ARCHIVE/LM/DistributeStandingFacilities
workflow_name: w_ODS_LM_Standing_Facilities
validation_schema_path: '/opt/airflow/src/airflow/dags/ods/lm/standing_facilities/config/sf.xsd'
file_type: xml
# List of tasks
tasks:
- task_name: m_ODS_LM_Standing_Facilities_HEADER_PARSE
ods_prefix: INBOX/LM/DistributeStandingFacilities/LM_STANDING_FACILITIES_HEADER
output_table: LM_STANDING_FACILITIES_HEADER
namespaces:
ns2: 'http://escb.ecb.int/sf'
output_columns:
- type: 'xpath_element_id'
value: '//ns2:header'
column_header: 'A_KEY'
- type: 'workflow_key'
column_header: 'A_WORKFLOW_HISTORY_KEY'
- type: 'xpath'
value: '//ns2:header/ns2:version'
column_header: 'REV_NUMBER'
is_key: 'N'
- type: 'xpath'
value: '//ns2:header/ns2:referenceDate'
column_header: 'REF_DATE'
is_key: 'N'
- type: 'static'
value: ''
column_header: 'FREE_TEXT'
- type: 'xpath'
value: '//ns2:header/ns2:marginalLendingBSTotal'
column_header: 'MLF_BS_TOTAL'
is_key: 'N'
- type: 'xpath'
value: '//ns2:header/ns2:depositFacilityBSTotal'
column_header: 'DF_BS_TOTAL'
is_key: 'N'
- type: 'xpath'
value: '//ns2:header/ns2:marginalLendingSFTotal'
column_header: 'MLF_SF_TOTAL'
is_key: 'N'
- type: 'xpath'
value: '//ns2:header/ns2:depositFacilitySFTotal'
column_header: 'DF_SF_TOTAL'
is_key: 'N'
- task_name: m_ODS_LM_Standing_Facilities_ITEM_PARSE
ods_prefix: INBOX/LM/DistributeStandingFacilities/LM_STANDING_FACILITIES
output_table: LM_STANDING_FACILITIES
namespaces:
ns2: 'http://escb.ecb.int/sf'
output_columns:
- type: 'a_key'
column_header: 'A_KEY'
- type: 'workflow_key'
column_header: 'A_WORKFLOW_HISTORY_KEY'
- type: 'xpath_element_id'
value: '//ns2:header'
column_header: 'A_SFH_FK'
- type: 'xpath'
value: '//ns2:disaggregatedStandingFacilities/ns2:standingFacilities/ns2:disaggregatedStandingFacility/ns2:country'
column_header: 'COUNTRY'
is_key: 'N'
- type: 'xpath'
value: '//ns2:disaggregatedStandingFacilities/ns2:standingFacilities/ns2:disaggregatedStandingFacility/ns2:mfiCode'
column_header: 'MFI_ID'
is_key: 'N'
- type: 'xpath'
value: '//ns2:disaggregatedStandingFacilities/ns2:standingFacilities/ns2:disaggregatedStandingFacility/ns2:bankName'
column_header: 'MFI_NAME'
is_key: 'N'
- type: 'xpath'
value: '//ns2:disaggregatedStandingFacilities/ns2:standingFacilities/ns2:disaggregatedStandingFacility/ns2:marginalLending'
column_header: 'MARGINAL_LENDING_FACILITY'
is_key: 'N'
- type: 'xpath'
value: '//ns2:disaggregatedStandingFacilities/ns2:standingFacilities/ns2:disaggregatedStandingFacility/ns2:depositFacility'
column_header: 'DEPOSIT_FACILITY'
is_key: 'N'
- type: 'static'
value: ''
column_header: 'COMMENT_'

View File

@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema targetNamespace="http://escb.ecb.int/sf" xmlns="http://escb.ecb.int/sf" xmlns:lm="http://exdi.ecb.int/lm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:infatype="http://www.informatica.com/types/" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://exdi.ecb.int/lm" schemaLocation="../../lm_common/lm.xsd"/>
<xsd:complexType name="cbStandingFacilities">
<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:documentation>Represents standing facilities of a CB</xs:documentation>
</xs:annotation>
<xsd:sequence>
<xsd:element name="header" type="cbHeader"/>
<xsd:element name="standingFacilities" minOccurs="0" maxOccurs="1" type="standingFacilitiesList"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="disaggregatedStandingFacilitiesList">
<xsd:sequence>
<xsd:element name="disaggregatedStandingFacility" minOccurs="1" maxOccurs="unbounded" type="disaggregatedStandingFacility"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="standingFacilitiesList">
<xsd:sequence>
<xsd:element name="standingFacility" minOccurs="1" maxOccurs="unbounded" type="standingFacility"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="standingFacility">
<xsd:sequence>
<xsd:element name="mfiCode" type="lm:mfiCode">
</xsd:element>
<xsd:element name="bankName" type="lm:bankName">
</xsd:element>
<xsd:element name="marginalLending" type="lm:decimalEuroValue">
</xsd:element>
<xsd:element name="depositFacility" type="lm:decimalEuroValue">
</xsd:element>
<xsd:element name="comment" minOccurs="0" maxOccurs="1" type="lm:comment">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="disaggregatedHeader">
<xsd:sequence>
<xsd:element name="referenceDate" type="xsd:date">
</xsd:element>
<xsd:element name="version" type="lm:positiveInt">
</xsd:element>
<xsd:element name="marginalLendingBSTotal" type="lm:decimalEuroValue">
</xsd:element>
<xsd:element name="depositFacilityBSTotal" type="lm:decimalEuroValue">
</xsd:element>
<xsd:element name="marginalLendingSFTotal" type="lm:decimalEuroValue">
</xsd:element>
<xsd:element name="depositFacilitySFTotal" type="lm:decimalEuroValue">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="disaggregatedStandingFacility">
<xsd:complexContent>
<xsd:extension base="standingFacility">
<xsd:sequence>
<xsd:element name="country" type="lm:isoCode">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="disaggregatedStandingFacilities">
<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:documentation>Represents the disaggregated standing facilities</xs:documentation>
</xs:annotation>
<xsd:sequence>
<xsd:element name="header" type="disaggregatedHeader"/>
<xsd:element name="standingFacilities" type="disaggregatedStandingFacilitiesList"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="cbHeader">
<xsd:sequence>
<xsd:element name="country" type="lm:isoCode">
</xsd:element>
<xsd:element name="referenceDate" type="xsd:date">
</xsd:element>
<xsd:element name="version" type="lm:positiveInt">
</xsd:element>
<xsd:element name="freeText" minOccurs="0" maxOccurs="1" type="lm:freeText">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="standingFacilitiesMessage">
<xsd:complexType>
<xsd:choice>
<xsd:element name="cbStandingFacilities" minOccurs="1" maxOccurs="unbounded" type="cbStandingFacilities"/>
<xsd:element name="disaggregatedStandingFacilities" type="disaggregatedStandingFacilities"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>