@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.
Files changed (206) hide show
  1. package/.eslintrc +10 -2
  2. package/.github/workflows/main.yml +29 -0
  3. package/README.md +29 -0
  4. package/lib/api/DossiersAPI.d.ts +62 -0
  5. package/lib/api/DossiersAPI.js +136 -0
  6. package/lib/api/EvenementsAPI.d.ts +41 -0
  7. package/lib/api/EvenementsAPI.js +90 -0
  8. package/lib/api/NotificationsAPI.d.ts +30 -0
  9. package/lib/api/NotificationsAPI.js +71 -0
  10. package/lib/api/OrganisationAPI.d.ts +19 -0
  11. package/lib/api/OrganisationAPI.js +43 -0
  12. package/lib/api/OrganisationsAPI.d.ts +19 -0
  13. package/lib/api/OrganisationsAPI.js +43 -0
  14. package/lib/api/PEIAPI.d.ts +43 -0
  15. package/lib/api/PEIAPI.js +91 -0
  16. package/lib/api/POIAPI.d.ts +50 -0
  17. package/lib/api/POIAPI.js +106 -0
  18. package/lib/api/PingAPI.d.ts +11 -0
  19. package/lib/api/PingAPI.js +27 -0
  20. package/lib/api/SupportAPI.d.ts +25 -0
  21. package/lib/api/SupportAPI.js +57 -0
  22. package/lib/api/UtilisateursAPI.d.ts +19 -0
  23. package/lib/api/UtilisateursAPI.js +42 -0
  24. package/lib/auth/oauth2.d.ts +19 -0
  25. package/lib/auth/oauth2.js +25 -0
  26. package/lib/client.d.ts +33 -0
  27. package/lib/client.js +97 -0
  28. package/lib/collection.d.ts +42 -0
  29. package/lib/collection.js +52 -0
  30. package/lib/core.d.ts +48 -0
  31. package/lib/core.js +28 -0
  32. package/lib/index.d.ts +15 -1
  33. package/lib/index.js +27 -1
  34. package/lib/metarisc.d.ts +20 -18
  35. package/lib/metarisc.js +36 -27
  36. package/lib/model/AdressePostale.d.ts +10 -0
  37. package/lib/model/AdressePostale.js +2 -0
  38. package/lib/model/AnomalieDECI.d.ts +10 -0
  39. package/lib/model/AnomalieDECI.js +9 -0
  40. package/lib/model/Contact.d.ts +13 -0
  41. package/lib/model/Contact.js +2 -0
  42. package/lib/model/DescriptifTechnique.d.ts +40 -0
  43. package/lib/model/DescriptifTechnique.js +45 -0
  44. package/lib/model/DescriptifTechniqueBase.d.ts +5 -0
  45. package/lib/model/DescriptifTechniqueBase.js +2 -0
  46. package/lib/model/DescriptifTechniqueDECIBase.d.ts +16 -0
  47. package/lib/model/DescriptifTechniqueDECIBase.js +9 -0
  48. package/lib/model/DescriptifTechniquePENA.d.ts +43 -0
  49. package/lib/model/DescriptifTechniquePENA.js +40 -0
  50. package/lib/model/DescriptifTechniquePENAAllOfRealimentation.d.ts +10 -0
  51. package/lib/model/DescriptifTechniquePENAAllOfRealimentation.js +9 -0
  52. package/lib/model/DescriptifTechniquePENAAllOfVolumes.d.ts +4 -0
  53. package/lib/model/DescriptifTechniquePENAAllOfVolumes.js +2 -0
  54. package/lib/model/DescriptifTechniquePIBI.d.ts +31 -0
  55. package/lib/model/DescriptifTechniquePIBI.js +25 -0
  56. package/lib/model/DescriptifTechniquePIBIAllOfPesees.d.ts +6 -0
  57. package/lib/model/DescriptifTechniquePIBIAllOfPesees.js +2 -0
  58. package/lib/model/Document.d.ts +3 -0
  59. package/lib/model/Document.js +2 -0
  60. package/lib/model/Dossier.d.ts +17 -0
  61. package/lib/model/Dossier.js +8 -0
  62. package/lib/model/Email.d.ts +6 -0
  63. package/lib/model/Email.js +2 -0
  64. package/lib/model/Evenement.d.ts +14 -0
  65. package/lib/model/Evenement.js +10 -0
  66. package/lib/model/Feature.d.ts +6 -0
  67. package/lib/model/Feature.js +2 -0
  68. package/lib/model/FeatureGeometry.d.ts +5 -0
  69. package/lib/model/FeatureGeometry.js +2 -0
  70. package/lib/model/GetEvenement404Response.d.ts +6 -0
  71. package/lib/model/GetEvenement404Response.js +2 -0
  72. package/lib/model/GetEvenementDetails404Response.d.ts +6 -0
  73. package/lib/model/GetEvenementDetails404Response.js +2 -0
  74. package/lib/model/GetFeature200Response.d.ts +7 -0
  75. package/lib/model/GetFeature200Response.js +2 -0
  76. package/lib/model/GetFeature200ResponseCrs.d.ts +5 -0
  77. package/lib/model/GetFeature200ResponseCrs.js +2 -0
  78. package/lib/model/GetFeature200ResponseCrsProperties.d.ts +3 -0
  79. package/lib/model/GetFeature200ResponseCrsProperties.js +2 -0
  80. package/lib/model/GetNotification404Response.d.ts +6 -0
  81. package/lib/model/GetNotification404Response.js +2 -0
  82. package/lib/model/Notification.d.ts +12 -0
  83. package/lib/model/Notification.js +2 -0
  84. package/lib/model/Organisation.d.ts +9 -0
  85. package/lib/model/Organisation.js +7 -0
  86. package/lib/model/PEI.d.ts +13 -0
  87. package/lib/model/PEI.js +2 -0
  88. package/lib/model/PEIReferencesExterieuresInner.d.ts +4 -0
  89. package/lib/model/PEIReferencesExterieuresInner.js +2 -0
  90. package/lib/model/POI.d.ts +13 -0
  91. package/lib/model/POI.js +2 -0
  92. package/lib/model/POIReferencesExterieuresInner.d.ts +4 -0
  93. package/lib/model/POIReferencesExterieuresInner.js +2 -0
  94. package/lib/model/PatchPoiRequest.d.ts +3 -0
  95. package/lib/model/PatchPoiRequest.js +2 -0
  96. package/lib/model/PieceJointe.d.ts +7 -0
  97. package/lib/model/PieceJointe.js +2 -0
  98. package/lib/model/Ping200Response.d.ts +3 -0
  99. package/lib/model/Ping200Response.js +2 -0
  100. package/lib/model/PostDossierRequest.d.ts +5 -0
  101. package/lib/model/PostDossierRequest.js +2 -0
  102. package/lib/model/PostEvenementRequest.d.ts +7 -0
  103. package/lib/model/PostEvenementRequest.js +2 -0
  104. package/lib/model/PostNotification400Response.d.ts +6 -0
  105. package/lib/model/PostNotification400Response.js +2 -0
  106. package/lib/model/PostNotification500Response.d.ts +6 -0
  107. package/lib/model/PostNotification500Response.js +2 -0
  108. package/lib/model/PostNotificationRequest.d.ts +9 -0
  109. package/lib/model/PostNotificationRequest.js +2 -0
  110. package/lib/model/PostTicketRequest.d.ts +10 -0
  111. package/lib/model/PostTicketRequest.js +2 -0
  112. package/lib/model/SuiviAdministratif.d.ts +6 -0
  113. package/lib/model/SuiviAdministratif.js +2 -0
  114. package/lib/model/Tag.d.ts +3 -0
  115. package/lib/model/Tag.js +2 -0
  116. package/lib/model/Ticket.d.ts +17 -0
  117. package/lib/model/Ticket.js +12 -0
  118. package/lib/model/Type.d.ts +5 -0
  119. package/lib/model/Type.js +2 -0
  120. package/lib/model/Utilisateur.d.ts +12 -0
  121. package/lib/model/Utilisateur.js +2 -0
  122. package/lib/model/Utilisateur1.d.ts +3 -0
  123. package/lib/model/Utilisateur1.js +2 -0
  124. package/lib/model/Workflow.d.ts +4 -0
  125. package/lib/model/Workflow.js +2 -0
  126. package/lib/model/WorkflowBase.d.ts +14 -0
  127. package/lib/model/WorkflowBase.js +2 -0
  128. package/lib/model/WorkflowDossiersLies.d.ts +4 -0
  129. package/lib/model/WorkflowDossiersLies.js +2 -0
  130. package/lib/model/WorkflowPassageCommissionSecurite.d.ts +4 -0
  131. package/lib/model/WorkflowPassageCommissionSecurite.js +2 -0
  132. package/lib/model/WorkflowRemiseEnServicePEI.d.ts +5 -0
  133. package/lib/model/WorkflowRemiseEnServicePEI.js +2 -0
  134. package/lib/tus.d.ts +7 -0
  135. package/lib/tus.js +43 -0
  136. package/lib/utils.d.ts +8 -0
  137. package/lib/utils.js +21 -0
  138. package/package.json +25 -18
  139. package/src/api/DossiersAPI.ts +155 -0
  140. package/src/api/EvenementsAPI.ts +101 -0
  141. package/src/api/NotificationsAPI.ts +79 -0
  142. package/src/api/OrganisationAPI.ts +46 -0
  143. package/src/api/OrganisationsAPI.ts +46 -0
  144. package/src/api/PEIAPI.ts +103 -0
  145. package/src/api/POIAPI.ts +124 -0
  146. package/src/api/PingAPI.ts +27 -0
  147. package/src/api/SupportAPI.ts +63 -0
  148. package/src/api/UtilisateursAPI.ts +46 -0
  149. package/src/auth/oauth2.ts +28 -0
  150. package/src/client.ts +133 -0
  151. package/src/collection.ts +85 -0
  152. package/src/core.ts +70 -0
  153. package/src/index.ts +22 -1
  154. package/src/metarisc.ts +67 -54
  155. package/src/model/AdressePostale.ts +10 -0
  156. package/src/model/AnomalieDECI.ts +11 -0
  157. package/src/model/Contact.ts +13 -0
  158. package/src/model/DescriptifTechnique.ts +46 -0
  159. package/src/model/DescriptifTechniqueBase.ts +5 -0
  160. package/src/model/DescriptifTechniqueDECIBase.ts +19 -0
  161. package/src/model/DescriptifTechniquePENA.ts +49 -0
  162. package/src/model/DescriptifTechniquePENAAllOfRealimentation.ts +11 -0
  163. package/src/model/DescriptifTechniquePENAAllOfVolumes.ts +4 -0
  164. package/src/model/DescriptifTechniquePIBI.ts +36 -0
  165. package/src/model/DescriptifTechniquePIBIAllOfPesees.ts +6 -0
  166. package/src/model/Document.ts +3 -0
  167. package/src/model/Dossier.ts +19 -0
  168. package/src/model/Email.ts +6 -0
  169. package/src/model/Evenement.ts +15 -0
  170. package/src/model/Feature.ts +7 -0
  171. package/src/model/FeatureGeometry.ts +5 -0
  172. package/src/model/GetEvenement404Response.ts +6 -0
  173. package/src/model/GetEvenementDetails404Response.ts +6 -0
  174. package/src/model/GetFeature200Response.ts +8 -0
  175. package/src/model/GetFeature200ResponseCrs.ts +6 -0
  176. package/src/model/GetFeature200ResponseCrsProperties.ts +3 -0
  177. package/src/model/GetNotification404Response.ts +6 -0
  178. package/src/model/Notification.ts +12 -0
  179. package/src/model/Organisation.ts +10 -0
  180. package/src/model/PEI.ts +14 -0
  181. package/src/model/PEIReferencesExterieuresInner.ts +4 -0
  182. package/src/model/POI.ts +14 -0
  183. package/src/model/POIReferencesExterieuresInner.ts +4 -0
  184. package/src/model/PatchPoiRequest.ts +3 -0
  185. package/src/model/PieceJointe.ts +7 -0
  186. package/src/model/Ping200Response.ts +3 -0
  187. package/src/model/PostDossierRequest.ts +5 -0
  188. package/src/model/PostEvenementRequest.ts +7 -0
  189. package/src/model/PostNotification400Response.ts +6 -0
  190. package/src/model/PostNotification500Response.ts +6 -0
  191. package/src/model/PostNotificationRequest.ts +9 -0
  192. package/src/model/PostTicketRequest.ts +10 -0
  193. package/src/model/SuiviAdministratif.ts +6 -0
  194. package/src/model/Tag.ts +3 -0
  195. package/src/model/Ticket.ts +18 -0
  196. package/src/model/Type.ts +5 -0
  197. package/src/model/Utilisateur.ts +12 -0
  198. package/src/model/Utilisateur1.ts +3 -0
  199. package/src/model/Workflow.ts +5 -0
  200. package/src/model/WorkflowBase.ts +14 -0
  201. package/src/model/WorkflowDossiersLies.ts +5 -0
  202. package/src/model/WorkflowPassageCommissionSecurite.ts +5 -0
  203. package/src/model/WorkflowRemiseEnServicePEI.ts +6 -0
  204. package/src/tus.ts +44 -0
  205. package/src/utils.ts +23 -0
  206. package/tsconfig.json +11 -10
package/src/metarisc.ts CHANGED
@@ -1,63 +1,76 @@
1
- import axios, { AxiosInstance, AxiosResponse } from "axios";
1
+ import { Core, MetariscConfig } from "./core";
2
+ import { Tus } from "./tus";
3
+ import { Client } from "./client";
2
4
 
3
- interface RequestConfig {
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
- export class Metarisc
12
- {
13
- private axios : AxiosInstance;
7
+ import { EvenementsAPI } from './api/EvenementsAPI';
14
8
 
15
- constructor()
16
- {
17
- this.axios = axios.create({
18
- baseURL: 'https://api.metarisc.fr/'
19
- });
20
- }
9
+ import { NotificationsAPI } from './api/NotificationsAPI';
21
10
 
22
- async request<T>(config : RequestConfig) : Promise<AxiosResponse<T>>
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
- async * autoPagingIterator<T>(config : RequestConfig) : AsyncGenerator<T, void, unknown>
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
- if (response.data.meta.pagination.current_page === response.data.meta.pagination.total_pages) {
57
- break;
58
- }
15
+ import { PingAPI } from './api/PingAPI';
59
16
 
60
- current_page++;
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,10 @@
1
+ /**
2
+ * Représente une adresse postale permettant de localiser un POI.
3
+ */
4
+ export type AdressePostale = {
5
+ 'code_postal'?: string;
6
+ 'commune'?: string;
7
+ 'voie'?: string;
8
+ 'code_insee'?: string;
9
+ 'arrondissement'?: string;
10
+ };
@@ -0,0 +1,11 @@
1
+ export type AnomalieDECI = {
2
+ 'code'?: string;
3
+ 'texte'?: string;
4
+ 'indice_de_gravite'?: IndiceDeGraviteEnum;
5
+ };
6
+
7
+ export enum IndiceDeGraviteEnum {
8
+ NUMBER_0 = 0,
9
+ NUMBER_1 = 1,
10
+ NUMBER_2 = 2
11
+ }
@@ -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,5 @@
1
+ export type DescriptifTechniqueBase = {
2
+ 'libelle'?: string;
3
+ 'observations_generales'?: string;
4
+ 'date'?: Date;
5
+ };
@@ -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,11 @@
1
+ export type DescriptifTechniquePENAAllOfRealimentation = {
2
+ 'debit'?: number;
3
+ 'diametre_canalisation'?: number;
4
+ 'nature'?: NatureEnum;
5
+ };
6
+
7
+ export enum NatureEnum {
8
+ AdductionEau = 'ADDUCTION_EAU',
9
+ Toiture = 'TOITURE',
10
+ Autre = 'AUTRE'
11
+ }
@@ -0,0 +1,4 @@
1
+ export type DescriptifTechniquePENAAllOfVolumes = {
2
+ 'reel'?: number;
3
+ 'theorique'?: number;
4
+ };
@@ -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,6 @@
1
+ export type DescriptifTechniquePIBIAllOfPesees = {
2
+ 'debit_1bar'?: number;
3
+ 'pression_debit_requis'?: number;
4
+ 'pression_statique'?: number;
5
+ 'debit_gueule_bee'?: number;
6
+ };
@@ -0,0 +1,3 @@
1
+ export type Document = {
2
+ 'id'?: string;
3
+ };
@@ -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,6 @@
1
+ export type Email = {
2
+ 'email'?: string;
3
+ 'is_primary'?: boolean;
4
+ 'is_publicly_visible'?: boolean;
5
+ 'is_verified'?: boolean;
6
+ };
@@ -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,7 @@
1
+ import { FeatureGeometry } from '../../src/model/FeatureGeometry';
2
+
3
+ export type Feature = {
4
+ 'type'?: string;
5
+ 'properties'?: any;
6
+ 'geometry'?: FeatureGeometry;
7
+ };
@@ -0,0 +1,5 @@
1
+ export type FeatureGeometry = {
2
+ 'type'?: string;
3
+ 'bbox'?: Array<number>;
4
+ 'coordinates'?: Array<number>;
5
+ };
@@ -0,0 +1,6 @@
1
+ export type GetEvenement404Response = {
2
+ 'status_code'?: number;
3
+ 'type'?: string;
4
+ 'title'?: string;
5
+ 'detail'?: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ export type GetEvenementDetails404Response = {
2
+ 'status_code'?: number;
3
+ 'type'?: string;
4
+ 'title'?: string;
5
+ 'detail'?: string;
6
+ };
@@ -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,6 @@
1
+ import { GetFeature200ResponseCrsProperties } from '../../src/model/GetFeature200ResponseCrsProperties';
2
+
3
+ export type GetFeature200ResponseCrs = {
4
+ 'type'?: string;
5
+ 'properties'?: GetFeature200ResponseCrsProperties;
6
+ };
@@ -0,0 +1,3 @@
1
+ export type GetFeature200ResponseCrsProperties = {
2
+ 'name'?: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ export type GetNotification404Response = {
2
+ 'status_code'?: number;
3
+ 'type'?: string;
4
+ 'title'?: string;
5
+ 'detail'?: string;
6
+ };
@@ -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
+ };
@@ -0,0 +1,10 @@
1
+ export type Organisation = {
2
+ 'id'?: string;
3
+ 'nom'?: string;
4
+ 'logo_url'?: string;
5
+ 'type'?: TypeEnum;
6
+ };
7
+
8
+ export enum TypeEnum {
9
+ Sis = 'sis'
10
+ }
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ export type PEIReferencesExterieuresInner = {
2
+ 'titre'?: string;
3
+ 'valeur'?: string;
4
+ };
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ export type POIReferencesExterieuresInner = {
2
+ 'titre'?: string;
3
+ 'valeur'?: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ export type PatchPoiRequest = {
2
+ 'test'?: string;
3
+ };
@@ -0,0 +1,7 @@
1
+ export type PieceJointe = {
2
+ 'id'?: string;
3
+ 'url'?: string;
4
+ 'nom'?: string;
5
+ 'description'?: string;
6
+ 'type'?: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ export type Ping200Response = {
2
+ 'message'?: string;
3
+ };
@@ -0,0 +1,5 @@
1
+ export type PostDossierRequest = {
2
+ 'titre'?: string;
3
+ 'description'?: string;
4
+ 'workflows'?: string;
5
+ };
@@ -0,0 +1,7 @@
1
+ export type PostEvenementRequest = {
2
+ 'title'?: string;
3
+ 'type'?: string;
4
+ 'description'?: string;
5
+ 'date_debut'?: Date;
6
+ 'date_fin'?: Date;
7
+ };
@@ -0,0 +1,6 @@
1
+ export type PostNotification400Response = {
2
+ 'status_code'?: number;
3
+ 'type'?: string;
4
+ 'title'?: string;
5
+ 'detail'?: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ export type PostNotification500Response = {
2
+ 'status_code'?: number;
3
+ 'type'?: string;
4
+ 'title'?: string;
5
+ 'detail'?: string;
6
+ };
@@ -0,0 +1,9 @@
1
+ export type PostNotificationRequest = {
2
+ 'title': string;
3
+ 'message': string;
4
+ 'contexte'?: any;
5
+ /**
6
+ * L\'utilisateur que l\'on souhaite notifier
7
+ */
8
+ 'utilisateur_id': string;
9
+ };
@@ -0,0 +1,10 @@
1
+ export type PostTicketRequest = {
2
+ /**
3
+ * L\'intitulé général du ticket
4
+ */
5
+ 'subject'?: string;
6
+ /**
7
+ * La description du ticket prend aussi en charge le contenu HTML
8
+ */
9
+ 'description'?: string;
10
+ };
@@ -0,0 +1,6 @@
1
+ export type SuiviAdministratif = {
2
+ 'description'?: string;
3
+ 'date_ajout'?: Date;
4
+ 'evenement_automatique'?: boolean;
5
+ 'createur'?: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ export type Tag = {
2
+ 'message'?: string;
3
+ };
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ export type Type = {
2
+ 'id'?: string;
3
+ 'titre'?: string;
4
+ 'categorie'?: string;
5
+ };