diff --git a/.docker/wiremock/cms/mappings/cms-stub-2-8b0177da-969f-4461-ae54-34151ad21b07.json b/.docker/wiremock/cms/mappings/cms-stub-2-8b0177da-969f-4461-ae54-34151ad21b07.json deleted file mode 100644 index 8ec657ec70..0000000000 --- a/.docker/wiremock/cms/mappings/cms-stub-2-8b0177da-969f-4461-ae54-34151ad21b07.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "id" : "8b0177da-969f-4461-ae54-34151ad21b07", - "name" : "Next week", - "request" : { - "url" : "/dpl_opening_hours?branch_id=1&from_date=2024-03-25&to_date=2024-03-31", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : " [{\n \"id\": 42,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-25\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 43,\n \"category\": {\n \"title\": \"Mors hyggehjørne\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-25\",\n \"start_time\": \"13:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 2\n },\n {\n \"id\": 44,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-25\",\n \"start_time\": \"18:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 3\n },\n {\n \"id\": 45,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"09:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 46,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"12:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 2\n },\n {\n \"id\": 47,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"15:00\",\n \"end_time\": \"18:00\",\n \"branch_id\": 3\n },\n {\n \"id\": 48,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-27\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 49,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-27\",\n \"start_time\": \"12:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 2\n },\n {\n \"id\": 50,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-27\",\n \"start_time\": \"17:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 3\n },\n {\n \"id\": 51,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-28\",\n \"start_time\": \"09:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 52,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-28\",\n \"start_time\": \"14:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 2\n },\n {\n \"id\": 53,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-28\",\n \"start_time\": \"18:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 3\n },\n {\n \"id\": 54,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-29\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 55,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-29\",\n \"start_time\": \"13:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 2\n },\n {\n \"id\": 56,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-29\",\n \"start_time\": \"17:00\",\n \"end_time\": \"19:00\",\n \"branch_id\": 3\n },\n {\n \"id\": 57,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-30\",\n \"start_time\": \"09:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 58,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-30\",\n \"start_time\": \"12:30\",\n \"end_time\": \"15:30\",\n \"branch_id\": 2\n },\n {\n \"id\": 59,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-30\",\n \"start_time\": \"16:00\",\n \"end_time\": \"18:00\",\n \"branch_id\": 3\n },\n {\n \"id\": 60,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-31\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 61,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-31\",\n \"start_time\": \"14:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 2\n },\n {\n \"id\": 62,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-31\",\n \"start_time\": \"18:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 3\n }\n]\n", - "headers" : { } - }, - "uuid" : "8b0177da-969f-4461-ae54-34151ad21b07", - "persistent" : true, - "priority" : 5, - "insertionIndex" : 2, - "postServeActions" : [ ] -} \ No newline at end of file diff --git a/.docker/wiremock/cms/mappings/current-week--4a24284b-7281-46df-ae95-de1a28578f3f.json b/.docker/wiremock/cms/mappings/current-week--4a24284b-7281-46df-ae95-de1a28578f3f.json deleted file mode 100644 index 0e8a7e4759..0000000000 --- a/.docker/wiremock/cms/mappings/current-week--4a24284b-7281-46df-ae95-de1a28578f3f.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "id" : "4a24284b-7281-46df-ae95-de1a28578f3f", - "name" : "Current week ", - "request" : { - "url" : "/dpl_opening_hours?branch_id=1&from_date=2024-03-18&to_date=2024-03-24", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "[ {\n \"id\": 0,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-18\",\n \"start_time\": \"09:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 1,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-18\",\n \"start_time\": \"13:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 2,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-18\",\n \"start_time\": \"17:00\",\n \"end_time\": \"19:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 3,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"08:00\",\n \"end_time\": \"10:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 4,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"11:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 5,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"14:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 6,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-20\",\n \"start_time\": \"09:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 7,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-20\",\n \"start_time\": \"13:00\",\n \"end_time\": \"15:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 8,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-20\",\n \"start_time\": \"16:00\",\n \"end_time\": \"19:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 9,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-21\",\n \"start_time\": \"09:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 10,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-21\",\n \"start_time\": \"12:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 11,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-21\",\n \"start_time\": \"15:00\",\n \"end_time\": \"18:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 12,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-22\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 1\n },\n\n {\n \"id\": 18,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-24\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 19,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-24\",\n \"start_time\": \"14:00\",\n \"end_time\": \"18:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 20,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-24\",\n \"start_time\": \"19:00\",\n \"end_time\": \"21:00\",\n \"branch_id\": 1\n }]", - "headers" : { } - }, - "uuid" : "4a24284b-7281-46df-ae95-de1a28578f3f", - "persistent" : true, - "priority" : 5, - "insertionIndex" : 3, - "postServeActions" : [ ] -} \ No newline at end of file diff --git a/.docker/wiremock/cms/mappings/dummy-479e26d6-5197-4d8f-a2dd-fefe64aabc14.json b/.docker/wiremock/cms/mappings/dummy-479e26d6-5197-4d8f-a2dd-fefe64aabc14.json deleted file mode 100644 index 27d8d669f5..0000000000 --- a/.docker/wiremock/cms/mappings/dummy-479e26d6-5197-4d8f-a2dd-fefe64aabc14.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "id" : "479e26d6-5197-4d8f-a2dd-fefe64aabc14", - "name" : "Opening hours", - "request" : { - "url" : "/dpl_opening_hours", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "[\n \n]\n", - "headers" : { } - }, - "uuid" : "479e26d6-5197-4d8f-a2dd-fefe64aabc14", - "persistent" : true, - "priority" : 5, - "insertionIndex" : 0, - "postServeActions" : [ ] -} \ No newline at end of file diff --git a/.docker/wiremock/cms/mappings/full-calendar-opening-hours-7dfc9127-ba40-4098-9dfb-ed65799e99f0.json b/.docker/wiremock/cms/mappings/opening-hours-all-b0c2a2f9-7b4d-4a6d-8324-13051e946c02.json similarity index 87% rename from .docker/wiremock/cms/mappings/full-calendar-opening-hours-7dfc9127-ba40-4098-9dfb-ed65799e99f0.json rename to .docker/wiremock/cms/mappings/opening-hours-all-b0c2a2f9-7b4d-4a6d-8324-13051e946c02.json index 5450204440..508a51d04b 100644 --- a/.docker/wiremock/cms/mappings/full-calendar-opening-hours-7dfc9127-ba40-4098-9dfb-ed65799e99f0.json +++ b/.docker/wiremock/cms/mappings/opening-hours-all-b0c2a2f9-7b4d-4a6d-8324-13051e946c02.json @@ -1,18 +1,20 @@ { - "id": "7dfc9127-ba40-4098-9dfb-ed65799e99f0", - "name": "Full Calendar Opening hours", + "id": "b0c2a2f9-7b4d-4a6d-8324-13051e946c02", + "name": "Opening hours all", "request": { "url": "/dpl_opening_hours?branch_id=12", "method": "GET" }, "response": { "status": 200, - "body": "[\n {\n \"id\": 1,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-11\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 2,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-18\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 3,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-25\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 4,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-01\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 5,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-08\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 6,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-12\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 7,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 8,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 9,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-02\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 10,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-09\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 26,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-03-12\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 27,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 28,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 29,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-04-02\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 30,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-04-09\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 11,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-13\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 12,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-20\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 13,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-27\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 14,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-03\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 15,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-10\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 16,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-14\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 17,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-21\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 18,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-28\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 19,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-04\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 20,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-11\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 21,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-15\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 22,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-22\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 23,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-29\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 24,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-05\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 25,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-12\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 31,\n \"category\": {\n \"title\": \"SingleOpeningHour1\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-03-11\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"none\"\n }\n },\n {\n \"id\": 32,\n \"category\": {\n \"title\": \"SingleOpeningHour2\",\n \"color\": \"pink\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 7,\n \"type\": \"none\"\n }\n },\n {\n \"id\": 33,\n \"category\": {\n \"title\": \"SingleOpeningHour3\",\n \"color\": \"limegreen\"\n },\n \"date\": \"2024-03-30\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 8,\n \"type\": \"none\"\n }\n },\n {\n \"id\": 34,\n \"category\": {\n \"title\": \"SingleOpeningHour4\",\n \"color\": \"gray\"\n },\n \"date\": \"2024-04-04\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 9,\n \"type\": \"none\"\n }\n },\n {\n \"id\": 35,\n \"category\": {\n \"title\": \"SingleOpeningHour5\",\n \"color\": \"darkblue\"\n },\n \"date\": \"2024-04-14\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 10,\n \"type\": \"none\"\n }\n }\n]", - "headers": {} + "body": "[\n {\n \"id\": 1,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-11\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 2,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-18\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 3,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-25\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 4,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-01\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 5,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-08\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 6,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-12\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 7,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 8,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 9,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-02\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 10,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-09\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 26,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-03-12\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 27,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 28,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 29,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-04-02\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 30,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-04-09\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 11,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-13\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 12,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-20\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 13,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-27\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 14,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-03\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 15,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-10\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 16,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-14\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 17,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-21\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 18,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-28\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 19,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-04\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 20,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-11\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 21,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-15\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 22,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-22\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 23,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-29\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 24,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-05\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 25,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-12\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 31,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-03-11\",\n \"start_time\": \"10:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"none\"\n }\n },\n {\n \"id\": 32,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"12:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 7,\n \"type\": \"none\"\n }\n },\n {\n \"id\": 33,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-03-30\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 8,\n \"type\": \"none\"\n }\n },\n {\n \"id\": 34,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-04-04\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 9,\n \"type\": \"none\"\n }\n },\n {\n \"id\": 35,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-04-14\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 10,\n \"type\": \"none\"\n }\n }\n]", + "headers": { + "Content-Type": "application/json" + } }, - "uuid": "7dfc9127-ba40-4098-9dfb-ed65799e99f0", + "uuid": "b0c2a2f9-7b4d-4a6d-8324-13051e946c02", "persistent": true, "priority": 5, - "insertionIndex": 4, + "insertionIndex": 5, "postServeActions": [] } diff --git a/.docker/wiremock/cms/mappings/opening-hours-create-instance-f17d80cb-0e88-46f5-910a-07d9b803d2c3.json b/.docker/wiremock/cms/mappings/opening-hours-create-instance-f17d80cb-0e88-46f5-910a-07d9b803d2c3.json new file mode 100644 index 0000000000..24df9ac691 --- /dev/null +++ b/.docker/wiremock/cms/mappings/opening-hours-create-instance-f17d80cb-0e88-46f5-910a-07d9b803d2c3.json @@ -0,0 +1,21 @@ +{ + "id": "f17d80cb-0e88-46f5-910a-07d9b803d2c3", + "name": "Opening hours create instance", + "request": { + "url": "/dpl_opening_hours?_format=json", + "method": "POST" + }, + "response": { + "status": 200, + "body": "[ \n {\n \"id\": {{randomValue length=3 type='NUMERIC'}},\n \"category\": {\n \"title\": \"{{jsonPath request.body '$.category.title'}}\",\n \"color\": \"{{jsonPath request.body '$.category.color'}}\"\n },\n \"date\": \"{{jsonPath request.body '$.date'}}\",\n \"start_time\": \"{{jsonPath request.body '$.start_time'}}\",\n \"end_time\": \"{{jsonPath request.body '$.end_time'}}\",\n \"branch_id\": {{jsonPath request.body '$.branch_id'}},\n \"repetition\": {\n \"id\": {{randomValue length=3 type='NUMERIC'}},\n \"type\": \"{{jsonPath request.body '$.repetition.type'}}\",{{#if (eq (jsonPath request.body '$.repetition.type') 'weekly')}}\"weekly_data\": {{{jsonPath request.body '$.repetition.weekly_data'}}}{{/if}}\n }\n }\n]", + "headers": { + "Content-Type": "application/json" + }, + "transformers": ["response-template"] + }, + "uuid": "f17d80cb-0e88-46f5-910a-07d9b803d2c3", + "persistent": true, + "priority": 5, + "insertionIndex": 1, + "postServeActions": [] +} diff --git a/.docker/wiremock/cms/mappings/opening-hours-current-week-b03cdd7c-c1e0-4e35-b374-f429642e379f.json b/.docker/wiremock/cms/mappings/opening-hours-current-week-b03cdd7c-c1e0-4e35-b374-f429642e379f.json new file mode 100644 index 0000000000..772f2dcfd7 --- /dev/null +++ b/.docker/wiremock/cms/mappings/opening-hours-current-week-b03cdd7c-c1e0-4e35-b374-f429642e379f.json @@ -0,0 +1,20 @@ +{ + "id": "b03cdd7c-c1e0-4e35-b374-f429642e379f", + "name": "Opening hours current week", + "request": { + "url": "/dpl_opening_hours?branch_id=12&from_date=2024-03-25&to_date=2024-03-31", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[\n {\n \"id\": 3,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-25\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 8,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 28,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-03-26\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 13,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-27\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 18,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-28\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 23,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-29\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 33,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-03-30\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 8,\n \"type\": \"none\"\n }\n }\n]", + "headers": { + "Content-Type": "application/json" + } + }, + "uuid": "b03cdd7c-c1e0-4e35-b374-f429642e379f", + "persistent": true, + "priority": 5, + "insertionIndex": 3, + "postServeActions": [] +} diff --git a/.docker/wiremock/cms/mappings/delete-event-f52a1b96-38d2-479a-aeaf-65367637d365.json b/.docker/wiremock/cms/mappings/opening-hours-delete-instance-b4a3d509-efc1-409b-acfd-4eaad6d6c6e2.json similarity index 59% rename from .docker/wiremock/cms/mappings/delete-event-f52a1b96-38d2-479a-aeaf-65367637d365.json rename to .docker/wiremock/cms/mappings/opening-hours-delete-instance-b4a3d509-efc1-409b-acfd-4eaad6d6c6e2.json index 6a67dab95b..fae0e2ee4f 100644 --- a/.docker/wiremock/cms/mappings/delete-event-f52a1b96-38d2-479a-aeaf-65367637d365.json +++ b/.docker/wiremock/cms/mappings/opening-hours-delete-instance-b4a3d509-efc1-409b-acfd-4eaad6d6c6e2.json @@ -1,6 +1,6 @@ { - "id": "f52a1b96-38d2-479a-aeaf-65367637d365", - "name": "Delete event", + "id": "b4a3d509-efc1-409b-acfd-4eaad6d6c6e2", + "name": "Opening hours delete instance", "request": { "urlPathPattern": "/dpl_opening_hours/[0-9]+", "method": "DELETE" @@ -10,9 +10,9 @@ "body": "", "headers": {} }, - "uuid": "f52a1b96-38d2-479a-aeaf-65367637d365", + "uuid": "b4a3d509-efc1-409b-acfd-4eaad6d6c6e2", "persistent": true, "priority": 5, - "insertionIndex": 1, + "insertionIndex": 5, "postServeActions": [] } diff --git a/.docker/wiremock/cms/mappings/opening-hours-next-week-104eae1e-ae10-4893-aadb-7f19ca988f1a.json b/.docker/wiremock/cms/mappings/opening-hours-next-week-104eae1e-ae10-4893-aadb-7f19ca988f1a.json new file mode 100644 index 0000000000..3396234065 --- /dev/null +++ b/.docker/wiremock/cms/mappings/opening-hours-next-week-104eae1e-ae10-4893-aadb-7f19ca988f1a.json @@ -0,0 +1,20 @@ +{ + "id": "104eae1e-ae10-4893-aadb-7f19ca988f1a", + "name": "Opening hours next week", + "request": { + "url": "/dpl_opening_hours?branch_id=12&from_date=2024-04-01&to_date=2024-04-07", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[\n {\n \"id\": 4,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-01\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 9,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-02\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 29,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-04-02\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 14,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-03\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 19,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-04\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 24,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-04-05\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 34,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-04-04\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 9,\n \"type\": \"none\"\n }\n }\n]", + "headers": { + "Content-Type": "application/json" + } + }, + "uuid": "104eae1e-ae10-4893-aadb-7f19ca988f1a", + "persistent": true, + "priority": 5, + "insertionIndex": 4, + "postServeActions": [] +} diff --git a/.docker/wiremock/cms/mappings/opening-hours-previous-week-6c1c831f-bec5-4c57-a4d1-322196701f1b.json b/.docker/wiremock/cms/mappings/opening-hours-previous-week-6c1c831f-bec5-4c57-a4d1-322196701f1b.json new file mode 100644 index 0000000000..083782e36a --- /dev/null +++ b/.docker/wiremock/cms/mappings/opening-hours-previous-week-6c1c831f-bec5-4c57-a4d1-322196701f1b.json @@ -0,0 +1,20 @@ +{ + "id": "6c1c831f-bec5-4c57-a4d1-322196701f1b", + "name": "Opening hours previous week", + "request": { + "url": "/dpl_opening_hours?branch_id=12&from_date=2024-03-18&to_date=2024-03-24", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[\n {\n \"id\": 2,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-18\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 1,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 7,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 2,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 27,\n \"category\": {\n \"title\": \"Telefon\",\n \"color\": \"green\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 6,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 12,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-20\",\n \"start_time\": \"08:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 3,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 17,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-21\",\n \"start_time\": \"08:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 4,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 22,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#4986e7\"\n },\n \"date\": \"2024-03-22\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 5,\n \"type\": \"weekly\",\n \"weekly_data\": {\n \"end_date\": \"2024-04-14\"\n }\n }\n },\n {\n \"id\": 32,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"lightblue\"\n },\n \"date\": \"2024-03-19\",\n \"start_time\": \"12:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 12,\n \"repetition\": {\n \"id\": 7,\n \"type\": \"none\"\n }\n }\n]", + "headers": { + "Content-Type": "application/json" + } + }, + "uuid": "6c1c831f-bec5-4c57-a4d1-322196701f1b", + "persistent": true, + "priority": 5, + "insertionIndex": 5, + "postServeActions": [] +} diff --git a/.docker/wiremock/cms/mappings/previous-week-9e0567ff-57cf-4991-bd32-686e084568a7.json b/.docker/wiremock/cms/mappings/previous-week-9e0567ff-57cf-4991-bd32-686e084568a7.json deleted file mode 100644 index 1b72e69878..0000000000 --- a/.docker/wiremock/cms/mappings/previous-week-9e0567ff-57cf-4991-bd32-686e084568a7.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "id" : "9e0567ff-57cf-4991-bd32-686e084568a7", - "name" : "Previous week", - "request" : { - "url" : "/dpl_opening_hours?branch_id=1&from_date=2024-03-11&to_date=2024-03-17", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "[{\n \"id\": 21,\n \"category\": {\n \"title\": \"Fars legestue\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-11\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 22,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-11\",\n \"start_time\": \"13:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 23,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-11\",\n \"start_time\": \"18:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 24,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-12\",\n \"start_time\": \"09:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 25,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-12\",\n \"start_time\": \"12:00\",\n \"end_time\": \"14:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 26,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-12\",\n \"start_time\": \"15:00\",\n \"end_time\": \"18:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 27,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-13\",\n \"start_time\": \"08:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 28,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-13\",\n \"start_time\": \"12:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 29,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-13\",\n \"start_time\": \"17:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 30,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-14\",\n \"start_time\": \"09:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 31,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-14\",\n \"start_time\": \"14:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 32,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-14\",\n \"start_time\": \"18:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 33,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-15\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 34,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-15\",\n \"start_time\": \"13:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 35,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-15\",\n \"start_time\": \"17:00\",\n \"end_time\": \"19:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 36,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-16\",\n \"start_time\": \"09:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 37,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-16\",\n \"start_time\": \"12:30\",\n \"end_time\": \"15:30\",\n \"branch_id\": 1\n },\n {\n \"id\": 38,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-16\",\n \"start_time\": \"16:00\",\n \"end_time\": \"18:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 39,\n \"category\": {\n \"title\": \"Borgerservice\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-17\",\n \"start_time\": \"10:00\",\n \"end_time\": \"13:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 40,\n \"category\": {\n \"title\": \"Børneetagen\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-17\",\n \"start_time\": \"14:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 1\n },\n {\n \"id\": 41,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-17\",\n \"start_time\": \"18:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 1\n }]", - "headers" : { } - }, - "uuid" : "9e0567ff-57cf-4991-bd32-686e084568a7", - "persistent" : true, - "priority" : 5, - "insertionIndex" : 1, - "postServeActions" : [ ] -} \ No newline at end of file diff --git a/.docker/wiremock/cms/opening-hours-data.js b/.docker/wiremock/cms/opening-hours-data.js deleted file mode 100644 index a60eaf56d9..0000000000 --- a/.docker/wiremock/cms/opening-hours-data.js +++ /dev/null @@ -1,687 +0,0 @@ -const serieOpenMonday = [ - { - id: 1, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-11", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 1, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 2, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-18", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 1, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 3, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-25", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 1, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 4, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-01", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 1, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 5, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-08", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 1, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - } -]; - -const serieOpenTuesday = [ - { - id: 6, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-12", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 2, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 7, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-19", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 2, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 8, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-26", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 2, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 9, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-02", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 2, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 10, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-09", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 2, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - } -]; - -const serieOpenWednesday = [ - { - id: 11, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-13", - start_time: "08:00", - end_time: "14:00", - branch_id: 12, - repetition: { - id: 3, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 12, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-20", - start_time: "08:00", - end_time: "14:00", - branch_id: 12, - repetition: { - id: 3, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 13, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-27", - start_time: "08:00", - end_time: "14:00", - branch_id: 12, - repetition: { - id: 3, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 14, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-03", - start_time: "08:00", - end_time: "14:00", - branch_id: 12, - repetition: { - id: 3, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 15, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-10", - start_time: "08:00", - end_time: "14:00", - branch_id: 12, - repetition: { - id: 3, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - } -]; - -const serieOpenThursday = [ - { - id: 16, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-14", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 4, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 17, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-21", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 4, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 18, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-28", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 4, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 19, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-04", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 4, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 20, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-11", - start_time: "08:00", - end_time: "16:00", - branch_id: 12, - repetition: { - id: 4, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - } -]; - -const serieOpenFriday = [ - { - id: 21, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-15", - start_time: "08:00", - end_time: "12:00", - branch_id: 12, - repetition: { - id: 5, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 22, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-22", - start_time: "08:00", - end_time: "12:00", - branch_id: 12, - repetition: { - id: 5, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 23, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-03-29", - start_time: "08:00", - end_time: "12:00", - branch_id: 12, - repetition: { - id: 5, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 24, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-05", - start_time: "08:00", - end_time: "12:00", - branch_id: 12, - repetition: { - id: 5, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 25, - category: { - title: "Åbent", - color: "#4986e7" - }, - date: "2024-04-12", - start_time: "08:00", - end_time: "12:00", - branch_id: 12, - repetition: { - id: 5, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - } -]; - -const seriePhoneTuesday = [ - { - id: 26, - category: { - title: "Telefon", - color: "green" - }, - date: "2024-03-12", - start_time: "10:00", - end_time: "13:00", - branch_id: 12, - repetition: { - id: 6, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 27, - category: { - title: "Telefon", - color: "green" - }, - date: "2024-03-19", - start_time: "10:00", - end_time: "13:00", - branch_id: 12, - repetition: { - id: 6, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 28, - category: { - title: "Telefon", - color: "green" - }, - date: "2024-03-26", - start_time: "10:00", - end_time: "13:00", - branch_id: 12, - repetition: { - id: 6, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 29, - category: { - title: "Telefon", - color: "green" - }, - date: "2024-04-02", - start_time: "10:00", - end_time: "13:00", - branch_id: 12, - repetition: { - id: 6, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - }, - { - id: 30, - category: { - title: "Telefon", - color: "green" - }, - date: "2024-04-09", - start_time: "10:00", - end_time: "13:00", - branch_id: 12, - repetition: { - id: 6, - type: "weekly", - weekly_data: { - end_date: "2024-04-14" - } - } - } -]; - -const singleOpeningHours = [ - { - id: 31, - category: { - title: "SingleOpeningHour1", - color: "lightblue" - }, - date: "2024-03-11", - start_time: "08:00", - end_time: "11:00", - branch_id: 12, - repetition: { - id: 6, - type: "none" - } - }, - { - id: 32, - category: { - title: "SingleOpeningHour2", - color: "pink" - }, - date: "2024-03-19", - start_time: "08:00", - end_time: "11:00", - branch_id: 12, - repetition: { - id: 7, - type: "none" - } - }, - { - id: 33, - category: { - title: "SingleOpeningHour3", - color: "limegreen" - }, - date: "2024-03-30", - start_time: "08:00", - end_time: "11:00", - branch_id: 12, - repetition: { - id: 8, - type: "none" - } - }, - { - id: 34, - category: { - title: "SingleOpeningHour4", - color: "gray" - }, - date: "2024-04-04", - start_time: "08:00", - end_time: "11:00", - branch_id: 12, - repetition: { - id: 9, - type: "none" - } - }, - { - id: 35, - category: { - title: "SingleOpeningHour5", - color: "darkblue" - }, - date: "2024-04-14", - start_time: "08:00", - end_time: "11:00", - branch_id: 12, - repetition: { - id: 10, - type: "none" - } - } -]; - -export const openingHoursPrevWeek1 = [ - serieOpenMonday[0], - serieOpenTuesday[0], - seriePhoneTuesday[0], - serieOpenWednesday[0], - serieOpenThursday[0], - serieOpenFriday[0], - singleOpeningHours[0] -].flat(); - -export const openingHoursPrevWeek2 = [ - serieOpenMonday[1], - serieOpenTuesday[1], - seriePhoneTuesday[1], - serieOpenWednesday[1], - serieOpenThursday[1], - serieOpenFriday[1], - singleOpeningHours[1] -].flat(); - -export const openingHoursNextWeek1 = [ - serieOpenMonday[3], - serieOpenTuesday[3], - seriePhoneTuesday[3], - serieOpenWednesday[3], - serieOpenThursday[3], - serieOpenFriday[3], - singleOpeningHours[3] -].flat(); - -export const openingHoursNextWeek2 = [ - serieOpenMonday[4], - serieOpenTuesday[4], - seriePhoneTuesday[4], - serieOpenWednesday[4], - serieOpenThursday[4], - serieOpenFriday[4], - singleOpeningHours[4] -].flat(); - -const openingHoursAll = [ - serieOpenMonday, - serieOpenTuesday, - seriePhoneTuesday, - serieOpenWednesday, - serieOpenThursday, - serieOpenFriday, - singleOpeningHours -].flat(); - -export default openingHoursAll; diff --git a/src/apps/opening-hours-editor/OpeningHoursEditor.dev.tsx b/src/apps/opening-hours-editor/OpeningHoursEditor.dev.tsx index 229150bf16..8f31538efa 100644 --- a/src/apps/opening-hours-editor/OpeningHoursEditor.dev.tsx +++ b/src/apps/opening-hours-editor/OpeningHoursEditor.dev.tsx @@ -21,7 +21,7 @@ export default { openingHoursEditorCategoriesConfig: { name: "Opening hours categories", defaultValue: - '[{"title":"\\u00c5bent","color":"#B3DC6C"},{"title":"Telefontid","color":"#FBE983"},{"title":"SingleOpeningHour1","color":"lightblue"},{"title":"SingleOpeningHour2","color":"pink"},{"title":"SingleOpeningHour3","color":"limegreen"},{"title":"SingleOpeningHour4","color":"gray"},{"title":"SingleOpeningHour5","color":"darkblue"}]', + '[{"title":"\\u00c5bent","color":"#B3DC6C"},{"title":"Telefontid","color":"#FBE983"},{"title":"Borgerservice","color":"lightblue"}]', control: { type: "text" } }, openingHoursBranchIdConfig: { diff --git a/src/apps/opening-hours/OpeningHours.dev.tsx b/src/apps/opening-hours/OpeningHours.dev.tsx index 6a56a2f4f9..33a861f3e6 100644 --- a/src/apps/opening-hours/OpeningHours.dev.tsx +++ b/src/apps/opening-hours/OpeningHours.dev.tsx @@ -12,11 +12,11 @@ export default { component: OpeningHours, argTypes: { initialDate: { - defaultValue: new Date("2024-03-21"), + defaultValue: new Date("2024-03-25"), control: { type: "date" } }, branchId: { - defaultValue: 1, + defaultValue: 12, control: { type: "number" } }, showOpeningHoursForWeekText: {