From 4a9c26364616d7e19eb4784767cb6dcfef86dc9a Mon Sep 17 00:00:00 2001 From: mikheykinnv Date: Wed, 24 Apr 2024 11:44:47 +0800 Subject: [PATCH] MSP-3106 add applications type --- .../ApplicationsPage/applications.type.ts | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/pages/ApplicationsPage/applications.type.ts diff --git a/src/pages/ApplicationsPage/applications.type.ts b/src/pages/ApplicationsPage/applications.type.ts new file mode 100644 index 0000000..b0500c4 --- /dev/null +++ b/src/pages/ApplicationsPage/applications.type.ts @@ -0,0 +1,39 @@ +export interface ApplicationsGroupType { + createdAt: string, + description: string, + domainId: number, + id: number, + name: string, + updatedAt: string +} + +export type NewApplicationsGroupType = Omit +export type UpdateApplicationsGroupType = Omit + +export interface ApplicationsServiceType { + app:ApplicationAppType + tokens: ApplicationTokenType[] +} + +export type NewApplicationTokenType = Omit +export interface ApplicationAppType { + createdAt: string, + description: string, + id: number, + name: string, + serviceId: number, + type: string, + updatedAt: string +} + + +export type UpdateApplicationAppType = Omit +export type NewApplicationAppType = Omit + +export interface ApplicationTokenType { + appId: number, + createdAt: string, + expireTimeMs: number, + token: string +} +