diff --git a/config/migrations/2024/20240918151400-set-effectief-publication-status-at.sparql b/config/migrations/2024/20240918151400-set-effectief-publication-status-at.sparql new file mode 100644 index 00000000..68c634ce --- /dev/null +++ b/config/migrations/2024/20240918151400-set-effectief-publication-status-at.sparql @@ -0,0 +1,21 @@ +PREFIX mandaat: +PREFIX lmb: +PREFIX xsd: + +INSERT { + GRAPH ?graph { + ?mandataris lmb:effectiefAt "2024-09-18T13:13:00.007Z"^^xsd:dateTime. + } +} +WHERE { + GRAPH ?graph { + ?mandataris a mandaat:Mandataris; + lmb:hasPublicationStatus . # Effectief mandataris-publication-status-code + } + FILTER NOT EXISTS { + ?graph a + } + FILTER NOT EXISTS { + ?graph a + } +} \ No newline at end of file diff --git a/config/migrations/2024/20240919104200-add-mailboxes.sparql b/config/migrations/2024/20240919104200-add-mailboxes.sparql new file mode 100644 index 00000000..6d2789d3 --- /dev/null +++ b/config/migrations/2024/20240919104200-add-mailboxes.sparql @@ -0,0 +1,45 @@ +# FROM https://github.com/aatauil/app-deliver-email/blob/master/config/migrations/20190122110800-mailbox-folders.sparql +INSERT DATA { + GRAPH { + a ; + "cf9cb7e4-9a00-4855-9ee0-e8e3bbeba9e9"; + ; + ; + ; + ; + ; + . + + a ; + "891c67e5-4719-47f8-aec2-d898ba2c09e8"; + "inbox"; + "Your incoming mail goes here.". + + a ; + "786a8cb0-4452-40f5-b8d8-046dd2d63281"; + "outbox"; + "Your outgoing mail goes here.". + + a ; + "a6fb03f9-11be-4401-9d8f-b4dc0e9df5ee"; + "sentbox"; + "Your sent mail goes here.". + + + a ; + "a430a848-e595-49fa-bc11-f5579605877f"; + "sending"; + "Your mail goes here while being sent.". + + a ; + "0cb108a9-1c0d-4c0a-bf53-60e304116e47"; + "drafts"; + "Your draft goes here.". + + a ; + "70c0baba-17a0-11eb-adc1-0242ac120002"; + "failbox"; + "Your email that failed while sending goes here.". + + } +} \ No newline at end of file diff --git a/config/resources/external-mandaat.lisp b/config/resources/external-mandaat.lisp index 07b7ae2c..25190606 100644 --- a/config/resources/external-mandaat.lisp +++ b/config/resources/external-mandaat.lisp @@ -83,7 +83,8 @@ (:generated-from :uri-set ,(s-prefix "ext:generatedFrom")) ;;if it e.g. comes from gelinkt-notuleren (:duplication-reason :string ,(s-prefix "skos:changeNote")) (:link-to-besluit :string ,(s-prefix "lmb:linkToBesluit")) - (:modified :datetime ,(s-prefix "dct:modified"))) + (:modified :datetime ,(s-prefix "dct:modified")) + (:effectief-at :datetime ,(s-prefix "lmb:effectiefAt"))) :has-many `((mandataris :via ,(s-prefix "mandaat:isTijdelijkVervangenDoor") :as "tijdelijke-vervangingen") (mandataris :via ,(s-prefix "mandaat:isTijdelijkVervangenDoor") diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index e850da3c..f7fec74c 100755 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -92,3 +92,15 @@ services: restart: "no" authorization-wrapper: restart: "no" + deliver-email: + image: local-deliver-email-service:latest + restart: "no" + ports: + - 8888:80 + - 9223:9229 + environment: + NODE_ENV: "development" + WELL_KNOWN_SERVICE: "test" + EMAIL_CRON_PATTERN: "* * * * *" # Every minute + CRON_FREQUENCY,: "* * * * *" + LOG_ERRORS: true diff --git a/docker-compose.yml b/docker-compose.yml index 68cb46ae..22259051 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -230,3 +230,23 @@ services: - ./config/sparql-authorization-wrapper:/config restart: always logging: *default-logging + deliver-email: + image: redpencil/deliver-email-service:0.3.3 + profiles: + - send-emails + environment: + MAILBOX_URI: 'http://data.lblod.info/id/mailboxes/1' + SECURE_CONNECTION: "true" + EMAIL_PROTOCOL: "smtp" + EMAIL_ADDRESS: "mymail@myservice.com" + EMAIL_PASSWORD: "myemailpassword" + FROM_NAME: "Lokaal Mandatenbeheer" + NODE_ENV: "production" + EMAIL_CRON_PATTERN: "0 8 * * 1-5" # Every weekday at 8am + CRON_FREQUENCY,: "0 8 * * 1-5" + labels: + - "logging=true" + restart: always + volumes: + - ./data/mail:/share + logging: *default-logging