diff --git a/app/home/(user)/(dashboard)/analysis-results/test/test-responses.ts b/app/home/(user)/(dashboard)/analysis-results/test/test-responses.ts index 89c58b2..b232eca 100644 --- a/app/home/(user)/(dashboard)/analysis-results/test/test-responses.ts +++ b/app/home/(user)/(dashboard)/analysis-results/test/test-responses.ts @@ -26,7 +26,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "1744-2" } }, @@ -46,7 +46,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "1920-8" } }, @@ -66,7 +66,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "1988-5" } }, @@ -86,7 +86,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "57747-8" } }, @@ -106,7 +106,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "2276-4" } }, @@ -126,7 +126,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "14771-0" } }, @@ -146,7 +146,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": false, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "59156-0" } }, @@ -166,7 +166,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": true, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "59156-0" } }, @@ -186,7 +186,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "13955-0" } }, @@ -206,7 +206,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "14646-4" } }, @@ -226,7 +226,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "2000-8" } }, @@ -246,7 +246,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "59158-6" } }, @@ -266,7 +266,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "14647-2" } }, @@ -286,7 +286,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "14682-9" } }, @@ -306,7 +306,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "22748-8" } }, @@ -326,7 +326,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "58805-3" } }, @@ -346,7 +346,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "2601-3" } }, @@ -367,7 +367,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "70204-3" } }, @@ -387,7 +387,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "14798-3" } }, @@ -408,7 +408,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "14927-8" } }, @@ -428,7 +428,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "3016-3" } }, @@ -448,7 +448,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "22664-7" } }, @@ -468,7 +468,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "50561-0" } }, @@ -489,7 +489,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "60493-4" } }, @@ -509,7 +509,7 @@ const big1: AnalysisTestResponse = { "responseValueIsWithinNorm": true, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "60025-4" }, } @@ -535,7 +535,7 @@ const big2: AnalysisTestResponse = { "responseValueIsWithinNorm": null, "normLowerIncluded": false, "normUpperIncluded": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "1988-5" } }, @@ -555,6 +555,8 @@ const big2: AnalysisTestResponse = { "responseValue": 150, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "718-7" }, { @@ -567,6 +569,8 @@ const big2: AnalysisTestResponse = { "responseValue": 45, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "4544-3" }, { @@ -579,6 +583,8 @@ const big2: AnalysisTestResponse = { "responseValue": 5, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "6690-2" }, { @@ -591,6 +597,8 @@ const big2: AnalysisTestResponse = { "responseValue": 5, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "789-8" }, { @@ -603,6 +611,8 @@ const big2: AnalysisTestResponse = { "responseValue": 85, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "787-2" }, { @@ -615,6 +625,8 @@ const big2: AnalysisTestResponse = { "responseValue": 30, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "785-6" }, { @@ -627,6 +639,8 @@ const big2: AnalysisTestResponse = { "responseValue": 355, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "786-4" }, { @@ -639,6 +653,8 @@ const big2: AnalysisTestResponse = { "responseValue": 15, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "788-0" }, { @@ -651,6 +667,8 @@ const big2: AnalysisTestResponse = { "responseValue": 255, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "777-3" }, { @@ -663,6 +681,8 @@ const big2: AnalysisTestResponse = { "responseValue": 0.2, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "51637-7" }, { @@ -675,6 +695,8 @@ const big2: AnalysisTestResponse = { "responseValue": 10, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "32623-1" }, { @@ -687,6 +709,8 @@ const big2: AnalysisTestResponse = { "responseValue": 15, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "32207-3" }, { @@ -699,6 +723,8 @@ const big2: AnalysisTestResponse = { "responseValue": 0.05, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "704-7" }, { @@ -711,6 +737,8 @@ const big2: AnalysisTestResponse = { "responseValue": 0.05, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "711-2" }, { @@ -723,6 +751,8 @@ const big2: AnalysisTestResponse = { "responseValue": 5, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "751-8" }, { @@ -735,6 +765,8 @@ const big2: AnalysisTestResponse = { "responseValue": 0.5, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "742-7" }, { @@ -747,6 +779,8 @@ const big2: AnalysisTestResponse = { "responseValue": 1.5, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "731-0" }, { @@ -759,6 +793,8 @@ const big2: AnalysisTestResponse = { "responseValue": 0, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "51584-1" }, { @@ -771,6 +807,8 @@ const big2: AnalysisTestResponse = { "responseValue": 0, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "38518-7" }, { @@ -779,8 +817,12 @@ const big2: AnalysisTestResponse = { "normStatus": 0, "responseTime": "2025-09-12 14:02:04", "responseValue": 0, + "normUpper": null, + "normLower": null, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "771-6" }, { @@ -789,8 +831,12 @@ const big2: AnalysisTestResponse = { "normStatus": 0, "responseTime": "2025-09-12 14:02:04", "responseValue": 0, + "normUpper": null, + "normLower": null, "normLowerIncluded": false, "normUpperIncluded": false, + "responseValueIsNegative": null, + "responseValueIsWithinNorm": null, "analysisElementOriginalId": "58413-6" } ], @@ -804,7 +850,7 @@ const big2: AnalysisTestResponse = { "normUpperIncluded": false, "responseValueIsNegative": false, "responseValueIsWithinNorm": false, - "status": "4", + "status": 4, "analysisElementOriginalId": "57021-8" } }, @@ -825,7 +871,7 @@ const big2: AnalysisTestResponse = { "normUpperIncluded": false, "responseValueIsNegative": false, "responseValueIsWithinNorm": false, - "status": "5", + "status": 5, "analysisElementOriginalId": "43583-4" } }, @@ -846,7 +892,7 @@ const big2: AnalysisTestResponse = { "normUpperIncluded": false, "responseValueIsNegative": null, "responseValueIsWithinNorm": null, - "status": "4", + "status": 4, "analysisElementOriginalId": "60493-4" } } diff --git a/lib/services/medusaCart.service.ts b/lib/services/medusaCart.service.ts index c33ed0d..8d256b6 100644 --- a/lib/services/medusaCart.service.ts +++ b/lib/services/medusaCart.service.ts @@ -9,8 +9,6 @@ import { z } from 'zod'; import { getSupabaseServerClient } from '@kit/supabase/server-client'; -import { requireUserInServerComponent } from '../server/require-user-in-server-component'; - const env = () => z .object({