chore(models): minor updates on application and jump model

This commit is contained in:
2026-04-27 21:28:37 +02:00
parent fa00719a3e
commit 76c97352bc
3 changed files with 78 additions and 35 deletions
+2 -1
View File
@@ -10,7 +10,8 @@
"Bash(npm list *)",
"Bash(ng update *)",
"Bash(npm run *)",
"Bash(nvm ls *)"
"Bash(nvm ls *)",
"Bash(grep -E \"\\\\.\\(js|ts\\)$\")"
]
}
}
+44
View File
@@ -1,4 +1,7 @@
import { FormControl } from '@angular/forms';
import { Profile } from './profile.model';
import { ColumnDefinition, PageLinks, PageMeta } from './shared.model';
export interface Application {
apikey: string;
@@ -10,3 +13,44 @@ export interface Application {
createdAt: string;
updatedAt: string;
}
export const applicationColumns: Array<ColumnDefinition> = [
{
key: 'titre',
type: 'text',
label: 'Titre',
},
{
key: 'maskedkey',
type: 'text',
label: 'Clé masquée',
},
{
key: 'createdat',
type: 'date',
label: 'Date de création',
},
{
key: 'updatedat',
type: 'date',
label: 'Date de mise à jour',
},
];
export interface ApplicationForm {
title: FormControl<string>;
description: FormControl<string>;
}
export interface ApplicationPageData {
application: Application;
prevApplication: Application;
nextApplication: Application;
_links: PageLinks;
_meta: PageMeta;
}
export interface ApplicationsPageData {
applications: Array<Application>;
count: number;
}
+31 -33
View File
@@ -34,10 +34,10 @@ export interface Jump {
}
export enum JumpFileType {
CSV = "csv",
IMAGE = "image",
KML = "kml",
VIDEO = "video"
CSV = 'csv',
IMAGE = 'image',
KML = 'kml',
VIDEO = 'video',
}
export interface JumpFile {
@@ -168,12 +168,10 @@ export interface X2Data {
deployment: number;
};
cutaway: string;
malfunctions:Array<
{
name: string;
type: string;
}
>;
malfunctions: Array<{
name: string;
type: string;
}>;
date: string;
createdOn: string;
}
@@ -192,25 +190,25 @@ export interface JumpsPageData {
jumpsByDateByModule: Array<JumpByDateByModule>;
jumpsByModule: Array<JumpByModule>;
jumpsByYears: Array<JumpYears>;
//jumpsFromSkydiverIdApi: SkydiverIdJumps;
lastjump: Jump;
/*yearsCount: number;
jumpsByCategoryCount: number;
jumpsByDateCount: number;
jumpsByModuleCount: number;*/
jumpsByModuleCount: number;
jumpsFromSkydiverIdApi: SkydiverIdJumps;*/
}
export const jumpColumns: Array<ColumnDefinition> = [
{
key: 'isSelected',
type: 'isSelected',
label: ''
label: '',
},
{
key: 'date',
type: 'date',
label: 'Date',
required: true
required: true,
},
{
key: 'numero',
@@ -218,82 +216,82 @@ export const jumpColumns: Array<ColumnDefinition> = [
label: 'Numéro',
required: true,
min: 0,
step: 1
step: 1,
},
{
key: 'lieu',
type: 'text',
label: 'Lieu'
label: 'Lieu',
},
{
key: 'oaci',
type: 'text',
label: 'OACI'
label: 'OACI',
},
{
key: 'aeronef',
type: 'text',
label: 'Aéronef'
label: 'Aéronef',
},
{
key: 'imat',
type: 'text',
label: 'Imat.'
label: 'Imat.',
},
{
key: 'hauteur',
type: 'numeric',
label: 'Hauteur'
label: 'Hauteur',
},
{
key: 'deploiement',
type: 'numeric',
label: 'Deploiement'
label: 'Deploiement',
},
{
key: 'voile',
type: 'text',
label: 'Voile'
label: 'Voile',
},
{
key: 'taille',
type: 'numeric',
label: 'Taille'
label: 'Taille',
},
{
key: 'categorie',
type: 'text',
label: 'Categorie'
label: 'Categorie',
},
{
key: 'module',
type: 'text',
label: 'Module'
label: 'Module',
},
{
key: 'participants',
type: 'numeric',
label: 'Participants'
label: 'Participants',
},
{
key: 'sautants',
type: 'text',
label: 'Sautants'
label: 'Sautants',
},
{
key: 'programme',
type: 'text',
label: 'Programme'
label: 'Programme',
},
{
key: 'accessoires',
type: 'text',
label: 'Accessoires'
label: 'Accessoires',
},
{
key: 'zone',
type: 'text',
label: 'Zone'
label: 'Zone',
},
/*{
key: 'dossier',
@@ -303,11 +301,11 @@ export const jumpColumns: Array<ColumnDefinition> = [
{
key: 'video',
type: 'text',
label: 'Vidéo'
label: 'Vidéo',
},
{
key: 'isEdit',
type: 'isEdit',
label: ''
}
label: '',
},
];