@metarisc/metarisc-js 0.0.1-alpha.61 → 0.0.1-alpha.62
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 +6 -0
- package/lib/api/DossiersAPI.js +15 -0
- package/lib/model/DescriptifTechniqueERP.d.ts +7 -0
- package/lib/model/DescriptifTechniqueERP.js +9 -1
- package/lib/model/DescriptifTechniqueERPBase.d.ts +8 -1
- package/lib/model/DescriptifTechniqueERPBase.js +9 -1
- package/package.json +1 -1
- package/src/api/DossiersAPI.ts +17 -0
- package/src/model/DescriptifTechniqueERP.ts +8 -0
- package/src/model/DescriptifTechniqueERPBase.ts +9 -1
package/lib/api/DossiersAPI.d.ts
CHANGED
|
@@ -92,6 +92,12 @@ export declare class DossiersAPI extends Core {
|
|
|
92
92
|
* @param dossier
|
|
93
93
|
*/
|
|
94
94
|
postDossier(dossier?: Dossier): Promise<AxiosResponse<Dossier>>;
|
|
95
|
+
/**
|
|
96
|
+
* Terminer un workflow d'un dossier. Cela met à jour l'ensemble de son traitement.
|
|
97
|
+
* @param dossierId
|
|
98
|
+
* @param workflowId
|
|
99
|
+
*/
|
|
100
|
+
postTerminerWorkflowWorkflowsDossier(dossierId: string, workflowId: string): Promise<AxiosResponse<void>>;
|
|
95
101
|
/**
|
|
96
102
|
* Mise à jour d'un workflow.
|
|
97
103
|
* @param dossierId Identifiant unique du Dossier
|
package/lib/api/DossiersAPI.js
CHANGED
|
@@ -207,6 +207,21 @@ class DossiersAPI extends core_1.Core {
|
|
|
207
207
|
body: utils_1.Utils.payloadFilter({ 'id': dossier?.id, 'type': dossier?.type, 'description': dossier?.description, 'date_de_creation': dossier?.date_de_creation ? utils_1.Utils.formatDate(dossier?.date_de_creation) : undefined, 'createur': dossier?.createur, 'application_utilisee_nom': dossier?.application_utilisee_nom, 'statut': dossier?.statut, 'objet': dossier?.objet, 'pei_id': dossier?.pei_id, 'pei': dossier?.pei, 'erp_id': dossier?.erp_id, 'erp': dossier?.erp })
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Terminer un workflow d'un dossier. Cela met à jour l'ensemble de son traitement.
|
|
212
|
+
* @param dossierId
|
|
213
|
+
* @param workflowId
|
|
214
|
+
*/
|
|
215
|
+
async postTerminerWorkflowWorkflowsDossier(dossierId, workflowId) {
|
|
216
|
+
const pathVariable = { 'dossier_id': (new String(dossierId)).toString(), 'workflow_id': (new String(workflowId)).toString() };
|
|
217
|
+
return this.request({
|
|
218
|
+
method: 'POST',
|
|
219
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}/terminer'),
|
|
220
|
+
headers: {},
|
|
221
|
+
params: {},
|
|
222
|
+
body: utils_1.Utils.payloadFilter({})
|
|
223
|
+
});
|
|
224
|
+
}
|
|
210
225
|
/**
|
|
211
226
|
* Mise à jour d'un workflow.
|
|
212
227
|
* @param dossierId Identifiant unique du Dossier
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenreEnum = exports.StatutErpEnum = void 0;
|
|
3
|
+
exports.CategorieEnum = exports.GenreEnum = exports.StatutErpEnum = void 0;
|
|
4
4
|
var StatutErpEnum;
|
|
5
5
|
(function (StatutErpEnum) {
|
|
6
6
|
StatutErpEnum["RepriseDeDonnees"] = "reprise_de_donnees";
|
|
@@ -14,3 +14,11 @@ var GenreEnum;
|
|
|
14
14
|
GenreEnum["Site"] = "site";
|
|
15
15
|
GenreEnum["Cellule"] = "cellule";
|
|
16
16
|
})(GenreEnum = exports.GenreEnum || (exports.GenreEnum = {}));
|
|
17
|
+
var CategorieEnum;
|
|
18
|
+
(function (CategorieEnum) {
|
|
19
|
+
CategorieEnum[CategorieEnum["NUMBER_1"] = 1] = "NUMBER_1";
|
|
20
|
+
CategorieEnum[CategorieEnum["NUMBER_2"] = 2] = "NUMBER_2";
|
|
21
|
+
CategorieEnum[CategorieEnum["NUMBER_3"] = 3] = "NUMBER_3";
|
|
22
|
+
CategorieEnum[CategorieEnum["NUMBER_4"] = 4] = "NUMBER_4";
|
|
23
|
+
CategorieEnum[CategorieEnum["NUMBER_5"] = 5] = "NUMBER_5";
|
|
24
|
+
})(CategorieEnum = exports.CategorieEnum || (exports.CategorieEnum = {}));
|
|
@@ -6,7 +6,7 @@ export type DescriptifTechniqueERPBase = {
|
|
|
6
6
|
'statut_erp'?: StatutErpEnum;
|
|
7
7
|
'genre'?: GenreEnum;
|
|
8
8
|
'avis_exploitation'?: Avis;
|
|
9
|
-
'categorie'?:
|
|
9
|
+
'categorie'?: CategorieEnum;
|
|
10
10
|
'type_activite'?: ActiviteErp;
|
|
11
11
|
'types_activites_secondaires'?: Array<ActiviteErp>;
|
|
12
12
|
'periodicite'?: number;
|
|
@@ -25,3 +25,10 @@ export declare enum GenreEnum {
|
|
|
25
25
|
Site = "site",
|
|
26
26
|
Cellule = "cellule"
|
|
27
27
|
}
|
|
28
|
+
export declare enum CategorieEnum {
|
|
29
|
+
NUMBER_1 = 1,
|
|
30
|
+
NUMBER_2 = 2,
|
|
31
|
+
NUMBER_3 = 3,
|
|
32
|
+
NUMBER_4 = 4,
|
|
33
|
+
NUMBER_5 = 5
|
|
34
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenreEnum = exports.StatutErpEnum = void 0;
|
|
3
|
+
exports.CategorieEnum = exports.GenreEnum = exports.StatutErpEnum = void 0;
|
|
4
4
|
var StatutErpEnum;
|
|
5
5
|
(function (StatutErpEnum) {
|
|
6
6
|
StatutErpEnum["RepriseDeDonnees"] = "reprise_de_donnees";
|
|
@@ -14,3 +14,11 @@ var GenreEnum;
|
|
|
14
14
|
GenreEnum["Site"] = "site";
|
|
15
15
|
GenreEnum["Cellule"] = "cellule";
|
|
16
16
|
})(GenreEnum = exports.GenreEnum || (exports.GenreEnum = {}));
|
|
17
|
+
var CategorieEnum;
|
|
18
|
+
(function (CategorieEnum) {
|
|
19
|
+
CategorieEnum[CategorieEnum["NUMBER_1"] = 1] = "NUMBER_1";
|
|
20
|
+
CategorieEnum[CategorieEnum["NUMBER_2"] = 2] = "NUMBER_2";
|
|
21
|
+
CategorieEnum[CategorieEnum["NUMBER_3"] = 3] = "NUMBER_3";
|
|
22
|
+
CategorieEnum[CategorieEnum["NUMBER_4"] = 4] = "NUMBER_4";
|
|
23
|
+
CategorieEnum[CategorieEnum["NUMBER_5"] = 5] = "NUMBER_5";
|
|
24
|
+
})(CategorieEnum = exports.CategorieEnum || (exports.CategorieEnum = {}));
|
package/package.json
CHANGED
package/src/api/DossiersAPI.ts
CHANGED
|
@@ -240,6 +240,23 @@ export class DossiersAPI extends Core {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Terminer un workflow d'un dossier. Cela met à jour l'ensemble de son traitement.
|
|
245
|
+
* @param dossierId
|
|
246
|
+
* @param workflowId
|
|
247
|
+
*/
|
|
248
|
+
async postTerminerWorkflowWorkflowsDossier(dossierId: string, workflowId: string): Promise<AxiosResponse<void>>
|
|
249
|
+
{
|
|
250
|
+
const pathVariable = { 'dossier_id': (new String(dossierId)).toString(), 'workflow_id': (new String(workflowId)).toString() };
|
|
251
|
+
return this.request({
|
|
252
|
+
method: 'POST',
|
|
253
|
+
endpoint: Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}/terminer'),
|
|
254
|
+
headers: { },
|
|
255
|
+
params: { },
|
|
256
|
+
body: Utils.payloadFilter({})
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
|
|
243
260
|
/**
|
|
244
261
|
* Mise à jour d'un workflow.
|
|
245
262
|
* @param dossierId Identifiant unique du Dossier
|
|
@@ -7,7 +7,7 @@ export type DescriptifTechniqueERPBase = {
|
|
|
7
7
|
'statut_erp'?: StatutErpEnum;
|
|
8
8
|
'genre'?: GenreEnum;
|
|
9
9
|
'avis_exploitation'?: Avis;
|
|
10
|
-
'categorie'?:
|
|
10
|
+
'categorie'?: CategorieEnum;
|
|
11
11
|
'type_activite'?: ActiviteErp;
|
|
12
12
|
'types_activites_secondaires'?: Array<ActiviteErp>;
|
|
13
13
|
'periodicite'?: number;
|
|
@@ -28,3 +28,11 @@ export enum GenreEnum {
|
|
|
28
28
|
Site = 'site',
|
|
29
29
|
Cellule = 'cellule'
|
|
30
30
|
}
|
|
31
|
+
|
|
32
|
+
export enum CategorieEnum {
|
|
33
|
+
NUMBER_1 = 1,
|
|
34
|
+
NUMBER_2 = 2,
|
|
35
|
+
NUMBER_3 = 3,
|
|
36
|
+
NUMBER_4 = 4,
|
|
37
|
+
NUMBER_5 = 5
|
|
38
|
+
}
|