chore(models): minor updates on application and jump model
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
"Bash(npm list *)",
|
"Bash(npm list *)",
|
||||||
"Bash(ng update *)",
|
"Bash(ng update *)",
|
||||||
"Bash(npm run *)",
|
"Bash(npm run *)",
|
||||||
"Bash(nvm ls *)"
|
"Bash(nvm ls *)",
|
||||||
|
"Bash(grep -E \"\\\\.\\(js|ts\\)$\")"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
import { FormControl } from '@angular/forms';
|
||||||
|
|
||||||
import { Profile } from './profile.model';
|
import { Profile } from './profile.model';
|
||||||
|
import { ColumnDefinition, PageLinks, PageMeta } from './shared.model';
|
||||||
|
|
||||||
export interface Application {
|
export interface Application {
|
||||||
apikey: string;
|
apikey: string;
|
||||||
@@ -10,3 +13,44 @@ export interface Application {
|
|||||||
createdAt: string;
|
createdAt: string;
|
||||||
updatedAt: 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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -34,10 +34,10 @@ export interface Jump {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum JumpFileType {
|
export enum JumpFileType {
|
||||||
CSV = "csv",
|
CSV = 'csv',
|
||||||
IMAGE = "image",
|
IMAGE = 'image',
|
||||||
KML = "kml",
|
KML = 'kml',
|
||||||
VIDEO = "video"
|
VIDEO = 'video',
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface JumpFile {
|
export interface JumpFile {
|
||||||
@@ -168,12 +168,10 @@ export interface X2Data {
|
|||||||
deployment: number;
|
deployment: number;
|
||||||
};
|
};
|
||||||
cutaway: string;
|
cutaway: string;
|
||||||
malfunctions:Array<
|
malfunctions: Array<{
|
||||||
{
|
name: string;
|
||||||
name: string;
|
type: string;
|
||||||
type: string;
|
}>;
|
||||||
}
|
|
||||||
>;
|
|
||||||
date: string;
|
date: string;
|
||||||
createdOn: string;
|
createdOn: string;
|
||||||
}
|
}
|
||||||
@@ -192,25 +190,25 @@ export interface JumpsPageData {
|
|||||||
jumpsByDateByModule: Array<JumpByDateByModule>;
|
jumpsByDateByModule: Array<JumpByDateByModule>;
|
||||||
jumpsByModule: Array<JumpByModule>;
|
jumpsByModule: Array<JumpByModule>;
|
||||||
jumpsByYears: Array<JumpYears>;
|
jumpsByYears: Array<JumpYears>;
|
||||||
//jumpsFromSkydiverIdApi: SkydiverIdJumps;
|
|
||||||
lastjump: Jump;
|
lastjump: Jump;
|
||||||
/*yearsCount: number;
|
/*yearsCount: number;
|
||||||
jumpsByCategoryCount: number;
|
jumpsByCategoryCount: number;
|
||||||
jumpsByDateCount: number;
|
jumpsByDateCount: number;
|
||||||
jumpsByModuleCount: number;*/
|
jumpsByModuleCount: number;
|
||||||
|
jumpsFromSkydiverIdApi: SkydiverIdJumps;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
export const jumpColumns: Array<ColumnDefinition> = [
|
export const jumpColumns: Array<ColumnDefinition> = [
|
||||||
{
|
{
|
||||||
key: 'isSelected',
|
key: 'isSelected',
|
||||||
type: 'isSelected',
|
type: 'isSelected',
|
||||||
label: ''
|
label: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'date',
|
key: 'date',
|
||||||
type: 'date',
|
type: 'date',
|
||||||
label: 'Date',
|
label: 'Date',
|
||||||
required: true
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'numero',
|
key: 'numero',
|
||||||
@@ -218,82 +216,82 @@ export const jumpColumns: Array<ColumnDefinition> = [
|
|||||||
label: 'Numéro',
|
label: 'Numéro',
|
||||||
required: true,
|
required: true,
|
||||||
min: 0,
|
min: 0,
|
||||||
step: 1
|
step: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'lieu',
|
key: 'lieu',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Lieu'
|
label: 'Lieu',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'oaci',
|
key: 'oaci',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'OACI'
|
label: 'OACI',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'aeronef',
|
key: 'aeronef',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Aéronef'
|
label: 'Aéronef',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'imat',
|
key: 'imat',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Imat.'
|
label: 'Imat.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'hauteur',
|
key: 'hauteur',
|
||||||
type: 'numeric',
|
type: 'numeric',
|
||||||
label: 'Hauteur'
|
label: 'Hauteur',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'deploiement',
|
key: 'deploiement',
|
||||||
type: 'numeric',
|
type: 'numeric',
|
||||||
label: 'Deploiement'
|
label: 'Deploiement',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'voile',
|
key: 'voile',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Voile'
|
label: 'Voile',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'taille',
|
key: 'taille',
|
||||||
type: 'numeric',
|
type: 'numeric',
|
||||||
label: 'Taille'
|
label: 'Taille',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'categorie',
|
key: 'categorie',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Categorie'
|
label: 'Categorie',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'module',
|
key: 'module',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Module'
|
label: 'Module',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'participants',
|
key: 'participants',
|
||||||
type: 'numeric',
|
type: 'numeric',
|
||||||
label: 'Participants'
|
label: 'Participants',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'sautants',
|
key: 'sautants',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Sautants'
|
label: 'Sautants',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'programme',
|
key: 'programme',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Programme'
|
label: 'Programme',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'accessoires',
|
key: 'accessoires',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Accessoires'
|
label: 'Accessoires',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'zone',
|
key: 'zone',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Zone'
|
label: 'Zone',
|
||||||
},
|
},
|
||||||
/*{
|
/*{
|
||||||
key: 'dossier',
|
key: 'dossier',
|
||||||
@@ -303,11 +301,11 @@ export const jumpColumns: Array<ColumnDefinition> = [
|
|||||||
{
|
{
|
||||||
key: 'video',
|
key: 'video',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: 'Vidéo'
|
label: 'Vidéo',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'isEdit',
|
key: 'isEdit',
|
||||||
type: 'isEdit',
|
type: 'isEdit',
|
||||||
label: ''
|
label: '',
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user