From f934d0ba11646e5ef26fc0ddcf13c5e0470b91d6 Mon Sep 17 00:00:00 2001 From: Josh Dowdle Date: Mon, 8 Jan 2024 12:53:56 -0700 Subject: [PATCH] feat: support the app version for getting features --- src/types/rest-types.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/types/rest-types.ts b/src/types/rest-types.ts index e2cd5dc3..a8a12c72 100644 --- a/src/types/rest-types.ts +++ b/src/types/rest-types.ts @@ -35,10 +35,16 @@ export type RestAPIEndpoints = FhirAPIEndpoints & { }; 'GET /v1/features': { - Request: { - project?: string; - tag?: string; - }; + Request: + | { + project: string; + tag?: string; + } + | { + project: 'Mobile'; + tag?: string; + currentVersion: string; + }; Response: { [feature: string]: boolean; };