Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Als product owner wil ik een endpoint waarop ik notificaties uit KoppelApp kan ontvangen #6

Open
rubenvdlinde opened this issue Jun 15, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@rubenvdlinde
Copy link
Contributor

rubenvdlinde commented Jun 15, 2022

Zodat ik deze dan mappen naar notificatie objecten uit #5

Hier komt dus een notificatie uit koppelapp, @MasterMichelle het is dan handig als we daarvan een voorbeeld bericht hebben.

@rubenvdlinde rubenvdlinde added the question Further information is requested label Jun 15, 2022
@MasterMichelle
Copy link

MasterMichelle commented Jun 15, 2022

Bij het aanmaken van een zaak verstuurt Zaaksysteem het volgende:

{
  "case_number": 84608,
  "event_name": "CaseCreated",
  "description": "Nieuwe zaak aangemaakt",
  "case_uuid": "4489e885-0779-4ec6-99b0-74cf0437a19e"
}

Bij het toevoegen van een document aan de zaak verstuurt Zaaksysteem het volgende:

{
  "case_number": 84608,
  "case_uuid": "4489e885-0779-4ec6-99b0-74cf0437a19e",
  "event_name": "CaseDocumentCreated",
  "changes": [
    {
      "key": "basename",
      "new_value": "Ontvangstbevestiginig",
      "old_value": null
    },
    {
      "key": "extension",
      "new_value": ".docx",
      "old_value": null
    },
    {
      "key": "accepted",
      "new_value": 0,
      "old_value": null
    },
    {
      "key": "store_uuid",
      "old_value": null,
      "new_value": "24291f57-8b61-40a9-aab2-ab5f8d295a6a"
    },
    {
      "key": "directory_uuid",
      "old_value": null,
      "new_value": null
    },
    {
      "new_value": "4489e885-0779-4ec6-99b0-74cf0437a19e",
      "old_value": null,
      "key": "case_uuid"
    },
    {
      "old_value": null,
      "new_value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "key": "mimetype"
    },
    {
      "key": "size",
      "new_value": 11791,
      "old_value": null
    },
    {
      "new_value": "S3Storage1",
      "old_value": null,
      "key": "storage_location"
    },
    {
      "old_value": null,
      "new_value": "d305d63ef8cdfe98fa60d9e74d4c4a",
      "key": "md5"
    },
    {
      "key": "is_archivable",
      "new_value": 1,
      "old_value": null
    },
    {
      "old_value": null,
      "new_value": "pending",
      "key": "virus_scan_status"
    },
    {
      "key": "creator_type",
      "old_value": null,
      "new_value": "employee"
    },
    {
      "new_value": 0,
      "old_value": 0,
      "key": "skip_intake"
    },
    {
      "new_value": 0,
      "old_value": 0,
      "key": "auto_accept"
    },
    {
      "old_value": null,
      "new_value": [],
      "key": "labels"
    }
  ],
  "description": "Nieuw zaak document aangemaakt"
}

@rubenvdlinde
Copy link
Contributor Author

@MasterMichelle ik heb de berichten even wat netter weergegeven ;)

@CommonGateway/developers gelet op #9 zou de route dan zijn om een endpoint te maken waarop deze berichten binnen kunnen komen. Bij het binnen komen van een bericht moet er dan een notificatie object worden gemaakt waarbij de event name van hier moet worden gemapped naar een notificatie type (zie bovenstaande issue).

en case_uuid naar data[id]

@WilcoLouwerse WilcoLouwerse self-assigned this Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: In Progress
Development

No branches or pull requests

3 participants