@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
@@ -0,0 +1,31 @@
1
+ import { DescriptifTechniquePIBIAllOfPesees } from '../../src/model/DescriptifTechniquePIBIAllOfPesees';
2
+ import { DescriptifTechniqueDECIBase } from '../model/DescriptifTechniqueDECIBase';
3
+ export type DescriptifTechniquePIBI = DescriptifTechniqueDECIBase & {
4
+ 'numero_serie_appareil'?: string;
5
+ /**
6
+ * Surpression mesurée en bar
7
+ */
8
+ 'surpression'?: number;
9
+ 'nature'?: NatureEnum;
10
+ 'caracteristiques_particulieres'?: CaracteristiquesParticulieresEnum;
11
+ 'pesees'?: DescriptifTechniquePIBIAllOfPesees;
12
+ };
13
+ export declare enum DomanialiteEnum {
14
+ Privee = "privee",
15
+ Publique = "publique",
16
+ PriveeConventionnee = "privee_conventionnee"
17
+ }
18
+ export declare enum NatureEnum {
19
+ Pi1x65 = "PI1x65",
20
+ Pi1x65Pi2x45 = "PI1x65+PI2x45",
21
+ Pi1x100 = "PI1x100",
22
+ Pi2x100 = "PI2x100",
23
+ Bi1x65 = "BI1x65",
24
+ Bi1x80 = "BI1x80",
25
+ Bi1x100 = "BI1x100",
26
+ Bi2x100 = "BI2x100"
27
+ }
28
+ export declare enum CaracteristiquesParticulieresEnum {
29
+ Renversable = "RENVERSABLE",
30
+ PreMelange = "PRE_MELANGE"
31
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CaracteristiquesParticulieresEnum = exports.NatureEnum = exports.DomanialiteEnum = void 0;
4
+ var DomanialiteEnum;
5
+ (function (DomanialiteEnum) {
6
+ DomanialiteEnum["Privee"] = "privee";
7
+ DomanialiteEnum["Publique"] = "publique";
8
+ DomanialiteEnum["PriveeConventionnee"] = "privee_conventionnee";
9
+ })(DomanialiteEnum = exports.DomanialiteEnum || (exports.DomanialiteEnum = {}));
10
+ var NatureEnum;
11
+ (function (NatureEnum) {
12
+ NatureEnum["Pi1x65"] = "PI1x65";
13
+ NatureEnum["Pi1x65Pi2x45"] = "PI1x65+PI2x45";
14
+ NatureEnum["Pi1x100"] = "PI1x100";
15
+ NatureEnum["Pi2x100"] = "PI2x100";
16
+ NatureEnum["Bi1x65"] = "BI1x65";
17
+ NatureEnum["Bi1x80"] = "BI1x80";
18
+ NatureEnum["Bi1x100"] = "BI1x100";
19
+ NatureEnum["Bi2x100"] = "BI2x100";
20
+ })(NatureEnum = exports.NatureEnum || (exports.NatureEnum = {}));
21
+ var CaracteristiquesParticulieresEnum;
22
+ (function (CaracteristiquesParticulieresEnum) {
23
+ CaracteristiquesParticulieresEnum["Renversable"] = "RENVERSABLE";
24
+ CaracteristiquesParticulieresEnum["PreMelange"] = "PRE_MELANGE";
25
+ })(CaracteristiquesParticulieresEnum = exports.CaracteristiquesParticulieresEnum || (exports.CaracteristiquesParticulieresEnum = {}));
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type Document = {
2
+ 'id'?: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { Type } from '../../src/model/Type';
2
+ /**
3
+ * Un dossier représente la vie d\'un POI
4
+ */
5
+ export type Dossier = {
6
+ 'id'?: string;
7
+ 'type'?: Type;
8
+ 'description'?: string;
9
+ 'date_de_creation'?: Date;
10
+ 'createur'?: string;
11
+ 'application_utilisee'?: string;
12
+ 'statut'?: StatutEnum;
13
+ };
14
+ export declare enum StatutEnum {
15
+ Ouvert = "OUVERT",
16
+ Clos = "CLOS"
17
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatutEnum = void 0;
4
+ var StatutEnum;
5
+ (function (StatutEnum) {
6
+ StatutEnum["Ouvert"] = "OUVERT";
7
+ StatutEnum["Clos"] = "CLOS";
8
+ })(StatutEnum = exports.StatutEnum || (exports.StatutEnum = {}));
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
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
+ export declare enum TypeEnum {
10
+ Defaut = "DEFAUT",
11
+ ReconnaissanceOperationnelleAnnuelle = "RECONNAISSANCE_OPERATIONNELLE_ANNUELLE",
12
+ VisitePeriodique = "VISITE_PERIODIQUE",
13
+ CommissionSecurite = "COMMISSION_SECURITE"
14
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeEnum = void 0;
4
+ var TypeEnum;
5
+ (function (TypeEnum) {
6
+ TypeEnum["Defaut"] = "DEFAUT";
7
+ TypeEnum["ReconnaissanceOperationnelleAnnuelle"] = "RECONNAISSANCE_OPERATIONNELLE_ANNUELLE";
8
+ TypeEnum["VisitePeriodique"] = "VISITE_PERIODIQUE";
9
+ TypeEnum["CommissionSecurite"] = "COMMISSION_SECURITE";
10
+ })(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
@@ -0,0 +1,6 @@
1
+ import { FeatureGeometry } from '../../src/model/FeatureGeometry';
2
+ export type Feature = {
3
+ 'type'?: string;
4
+ 'properties'?: any;
5
+ 'geometry'?: FeatureGeometry;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export type FeatureGeometry = {
2
+ 'type'?: string;
3
+ 'bbox'?: Array<number>;
4
+ 'coordinates'?: Array<number>;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Feature } from '../../src/model/Feature';
2
+ import { GetFeature200ResponseCrs } from '../../src/model/GetFeature200ResponseCrs';
3
+ export type GetFeature200Response = {
4
+ 'type'?: string;
5
+ 'crs'?: GetFeature200ResponseCrs;
6
+ 'features'?: Array<Feature>;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { GetFeature200ResponseCrsProperties } from '../../src/model/GetFeature200ResponseCrsProperties';
2
+ export type GetFeature200ResponseCrs = {
3
+ 'type'?: string;
4
+ 'properties'?: GetFeature200ResponseCrsProperties;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type GetFeature200ResponseCrsProperties = {
2
+ 'name'?: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export type Organisation = {
2
+ 'id'?: string;
3
+ 'nom'?: string;
4
+ 'logo_url'?: string;
5
+ 'type'?: TypeEnum;
6
+ };
7
+ export declare enum TypeEnum {
8
+ Sis = "sis"
9
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeEnum = void 0;
4
+ var TypeEnum;
5
+ (function (TypeEnum) {
6
+ TypeEnum["Sis"] = "sis";
7
+ })(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
@@ -0,0 +1,13 @@
1
+ import { AdressePostale } from '../../src/model/AdressePostale';
2
+ import { DescriptifTechnique } from '../../src/model/DescriptifTechnique';
3
+ import { PEIReferencesExterieuresInner } from '../../src/model/PEIReferencesExterieuresInner';
4
+ export type PEI = {
5
+ 'id'?: string;
6
+ 'date_de_realisation'?: Date;
7
+ 'date_de_derniere_mise_a_jour'?: Date;
8
+ 'statut'?: string;
9
+ 'references_exterieures'?: Array<PEIReferencesExterieuresInner>;
10
+ 'descriptif_technique'?: DescriptifTechnique;
11
+ 'geometrie'?: string;
12
+ 'adresse_postale'?: AdressePostale;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type PEIReferencesExterieuresInner = {
2
+ 'titre'?: string;
3
+ 'valeur'?: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { AdressePostale } from '../../src/model/AdressePostale';
2
+ import { DescriptifTechnique } from '../../src/model/DescriptifTechnique';
3
+ import { POIReferencesExterieuresInner } from '../../src/model/POIReferencesExterieuresInner';
4
+ export type POI = {
5
+ 'id'?: string;
6
+ 'date_de_realisation'?: Date;
7
+ 'date_de_derniere_mise_a_jour'?: Date;
8
+ 'statut'?: string;
9
+ 'references_exterieures'?: Array<POIReferencesExterieuresInner>;
10
+ 'descriptif_technique'?: DescriptifTechnique;
11
+ 'geometrie'?: string;
12
+ 'adresse_postale'?: AdressePostale;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type POIReferencesExterieuresInner = {
2
+ 'titre'?: string;
3
+ 'valeur'?: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type PatchPoiRequest = {
2
+ 'test'?: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type Ping200Response = {
2
+ 'message'?: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export type PostDossierRequest = {
2
+ 'titre'?: string;
3
+ 'description'?: string;
4
+ 'workflows'?: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type Tag = {
2
+ 'message'?: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
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
+ export declare enum StatusEnum {
11
+ New = "new",
12
+ Open = "open",
13
+ Pending = "pending",
14
+ Hold = "hold",
15
+ Solved = "solved",
16
+ Closed = "closed"
17
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatusEnum = void 0;
4
+ var StatusEnum;
5
+ (function (StatusEnum) {
6
+ StatusEnum["New"] = "new";
7
+ StatusEnum["Open"] = "open";
8
+ StatusEnum["Pending"] = "pending";
9
+ StatusEnum["Hold"] = "hold";
10
+ StatusEnum["Solved"] = "solved";
11
+ StatusEnum["Closed"] = "closed";
12
+ })(StatusEnum = exports.StatusEnum || (exports.StatusEnum = {}));
@@ -0,0 +1,5 @@
1
+ export type Type = {
2
+ 'id'?: string;
3
+ 'titre'?: string;
4
+ 'categorie'?: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export type Utilisateur = {
2
+ 'id'?: string;
3
+ 'first_name'?: string;
4
+ 'last_name'?: string;
5
+ 'created_at'?: Date;
6
+ 'updated_at'?: Date;
7
+ 'timezone'?: string;
8
+ 'is_active'?: boolean;
9
+ 'is_verified'?: boolean;
10
+ 'fonction'?: string;
11
+ 'avatar_url'?: string;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type Utilisateur1 = {
2
+ 'id'?: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { WorkflowDossiersLies } from '../../src/model/WorkflowDossiersLies';
2
+ import { WorkflowPassageCommissionSecurite } from '../../src/model/WorkflowPassageCommissionSecurite';
3
+ import { WorkflowRemiseEnServicePEI } from '../../src/model/WorkflowRemiseEnServicePEI';
4
+ export type Workflow = WorkflowDossiersLies | WorkflowRemiseEnServicePEI | WorkflowPassageCommissionSecurite;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export type WorkflowBase = {
2
+ 'id'?: string;
3
+ 'titre'?: string;
4
+ 'date_de_creation'?: Date;
5
+ 'date_de_fin'?: Date;
6
+ 'workflow_automatise'?: boolean;
7
+ 'etat'?: string;
8
+ 'groupe_de_travail'?: string;
9
+ 'observations'?: string;
10
+ 'est_complet'?: boolean;
11
+ 'liste_poi'?: string;
12
+ 'documents'?: string;
13
+ 'type'?: string;
14
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { WorkflowBase } from '../model/WorkflowBase';
2
+ export type WorkflowDossiersLies = WorkflowBase & {
3
+ 'dossier_lie'?: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { WorkflowBase } from '../model/WorkflowBase';
2
+ export type WorkflowPassageCommissionSecurite = WorkflowBase & {
3
+ 'programmation_evenement'?: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { WorkflowBase } from '../model/WorkflowBase';
2
+ export type WorkflowRemiseEnServicePEI = WorkflowBase & {
3
+ 'pei_lie'?: string;
4
+ 'anomalies_levees'?: Array<string>;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/tus.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { Core, MetariscConfig } from "./core";
2
+ import { Client } from "./client";
3
+ export declare class Tus extends Core {
4
+ constructor(config: MetariscConfig, client: Client);
5
+ upload(file: File, errorFn: (error: Error) => void, chunckFn: (url: string, progress: number) => void, successFn: () => void): void;
6
+ download(fileId: string): Promise<import("axios").AxiosResponse<unknown, any>>;
7
+ }