@metarisc/metarisc-js 0.0.1-alpha.2 → 0.0.1-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +10 -2
- package/.github/workflows/main.yml +29 -0
- package/README.md +29 -0
- package/lib/api/DossiersAPI.d.ts +62 -0
- package/lib/api/DossiersAPI.js +136 -0
- package/lib/api/EvenementsAPI.d.ts +41 -0
- package/lib/api/EvenementsAPI.js +90 -0
- package/lib/api/NotificationsAPI.d.ts +30 -0
- package/lib/api/NotificationsAPI.js +71 -0
- package/lib/api/OrganisationAPI.d.ts +19 -0
- package/lib/api/OrganisationAPI.js +43 -0
- package/lib/api/OrganisationsAPI.d.ts +19 -0
- package/lib/api/OrganisationsAPI.js +43 -0
- package/lib/api/PEIAPI.d.ts +43 -0
- package/lib/api/PEIAPI.js +91 -0
- package/lib/api/POIAPI.d.ts +50 -0
- package/lib/api/POIAPI.js +106 -0
- package/lib/api/PingAPI.d.ts +11 -0
- package/lib/api/PingAPI.js +27 -0
- package/lib/api/SupportAPI.d.ts +25 -0
- package/lib/api/SupportAPI.js +57 -0
- package/lib/api/UtilisateursAPI.d.ts +19 -0
- package/lib/api/UtilisateursAPI.js +42 -0
- package/lib/auth/oauth2.d.ts +19 -0
- package/lib/auth/oauth2.js +25 -0
- package/lib/client.d.ts +33 -0
- package/lib/client.js +97 -0
- package/lib/collection.d.ts +42 -0
- package/lib/collection.js +52 -0
- package/lib/core.d.ts +48 -0
- package/lib/core.js +28 -0
- package/lib/index.d.ts +15 -1
- package/lib/index.js +27 -1
- package/lib/metarisc.d.ts +20 -18
- package/lib/metarisc.js +36 -27
- package/lib/model/AdressePostale.d.ts +10 -0
- package/lib/model/AdressePostale.js +2 -0
- package/lib/model/AnomalieDECI.d.ts +10 -0
- package/lib/model/AnomalieDECI.js +9 -0
- package/lib/model/Contact.d.ts +13 -0
- package/lib/model/Contact.js +2 -0
- package/lib/model/DescriptifTechnique.d.ts +40 -0
- package/lib/model/DescriptifTechnique.js +45 -0
- package/lib/model/DescriptifTechniqueBase.d.ts +5 -0
- package/lib/model/DescriptifTechniqueBase.js +2 -0
- package/lib/model/DescriptifTechniqueDECIBase.d.ts +16 -0
- package/lib/model/DescriptifTechniqueDECIBase.js +9 -0
- package/lib/model/DescriptifTechniquePENA.d.ts +43 -0
- package/lib/model/DescriptifTechniquePENA.js +40 -0
- package/lib/model/DescriptifTechniquePENAAllOfRealimentation.d.ts +10 -0
- package/lib/model/DescriptifTechniquePENAAllOfRealimentation.js +9 -0
- package/lib/model/DescriptifTechniquePENAAllOfVolumes.d.ts +4 -0
- package/lib/model/DescriptifTechniquePENAAllOfVolumes.js +2 -0
- package/lib/model/DescriptifTechniquePIBI.d.ts +31 -0
- package/lib/model/DescriptifTechniquePIBI.js +25 -0
- package/lib/model/DescriptifTechniquePIBIAllOfPesees.d.ts +6 -0
- package/lib/model/DescriptifTechniquePIBIAllOfPesees.js +2 -0
- package/lib/model/Document.d.ts +3 -0
- package/lib/model/Document.js +2 -0
- package/lib/model/Dossier.d.ts +17 -0
- package/lib/model/Dossier.js +8 -0
- package/lib/model/Email.d.ts +6 -0
- package/lib/model/Email.js +2 -0
- package/lib/model/Evenement.d.ts +14 -0
- package/lib/model/Evenement.js +10 -0
- package/lib/model/Feature.d.ts +6 -0
- package/lib/model/Feature.js +2 -0
- package/lib/model/FeatureGeometry.d.ts +5 -0
- package/lib/model/FeatureGeometry.js +2 -0
- package/lib/model/GetEvenement404Response.d.ts +6 -0
- package/lib/model/GetEvenement404Response.js +2 -0
- package/lib/model/GetEvenementDetails404Response.d.ts +6 -0
- package/lib/model/GetEvenementDetails404Response.js +2 -0
- package/lib/model/GetFeature200Response.d.ts +7 -0
- package/lib/model/GetFeature200Response.js +2 -0
- package/lib/model/GetFeature200ResponseCrs.d.ts +5 -0
- package/lib/model/GetFeature200ResponseCrs.js +2 -0
- package/lib/model/GetFeature200ResponseCrsProperties.d.ts +3 -0
- package/lib/model/GetFeature200ResponseCrsProperties.js +2 -0
- package/lib/model/GetNotification404Response.d.ts +6 -0
- package/lib/model/GetNotification404Response.js +2 -0
- package/lib/model/Notification.d.ts +12 -0
- package/lib/model/Notification.js +2 -0
- package/lib/model/Organisation.d.ts +9 -0
- package/lib/model/Organisation.js +7 -0
- package/lib/model/PEI.d.ts +13 -0
- package/lib/model/PEI.js +2 -0
- package/lib/model/PEIReferencesExterieuresInner.d.ts +4 -0
- package/lib/model/PEIReferencesExterieuresInner.js +2 -0
- package/lib/model/POI.d.ts +13 -0
- package/lib/model/POI.js +2 -0
- package/lib/model/POIReferencesExterieuresInner.d.ts +4 -0
- package/lib/model/POIReferencesExterieuresInner.js +2 -0
- package/lib/model/PatchPoiRequest.d.ts +3 -0
- package/lib/model/PatchPoiRequest.js +2 -0
- package/lib/model/PieceJointe.d.ts +7 -0
- package/lib/model/PieceJointe.js +2 -0
- package/lib/model/Ping200Response.d.ts +3 -0
- package/lib/model/Ping200Response.js +2 -0
- package/lib/model/PostDossierRequest.d.ts +5 -0
- package/lib/model/PostDossierRequest.js +2 -0
- package/lib/model/PostEvenementRequest.d.ts +7 -0
- package/lib/model/PostEvenementRequest.js +2 -0
- package/lib/model/PostNotification400Response.d.ts +6 -0
- package/lib/model/PostNotification400Response.js +2 -0
- package/lib/model/PostNotification500Response.d.ts +6 -0
- package/lib/model/PostNotification500Response.js +2 -0
- package/lib/model/PostNotificationRequest.d.ts +9 -0
- package/lib/model/PostNotificationRequest.js +2 -0
- package/lib/model/PostTicketRequest.d.ts +10 -0
- package/lib/model/PostTicketRequest.js +2 -0
- package/lib/model/SuiviAdministratif.d.ts +6 -0
- package/lib/model/SuiviAdministratif.js +2 -0
- package/lib/model/Tag.d.ts +3 -0
- package/lib/model/Tag.js +2 -0
- package/lib/model/Ticket.d.ts +17 -0
- package/lib/model/Ticket.js +12 -0
- package/lib/model/Type.d.ts +5 -0
- package/lib/model/Type.js +2 -0
- package/lib/model/Utilisateur.d.ts +12 -0
- package/lib/model/Utilisateur.js +2 -0
- package/lib/model/Utilisateur1.d.ts +3 -0
- package/lib/model/Utilisateur1.js +2 -0
- package/lib/model/Workflow.d.ts +4 -0
- package/lib/model/Workflow.js +2 -0
- package/lib/model/WorkflowBase.d.ts +14 -0
- package/lib/model/WorkflowBase.js +2 -0
- package/lib/model/WorkflowDossiersLies.d.ts +4 -0
- package/lib/model/WorkflowDossiersLies.js +2 -0
- package/lib/model/WorkflowPassageCommissionSecurite.d.ts +4 -0
- package/lib/model/WorkflowPassageCommissionSecurite.js +2 -0
- package/lib/model/WorkflowRemiseEnServicePEI.d.ts +5 -0
- package/lib/model/WorkflowRemiseEnServicePEI.js +2 -0
- package/lib/tus.d.ts +7 -0
- package/lib/tus.js +43 -0
- package/lib/utils.d.ts +8 -0
- package/lib/utils.js +21 -0
- package/package.json +25 -18
- package/src/api/DossiersAPI.ts +155 -0
- package/src/api/EvenementsAPI.ts +101 -0
- package/src/api/NotificationsAPI.ts +79 -0
- package/src/api/OrganisationAPI.ts +46 -0
- package/src/api/OrganisationsAPI.ts +46 -0
- package/src/api/PEIAPI.ts +103 -0
- package/src/api/POIAPI.ts +124 -0
- package/src/api/PingAPI.ts +27 -0
- package/src/api/SupportAPI.ts +63 -0
- package/src/api/UtilisateursAPI.ts +46 -0
- package/src/auth/oauth2.ts +28 -0
- package/src/client.ts +133 -0
- package/src/collection.ts +85 -0
- package/src/core.ts +70 -0
- package/src/index.ts +22 -1
- package/src/metarisc.ts +67 -54
- package/src/model/AdressePostale.ts +10 -0
- package/src/model/AnomalieDECI.ts +11 -0
- package/src/model/Contact.ts +13 -0
- package/src/model/DescriptifTechnique.ts +46 -0
- package/src/model/DescriptifTechniqueBase.ts +5 -0
- package/src/model/DescriptifTechniqueDECIBase.ts +19 -0
- package/src/model/DescriptifTechniquePENA.ts +49 -0
- package/src/model/DescriptifTechniquePENAAllOfRealimentation.ts +11 -0
- package/src/model/DescriptifTechniquePENAAllOfVolumes.ts +4 -0
- package/src/model/DescriptifTechniquePIBI.ts +36 -0
- package/src/model/DescriptifTechniquePIBIAllOfPesees.ts +6 -0
- package/src/model/Document.ts +3 -0
- package/src/model/Dossier.ts +19 -0
- package/src/model/Email.ts +6 -0
- package/src/model/Evenement.ts +15 -0
- package/src/model/Feature.ts +7 -0
- package/src/model/FeatureGeometry.ts +5 -0
- package/src/model/GetEvenement404Response.ts +6 -0
- package/src/model/GetEvenementDetails404Response.ts +6 -0
- package/src/model/GetFeature200Response.ts +8 -0
- package/src/model/GetFeature200ResponseCrs.ts +6 -0
- package/src/model/GetFeature200ResponseCrsProperties.ts +3 -0
- package/src/model/GetNotification404Response.ts +6 -0
- package/src/model/Notification.ts +12 -0
- package/src/model/Organisation.ts +10 -0
- package/src/model/PEI.ts +14 -0
- package/src/model/PEIReferencesExterieuresInner.ts +4 -0
- package/src/model/POI.ts +14 -0
- package/src/model/POIReferencesExterieuresInner.ts +4 -0
- package/src/model/PatchPoiRequest.ts +3 -0
- package/src/model/PieceJointe.ts +7 -0
- package/src/model/Ping200Response.ts +3 -0
- package/src/model/PostDossierRequest.ts +5 -0
- package/src/model/PostEvenementRequest.ts +7 -0
- package/src/model/PostNotification400Response.ts +6 -0
- package/src/model/PostNotification500Response.ts +6 -0
- package/src/model/PostNotificationRequest.ts +9 -0
- package/src/model/PostTicketRequest.ts +10 -0
- package/src/model/SuiviAdministratif.ts +6 -0
- package/src/model/Tag.ts +3 -0
- package/src/model/Ticket.ts +18 -0
- package/src/model/Type.ts +5 -0
- package/src/model/Utilisateur.ts +12 -0
- package/src/model/Utilisateur1.ts +3 -0
- package/src/model/Workflow.ts +5 -0
- package/src/model/WorkflowBase.ts +14 -0
- package/src/model/WorkflowDossiersLies.ts +5 -0
- package/src/model/WorkflowPassageCommissionSecurite.ts +5 -0
- package/src/model/WorkflowRemiseEnServicePEI.ts +6 -0
- package/src/tus.ts +44 -0
- package/src/utils.ts +23 -0
- package/tsconfig.json +11 -10
package/src/metarisc.ts
CHANGED
|
@@ -1,63 +1,76 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Core, MetariscConfig } from "./core";
|
|
2
|
+
import { Tus } from "./tus";
|
|
3
|
+
import { Client } from "./client";
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
body ?: any,
|
|
5
|
-
headers ?: {[name: string]: string | string[]},
|
|
6
|
-
params ?: {[param: string]: string | string[]},
|
|
7
|
-
endpoint ?: string,
|
|
8
|
-
method ?: string
|
|
9
|
-
}
|
|
5
|
+
import { DossiersAPI } from './api/DossiersAPI';
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
private axios : AxiosInstance;
|
|
7
|
+
import { EvenementsAPI } from './api/EvenementsAPI';
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
this.axios = axios.create({
|
|
18
|
-
baseURL: 'https://api.metarisc.fr/'
|
|
19
|
-
});
|
|
20
|
-
}
|
|
9
|
+
import { NotificationsAPI } from './api/NotificationsAPI';
|
|
21
10
|
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
return this.axios.request<T>({
|
|
25
|
-
method: config.method || 'GET',
|
|
26
|
-
url: config.endpoint || '/',
|
|
27
|
-
params: config.params,
|
|
28
|
-
data: config.body,
|
|
29
|
-
headers: config.headers
|
|
30
|
-
});
|
|
31
|
-
}
|
|
11
|
+
import { OrganisationsAPI } from './api/OrganisationsAPI';
|
|
32
12
|
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
let current_page : number = config.params && 'page' in config.params ? parseInt(config.params['page'].toString()) : 1;
|
|
36
|
-
const per_page : number = config.params && 'per_page' in config.params ? parseInt(config.params['per_page'].toString()) : 25;
|
|
37
|
-
|
|
38
|
-
while (true) {
|
|
39
|
-
const response = <AxiosResponse<{
|
|
40
|
-
data?: Array<T>;
|
|
41
|
-
meta?: {
|
|
42
|
-
pagination?: {
|
|
43
|
-
total?: number;
|
|
44
|
-
count?: number;
|
|
45
|
-
per_page?: number;
|
|
46
|
-
current_page?: number;
|
|
47
|
-
total_pages?: number;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
}>> await this.request({...config, ...{params: {page: current_page.toString(), per_page: per_page.toString()}}});
|
|
51
|
-
|
|
52
|
-
for (const element of response.data.data) {
|
|
53
|
-
yield element;
|
|
54
|
-
}
|
|
13
|
+
import { PEIAPI } from './api/PEIAPI';
|
|
55
14
|
|
|
56
|
-
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
15
|
+
import { PingAPI } from './api/PingAPI';
|
|
59
16
|
|
|
60
|
-
|
|
61
|
-
|
|
17
|
+
import { UtilisateursAPI } from './api/UtilisateursAPI';
|
|
18
|
+
|
|
19
|
+
export class Metarisc extends Core
|
|
20
|
+
{
|
|
21
|
+
|
|
22
|
+
public utilisateurs?: UtilisateursAPI;
|
|
23
|
+
|
|
24
|
+
public dossiers?: DossiersAPI;
|
|
25
|
+
|
|
26
|
+
public organisations?: OrganisationsAPI;
|
|
27
|
+
|
|
28
|
+
public pei?: PEIAPI;
|
|
29
|
+
|
|
30
|
+
public ping?: PingAPI;
|
|
31
|
+
|
|
32
|
+
public evenements?: EvenementsAPI;
|
|
33
|
+
|
|
34
|
+
public notifications?: NotificationsAPI;
|
|
35
|
+
|
|
36
|
+
public tus?: Tus;
|
|
37
|
+
|
|
38
|
+
constructor(config: MetariscConfig, client?: Client) {
|
|
39
|
+
super(config, client);
|
|
40
|
+
|
|
41
|
+
const tmpClient = this.client;
|
|
42
|
+
|
|
43
|
+
return new Proxy(this, {
|
|
44
|
+
get: function(metarisc, name, receiver) {
|
|
45
|
+
switch(name) {
|
|
46
|
+
|
|
47
|
+
case 'utilisateurs':
|
|
48
|
+
return new UtilisateursAPI(config, tmpClient);
|
|
49
|
+
|
|
50
|
+
case 'dossiers':
|
|
51
|
+
return new DossiersAPI(config, tmpClient);
|
|
52
|
+
|
|
53
|
+
case 'organisations':
|
|
54
|
+
return new OrganisationsAPI(config, tmpClient);
|
|
55
|
+
|
|
56
|
+
case 'pei':
|
|
57
|
+
return new PEIAPI(config, tmpClient);
|
|
58
|
+
|
|
59
|
+
case 'ping':
|
|
60
|
+
return new PingAPI(config, tmpClient);
|
|
61
|
+
|
|
62
|
+
case 'evenements':
|
|
63
|
+
return new EvenementsAPI(config, tmpClient);
|
|
64
|
+
|
|
65
|
+
case 'notifications':
|
|
66
|
+
return new NotificationsAPI(config, tmpClient);
|
|
67
|
+
|
|
68
|
+
case 'tus':
|
|
69
|
+
return new Tus(config, tmpClient);
|
|
70
|
+
default:
|
|
71
|
+
return Reflect.get(metarisc, name, receiver);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
62
75
|
}
|
|
63
76
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type Contact = {
|
|
2
|
+
'id'?: string;
|
|
3
|
+
'nom'?: string;
|
|
4
|
+
'prenom'?: string;
|
|
5
|
+
'fonction'?: string;
|
|
6
|
+
'telephone'?: string;
|
|
7
|
+
'adresse'?: string;
|
|
8
|
+
'site_web_url'?: string;
|
|
9
|
+
'civilite'?: string;
|
|
10
|
+
'societe'?: string;
|
|
11
|
+
'email'?: string;
|
|
12
|
+
'observations'?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DescriptifTechniquePENA } from '../../src/model/DescriptifTechniquePENA';
|
|
2
|
+
import { DescriptifTechniquePIBI } from '../../src/model/DescriptifTechniquePIBI';
|
|
3
|
+
|
|
4
|
+
export type DescriptifTechnique = DescriptifTechniquePIBI | DescriptifTechniquePENA;
|
|
5
|
+
|
|
6
|
+
export enum DomanialiteEnum {
|
|
7
|
+
Privee = 'privee',
|
|
8
|
+
Publique = 'publique',
|
|
9
|
+
PriveeConventionnee = 'privee_conventionnee'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum NatureEnum {
|
|
13
|
+
PointAspiration = 'POINT_ASPIRATION',
|
|
14
|
+
CiterneAerienne = 'CITERNE_AERIENNE',
|
|
15
|
+
CiterneEnterree = 'CITERNE_ENTERREE',
|
|
16
|
+
CiterneSemiEnterree = 'CITERNE_SEMI_ENTERREE',
|
|
17
|
+
CiterneSouple = 'CITERNE_SOUPLE',
|
|
18
|
+
ReserveAerienne = 'RESERVE_AERIENNE',
|
|
19
|
+
PoteauRelais = 'POTEAU_RELAIS',
|
|
20
|
+
PuisardAspiration = 'PUISARD_ASPIRATION',
|
|
21
|
+
PriseDeportee = 'PRISE_DEPORTEE',
|
|
22
|
+
PoteauAspiration1x100 = 'POTEAU_ASPIRATION_1x100',
|
|
23
|
+
PoteauAspiration2x100 = 'POTEAU_ASPIRATION_2x100',
|
|
24
|
+
BoucheAspiration1x100 = 'BOUCHE_ASPIRATION_1x100'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum CaracteristiquesParticulieresEnum {
|
|
28
|
+
Renversable = 'RENVERSABLE',
|
|
29
|
+
PreMelange = 'PRE_MELANGE'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export enum EssaisEnginUtiliseEnum {
|
|
33
|
+
Aucun = 'AUCUN',
|
|
34
|
+
Fpt = 'FPT',
|
|
35
|
+
Mpr = 'MPR',
|
|
36
|
+
Ccf = 'CCF'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export enum EquipementsEnum {
|
|
40
|
+
Guichet = 'GUICHET',
|
|
41
|
+
CanneAspiration = 'CANNE_ASPIRATION',
|
|
42
|
+
Puit = 'PUIT',
|
|
43
|
+
TrouHomme = 'TROU_HOMME',
|
|
44
|
+
RaccordTournant = 'RACCORD_TOURNANT',
|
|
45
|
+
PriseDirecte = 'PRISE_DIRECTE'
|
|
46
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AnomalieDECI } from '../../src/model/AnomalieDECI';
|
|
2
|
+
|
|
3
|
+
import { DescriptifTechniqueBase } from '../model/DescriptifTechniqueBase';
|
|
4
|
+
|
|
5
|
+
export type DescriptifTechniqueDECIBase = DescriptifTechniqueBase & {
|
|
6
|
+
'anomalies'?: Array<AnomalieDECI>;
|
|
7
|
+
'est_reglementaire'?: boolean;
|
|
8
|
+
'est_reforme'?: boolean;
|
|
9
|
+
'domanialite'?: DomanialiteEnum;
|
|
10
|
+
'est_conforme'?: boolean;
|
|
11
|
+
'performance_theorique'?: number;
|
|
12
|
+
'performance_reelle'?: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export enum DomanialiteEnum {
|
|
16
|
+
Privee = 'privee',
|
|
17
|
+
Publique = 'publique',
|
|
18
|
+
PriveeConventionnee = 'privee_conventionnee'
|
|
19
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DescriptifTechniquePENAAllOfRealimentation } from '../../src/model/DescriptifTechniquePENAAllOfRealimentation';
|
|
2
|
+
import { DescriptifTechniquePENAAllOfVolumes } from '../../src/model/DescriptifTechniquePENAAllOfVolumes';
|
|
3
|
+
|
|
4
|
+
import { DescriptifTechniqueDECIBase } from '../model/DescriptifTechniqueDECIBase';
|
|
5
|
+
|
|
6
|
+
export type DescriptifTechniquePENA = DescriptifTechniqueDECIBase & {
|
|
7
|
+
'essais_engin_utilise'?: EssaisEnginUtiliseEnum;
|
|
8
|
+
'equipements'?: EquipementsEnum;
|
|
9
|
+
'nature'?: NatureEnum;
|
|
10
|
+
'volumes'?: DescriptifTechniquePENAAllOfVolumes;
|
|
11
|
+
'realimentation'?: Array<DescriptifTechniquePENAAllOfRealimentation>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export enum DomanialiteEnum {
|
|
15
|
+
Privee = 'privee',
|
|
16
|
+
Publique = 'publique',
|
|
17
|
+
PriveeConventionnee = 'privee_conventionnee'
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum EssaisEnginUtiliseEnum {
|
|
21
|
+
Aucun = 'AUCUN',
|
|
22
|
+
Fpt = 'FPT',
|
|
23
|
+
Mpr = 'MPR',
|
|
24
|
+
Ccf = 'CCF'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum EquipementsEnum {
|
|
28
|
+
Guichet = 'GUICHET',
|
|
29
|
+
CanneAspiration = 'CANNE_ASPIRATION',
|
|
30
|
+
Puit = 'PUIT',
|
|
31
|
+
TrouHomme = 'TROU_HOMME',
|
|
32
|
+
RaccordTournant = 'RACCORD_TOURNANT',
|
|
33
|
+
PriseDirecte = 'PRISE_DIRECTE'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export enum NatureEnum {
|
|
37
|
+
PointAspiration = 'POINT_ASPIRATION',
|
|
38
|
+
CiterneAerienne = 'CITERNE_AERIENNE',
|
|
39
|
+
CiterneEnterree = 'CITERNE_ENTERREE',
|
|
40
|
+
CiterneSemiEnterree = 'CITERNE_SEMI_ENTERREE',
|
|
41
|
+
CiterneSouple = 'CITERNE_SOUPLE',
|
|
42
|
+
ReserveAerienne = 'RESERVE_AERIENNE',
|
|
43
|
+
PoteauRelais = 'POTEAU_RELAIS',
|
|
44
|
+
PuisardAspiration = 'PUISARD_ASPIRATION',
|
|
45
|
+
PriseDeportee = 'PRISE_DEPORTEE',
|
|
46
|
+
PoteauAspiration1x100 = 'POTEAU_ASPIRATION_1x100',
|
|
47
|
+
PoteauAspiration2x100 = 'POTEAU_ASPIRATION_2x100',
|
|
48
|
+
BoucheAspiration1x100 = 'BOUCHE_ASPIRATION_1x100'
|
|
49
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DescriptifTechniquePIBIAllOfPesees } from '../../src/model/DescriptifTechniquePIBIAllOfPesees';
|
|
2
|
+
|
|
3
|
+
import { DescriptifTechniqueDECIBase } from '../model/DescriptifTechniqueDECIBase';
|
|
4
|
+
|
|
5
|
+
export type DescriptifTechniquePIBI = DescriptifTechniqueDECIBase & {
|
|
6
|
+
'numero_serie_appareil'?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Surpression mesurée en bar
|
|
9
|
+
*/
|
|
10
|
+
'surpression'?: number;
|
|
11
|
+
'nature'?: NatureEnum;
|
|
12
|
+
'caracteristiques_particulieres'?: CaracteristiquesParticulieresEnum;
|
|
13
|
+
'pesees'?: DescriptifTechniquePIBIAllOfPesees;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export enum DomanialiteEnum {
|
|
17
|
+
Privee = 'privee',
|
|
18
|
+
Publique = 'publique',
|
|
19
|
+
PriveeConventionnee = 'privee_conventionnee'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum NatureEnum {
|
|
23
|
+
Pi1x65 = 'PI1x65',
|
|
24
|
+
Pi1x65Pi2x45 = 'PI1x65+PI2x45',
|
|
25
|
+
Pi1x100 = 'PI1x100',
|
|
26
|
+
Pi2x100 = 'PI2x100',
|
|
27
|
+
Bi1x65 = 'BI1x65',
|
|
28
|
+
Bi1x80 = 'BI1x80',
|
|
29
|
+
Bi1x100 = 'BI1x100',
|
|
30
|
+
Bi2x100 = 'BI2x100'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export enum CaracteristiquesParticulieresEnum {
|
|
34
|
+
Renversable = 'RENVERSABLE',
|
|
35
|
+
PreMelange = 'PRE_MELANGE'
|
|
36
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Type } from '../../src/model/Type';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Un dossier représente la vie d\'un POI
|
|
5
|
+
*/
|
|
6
|
+
export type Dossier = {
|
|
7
|
+
'id'?: string;
|
|
8
|
+
'type'?: Type;
|
|
9
|
+
'description'?: string;
|
|
10
|
+
'date_de_creation'?: Date;
|
|
11
|
+
'createur'?: string;
|
|
12
|
+
'application_utilisee'?: string;
|
|
13
|
+
'statut'?: StatutEnum;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export enum StatutEnum {
|
|
17
|
+
Ouvert = 'OUVERT',
|
|
18
|
+
Clos = 'CLOS'
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Evenement = {
|
|
2
|
+
'id'?: string;
|
|
3
|
+
'title'?: string;
|
|
4
|
+
'type'?: TypeEnum;
|
|
5
|
+
'description'?: string;
|
|
6
|
+
'date_debut'?: Date;
|
|
7
|
+
'date_fin'?: Date;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export enum TypeEnum {
|
|
11
|
+
Defaut = 'DEFAUT',
|
|
12
|
+
ReconnaissanceOperationnelleAnnuelle = 'RECONNAISSANCE_OPERATIONNELLE_ANNUELLE',
|
|
13
|
+
VisitePeriodique = 'VISITE_PERIODIQUE',
|
|
14
|
+
CommissionSecurite = 'COMMISSION_SECURITE'
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Feature } from '../../src/model/Feature';
|
|
2
|
+
import { GetFeature200ResponseCrs } from '../../src/model/GetFeature200ResponseCrs';
|
|
3
|
+
|
|
4
|
+
export type GetFeature200Response = {
|
|
5
|
+
'type'?: string;
|
|
6
|
+
'crs'?: GetFeature200ResponseCrs;
|
|
7
|
+
'features'?: Array<Feature>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Une notification est un objet créé pour avertir ou informer un utilisateur pour un évévemenent spécifique.
|
|
3
|
+
*/
|
|
4
|
+
export type Notification = {
|
|
5
|
+
'id'?: string;
|
|
6
|
+
'title': string;
|
|
7
|
+
'message': string;
|
|
8
|
+
'contexte': any;
|
|
9
|
+
'date_creation': Date;
|
|
10
|
+
'date_de_lecture'?: Date;
|
|
11
|
+
'utilisateur_id'?: string;
|
|
12
|
+
};
|
package/src/model/PEI.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AdressePostale } from '../../src/model/AdressePostale';
|
|
2
|
+
import { DescriptifTechnique } from '../../src/model/DescriptifTechnique';
|
|
3
|
+
import { PEIReferencesExterieuresInner } from '../../src/model/PEIReferencesExterieuresInner';
|
|
4
|
+
|
|
5
|
+
export type PEI = {
|
|
6
|
+
'id'?: string;
|
|
7
|
+
'date_de_realisation'?: Date;
|
|
8
|
+
'date_de_derniere_mise_a_jour'?: Date;
|
|
9
|
+
'statut'?: string;
|
|
10
|
+
'references_exterieures'?: Array<PEIReferencesExterieuresInner>;
|
|
11
|
+
'descriptif_technique'?: DescriptifTechnique;
|
|
12
|
+
'geometrie'?: string;
|
|
13
|
+
'adresse_postale'?: AdressePostale;
|
|
14
|
+
};
|
package/src/model/POI.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AdressePostale } from '../../src/model/AdressePostale';
|
|
2
|
+
import { DescriptifTechnique } from '../../src/model/DescriptifTechnique';
|
|
3
|
+
import { POIReferencesExterieuresInner } from '../../src/model/POIReferencesExterieuresInner';
|
|
4
|
+
|
|
5
|
+
export type POI = {
|
|
6
|
+
'id'?: string;
|
|
7
|
+
'date_de_realisation'?: Date;
|
|
8
|
+
'date_de_derniere_mise_a_jour'?: Date;
|
|
9
|
+
'statut'?: string;
|
|
10
|
+
'references_exterieures'?: Array<POIReferencesExterieuresInner>;
|
|
11
|
+
'descriptif_technique'?: DescriptifTechnique;
|
|
12
|
+
'geometrie'?: string;
|
|
13
|
+
'adresse_postale'?: AdressePostale;
|
|
14
|
+
};
|
package/src/model/Tag.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Ticket = {
|
|
2
|
+
'id': number;
|
|
3
|
+
'subject': string;
|
|
4
|
+
'description': string;
|
|
5
|
+
'description_html'?: string;
|
|
6
|
+
'status': StatusEnum;
|
|
7
|
+
'created_at'?: Date;
|
|
8
|
+
'updated_at'?: Date;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export enum StatusEnum {
|
|
12
|
+
New = 'new',
|
|
13
|
+
Open = 'open',
|
|
14
|
+
Pending = 'pending',
|
|
15
|
+
Hold = 'hold',
|
|
16
|
+
Solved = 'solved',
|
|
17
|
+
Closed = 'closed'
|
|
18
|
+
}
|