@metarisc/metarisc-js 0.0.1-alpha.90 → 0.0.1-alpha.91

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.
@@ -77,7 +77,7 @@ export declare class DossiersAPI extends Core {
77
77
  /**
78
78
  * Récupération de la liste des dossiers selon des critères de recherche.
79
79
  */
80
- paginateDossiers(objet?: string, erp?: string, pei?: string, type?: string, workflowActif?: 'analyse_de_risque' | 'validation' | 'arrivee_sis' | 'arrivee_sis_prev' | 'arrivee_secretariat_commission' | 'consultation_sis' | 'passage_commission' | 'relecture' | 'visite' | 'arrivee_secretariat' | 'workflow' | 'reception_de_travaux_en_attente', affecte?: string, enveloppe?: string, numeroUrba?: string): Collection<Dossier>;
80
+ paginateDossiers(sort?: 'date_de_creation' | '-date_de_creation', objet?: string, erp?: string, pei?: string, type?: string | Array<string>, workflowActif?: 'analyse_de_risque' | 'validation' | 'arrivee_sis' | 'arrivee_sis_prev' | 'arrivee_secretariat_commission' | 'consultation_sis' | 'passage_commission' | 'relecture' | 'visite' | 'arrivee_secretariat' | 'workflow' | 'reception_de_travaux_en_attente', affecte?: string, enveloppe?: string, numeroUrba?: string): Collection<Dossier>;
81
81
  /**
82
82
  * Consulter l'espace d'échange pour le suivi du dossier.
83
83
  */
@@ -132,12 +132,13 @@ class DossiersAPI extends core_1.Core {
132
132
  /**
133
133
  * Récupération de la liste des dossiers selon des critères de recherche.
134
134
  */
135
- paginateDossiers(objet, erp, pei, type, workflowActif, affecte, enveloppe, numeroUrba) {
135
+ paginateDossiers(sort, objet, erp, pei, type, workflowActif, affecte, enveloppe, numeroUrba) {
136
136
  const pathVariable = {};
137
137
  return this.collect({
138
138
  method: 'GET',
139
139
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers'),
140
140
  params: utils_1.Utils.payloadFilter({
141
+ 'sort': sort === undefined ? undefined : (new String(sort)).toString(),
141
142
  'objet': objet === undefined ? undefined : (new String(objet)).toString(),
142
143
  'erp': erp === undefined ? undefined : (new String(erp)).toString(),
143
144
  'pei': pei === undefined ? undefined : (new String(pei)).toString(),
@@ -39,9 +39,9 @@ export declare class ERPAPI extends Core {
39
39
  */
40
40
  paginateErpDocuments(erpId: string): Collection<PieceJointe>;
41
41
  /**
42
- * Récupération de la liste des dossiers.
42
+ * Récupération de la liste des dossiers. Cet endpoint partage certains paramètres de filtrage de /dossiers.
43
43
  */
44
- paginateErpDossiers(erpId: string, type?: 'erp:autorisation_de_travaux' | 'erp:permis_de_construire' | 'erp:levee_de_prescriptions' | 'erp:changement_de_dus' | 'erp:salon_type_t' | 'erp:utilisation_exceptionnelle_de_locaux' | 'erp:demande_d_implantation_cts_inferieur_6_mois' | 'erp:demande_d_implantation_cts_superieur_6_mois' | 'erp:derogation' | 'erp:etude_cahier_des_charges_type_t' | 'erp:levee_de_reserve' | 'erp:echeancier_de_travaux' | 'erp:cahier_des_charges_ssi' | 'erp:etude_suite_a_un_avis_differe' | 'erp:visite_periodique' | 'erp:visite_reception' | 'erp:visite_avant_ouverture' | 'erp:visite_controle' | 'erp:visite_inopinee' | 'erp:visite_chantier' | 'erp:demande_avis' | 'erp:demande_reclassement' | 'erp:suivi_avis_defavorable' | 'erp:levee_avis_defavorable' | 'erp:dossier_ge_2' | 'erp:schema_general_organisation_securite' | 'erp:etude_ingenierie' | 'erp:manifestation_temporaire', sort?: 'asc' | 'desc'): Collection<Dossier>;
44
+ paginateErpDossiers(erpId: string, sort?: 'date_de_creation' | '-date_de_creation', objet?: string, type?: string | Array<string>, workflowActif?: 'analyse_de_risque' | 'validation' | 'arrivee_sis' | 'arrivee_sis_prev' | 'arrivee_secretariat_commission' | 'consultation_sis' | 'passage_commission' | 'relecture' | 'visite' | 'arrivee_secretariat' | 'workflow' | 'reception_de_travaux_en_attente', affecte?: string, enveloppe?: string, numeroUrba?: string): Collection<Dossier>;
45
45
  /**
46
46
  * Récupération de la liste des Établissements Recevant du Public (ERP) selon des critères de recherche.
47
47
  */
package/lib/api/ERPAPI.js CHANGED
@@ -59,16 +59,21 @@ class ERPAPI extends core_1.Core {
59
59
  });
60
60
  }
61
61
  /**
62
- * Récupération de la liste des dossiers.
62
+ * Récupération de la liste des dossiers. Cet endpoint partage certains paramètres de filtrage de /dossiers.
63
63
  */
64
- paginateErpDossiers(erpId, type, sort) {
64
+ paginateErpDossiers(erpId, sort, objet, type, workflowActif, affecte, enveloppe, numeroUrba) {
65
65
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
66
66
  return this.collect({
67
67
  method: 'GET',
68
68
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/dossiers'),
69
69
  params: utils_1.Utils.payloadFilter({
70
+ 'sort': sort === undefined ? undefined : (new String(sort)).toString(),
71
+ 'objet': objet === undefined ? undefined : (new String(objet)).toString(),
70
72
  'type': type === undefined ? undefined : (new String(type)).toString(),
71
- 'sort': sort === undefined ? undefined : (new String(sort)).toString()
73
+ 'workflow_actif': workflowActif === undefined ? undefined : (new String(workflowActif)).toString(),
74
+ 'affecte': affecte === undefined ? undefined : (new String(affecte)).toString(),
75
+ 'enveloppe': enveloppe === undefined ? undefined : (new String(enveloppe)).toString(),
76
+ 'numero_urba': numeroUrba === undefined ? undefined : (new String(numeroUrba)).toString()
72
77
  })
73
78
  });
74
79
  }
@@ -3,7 +3,7 @@ import { EffectifsNiveau } from './EffectifsNiveau';
3
3
  import { Local } from './Local';
4
4
  export type Clicdvcrem = {
5
5
  'activite_principale': ActivitePrincipaleEnum | null;
6
- 'activites_secondaire': Array<ActivitesSecondaireEnum> | null;
6
+ 'activites_secondaire': Set<ActivitesSecondaireEnum> | null;
7
7
  'categorie': CategorieEnum | null;
8
8
  'groupement_etablissement': GroupementEtablissementEnum | null;
9
9
  'tableau_des_effectifs': Array<EffectifsNiveau> | null;
@@ -47,7 +47,7 @@ export type Clicdvcrem = {
47
47
  'construction_structures_description': string | null;
48
48
  'construction_couverture_description': string | null;
49
49
  'construction_facades_description': string | null;
50
- 'type_cloisonnement': Array<TypeCloisonnementEnum> | null;
50
+ 'type_cloisonnement': Set<TypeCloisonnementEnum> | null;
51
51
  'construction_distribution_interieure_informations_complementaires': string | null;
52
52
  'locaux': Array<Local> | null;
53
53
  'construction_conduits_et_gaines_description': string | null;
@@ -74,7 +74,7 @@ export type Clicdvcrem = {
74
74
  'electricite_eclairage_informations_complementaires': string | null;
75
75
  'puissance_chaufferie': PuissanceChaufferieEnum | null;
76
76
  'presence_gaz_chaufferie': boolean | null;
77
- 'type_de_chauffage': Array<TypeDeChauffageEnum> | null;
77
+ 'type_de_chauffage': Set<TypeDeChauffageEnum> | null;
78
78
  'chauffage_ventilation_informations_complementaires': string | null;
79
79
  'puissance_cuisine': PuissanceCuisineEnum | null;
80
80
  'type_de_cuisine': TypeDeCuisineEnum | null;
@@ -10,13 +10,13 @@ export type DossierBase = {
10
10
  'createur': Utilisateur | null;
11
11
  'application_utilisee_nom': string | null;
12
12
  'statut': StatutEnum;
13
- 'modules': Array<ModulesEnum>;
13
+ 'modules': Set<ModulesEnum>;
14
14
  'tags': Array<Tag>;
15
15
  'est_archive': boolean;
16
16
  'passage_en_commission': PassageCommission | null;
17
17
  'avis': AvisEnum | null;
18
18
  'enveloppe': Enveloppe | null;
19
- 'workflows_actifs': Array<WorkflowsActifsEnum>;
19
+ 'workflows_actifs': Set<WorkflowsActifsEnum>;
20
20
  'nb_messages_fil_rouge': number;
21
21
  'nb_contacts': number;
22
22
  'nb_pieces_jointes': number;
@@ -1,3 +1,4 @@
1
+ import { PassageCommission } from './PassageCommission';
1
2
  export type Evenement = {
2
3
  'id': string;
3
4
  'title': string;
@@ -5,6 +6,7 @@ export type Evenement = {
5
6
  'description': string | null;
6
7
  'date_debut': Date;
7
8
  'date_fin': Date;
9
+ 'subject'?: PassageCommission;
8
10
  };
9
11
  export declare enum TypeEnum {
10
12
  DEFAUT = "DEFAUT",
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- // File generated from our OpenAPI spec
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.TypeEnum = void 0;
5
4
  var TypeEnum;
@@ -2,8 +2,8 @@ export type ReglesDeci = {
2
2
  'pibi_conformite_matrice_seuil_pesee_1bar_par_nature': {
3
3
  [key: string]: number;
4
4
  };
5
- 'pibi_performance_natures_performance_restreinte': Array<PibiPerformanceNaturesPerformanceRestreinteEnum>;
6
- 'pibi_performance_natures_a_reformer': Array<PibiPerformanceNaturesAReformerEnum>;
5
+ 'pibi_performance_natures_performance_restreinte': Set<PibiPerformanceNaturesPerformanceRestreinteEnum>;
6
+ 'pibi_performance_natures_a_reformer': Set<PibiPerformanceNaturesAReformerEnum>;
7
7
  'pibi_performance_seuil_pesee_1bar': number;
8
8
  'pibi_conformite_seuil_surpression': number;
9
9
  'pibi_conformite_matrice_seuil_pesee_1bar_par_defaut': number;
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.90",
5
+ "version": "0.0.1-alpha.91",
6
6
  "scripts": {
7
7
  "lint": "eslint . --ext .ts --fix",
8
8
  "compile": "tsc",
@@ -195,10 +195,11 @@ export class DossiersAPI extends Core {
195
195
  * Récupération de la liste des dossiers selon des critères de recherche.
196
196
  */
197
197
  paginateDossiers(
198
+ sort? : 'date_de_creation' | '-date_de_creation',
198
199
  objet? : string,
199
200
  erp? : string,
200
201
  pei? : string,
201
- type? : string,
202
+ type? : string | Array<string>,
202
203
  workflowActif? : 'analyse_de_risque' | 'validation' | 'arrivee_sis' | 'arrivee_sis_prev' | 'arrivee_secretariat_commission' | 'consultation_sis' | 'passage_commission' | 'relecture' | 'visite' | 'arrivee_secretariat' | 'workflow' | 'reception_de_travaux_en_attente',
203
204
  affecte? : string,
204
205
  enveloppe? : string,
@@ -210,6 +211,7 @@ export class DossiersAPI extends Core {
210
211
  method: 'GET',
211
212
  endpoint: Utils.constructPath(pathVariable, '/dossiers'),
212
213
  params: Utils.payloadFilter({
214
+ 'sort': sort === undefined ? undefined : (new String(sort)).toString(),
213
215
  'objet': objet === undefined ? undefined : (new String(objet)).toString(),
214
216
  'erp': erp === undefined ? undefined : (new String(erp)).toString(),
215
217
  'pei': pei === undefined ? undefined : (new String(pei)).toString(),
package/src/api/ERPAPI.ts CHANGED
@@ -91,12 +91,17 @@ export class ERPAPI extends Core {
91
91
  }
92
92
 
93
93
  /**
94
- * Récupération de la liste des dossiers.
94
+ * Récupération de la liste des dossiers. Cet endpoint partage certains paramètres de filtrage de /dossiers.
95
95
  */
96
96
  paginateErpDossiers(
97
97
  erpId: string,
98
- type? : 'erp:autorisation_de_travaux' | 'erp:permis_de_construire' | 'erp:levee_de_prescriptions' | 'erp:changement_de_dus' | 'erp:salon_type_t' | 'erp:utilisation_exceptionnelle_de_locaux' | 'erp:demande_d_implantation_cts_inferieur_6_mois' | 'erp:demande_d_implantation_cts_superieur_6_mois' | 'erp:derogation' | 'erp:etude_cahier_des_charges_type_t' | 'erp:levee_de_reserve' | 'erp:echeancier_de_travaux' | 'erp:cahier_des_charges_ssi' | 'erp:etude_suite_a_un_avis_differe' | 'erp:visite_periodique' | 'erp:visite_reception' | 'erp:visite_avant_ouverture' | 'erp:visite_controle' | 'erp:visite_inopinee' | 'erp:visite_chantier' | 'erp:demande_avis' | 'erp:demande_reclassement' | 'erp:suivi_avis_defavorable' | 'erp:levee_avis_defavorable' | 'erp:dossier_ge_2' | 'erp:schema_general_organisation_securite' | 'erp:etude_ingenierie' | 'erp:manifestation_temporaire',
99
- sort? : 'asc' | 'desc'
98
+ sort? : 'date_de_creation' | '-date_de_creation',
99
+ objet? : string,
100
+ type? : string | Array<string>,
101
+ workflowActif? : 'analyse_de_risque' | 'validation' | 'arrivee_sis' | 'arrivee_sis_prev' | 'arrivee_secretariat_commission' | 'consultation_sis' | 'passage_commission' | 'relecture' | 'visite' | 'arrivee_secretariat' | 'workflow' | 'reception_de_travaux_en_attente',
102
+ affecte? : string,
103
+ enveloppe? : string,
104
+ numeroUrba? : string
100
105
  ) : Collection<Dossier>
101
106
  {
102
107
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
@@ -104,8 +109,13 @@ export class ERPAPI extends Core {
104
109
  method: 'GET',
105
110
  endpoint: Utils.constructPath(pathVariable, '/erp/{erp_id}/dossiers'),
106
111
  params: Utils.payloadFilter({
112
+ 'sort': sort === undefined ? undefined : (new String(sort)).toString(),
113
+ 'objet': objet === undefined ? undefined : (new String(objet)).toString(),
107
114
  'type': type === undefined ? undefined : (new String(type)).toString(),
108
- 'sort': sort === undefined ? undefined : (new String(sort)).toString()
115
+ 'workflow_actif': workflowActif === undefined ? undefined : (new String(workflowActif)).toString(),
116
+ 'affecte': affecte === undefined ? undefined : (new String(affecte)).toString(),
117
+ 'enveloppe': enveloppe === undefined ? undefined : (new String(enveloppe)).toString(),
118
+ 'numero_urba': numeroUrba === undefined ? undefined : (new String(numeroUrba)).toString()
109
119
  })
110
120
  });
111
121
  }
@@ -5,7 +5,7 @@ import { Local } from './Local';
5
5
 
6
6
  export type Clicdvcrem = {
7
7
  'activite_principale': ActivitePrincipaleEnum | null;
8
- 'activites_secondaire': Array<ActivitesSecondaireEnum> | null;
8
+ 'activites_secondaire': Set<ActivitesSecondaireEnum> | null;
9
9
  'categorie': CategorieEnum | null;
10
10
  'groupement_etablissement': GroupementEtablissementEnum | null;
11
11
  'tableau_des_effectifs': Array<EffectifsNiveau> | null;
@@ -49,7 +49,7 @@ export type Clicdvcrem = {
49
49
  'construction_structures_description': string | null;
50
50
  'construction_couverture_description': string | null;
51
51
  'construction_facades_description': string | null;
52
- 'type_cloisonnement': Array<TypeCloisonnementEnum> | null;
52
+ 'type_cloisonnement': Set<TypeCloisonnementEnum> | null;
53
53
  'construction_distribution_interieure_informations_complementaires': string | null;
54
54
  'locaux': Array<Local> | null;
55
55
  'construction_conduits_et_gaines_description': string | null;
@@ -76,7 +76,7 @@ export type Clicdvcrem = {
76
76
  'electricite_eclairage_informations_complementaires': string | null;
77
77
  'puissance_chaufferie': PuissanceChaufferieEnum | null;
78
78
  'presence_gaz_chaufferie': boolean | null;
79
- 'type_de_chauffage': Array<TypeDeChauffageEnum> | null;
79
+ 'type_de_chauffage': Set<TypeDeChauffageEnum> | null;
80
80
  'chauffage_ventilation_informations_complementaires': string | null;
81
81
  'puissance_cuisine': PuissanceCuisineEnum | null;
82
82
  'type_de_cuisine': TypeDeCuisineEnum | null;
@@ -12,13 +12,13 @@ export type DossierBase = {
12
12
  'createur': Utilisateur | null;
13
13
  'application_utilisee_nom': string | null;
14
14
  'statut': StatutEnum;
15
- 'modules': Array<ModulesEnum>;
15
+ 'modules': Set<ModulesEnum>;
16
16
  'tags': Array<Tag>;
17
17
  'est_archive': boolean;
18
18
  'passage_en_commission': PassageCommission | null;
19
19
  'avis': AvisEnum | null;
20
20
  'enveloppe': Enveloppe | null;
21
- 'workflows_actifs': Array<WorkflowsActifsEnum>;
21
+ 'workflows_actifs': Set<WorkflowsActifsEnum>;
22
22
  'nb_messages_fil_rouge': number;
23
23
  'nb_contacts': number;
24
24
  'nb_pieces_jointes': number;
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec
2
+ import { PassageCommission } from './PassageCommission';
2
3
 
3
4
  export type Evenement = {
4
5
  'id': string;
@@ -7,6 +8,7 @@ export type Evenement = {
7
8
  'description': string | null;
8
9
  'date_debut': Date;
9
10
  'date_fin': Date;
11
+ 'subject'?: PassageCommission;
10
12
  };
11
13
 
12
14
  export enum TypeEnum {
@@ -2,8 +2,8 @@
2
2
 
3
3
  export type ReglesDeci = {
4
4
  'pibi_conformite_matrice_seuil_pesee_1bar_par_nature': { [key: string]: number; };
5
- 'pibi_performance_natures_performance_restreinte': Array<PibiPerformanceNaturesPerformanceRestreinteEnum>;
6
- 'pibi_performance_natures_a_reformer': Array<PibiPerformanceNaturesAReformerEnum>;
5
+ 'pibi_performance_natures_performance_restreinte': Set<PibiPerformanceNaturesPerformanceRestreinteEnum>;
6
+ 'pibi_performance_natures_a_reformer': Set<PibiPerformanceNaturesAReformerEnum>;
7
7
  'pibi_performance_seuil_pesee_1bar': number;
8
8
  'pibi_conformite_seuil_surpression': number;
9
9
  'pibi_conformite_matrice_seuil_pesee_1bar_par_defaut': number;