@metarisc/metarisc-js 0.0.1-alpha.107 → 0.0.1-alpha.110

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.
@@ -45,7 +45,7 @@ export declare class ERPAPI extends Core {
45
45
  /**
46
46
  * Récupération de la liste des Établissements Recevant du Public (ERP) selon des critères de recherche.
47
47
  */
48
- paginateErp(sort?: 'libelle' | '-libelle', libelle?: string, geojson?: string, referencesExterieures?: string | Array<string>, presenceLocauxSommeil?: boolean, typeActivite?: string | Array<string>, avisExploitation?: 'favorable' | 'defavorable', aVisiterEn?: string, siteGeographique?: string, commissionConcernee?: string, categorie?: 1 | 2 | 3 | 4 | 5, erpRattacheA?: string, titulaires?: string, genre?: 'cellule' | 'erp'): Collection<ERP>;
48
+ paginateErp(sort?: 'libelle' | '-libelle', libelle?: string, geojson?: string, referencesExterieures?: string | Array<string>, presenceLocauxSommeil?: boolean, typeActivite?: string | Array<string>, avisExploitation?: 'favorable' | 'defavorable', aVisiterEn?: string, siteGeographique?: string, commissionConcernee?: string, categorie?: 1 | 2 | 3 | 4 | 5, erpRattacheA?: string, titulaires?: string, genre?: 'cellule' | 'erp', statut?: 'reprise_de_donnees' | 'ouvert' | 'projet' | 'ferme' | 'itinerant_periodique' | 'erreur_saisie'): Collection<ERP>;
49
49
  /**
50
50
  * Récupération de l'historique d'un ERP.
51
51
  */
package/lib/api/ERPAPI.js CHANGED
@@ -113,7 +113,7 @@ class ERPAPI extends core_1.Core {
113
113
  /**
114
114
  * Récupération de la liste des Établissements Recevant du Public (ERP) selon des critères de recherche.
115
115
  */
116
- paginateErp(sort, libelle, geojson, referencesExterieures, presenceLocauxSommeil, typeActivite, avisExploitation, aVisiterEn, siteGeographique, commissionConcernee, categorie, erpRattacheA, titulaires, genre) {
116
+ paginateErp(sort, libelle, geojson, referencesExterieures, presenceLocauxSommeil, typeActivite, avisExploitation, aVisiterEn, siteGeographique, commissionConcernee, categorie, erpRattacheA, titulaires, genre, statut) {
117
117
  const pathVariable = {};
118
118
  return this.collect({
119
119
  method: 'GET',
@@ -132,7 +132,8 @@ class ERPAPI extends core_1.Core {
132
132
  'categorie': categorie === undefined ? undefined : (new String(categorie)).toString(),
133
133
  'erp_rattache_a': erpRattacheA === undefined ? undefined : (new String(erpRattacheA)).toString(),
134
134
  'titulaires': titulaires === undefined ? undefined : (new String(titulaires)).toString(),
135
- 'genre': genre === undefined ? undefined : (new String(genre)).toString()
135
+ 'genre': genre === undefined ? undefined : (new String(genre)).toString(),
136
+ 'statut': statut === undefined ? undefined : (new String(statut)).toString()
136
137
  }),
137
138
  transformResponse: [(data) => {
138
139
  const parsedData = JSON.parse(data);
@@ -12,5 +12,7 @@ export declare enum StatutEnum {
12
12
  REPRISE_DE_DONNEES = "reprise_de_donnees",
13
13
  OUVERT = "ouvert",
14
14
  PROJET = "projet",
15
- FERME = "ferme"
15
+ FERME = "ferme",
16
+ ITINERANT_PERIODIQUE = "itinerant_periodique",
17
+ ERREUR_SAISIE = "erreur_saisie"
16
18
  }
@@ -7,4 +7,6 @@ var StatutEnum;
7
7
  StatutEnum["OUVERT"] = "ouvert";
8
8
  StatutEnum["PROJET"] = "projet";
9
9
  StatutEnum["FERME"] = "ferme";
10
+ StatutEnum["ITINERANT_PERIODIQUE"] = "itinerant_periodique";
11
+ StatutEnum["ERREUR_SAISIE"] = "erreur_saisie";
10
12
  })(StatutEnum = exports.StatutEnum || (exports.StatutEnum = {}));
@@ -5,6 +5,7 @@ export type SiteGeographique = {
5
5
  'erp_periodicite_contrainte': number | null;
6
6
  'notes': string;
7
7
  'type': TypeEnum;
8
+ 'organisation_id': string;
8
9
  };
9
10
  export declare enum TypeEnum {
10
11
  FONCTIONNEL = "fonctionnel",
@@ -2,6 +2,7 @@ export type Workflow = {
2
2
  'id': string;
3
3
  'titre': string;
4
4
  'date_de_creation': Date;
5
+ 'date_de_reception': Date | null;
5
6
  'date_de_debut': Date | null;
6
7
  'date_de_fin': Date | null;
7
8
  'workflow_automatise': boolean;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@metarisc/metarisc-js",
3
3
  "main": "lib/index.js",
4
4
  "types": "lib/index.d.ts",
5
- "version": "0.0.1-alpha.107",
5
+ "version": "0.0.1-alpha.110",
6
6
  "scripts": {
7
7
  "lint": "eslint . --ext .ts --fix",
8
8
  "compile": "tsc",
package/src/api/ERPAPI.ts CHANGED
@@ -170,7 +170,8 @@ export class ERPAPI extends Core {
170
170
  categorie? : 1 | 2 | 3 | 4 | 5,
171
171
  erpRattacheA? : string,
172
172
  titulaires? : string,
173
- genre? : 'cellule' | 'erp'
173
+ genre? : 'cellule' | 'erp',
174
+ statut? : 'reprise_de_donnees' | 'ouvert' | 'projet' | 'ferme' | 'itinerant_periodique' | 'erreur_saisie'
174
175
  ) : Collection<ERP>
175
176
  {
176
177
  const pathVariable = { };
@@ -191,7 +192,8 @@ export class ERPAPI extends Core {
191
192
  'categorie': categorie === undefined ? undefined : (new String(categorie)).toString(),
192
193
  'erp_rattache_a': erpRattacheA === undefined ? undefined : (new String(erpRattacheA)).toString(),
193
194
  'titulaires': titulaires === undefined ? undefined : (new String(titulaires)).toString(),
194
- 'genre': genre === undefined ? undefined : (new String(genre)).toString()
195
+ 'genre': genre === undefined ? undefined : (new String(genre)).toString(),
196
+ 'statut': statut === undefined ? undefined : (new String(statut)).toString()
195
197
  }),
196
198
  transformResponse: [(data) => {
197
199
  const parsedData = JSON.parse(data);
@@ -15,5 +15,7 @@ export enum StatutEnum {
15
15
  REPRISE_DE_DONNEES = 'reprise_de_donnees',
16
16
  OUVERT = 'ouvert',
17
17
  PROJET = 'projet',
18
- FERME = 'ferme'
18
+ FERME = 'ferme',
19
+ ITINERANT_PERIODIQUE = 'itinerant_periodique',
20
+ ERREUR_SAISIE = 'erreur_saisie'
19
21
  }
@@ -7,6 +7,7 @@ export type SiteGeographique = {
7
7
  'erp_periodicite_contrainte': number | null;
8
8
  'notes': string;
9
9
  'type': TypeEnum;
10
+ 'organisation_id': string;
10
11
  };
11
12
 
12
13
  export enum TypeEnum {
@@ -4,6 +4,7 @@ export type Workflow = {
4
4
  'id': string;
5
5
  'titre': string;
6
6
  'date_de_creation': Date;
7
+ 'date_de_reception': Date | null;
7
8
  'date_de_debut': Date | null;
8
9
  'date_de_fin': Date | null;
9
10
  'workflow_automatise': boolean;