-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from ConductionNL/feature/CONNECTOR-182/sub-c…
…ontracts Create and update sub contracts
- Loading branch information
Showing
23 changed files
with
597 additions
and
20 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
configurations/woo-elastic/mappings/publication-to-elastic.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "Publication to Elastic", | ||
"description": "", | ||
"version": "0.0.1", | ||
"mapping": { | ||
"doctype": "{% if categorie is defined and categorie == 'Convenanten' %}{{ categorie }}{% else %}OpenWOO{% endif %}", | ||
"title": "{{ titel | default('') }}", | ||
"excerpt": "{{ samenvatting | default('') }}", | ||
"date": "{{ publicatiedatum | default('') }}", | ||
"link": "/openwoo/{{ titel | lower | strip_tags | preg_replace('/[^a-z0-9\\s-]/', '') | preg_replace('/[\\s-]+/', '-') | trim('-', '-') }}", | ||
"content_filtered": "{{ beschrijving | default('') }}" | ||
}, | ||
"unset": [], | ||
"cast": { | ||
"title": "unsetIfValue==", | ||
"excerpt": "unsetIfValue==", | ||
"date": "unsetIfValue==", | ||
"content_filtered": "unsetIfValue==" | ||
}, | ||
"passThrough": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "Elastic API", | ||
"description": "Elastic API", | ||
"reference": null, | ||
"version": "0.0.1", | ||
"location": "", | ||
"isEnabled": true, | ||
"type": "api", | ||
"authorizationHeader": "Authorization", | ||
"auth": "none", | ||
"authorizationPassthroughMethod": "header", | ||
"authenticationConfig": [], | ||
"configuration": { | ||
"headers": { | ||
"Authorization": "ApiKey ..", | ||
"Content-Type": "application/json" | ||
} | ||
}, | ||
"logRetention": 3600, | ||
"errorRetention": 86400, | ||
"test": false | ||
} |
17 changes: 17 additions & 0 deletions
17
configurations/woo-elastic/synchronizations/publication-to-elastic.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "Publication to Elastic", | ||
"description": "This config might be currently incomplete", | ||
"version": "0.0.1", | ||
"sourceId": "1/1", | ||
"sourceType": "register/schema", | ||
"sourceHash": "", | ||
"sourceTargetMapping": "1", | ||
"targetConfig": { | ||
"idPosition": "_id", | ||
"endpoint": "/_doc", | ||
"headers": [], | ||
"query": [] | ||
}, | ||
"targetId": "1", | ||
"targetType": "api" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
configurations/xxllnc-zgw/mappings/xxllnc-v1-field-to-zgw-eigenschap.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "Xxllnc Field to ZGW Eigenschap", | ||
"version": "0.0.1", | ||
"mapping": { | ||
"naam": "magic_string", | ||
"definitie": "{% if original_label|default %}{{ original_label }}{% elseif label|default %}{{ label }}{% else %}{{ magic_string }}{% endif %}", | ||
"specificatie.formaat": "{% if type == 'date' %}datum{% elseif type == 'datetime' %}datum_tijd{% elseif type=='number' %}getal{% else %}tekst{% endif %}", | ||
"kardinaliteit": "{% if limit_values|default %}{{ limit_values }}{% else %}1{% endif %}", | ||
"catalogus": "_catalogus", | ||
"zaaktypeIdentificatie": "_zaaktypeIdentificatie" | ||
}, | ||
"unset": [], | ||
"cast": { | ||
"naam": "unsetIfValue==magic_string", | ||
"definitie": "unsetIfValue==", | ||
"catalogus": "unsetIfValue==_catalogus", | ||
"zaaktypeIdentificatie": "unsetIfValue==_zaaktypeIdentificatie" | ||
}, | ||
"passTrough": false | ||
} |
15 changes: 15 additions & 0 deletions
15
configurations/xxllnc-zgw/mappings/xxllnc-v1-field-to-zgw-informatieobjecttype.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "Xxllnc Field to ZGW InformatieObjectType", | ||
"version": "0.0.1", | ||
"mapping": { | ||
"omschrijving": "{% if original_label|default %}{{ original_label }}{% elseif label|default %}{{ label }}{% else %}{{ magic_string }}{% endif %}", | ||
"vertrouwelijkheidsaanduiding": "{% if publish_public|default and publish_public == true %}openbaar{% else %}zaakvertrouwelijk{% endif %}", | ||
"beginGeldigheid": "{{ 'now'|date('Y-m-d') }}", | ||
"informatieobjectcategorie": "xxllnc informatieobject" | ||
}, | ||
"unset": [], | ||
"cast": { | ||
"omschrijving": "unsetIfValue==" | ||
}, | ||
"passTrough": false | ||
} |
14 changes: 14 additions & 0 deletions
14
...tions/xxllnc-zgw/mappings/xxllnc-v1-informatieobjecttype-to-zgw-informatieobjecttype.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "XxllncInformatieObjectTypeToZGWInformatieObjectType", | ||
"version": "0.0.1", | ||
"mapping": { | ||
"omschrijving": "original_label", | ||
"vertrouwelijkheidaanduiding": "public" | ||
}, | ||
"unset": [], | ||
"cast": { | ||
"omschrijving": "unsetIfValue==original_label", | ||
"vertrouwelijkheidaanduiding": "unsetIfValue==public" | ||
}, | ||
"passTrough": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
configurations/xxllnc-zgw/mappings/xxllnc-v1-phase-to-zgw-statustype.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "Xxllnc Phase to ZGW StatusType", | ||
"version": "0.0.1", | ||
"mapping": { | ||
"_sourceId": "{% if fields.0.label|default and casetypeReference|default %}{{ casetypeReference~fields.0.label }}{% endif %}", | ||
"volgnummer": "seq", | ||
"omschrijving": "name", | ||
"omschrijvingGeneriek": "{% if fields.0.label|default %}{{ fields.0.label }}{% else %}geen statustekst{% endif %}", | ||
"statustekst": "{% if fields.0.help|default %}{{ fields.0.help }}{% else %}geen statustekst{% endif %}", | ||
"catalogus": "_catalogus", | ||
"zaaktypeIdentificatie": "_zaaktypeIdentificatie" | ||
}, | ||
"unset": [], | ||
"cast": { | ||
"_sourceId": "unsetIfValue==", | ||
"volgnummer": "unsetIfValue==seq", | ||
"omschrijving": "unsetIfValue==name", | ||
"catalogus": "unsetIfValue==_catalogus", | ||
"zaaktypeIdentificatie": "unsetIfValue==_zaaktypeIdentificatie" | ||
}, | ||
"passTrough": false | ||
} |
18 changes: 18 additions & 0 deletions
18
configurations/xxllnc-zgw/mappings/xxllnc-v1-result-to-zgw-resultaattype.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "Xxllnc Result to ZGW ResultaatType", | ||
"version": "0.0.1", | ||
"mapping": { | ||
"omschrijving": "type", | ||
"toelichting": "label", | ||
"selectielijstklasse": "{% if selection_list|default %}https://inavigator.bizzib.nl/bsd/sl2020.gem.html#{{ selection_list_number|replace({'.': '_'}) }}{% else %}http://localhost{% endif %}", | ||
"archiefnominatie": "{% if type_of_archiving == 'Bewaren (B)' or type_of_archiving == 'Conversie' %}blijvend_bewaren{% else %}vernietigen{% endif %}", | ||
"archiefactietermijn": "{% if period_of_preservation|default %}P{{ period_of_preservation }}D{% endif %}" | ||
}, | ||
"unset": [], | ||
"cast": { | ||
"omschrijving": "unsetIfValue==type", | ||
"toelichting": "unsetIfValue==label", | ||
"archiefactietermijn": "unsetIfValue==" | ||
}, | ||
"passTrough": false | ||
} |
14 changes: 14 additions & 0 deletions
14
configurations/xxllnc-zgw/mappings/xxllnc-v1-role-to-zgw-roltype.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "Xxllnc Role to ZGW RolType", | ||
"version": "0.0.1", | ||
"mapping": { | ||
"omschrijving": "{% if instance.description|default %}{{ instance.description }}{% endif %}", | ||
"omschrijvingGeneriek": "{% if instance.name|default %}{{ instance.name|lower }}{% endif %}" | ||
}, | ||
"unset": [], | ||
"cast": { | ||
"omschrijving": "unsetIfValue==", | ||
"omschrijvingGeneriek": "unsetIfValue==" | ||
}, | ||
"passTrough": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
configurations/xxllnc-zgw/mappings/zgw-zaak-to-xxllnc-v1-case.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "ZGW Zaak to Xxllnc Case", | ||
"version": "0.0.1", | ||
"mapping": { | ||
"casetype_id": "{% if zaaktype.originId|default %}{{ zaaktype.originId }}{% endif %}", | ||
"source": "behandelaar", | ||
"date_of_registration": "{{ 'now'|date('Y-m-dTH:i:sZ') }}", | ||
"confidentiality": "public", | ||
"requestor.id": "{{ zaakArrayObject.rollen[0].betrokkeneIdentificatie.inpBsn ?? zaakArrayObject.verantwoordelijkeOrganisatie ?? '' }}", | ||
"requestor.type": "{% if zaakArrayObject.rollen[0].betrokkeneIdentificatie.inpBsn|default or zaakArrayObject.verantwoordelijkeOrganisatie|default %}person{% endif %}", | ||
"files": "[{% set index = 0 %}{% for infoObject in thiswontwork %}{% if index > 0 %}, {% endif %}{{ executeMapping(1, infoObject)|json_encode }}{% set index = index + 1 %}{% endfor %}]", | ||
"values": "{ {% set index = 0 %}{% for zaakEigenschap in eigenschappen %}{% if zaakEigenschap.eigenschap.naam|default %}{% if index > 0 %}, {% endif %}\"{{ zaakEigenschap.eigenschap.naam }}\":{% if zaakEigenschap.eigenschap.waarde|default and zaakEigenschap.eigenschap.specificatie.formaat|default and zaakEigenschap.eigenschap.specificatie.formaat == 'checkbox' %}[[\"{{ zaakEigenschap.eigenschap.waarde }}\"]]{% else %}[\"{{ zaakEigenschap.waarde }}\"]{% endif %}{% set index = index + 1 %}{% endif %}{% endfor %} }" | ||
}, | ||
"unset": [], | ||
"cast": { | ||
"files": "jsonToArray", | ||
"values": "jsonToArray", | ||
"requestor.id": "unsetIfValue==", | ||
"requestor.type": "unsetIfValue==", | ||
"requestor": "unsetIfValue==" | ||
}, | ||
"passTrough": false | ||
} |
Oops, something went wrong.