This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Event Data Structure
Mirza Merdovic edited this page May 26, 2022
·
5 revisions
interface ProjectBase {
id: number;
typeId: number;
name: string;
}
The projects overview page for one account. It lists all available projects, showing an ProjectOverview[]
.
interface ProjectOverview extends ProjectBase {
totalConfigurations: number;
totalEntries: number;
}
The details page for one project, aka the configuration overview page. It lists all configurations for one project, showing an ConfigurationOverview[]
. Allows to add, update and delete them.
interface ProjectDetails extends ProjectBase {
totalEntries: number;
configurations: ConfigurationOverview[];
}
interface ProjectCreateResponse {
id: number;
typeId: number;
name: string;
}
export interface ProjectUpdateResponse {
id: number;
typeId: number;
name: string;
}
export interface ProjectDeleteResponse {
id: number;
typeId: number;
name: string;
}
interface ConfigurationBase {
id: number;
typeId: number;
name: string;
}
The configuration overview page of one project. It lists all available configurations, showing an ConfigurationOverview[]
.
interface ConfigurationOverview extends ConfigurationBase {
entries: number;
}
The details page for one configuration. It lists all configuration entries. Allows to add, update and delete them.
interface ConfigurationDetails extends ConfigurationBase {
entries: ConfigurationEntry[];
}
interface ConfigurationEntry {
id: number;
key: string;
value: string;
disabled: boolean;
expire: number;
}
Example of whole configuration data
{
"id": 1,
"name": "base",
"typeId": 1,
"entries": [
{
"id": 1,
"key": "environment",
"value": "dev"
},
{
"id": 2,
"key": "AUTH_REQUIRED",
"value": true,
"disabled": true,
"secondsToLive": 6901232123
},
{
"id": 3,
"key": "sentry.secret",
"value": "secretsecret"
}
]
}