@metarisc/metarisc-js 0.0.1-alpha.39 → 0.0.1-alpha.40
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/lib/api/DossiersAPI.d.ts +1 -1
- package/lib/api/DossiersAPI.js +2 -2
- package/lib/api/OrganisationsAPI.d.ts +6 -0
- package/lib/api/OrganisationsAPI.js +14 -0
- package/lib/api/TournesDECIAPI.d.ts +15 -0
- package/lib/api/TournesDECIAPI.js +31 -0
- package/lib/model/PassageCommissionDossier.d.ts +3 -0
- package/lib/model/PostDossierRequest.d.ts +1 -1
- package/lib/model/PostTourneeDeciPeiRequest.d.ts +3 -0
- package/lib/model/PostTourneeDeciPeiRequest.js +2 -0
- package/lib/model/UpdateTourneeDeciPeiRequest.d.ts +5 -0
- package/lib/model/UpdateTourneeDeciPeiRequest.js +2 -0
- package/lib/model/WorkflowType.d.ts +6 -0
- package/lib/model/WorkflowType.js +2 -0
- package/lib/model/WorkflowTypeWorkflow.d.ts +4 -0
- package/lib/model/WorkflowTypeWorkflow.js +2 -0
- package/package.json +1 -1
- package/src/api/DossiersAPI.ts +2 -2
- package/src/api/OrganisationsAPI.ts +17 -0
- package/src/api/TournesDECIAPI.ts +37 -0
- package/src/model/PassageCommissionDossier.ts +3 -0
- package/src/model/PostDossierRequest.ts +1 -1
- package/src/model/PostTourneeDeciPeiRequest.ts +3 -0
- package/src/model/UpdateTourneeDeciPeiRequest.ts +6 -0
- package/src/model/WorkflowType.ts +7 -0
- package/src/model/WorkflowTypeWorkflow.ts +4 -0
package/lib/api/DossiersAPI.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare class DossiersAPI extends Core {
|
|
|
69
69
|
*/
|
|
70
70
|
patchDossier(dossierId: string, dossier?: Dossier): Promise<AxiosResponse<Dossier>>;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Création d'un nouveau dossier.
|
|
73
73
|
* @param postDossierRequest
|
|
74
74
|
*/
|
|
75
75
|
postDossier(postDossierRequest?: PostDossierRequest): Promise<AxiosResponse<Dossier>>;
|
package/lib/api/DossiersAPI.js
CHANGED
|
@@ -148,7 +148,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
151
|
+
* Création d'un nouveau dossier.
|
|
152
152
|
* @param postDossierRequest
|
|
153
153
|
*/
|
|
154
154
|
async postDossier(postDossierRequest) {
|
|
@@ -158,7 +158,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
158
158
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers'),
|
|
159
159
|
headers: {},
|
|
160
160
|
params: {},
|
|
161
|
-
body: { 'titre': postDossierRequest?.titre, 'description': postDossierRequest?.description, '
|
|
161
|
+
body: { 'titre': postDossierRequest?.titre, 'description': postDossierRequest?.description, 'type': postDossierRequest?.type }
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -3,6 +3,7 @@ import type { AxiosResponse } from "axios";
|
|
|
3
3
|
import { Client } from "../client";
|
|
4
4
|
import { Collection } from "../collection";
|
|
5
5
|
import { Organisation } from '../model/Organisation';
|
|
6
|
+
import { WorkflowType } from '../model/WorkflowType';
|
|
6
7
|
import { OrganisationGeoservice } from '../model/OrganisationGeoservice';
|
|
7
8
|
import { OrganisationMembre } from '../model/OrganisationMembre';
|
|
8
9
|
export declare class OrganisationsAPI extends Core {
|
|
@@ -12,6 +13,11 @@ export declare class OrganisationsAPI extends Core {
|
|
|
12
13
|
* @param orgId Identifiant unique de l'Organisation
|
|
13
14
|
*/
|
|
14
15
|
getOrganisation(orgId: string): Promise<AxiosResponse<Organisation>>;
|
|
16
|
+
/**
|
|
17
|
+
* Retourne le référentiel du paramétrage des workflows pour l'organisation.
|
|
18
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
19
|
+
*/
|
|
20
|
+
paginateOrganisationDossiersWorkflowsSuites(orgId: string): Collection<WorkflowType>;
|
|
15
21
|
/**
|
|
16
22
|
* Récupération de la liste des géo-services d'une organisation.
|
|
17
23
|
* @param orgId Identifiant unique de l'Organisation
|
|
@@ -21,6 +21,20 @@ class OrganisationsAPI extends core_1.Core {
|
|
|
21
21
|
body: {}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Retourne le référentiel du paramétrage des workflows pour l'organisation.
|
|
26
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
27
|
+
*/
|
|
28
|
+
paginateOrganisationDossiersWorkflowsSuites(orgId) {
|
|
29
|
+
const pathVariable = { 'org_id': orgId };
|
|
30
|
+
return this.collect({
|
|
31
|
+
method: 'GET',
|
|
32
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/dossiers-workflows-suites'),
|
|
33
|
+
headers: {},
|
|
34
|
+
params: {},
|
|
35
|
+
body: {}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
24
38
|
/**
|
|
25
39
|
* Récupération de la liste des géo-services d'une organisation.
|
|
26
40
|
* @param orgId Identifiant unique de l'Organisation
|
|
@@ -2,9 +2,11 @@ import { Core, MetariscConfig } from "../core";
|
|
|
2
2
|
import type { AxiosResponse } from "axios";
|
|
3
3
|
import { Client } from "../client";
|
|
4
4
|
import { Collection } from "../collection";
|
|
5
|
+
import { PostTourneeDeciPeiRequest } from '../model/PostTourneeDeciPeiRequest';
|
|
5
6
|
import { PostTourneeDeciRequest } from '../model/PostTourneeDeciRequest';
|
|
6
7
|
import { TourneeDeci } from '../model/TourneeDeci';
|
|
7
8
|
import { TourneeDeciPei } from '../model/TourneeDeciPei';
|
|
9
|
+
import { UpdateTourneeDeciPeiRequest } from '../model/UpdateTourneeDeciPeiRequest';
|
|
8
10
|
export declare class TournesDECIAPI extends Core {
|
|
9
11
|
constructor(config: MetariscConfig, client?: Client);
|
|
10
12
|
/**
|
|
@@ -36,4 +38,17 @@ export declare class TournesDECIAPI extends Core {
|
|
|
36
38
|
* @param postTourneeDeciRequest
|
|
37
39
|
*/
|
|
38
40
|
postTourneeDeci(postTourneeDeciRequest?: PostTourneeDeciRequest): Promise<AxiosResponse<TourneeDeci>>;
|
|
41
|
+
/**
|
|
42
|
+
* Ajout d'un PEI sur la tournée DECI.
|
|
43
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
44
|
+
* @param postTourneeDeciPeiRequest
|
|
45
|
+
*/
|
|
46
|
+
postTourneeDeciPei(tourneeDeciId: string, postTourneeDeciPeiRequest?: PostTourneeDeciPeiRequest): Promise<AxiosResponse<TourneeDeciPei>>;
|
|
47
|
+
/**
|
|
48
|
+
* Mise à jour du PEI contrôlé dans une tournée DECI.
|
|
49
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
50
|
+
* @param peiId Identifiant du PEI lié au contrôle
|
|
51
|
+
* @param updateTourneeDeciPeiRequest
|
|
52
|
+
*/
|
|
53
|
+
updateTourneeDeciPei(tourneeDeciId: string, peiId: string, updateTourneeDeciPeiRequest?: UpdateTourneeDeciPeiRequest): Promise<AxiosResponse<void>>;
|
|
39
54
|
}
|
|
@@ -81,5 +81,36 @@ class TournesDECIAPI extends core_1.Core {
|
|
|
81
81
|
body: { 'libelle': postTourneeDeciRequest?.libelle, 'description': postTourneeDeciRequest?.description }
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Ajout d'un PEI sur la tournée DECI.
|
|
86
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
87
|
+
* @param postTourneeDeciPeiRequest
|
|
88
|
+
*/
|
|
89
|
+
async postTourneeDeciPei(tourneeDeciId, postTourneeDeciPeiRequest) {
|
|
90
|
+
const pathVariable = { 'tournee_deci_id': tourneeDeciId };
|
|
91
|
+
return this.request({
|
|
92
|
+
method: 'POST',
|
|
93
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei'),
|
|
94
|
+
headers: {},
|
|
95
|
+
params: {},
|
|
96
|
+
body: { 'pei_id': postTourneeDeciPeiRequest?.pei_id }
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Mise à jour du PEI contrôlé dans une tournée DECI.
|
|
101
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
102
|
+
* @param peiId Identifiant du PEI lié au contrôle
|
|
103
|
+
* @param updateTourneeDeciPeiRequest
|
|
104
|
+
*/
|
|
105
|
+
async updateTourneeDeciPei(tourneeDeciId, peiId, updateTourneeDeciPeiRequest) {
|
|
106
|
+
const pathVariable = { 'tournee_deci_id': tourneeDeciId, 'pei_id': peiId };
|
|
107
|
+
return this.request({
|
|
108
|
+
method: 'POST',
|
|
109
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei/{pei_id}'),
|
|
110
|
+
headers: {},
|
|
111
|
+
params: {},
|
|
112
|
+
body: { 'liste_anomalies': updateTourneeDeciPeiRequest?.liste_anomalies, 'engin_utilisé': updateTourneeDeciPeiRequest?.engin_utilisé }
|
|
113
|
+
});
|
|
114
|
+
}
|
|
84
115
|
}
|
|
85
116
|
exports.TournesDECIAPI = TournesDECIAPI;
|
package/package.json
CHANGED
package/src/api/DossiersAPI.ts
CHANGED
|
@@ -173,7 +173,7 @@ export class DossiersAPI extends Core {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* Création d'un nouveau dossier.
|
|
177
177
|
* @param postDossierRequest
|
|
178
178
|
*/
|
|
179
179
|
async postDossier(postDossierRequest?: PostDossierRequest): Promise<AxiosResponse<Dossier>>
|
|
@@ -184,7 +184,7 @@ export class DossiersAPI extends Core {
|
|
|
184
184
|
endpoint: Utils.constructPath(pathVariable, '/dossiers'),
|
|
185
185
|
headers: { },
|
|
186
186
|
params: { },
|
|
187
|
-
body: { 'titre': postDossierRequest?.titre, 'description': postDossierRequest?.description, '
|
|
187
|
+
body: { 'titre': postDossierRequest?.titre, 'description': postDossierRequest?.description, 'type': postDossierRequest?.type }
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
|
|
@@ -4,6 +4,7 @@ import type { AxiosResponse } from "axios";
|
|
|
4
4
|
import { Client } from "../client";
|
|
5
5
|
import { Collection } from "../collection";
|
|
6
6
|
import { Organisation } from '../model/Organisation';
|
|
7
|
+
import { WorkflowType } from '../model/WorkflowType';
|
|
7
8
|
import { OrganisationGeoservice } from '../model/OrganisationGeoservice';
|
|
8
9
|
import { OrganisationMembre } from '../model/OrganisationMembre';
|
|
9
10
|
|
|
@@ -28,6 +29,22 @@ export class OrganisationsAPI extends Core {
|
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Retourne le référentiel du paramétrage des workflows pour l'organisation.
|
|
34
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
35
|
+
*/
|
|
36
|
+
paginateOrganisationDossiersWorkflowsSuites(orgId: string): Collection<WorkflowType>
|
|
37
|
+
{
|
|
38
|
+
const pathVariable = { 'org_id': orgId };
|
|
39
|
+
return this.collect<WorkflowType>({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
endpoint: Utils.constructPath(pathVariable, '/organisations/{org_id}/dossiers-workflows-suites'),
|
|
42
|
+
headers: { },
|
|
43
|
+
params: { },
|
|
44
|
+
body: {}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
31
48
|
/**
|
|
32
49
|
* Récupération de la liste des géo-services d'une organisation.
|
|
33
50
|
* @param orgId Identifiant unique de l'Organisation
|
|
@@ -3,9 +3,11 @@ import { Utils } from "../utils";
|
|
|
3
3
|
import type { AxiosResponse } from "axios";
|
|
4
4
|
import { Client } from "../client";
|
|
5
5
|
import { Collection } from "../collection";
|
|
6
|
+
import { PostTourneeDeciPeiRequest } from '../model/PostTourneeDeciPeiRequest';
|
|
6
7
|
import { PostTourneeDeciRequest } from '../model/PostTourneeDeciRequest';
|
|
7
8
|
import { TourneeDeci } from '../model/TourneeDeci';
|
|
8
9
|
import { TourneeDeciPei } from '../model/TourneeDeciPei';
|
|
10
|
+
import { UpdateTourneeDeciPeiRequest } from '../model/UpdateTourneeDeciPeiRequest';
|
|
9
11
|
|
|
10
12
|
export class TournesDECIAPI extends Core {
|
|
11
13
|
constructor(config: MetariscConfig, client?: Client) {
|
|
@@ -96,4 +98,39 @@ export class TournesDECIAPI extends Core {
|
|
|
96
98
|
});
|
|
97
99
|
}
|
|
98
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Ajout d'un PEI sur la tournée DECI.
|
|
103
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
104
|
+
* @param postTourneeDeciPeiRequest
|
|
105
|
+
*/
|
|
106
|
+
async postTourneeDeciPei(tourneeDeciId: string, postTourneeDeciPeiRequest?: PostTourneeDeciPeiRequest): Promise<AxiosResponse<TourneeDeciPei>>
|
|
107
|
+
{
|
|
108
|
+
const pathVariable = { 'tournee_deci_id': tourneeDeciId };
|
|
109
|
+
return this.request({
|
|
110
|
+
method: 'POST',
|
|
111
|
+
endpoint: Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei'),
|
|
112
|
+
headers: { },
|
|
113
|
+
params: { },
|
|
114
|
+
body: { 'pei_id': postTourneeDeciPeiRequest?.pei_id }
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Mise à jour du PEI contrôlé dans une tournée DECI.
|
|
120
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
121
|
+
* @param peiId Identifiant du PEI lié au contrôle
|
|
122
|
+
* @param updateTourneeDeciPeiRequest
|
|
123
|
+
*/
|
|
124
|
+
async updateTourneeDeciPei(tourneeDeciId: string, peiId: string, updateTourneeDeciPeiRequest?: UpdateTourneeDeciPeiRequest): Promise<AxiosResponse<void>>
|
|
125
|
+
{
|
|
126
|
+
const pathVariable = { 'tournee_deci_id': tourneeDeciId, 'pei_id': peiId };
|
|
127
|
+
return this.request({
|
|
128
|
+
method: 'POST',
|
|
129
|
+
endpoint: Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei/{pei_id}'),
|
|
130
|
+
headers: { },
|
|
131
|
+
params: { },
|
|
132
|
+
body: { 'liste_anomalies': updateTourneeDeciPeiRequest?.liste_anomalies, 'engin_utilisé': updateTourneeDeciPeiRequest?.engin_utilisé }
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
99
136
|
}
|