-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from mikepsinn/develop
Added typescript types for models
- Loading branch information
Showing
72 changed files
with
16,891 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
} | ||
} | ||
|
Oops, something went wrong.