Skip to content

Commit

Permalink
Merge pull request #175 from mikepsinn/develop
Browse files Browse the repository at this point in the history
Added typescript types for models
  • Loading branch information
mikepsinn authored Apr 8, 2024
2 parents 92b32b9 + c619fe9 commit 2fa4a81
Show file tree
Hide file tree
Showing 72 changed files with 16,891 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nextjs/components/userVariable/user-variable-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { QuickMeasurementButton } from '@/components/userVariable/measurements/q
interface UserVariableItemProps {
userVariable: Pick<
UserVariable,
"id" | "name" | "description" | "colorCode" | "createdAt"
"id" | "name" | "description" | "createdAt"
>
}

Expand Down
1 change: 1 addition & 0 deletions apps/nextjs/components/userVariable/user-variable-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Icons } from "@/components/icons"
import { UserVariableAddButton } from "./user-variable-add-button"
import { UserVariableItem } from "./user-variable-item"
import { useEffect, useState } from "react";
import { UserVariable } from "@/types/models/UserVariable";


export function UserVariableList() {
Expand Down
178 changes: 178 additions & 0 deletions apps/nextjs/types/models/AppSettings.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
/**
* Decentralized FDA API
* A platform for quantifying the effects of every drug, supplement, food, and other factor on your health.
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { User } from '../models/User';
import { HttpFile } from '../http/http';

export class AppSettings {
'additionalSettings'?: any;
'appDescription'?: string;
'appDesign'?: any;
'appDisplayName'?: string;
'appStatus'?: any;
'appType'?: string;
'buildEnabled'?: string;
/**
* Get yours at https:://builder.quantimo.do
*/
'clientId'?: string;
/**
* Get yours at https:://builder.quantimo.do
*/
'clientSecret'?: string;
'collaborators'?: Array<User>;
'createdAt'?: string;
/**
* User id of the owner of the application
*/
'userId'?: number;
'users'?: Array<User>;
'redirectUri'?: string;
'companyName'?: string;
'homepageUrl'?: string;
'iconUrl'?: string;
'longDescription'?: string;
'splashScreen'?: string;
'textLogo'?: string;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "additionalSettings",
"baseName": "additionalSettings",
"type": "any",
"format": ""
},
{
"name": "appDescription",
"baseName": "appDescription",
"type": "string",
"format": ""
},
{
"name": "appDesign",
"baseName": "appDesign",
"type": "any",
"format": ""
},
{
"name": "appDisplayName",
"baseName": "appDisplayName",
"type": "string",
"format": ""
},
{
"name": "appStatus",
"baseName": "appStatus",
"type": "any",
"format": ""
},
{
"name": "appType",
"baseName": "appType",
"type": "string",
"format": ""
},
{
"name": "buildEnabled",
"baseName": "buildEnabled",
"type": "string",
"format": ""
},
{
"name": "clientId",
"baseName": "clientId",
"type": "string",
"format": ""
},
{
"name": "clientSecret",
"baseName": "clientSecret",
"type": "string",
"format": ""
},
{
"name": "collaborators",
"baseName": "collaborators",
"type": "Array<User>",
"format": ""
},
{
"name": "createdAt",
"baseName": "createdAt",
"type": "string",
"format": ""
},
{
"name": "userId",
"baseName": "userId",
"type": "number",
"format": "int32"
},
{
"name": "users",
"baseName": "users",
"type": "Array<User>",
"format": ""
},
{
"name": "redirectUri",
"baseName": "redirectUri",
"type": "string",
"format": ""
},
{
"name": "companyName",
"baseName": "companyName",
"type": "string",
"format": ""
},
{
"name": "homepageUrl",
"baseName": "homepageUrl",
"type": "string",
"format": ""
},
{
"name": "iconUrl",
"baseName": "iconUrl",
"type": "string",
"format": ""
},
{
"name": "longDescription",
"baseName": "longDescription",
"type": "string",
"format": ""
},
{
"name": "splashScreen",
"baseName": "splashScreen",
"type": "string",
"format": ""
},
{
"name": "textLogo",
"baseName": "textLogo",
"type": "string",
"format": ""
} ];

static getAttributeTypeMap() {
return AppSettings.attributeTypeMap;
}

public constructor() {
}
}

115 changes: 115 additions & 0 deletions apps/nextjs/types/models/AppSettingsResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
/**
* Decentralized FDA API
* A platform for quantifying the effects of every drug, supplement, food, and other factor on your health.
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { AppSettings } from '../models/AppSettings';
import { Card } from '../models/Card';
import { ErrorResponse } from '../models/ErrorResponse';
import { HttpFile } from '../http/http';

export class AppSettingsResponse {
'appSettings'?: AppSettings;
/**
* Can be used as body of help info popup
*/
'description': string;
/**
* Can be used as title in help info popup
*/
'summary': string;
/**
* Array of error objects with message property
*/
'errors'?: Array<ErrorResponse>;
/**
* ex. OK or ERROR
*/
'status'?: string;
/**
* true or false
*/
'success'?: boolean;
/**
* Response code such as 200
*/
'code'?: number;
/**
* A super neat url you might want to share with your users!
*/
'link'?: string;
'card'?: Card;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "appSettings",
"baseName": "appSettings",
"type": "AppSettings",
"format": ""
},
{
"name": "description",
"baseName": "description",
"type": "string",
"format": ""
},
{
"name": "summary",
"baseName": "summary",
"type": "string",
"format": ""
},
{
"name": "errors",
"baseName": "errors",
"type": "Array<ErrorResponse>",
"format": ""
},
{
"name": "status",
"baseName": "status",
"type": "string",
"format": ""
},
{
"name": "success",
"baseName": "success",
"type": "boolean",
"format": ""
},
{
"name": "code",
"baseName": "code",
"type": "number",
"format": ""
},
{
"name": "link",
"baseName": "link",
"type": "string",
"format": ""
},
{
"name": "card",
"baseName": "card",
"type": "Card",
"format": ""
} ];

static getAttributeTypeMap() {
return AppSettingsResponse.attributeTypeMap;
}

public constructor() {
}
}

59 changes: 59 additions & 0 deletions apps/nextjs/types/models/AuthorizedClients.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* Decentralized FDA API
* A platform for quantifying the effects of every drug, supplement, food, and other factor on your health.
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { AppSettings } from '../models/AppSettings';
import { HttpFile } from '../http/http';

export class AuthorizedClients {
/**
* Applications with access to user measurements for all variables
*/
'apps': Array<AppSettings>;
/**
* Individuals such as physicians or family members with access to user measurements for all variables
*/
'individuals': Array<AppSettings>;
/**
* Studies with access to generally anonymous user measurements for a specific predictor and outcome variable
*/
'studies': Array<AppSettings>;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "apps",
"baseName": "apps",
"type": "Array<AppSettings>",
"format": ""
},
{
"name": "individuals",
"baseName": "individuals",
"type": "Array<AppSettings>",
"format": ""
},
{
"name": "studies",
"baseName": "studies",
"type": "Array<AppSettings>",
"format": ""
} ];

static getAttributeTypeMap() {
return AuthorizedClients.attributeTypeMap;
}

public constructor() {
}
}

Loading

0 comments on commit 2fa4a81

Please sign in to comment.