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/full-calendar-opening-hours-7dfc9127-ba40-4098-9dfb-ed65799e99f0.json deleted file mode 100644 index 1312ef617f..0000000000 --- a/.docker/wiremock/cms/mappings/full-calendar-opening-hours-7dfc9127-ba40-4098-9dfb-ed65799e99f0.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "id" : "7dfc9127-ba40-4098-9dfb-ed65799e99f0", - "name" : "Full Calendar Opening hours", - "request" : { - "url" : "/dpl_opening_hours?branch_id=12", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "[\n {\n \"id\": 21,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-11\",\n \"start_time\": \"08:00\",\n \"end_time\": \"12:00\",\n \"branch_id\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\n },\n {\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\n },\n {\n \"id\": 13,\n \"category\": {\n \"title\": \"Makerlab\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-22\",\n \"start_time\": \"14:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 12\n },\n {\n \"id\": 14,\n \"category\": {\n \"title\": \"Åbent\",\n \"color\": \"#008000\"\n },\n \"date\": \"2024-03-22\",\n \"start_time\": \"18:00\",\n \"end_time\": \"20:00\",\n \"branch_id\": 12\n },\n {\n \"id\": 15,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#FFFF00\"\n },\n \"date\": \"2024-03-23\",\n \"start_time\": \"09:00\",\n \"end_time\": \"11:00\",\n \"branch_id\": 12\n },\n {\n \"id\": 16,\n \"category\": {\n \"title\": \"Med betjening\",\n \"color\": \"#0000FF\"\n },\n \"date\": \"2024-03-23\",\n \"start_time\": \"12:00\",\n \"end_time\": \"16:00\",\n \"branch_id\": 12\n },\n {\n \"id\": 17,\n \"category\": {\n \"title\": \"Telefontid\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-23\",\n \"start_time\": \"17:00\",\n \"end_time\": \"19:00\",\n \"branch_id\": 12\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\": 12\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\": 12\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\": 12\n },\n\n {\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\": 12\n },\n {\n \"id\": 43,\n \"category\": {\n \"title\": \"Selvbetjening\",\n \"color\": \"#FF0000\"\n },\n \"date\": \"2024-03-25\",\n \"start_time\": \"13:00\",\n \"end_time\": \"17:00\",\n \"branch_id\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\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\": 12\n }\n]\n", - "headers" : { } - }, - "uuid" : "7dfc9127-ba40-4098-9dfb-ed65799e99f0", - "persistent" : true, - "priority" : 5, - "insertionIndex" : 1, - "postServeActions" : [ ] -} \ No newline at end of file diff --git a/.docker/wiremock/cms/mappings/opening-hours-all-b0c2a2f9-7b4d-4a6d-8324-13051e946c02.json b/.docker/wiremock/cms/mappings/opening-hours-all-b0c2a2f9-7b4d-4a6d-8324-13051e946c02.json new file mode 100644 index 0000000000..508a51d04b --- /dev/null +++ b/.docker/wiremock/cms/mappings/opening-hours-all-b0c2a2f9-7b4d-4a6d-8324-13051e946c02.json @@ -0,0 +1,20 @@ +{ + "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\": \"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": "b0c2a2f9-7b4d-4a6d-8324-13051e946c02", + "persistent": true, + "priority": 5, + "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/orval.config.ts b/orval.config.ts index b25e6f6426..7c84e1c862 100644 --- a/orval.config.ts +++ b/orval.config.ts @@ -139,7 +139,7 @@ export default defineConfig({ }, input: { target: - "https://raw.githubusercontent.com/danskernesdigitalebibliotek/dpl-cms/opening-hours-api/openapi.json", + "https://raw.githubusercontent.com/danskernesdigitalebibliotek/dpl-cms/opening-hours-repeated/openapi.json", converterOptions: { indent: 2 } diff --git a/package.json b/package.json index 0d4f40d346..02509b5417 100644 --- a/package.json +++ b/package.json @@ -144,7 +144,7 @@ "prop-types": "Since we use former ddb-react components that depend on prop-types we keep this. Should be removed when usage of prop-types is deprecated." }, "dependencies": { - "@danskernesdigitalebibliotek/dpl-design-system": "0.0.0-a5254af2eccd9a9bf4077ee623d29ac580a8a1b5", + "@danskernesdigitalebibliotek/dpl-design-system": "0.0.0-89ee7ca8efb8b6e59286fb5b6f65e9eaba031e11", "@fullcalendar/core": "^6.1.11", "@fullcalendar/daygrid": "^6.1.11", "@fullcalendar/interaction": "^6.1.11", diff --git a/src/apps/opening-hours-editor/ConfirmAddRepeatedOpeningHour.tsx b/src/apps/opening-hours-editor/ConfirmAddRepeatedOpeningHour.tsx new file mode 100644 index 0000000000..089d701a7e --- /dev/null +++ b/src/apps/opening-hours-editor/ConfirmAddRepeatedOpeningHour.tsx @@ -0,0 +1,88 @@ +import React from "react"; +import { useText } from "../../core/utils/text"; +import { OpeningHoursCategoriesType } from "./types"; +import { getDateString, getWeekDayName } from "./helper"; + +type ConfirmAddRepeatedOpeningHourType = { + startDate: Date; + category: OpeningHoursCategoriesType; + startTime: string; + endTime: string; + repeatedEndDate: Date; + confirmSubmit: () => void; + closeDialog: () => void; +}; + +const ConfirmAddRepeatedOpeningHour = ({ + startDate, + category, + startTime, + endTime, + repeatedEndDate, + confirmSubmit, + closeDialog +}: ConfirmAddRepeatedOpeningHourType) => { + const t = useText(); + return ( +
{t("openingHoursEventFormCategoryText")}: | +{category.title} | +
{t("openingHoursEventFormStartTimeText")}: | +{startTime} | +
{t("openingHoursEventFormEndTimeText")}: | +{endTime} | +
{t("openingHoursEventFormStartDateText")}: | +{getDateString(startDate)} | +
{t("openingHoursEventFormEndDateText")}: | +{getDateString(repeatedEndDate)} | +
{t("openingHoursEventFormEveryWeekdayText")}: | +{getWeekDayName(startDate)} | +