-
-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
251 additions
and
106 deletions.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
/** | ||
* The state of the action. Can be one of `not started`, `started`, `success`, or `failed`. | ||
*/ | ||
export type ActionEventSchemaState = | ||
(typeof ActionEventSchemaState)[keyof typeof ActionEventSchemaState]; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export const ActionEventSchemaState = { | ||
not_started: 'not started', | ||
started: 'started', | ||
success: 'success', | ||
failed: 'failed', | ||
} as const; |
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { ActionSetEventSchemaActionSet } from './actionSetEventSchemaActionSet'; | ||
import type { ObservableEventSchema } from './observableEventSchema'; | ||
import type { ActionSetEventSchemaState } from './actionSetEventSchemaState'; | ||
|
||
/** | ||
* An object describing an action event. | ||
*/ | ||
export interface ActionSetEventSchema { | ||
/** The action set this action set event belongs to, where the individual actions are decorated with the respective action states. */ | ||
actionSet: ActionSetEventSchemaActionSet; | ||
/** The ID of the action set that the action set event belongs to. */ | ||
actionSetId: number; | ||
/** The date and time of when the action set event was created. In other words, the date and time of when the action set started executing. */ | ||
createdAt: string; | ||
/** The action set event's ID. Action set event IDs are incrementing integers. In other words, a more recently created action set event will always have a higher ID than an older one. */ | ||
id: number; | ||
/** The observable event that triggered this action set event. */ | ||
observableEvent: ObservableEventSchema; | ||
/** The ID of the observable event that triggered this action set event. */ | ||
observableEventId: number; | ||
/** The state of the action set event. Can be one of `started`, `success`, or `failed`. */ | ||
state: ActionSetEventSchemaState; | ||
} |
31 changes: 31 additions & 0 deletions
31
frontend/src/openapi/models/actionSetEventSchemaActionSet.ts
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,31 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { ActionEventSchema } from './actionEventSchema'; | ||
import type { ActionSetEventSchemaActionSetMatch } from './actionSetEventSchemaActionSetMatch'; | ||
|
||
/** | ||
* The action set this action set event belongs to, where the individual actions are decorated with the respective action states. | ||
*/ | ||
export type ActionSetEventSchemaActionSet = { | ||
/** The list of actions executed in sequential order when the action set was triggered, decorated with the individual action states. */ | ||
actions: ActionEventSchema[]; | ||
/** The id of the service account that will execute the action */ | ||
actorId: number; | ||
/** The date and time of when the action set was created. */ | ||
createdAt: string; | ||
/** The ID of the user that created this action set. */ | ||
createdByUserId: number; | ||
/** Whether this action set is enabled or not */ | ||
enabled?: boolean; | ||
/** The ID of the action set. */ | ||
id: number; | ||
/** Defines a matching rule for the observable event that will trigger the action set */ | ||
match: ActionSetEventSchemaActionSetMatch; | ||
/** The name of the action set */ | ||
name: string; | ||
/** The project that this action set belongs to. */ | ||
project: string; | ||
}; |
18 changes: 18 additions & 0 deletions
18
frontend/src/openapi/models/actionSetEventSchemaActionSetMatch.ts
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,18 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { ActionSetEventSchemaActionSetMatchPayload } from './actionSetEventSchemaActionSetMatchPayload'; | ||
|
||
/** | ||
* Defines a matching rule for the observable event that will trigger the action set | ||
*/ | ||
export type ActionSetEventSchemaActionSetMatch = { | ||
/** Match the payload of the observable event */ | ||
payload: ActionSetEventSchemaActionSetMatchPayload; | ||
/** Match the source of the observable event */ | ||
source: string; | ||
/** Match the source id of the observable event */ | ||
sourceId: number; | ||
}; |
10 changes: 10 additions & 0 deletions
10
frontend/src/openapi/models/actionSetEventSchemaActionSetMatchPayload.ts
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,10 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
/** | ||
* Match the payload of the observable event | ||
*/ | ||
export type ActionSetEventSchemaActionSetMatchPayload = { [key: string]: any }; |
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,18 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
/** | ||
* The state of the action set event. Can be one of `started`, `success`, or `failed`. | ||
*/ | ||
export type ActionSetEventSchemaState = | ||
(typeof ActionSetEventSchemaState)[keyof typeof ActionSetEventSchemaState]; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export const ActionSetEventSchemaState = { | ||
started: 'started', | ||
success: 'success', | ||
failed: 'failed', | ||
} as const; |
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,14 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { ActionSetEventSchema } from './actionSetEventSchema'; | ||
|
||
/** | ||
* A response model with a list of action set events. | ||
*/ | ||
export interface ActionSetEventsSchema { | ||
/** A list of action set events. */ | ||
actionSetEvents: ActionSetEventSchema[]; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
frontend/src/openapi/models/applicationOverviewEnvironmentSchema.ts
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,19 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
/** | ||
* Data about an application environment | ||
*/ | ||
export interface ApplicationOverviewEnvironmentSchema { | ||
/** The number of instances of the application environment */ | ||
instanceCount: number; | ||
/** The last time the application environment was seen */ | ||
lastSeen: string; | ||
/** Name of the application environment */ | ||
name: string; | ||
/** SDKs used in the application environment */ | ||
sdks: string[]; | ||
} |
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,18 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { ApplicationOverviewEnvironmentSchema } from './applicationOverviewEnvironmentSchema'; | ||
|
||
/** | ||
* Data about an application that's connected to Unleash via an SDK. | ||
*/ | ||
export interface ApplicationOverviewSchema { | ||
/** The list of environments the application has been using. */ | ||
environments: ApplicationOverviewEnvironmentSchema[]; | ||
/** The number of features the application has been using. */ | ||
featureCount: number; | ||
/** The list of projects the application has been using. */ | ||
projects: string[]; | ||
} |
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,14 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
export type GetApplicationOverview404 = { | ||
/** The ID of the error instance */ | ||
id?: string; | ||
/** A description of what went wrong. */ | ||
message?: string; | ||
/** The name of the error kind */ | ||
name?: string; | ||
}; |
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,28 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
export type GetApplicationsParams = { | ||
/** | ||
* The search query for the application name | ||
*/ | ||
query?: string; | ||
/** | ||
* The number of applications to skip when returning a page. By default it is set to 0. | ||
*/ | ||
offset?: string; | ||
/** | ||
* The number of applications to return in a page. By default it is set to 1000. | ||
*/ | ||
limit?: string; | ||
/** | ||
* The field to sort the results by. By default it is set to "appName". | ||
*/ | ||
sortBy?: string; | ||
/** | ||
* The sort order for the sortBy. By default it is det to "asc". | ||
*/ | ||
sortOrder?: string; | ||
}; |
Oops, something went wrong.