@metarisc/metarisc-js 0.0.1-alpha.95 → 0.0.1-alpha.96
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/CommissionsAPI.js +1 -1
- package/lib/api/PrescriptionsAPI.d.ts +0 -17
- package/lib/api/PrescriptionsAPI.js +0 -61
- package/lib/api/SupportsReglementairesAPI.d.ts +28 -0
- package/lib/api/SupportsReglementairesAPI.js +88 -0
- package/lib/metarisc.d.ts +1 -1
- package/lib/metarisc.js +1 -1
- package/lib/resources.d.ts +1 -0
- package/lib/resources.js +3 -1
- package/package.json +1 -1
- package/src/api/CommissionsAPI.ts +1 -1
- package/src/api/PrescriptionsAPI.ts +0 -79
- package/src/api/SupportsReglementairesAPI.ts +112 -0
- package/src/metarisc.ts +2 -2
- package/src/resources.ts +2 -0
|
@@ -63,7 +63,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
63
63
|
method: 'GET',
|
|
64
64
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
65
65
|
params: utils_1.Utils.payloadFilter({
|
|
66
|
-
'from_date': fromDate === undefined ? undefined : (
|
|
66
|
+
'from_date': fromDate === undefined ? undefined : utils_1.Utils.formatDate(fromDate),
|
|
67
67
|
'type': type === undefined ? undefined : (new String(type)).toString()
|
|
68
68
|
}),
|
|
69
69
|
transformResponse: [(data) => {
|
|
@@ -3,33 +3,20 @@ import type { AxiosResponse } from "axios";
|
|
|
3
3
|
import { Client } from "../client";
|
|
4
4
|
import { Collection } from "../collection";
|
|
5
5
|
import { Prescription } from '../model/Prescription';
|
|
6
|
-
import { PrescriptionSupportReglementaire } from '../model/PrescriptionSupportReglementaire';
|
|
7
6
|
export declare class PrescriptionsAPI extends Core {
|
|
8
7
|
constructor(config: MetariscConfig, client?: Client);
|
|
9
8
|
/**
|
|
10
9
|
* Suppression d'une prescription type de la bibliothèque.
|
|
11
10
|
*/
|
|
12
11
|
deletePrescription(prescriptionId: string): Promise<AxiosResponse<void>>;
|
|
13
|
-
/**
|
|
14
|
-
* Suppression d'un support réglementaire.
|
|
15
|
-
*/
|
|
16
|
-
deleteSupportReglementaire(supportReglementaireId: string): Promise<AxiosResponse<void>>;
|
|
17
12
|
/**
|
|
18
13
|
* Récupération des détails d'une prescription dans la bibliothèque.
|
|
19
14
|
*/
|
|
20
15
|
getPrescription(prescriptionId: string): Promise<AxiosResponse<Prescription>>;
|
|
21
|
-
/**
|
|
22
|
-
* Récupération des détails d'un support réglementaire.
|
|
23
|
-
*/
|
|
24
|
-
getSupportReglementaire(supportReglementaireId: string): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
25
16
|
/**
|
|
26
17
|
* Liste des prescriptions.
|
|
27
18
|
*/
|
|
28
19
|
paginatePrescriptions(contenu?: string, supportReglementaireReference?: string): Collection<Prescription>;
|
|
29
|
-
/**
|
|
30
|
-
* Liste des supports réglementaires.
|
|
31
|
-
*/
|
|
32
|
-
paginateSupportsReglementaires(contenu?: string, reference?: string): Collection<PrescriptionSupportReglementaire>;
|
|
33
20
|
/**
|
|
34
21
|
* Modification d'une prescription existante en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
35
22
|
*/
|
|
@@ -38,8 +25,4 @@ export declare class PrescriptionsAPI extends Core {
|
|
|
38
25
|
* Ajout d'une nouvelle prescription type dans la bibliothèque.
|
|
39
26
|
*/
|
|
40
27
|
postPrescription(params: any): Promise<AxiosResponse<Prescription>>;
|
|
41
|
-
/**
|
|
42
|
-
* Ajouter un support réglementaire.
|
|
43
|
-
*/
|
|
44
|
-
postSupportReglementaire(params: any): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
45
28
|
}
|
|
@@ -22,20 +22,6 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
22
22
|
}]
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Suppression d'un support réglementaire.
|
|
27
|
-
*/
|
|
28
|
-
deleteSupportReglementaire(supportReglementaireId) {
|
|
29
|
-
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
30
|
-
return this.request({
|
|
31
|
-
method: 'DELETE',
|
|
32
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
33
|
-
transformResponse: [(data) => {
|
|
34
|
-
const parsedData = JSON.parse(data);
|
|
35
|
-
return parsedData;
|
|
36
|
-
}]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
25
|
/**
|
|
40
26
|
* Récupération des détails d'une prescription dans la bibliothèque.
|
|
41
27
|
*/
|
|
@@ -50,20 +36,6 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
50
36
|
}]
|
|
51
37
|
});
|
|
52
38
|
}
|
|
53
|
-
/**
|
|
54
|
-
* Récupération des détails d'un support réglementaire.
|
|
55
|
-
*/
|
|
56
|
-
getSupportReglementaire(supportReglementaireId) {
|
|
57
|
-
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
58
|
-
return this.request({
|
|
59
|
-
method: 'GET',
|
|
60
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
61
|
-
transformResponse: [(data) => {
|
|
62
|
-
const parsedData = JSON.parse(data);
|
|
63
|
-
return parsedData;
|
|
64
|
-
}]
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
39
|
/**
|
|
68
40
|
* Liste des prescriptions.
|
|
69
41
|
*/
|
|
@@ -82,24 +54,6 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
82
54
|
}]
|
|
83
55
|
});
|
|
84
56
|
}
|
|
85
|
-
/**
|
|
86
|
-
* Liste des supports réglementaires.
|
|
87
|
-
*/
|
|
88
|
-
paginateSupportsReglementaires(contenu, reference) {
|
|
89
|
-
const pathVariable = {};
|
|
90
|
-
return this.collect({
|
|
91
|
-
method: 'GET',
|
|
92
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
93
|
-
params: utils_1.Utils.payloadFilter({
|
|
94
|
-
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
95
|
-
'reference': reference === undefined ? undefined : (new String(reference)).toString()
|
|
96
|
-
}),
|
|
97
|
-
transformResponse: [(data) => {
|
|
98
|
-
const parsedData = JSON.parse(data);
|
|
99
|
-
return parsedData;
|
|
100
|
-
}]
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
57
|
/**
|
|
104
58
|
* Modification d'une prescription existante en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
105
59
|
*/
|
|
@@ -130,20 +84,5 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
130
84
|
body: utils_1.Utils.payloadFilter(params)
|
|
131
85
|
});
|
|
132
86
|
}
|
|
133
|
-
/**
|
|
134
|
-
* Ajouter un support réglementaire.
|
|
135
|
-
*/
|
|
136
|
-
postSupportReglementaire(params) {
|
|
137
|
-
const pathVariable = {};
|
|
138
|
-
return this.request({
|
|
139
|
-
method: 'POST',
|
|
140
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
141
|
-
transformResponse: [(data) => {
|
|
142
|
-
const parsedData = JSON.parse(data);
|
|
143
|
-
return parsedData;
|
|
144
|
-
}],
|
|
145
|
-
body: utils_1.Utils.payloadFilter(params)
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
87
|
}
|
|
149
88
|
exports.PrescriptionsAPI = PrescriptionsAPI;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import type { AxiosResponse } from "axios";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { PrescriptionSupportReglementaire } from '../model/PrescriptionSupportReglementaire';
|
|
6
|
+
export declare class SupportsReglementairesAPI extends Core {
|
|
7
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Suppression d'un support réglementaire.
|
|
10
|
+
*/
|
|
11
|
+
deleteSupportReglementaire(supportReglementaireId: string): Promise<AxiosResponse<void>>;
|
|
12
|
+
/**
|
|
13
|
+
* Récupération des détails d'un support réglementaire.
|
|
14
|
+
*/
|
|
15
|
+
getSupportReglementaire(supportReglementaireId: string): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
16
|
+
/**
|
|
17
|
+
* Liste des supports réglementaires.
|
|
18
|
+
*/
|
|
19
|
+
paginateSupportsReglementaires(contenu?: string, reference?: string): Collection<PrescriptionSupportReglementaire>;
|
|
20
|
+
/**
|
|
21
|
+
* Modification d'un support réglementaire existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
22
|
+
*/
|
|
23
|
+
patchSupportReglementaire(supportReglementaireId: string, params: any): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
24
|
+
/**
|
|
25
|
+
* Ajouter un support réglementaire.
|
|
26
|
+
*/
|
|
27
|
+
postSupportReglementaire(params: any): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SupportsReglementairesAPI = void 0;
|
|
4
|
+
// File generated from our OpenAPI spec
|
|
5
|
+
const core_1 = require("../core");
|
|
6
|
+
const utils_1 = require("../utils");
|
|
7
|
+
class SupportsReglementairesAPI extends core_1.Core {
|
|
8
|
+
constructor(config, client) {
|
|
9
|
+
super(config, client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Suppression d'un support réglementaire.
|
|
13
|
+
*/
|
|
14
|
+
deleteSupportReglementaire(supportReglementaireId) {
|
|
15
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
16
|
+
return this.request({
|
|
17
|
+
method: 'DELETE',
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
19
|
+
transformResponse: [(data) => {
|
|
20
|
+
const parsedData = JSON.parse(data);
|
|
21
|
+
return parsedData;
|
|
22
|
+
}]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Récupération des détails d'un support réglementaire.
|
|
27
|
+
*/
|
|
28
|
+
getSupportReglementaire(supportReglementaireId) {
|
|
29
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
30
|
+
return this.request({
|
|
31
|
+
method: 'GET',
|
|
32
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
33
|
+
transformResponse: [(data) => {
|
|
34
|
+
const parsedData = JSON.parse(data);
|
|
35
|
+
return parsedData;
|
|
36
|
+
}]
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Liste des supports réglementaires.
|
|
41
|
+
*/
|
|
42
|
+
paginateSupportsReglementaires(contenu, reference) {
|
|
43
|
+
const pathVariable = {};
|
|
44
|
+
return this.collect({
|
|
45
|
+
method: 'GET',
|
|
46
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
47
|
+
params: utils_1.Utils.payloadFilter({
|
|
48
|
+
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
49
|
+
'reference': reference === undefined ? undefined : (new String(reference)).toString()
|
|
50
|
+
}),
|
|
51
|
+
transformResponse: [(data) => {
|
|
52
|
+
const parsedData = JSON.parse(data);
|
|
53
|
+
return parsedData;
|
|
54
|
+
}]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Modification d'un support réglementaire existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
59
|
+
*/
|
|
60
|
+
patchSupportReglementaire(supportReglementaireId, params) {
|
|
61
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
62
|
+
return this.request({
|
|
63
|
+
method: 'PATCH',
|
|
64
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
65
|
+
transformResponse: [(data) => {
|
|
66
|
+
const parsedData = JSON.parse(data);
|
|
67
|
+
return parsedData;
|
|
68
|
+
}],
|
|
69
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Ajouter un support réglementaire.
|
|
74
|
+
*/
|
|
75
|
+
postSupportReglementaire(params) {
|
|
76
|
+
const pathVariable = {};
|
|
77
|
+
return this.request({
|
|
78
|
+
method: 'POST',
|
|
79
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
80
|
+
transformResponse: [(data) => {
|
|
81
|
+
const parsedData = JSON.parse(data);
|
|
82
|
+
return parsedData;
|
|
83
|
+
}],
|
|
84
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.SupportsReglementairesAPI = SupportsReglementairesAPI;
|
package/lib/metarisc.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class Metarisc extends Core {
|
|
|
25
25
|
dossiers_affectations: resources.DossiersAffectationsAPI;
|
|
26
26
|
mains_courantes: resources.MainsCourantesAPI;
|
|
27
27
|
anomalies: resources.AnomaliesAPI;
|
|
28
|
-
supports_reglementaires: resources.
|
|
28
|
+
supports_reglementaires: resources.SupportsReglementairesAPI;
|
|
29
29
|
feed: resources.FeedAPI;
|
|
30
30
|
tournees_deci: resources.TourneesDECIAPI;
|
|
31
31
|
controles_pei: resources.ControlesPEIAPI;
|
package/lib/metarisc.js
CHANGED
|
@@ -57,7 +57,7 @@ class Metarisc extends core_1.Core {
|
|
|
57
57
|
case 'dossiers_affectations': return new resources.DossiersAffectationsAPI(config, tmpClient);
|
|
58
58
|
case 'mains_courantes': return new resources.MainsCourantesAPI(config, tmpClient);
|
|
59
59
|
case 'anomalies': return new resources.AnomaliesAPI(config, tmpClient);
|
|
60
|
-
case 'supports_reglementaires': return new resources.
|
|
60
|
+
case 'supports_reglementaires': return new resources.SupportsReglementairesAPI(config, tmpClient);
|
|
61
61
|
case 'feed': return new resources.FeedAPI(config, tmpClient);
|
|
62
62
|
case 'tournees_deci': return new resources.TourneesDECIAPI(config, tmpClient);
|
|
63
63
|
case 'controles_pei': return new resources.ControlesPEIAPI(config, tmpClient);
|
package/lib/resources.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export { PingAPI } from './api/PingAPI';
|
|
|
24
24
|
export { PrescriptionsAPI } from './api/PrescriptionsAPI';
|
|
25
25
|
export { SearchAPI } from './api/SearchAPI';
|
|
26
26
|
export { SitesGeographiquesAPI } from './api/SitesGeographiquesAPI';
|
|
27
|
+
export { SupportsReglementairesAPI } from './api/SupportsReglementairesAPI';
|
|
27
28
|
export { TourneesDECIAPI } from './api/TourneesDECIAPI';
|
|
28
29
|
export { UtilisateursAPI } from './api/UtilisateursAPI';
|
|
29
30
|
export { WorkflowsAPI } from './api/WorkflowsAPI';
|
package/lib/resources.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WorkflowsAPI = exports.UtilisateursAPI = exports.TourneesDECIAPI = exports.SitesGeographiquesAPI = exports.SearchAPI = exports.PrescriptionsAPI = exports.PingAPI = exports.PermissionsAPI = exports.PEIAPI = exports.OrganisationsAPI = exports.OrdresDuJourAPI = exports.NotificationsAPI = exports.MoiAPI = exports.MainsCourantesParticipantsAPI = exports.MainsCourantesAPI = exports.HealthcheckAPI = exports.FeedAPI = exports.EvenementsAPI = exports.EnveloppesAPI = exports.ERPAPI = exports.DossiersAffectationsAPI = exports.DossiersAPI = exports.DocumentsAPI = exports.DatesPassageCommissionAPI = exports.ControlesPEIAPI = exports.ContactsAPI = exports.CommissionsMembresAPI = exports.CommissionsAPI = exports.AnomaliesAPI = void 0;
|
|
4
|
+
exports.WorkflowsAPI = exports.UtilisateursAPI = exports.TourneesDECIAPI = exports.SupportsReglementairesAPI = exports.SitesGeographiquesAPI = exports.SearchAPI = exports.PrescriptionsAPI = exports.PingAPI = exports.PermissionsAPI = exports.PEIAPI = exports.OrganisationsAPI = exports.OrdresDuJourAPI = exports.NotificationsAPI = exports.MoiAPI = exports.MainsCourantesParticipantsAPI = exports.MainsCourantesAPI = exports.HealthcheckAPI = exports.FeedAPI = exports.EvenementsAPI = exports.EnveloppesAPI = exports.ERPAPI = exports.DossiersAffectationsAPI = exports.DossiersAPI = exports.DocumentsAPI = exports.DatesPassageCommissionAPI = exports.ControlesPEIAPI = exports.ContactsAPI = exports.CommissionsMembresAPI = exports.CommissionsAPI = exports.AnomaliesAPI = void 0;
|
|
5
5
|
var AnomaliesAPI_1 = require("./api/AnomaliesAPI");
|
|
6
6
|
Object.defineProperty(exports, "AnomaliesAPI", { enumerable: true, get: function () { return AnomaliesAPI_1.AnomaliesAPI; } });
|
|
7
7
|
var CommissionsAPI_1 = require("./api/CommissionsAPI");
|
|
@@ -54,6 +54,8 @@ var SearchAPI_1 = require("./api/SearchAPI");
|
|
|
54
54
|
Object.defineProperty(exports, "SearchAPI", { enumerable: true, get: function () { return SearchAPI_1.SearchAPI; } });
|
|
55
55
|
var SitesGeographiquesAPI_1 = require("./api/SitesGeographiquesAPI");
|
|
56
56
|
Object.defineProperty(exports, "SitesGeographiquesAPI", { enumerable: true, get: function () { return SitesGeographiquesAPI_1.SitesGeographiquesAPI; } });
|
|
57
|
+
var SupportsReglementairesAPI_1 = require("./api/SupportsReglementairesAPI");
|
|
58
|
+
Object.defineProperty(exports, "SupportsReglementairesAPI", { enumerable: true, get: function () { return SupportsReglementairesAPI_1.SupportsReglementairesAPI; } });
|
|
57
59
|
var TourneesDECIAPI_1 = require("./api/TourneesDECIAPI");
|
|
58
60
|
Object.defineProperty(exports, "TourneesDECIAPI", { enumerable: true, get: function () { return TourneesDECIAPI_1.TourneesDECIAPI; } });
|
|
59
61
|
var UtilisateursAPI_1 = require("./api/UtilisateursAPI");
|
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@ export class CommissionsAPI extends Core {
|
|
|
87
87
|
method: 'GET',
|
|
88
88
|
endpoint: Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
89
89
|
params: Utils.payloadFilter({
|
|
90
|
-
'from_date': fromDate === undefined ? undefined : (
|
|
90
|
+
'from_date': fromDate === undefined ? undefined : Utils.formatDate(fromDate),
|
|
91
91
|
'type': type === undefined ? undefined : (new String(type)).toString()
|
|
92
92
|
}),
|
|
93
93
|
transformResponse: [(data) => {
|
|
@@ -5,7 +5,6 @@ import type { AxiosResponse } from "axios";
|
|
|
5
5
|
import { Client } from "../client";
|
|
6
6
|
import { Collection } from "../collection";
|
|
7
7
|
import { Prescription } from '../model/Prescription';
|
|
8
|
-
import { PrescriptionSupportReglementaire } from '../model/PrescriptionSupportReglementaire';
|
|
9
8
|
|
|
10
9
|
export class PrescriptionsAPI extends Core {
|
|
11
10
|
constructor(config: MetariscConfig, client?: Client) {
|
|
@@ -30,24 +29,6 @@ export class PrescriptionsAPI extends Core {
|
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
/**
|
|
34
|
-
* Suppression d'un support réglementaire.
|
|
35
|
-
*/
|
|
36
|
-
deleteSupportReglementaire(
|
|
37
|
-
supportReglementaireId: string
|
|
38
|
-
) : Promise<AxiosResponse<void>>
|
|
39
|
-
{
|
|
40
|
-
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
41
|
-
return this.request({
|
|
42
|
-
method: 'DELETE',
|
|
43
|
-
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
44
|
-
transformResponse: [(data) => {
|
|
45
|
-
const parsedData = JSON.parse(data);
|
|
46
|
-
return parsedData;
|
|
47
|
-
}]
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
32
|
/**
|
|
52
33
|
* Récupération des détails d'une prescription dans la bibliothèque.
|
|
53
34
|
*/
|
|
@@ -66,24 +47,6 @@ export class PrescriptionsAPI extends Core {
|
|
|
66
47
|
});
|
|
67
48
|
}
|
|
68
49
|
|
|
69
|
-
/**
|
|
70
|
-
* Récupération des détails d'un support réglementaire.
|
|
71
|
-
*/
|
|
72
|
-
getSupportReglementaire(
|
|
73
|
-
supportReglementaireId: string
|
|
74
|
-
) : Promise<AxiosResponse<PrescriptionSupportReglementaire>>
|
|
75
|
-
{
|
|
76
|
-
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
77
|
-
return this.request({
|
|
78
|
-
method: 'GET',
|
|
79
|
-
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
80
|
-
transformResponse: [(data) => {
|
|
81
|
-
const parsedData = JSON.parse(data);
|
|
82
|
-
return parsedData;
|
|
83
|
-
}]
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
|
|
87
50
|
/**
|
|
88
51
|
* Liste des prescriptions.
|
|
89
52
|
*/
|
|
@@ -107,29 +70,6 @@ export class PrescriptionsAPI extends Core {
|
|
|
107
70
|
});
|
|
108
71
|
}
|
|
109
72
|
|
|
110
|
-
/**
|
|
111
|
-
* Liste des supports réglementaires.
|
|
112
|
-
*/
|
|
113
|
-
paginateSupportsReglementaires(
|
|
114
|
-
contenu? : string,
|
|
115
|
-
reference? : string
|
|
116
|
-
) : Collection<PrescriptionSupportReglementaire>
|
|
117
|
-
{
|
|
118
|
-
const pathVariable = { };
|
|
119
|
-
return this.collect({
|
|
120
|
-
method: 'GET',
|
|
121
|
-
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
122
|
-
params: Utils.payloadFilter({
|
|
123
|
-
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
124
|
-
'reference': reference === undefined ? undefined : (new String(reference)).toString()
|
|
125
|
-
}),
|
|
126
|
-
transformResponse: [(data) => {
|
|
127
|
-
const parsedData = JSON.parse(data);
|
|
128
|
-
return parsedData;
|
|
129
|
-
}]
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
|
|
133
73
|
/**
|
|
134
74
|
* Modification d'une prescription existante en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
135
75
|
*/
|
|
@@ -169,23 +109,4 @@ export class PrescriptionsAPI extends Core {
|
|
|
169
109
|
});
|
|
170
110
|
}
|
|
171
111
|
|
|
172
|
-
/**
|
|
173
|
-
* Ajouter un support réglementaire.
|
|
174
|
-
*/
|
|
175
|
-
postSupportReglementaire(
|
|
176
|
-
params : any
|
|
177
|
-
) : Promise<AxiosResponse<PrescriptionSupportReglementaire>>
|
|
178
|
-
{
|
|
179
|
-
const pathVariable = { };
|
|
180
|
-
return this.request({
|
|
181
|
-
method: 'POST',
|
|
182
|
-
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
183
|
-
transformResponse: [(data) => {
|
|
184
|
-
const parsedData = JSON.parse(data);
|
|
185
|
-
return parsedData;
|
|
186
|
-
}],
|
|
187
|
-
body: Utils.payloadFilter(params)
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
|
|
191
112
|
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { Core, MetariscConfig } from "../core";
|
|
3
|
+
import { Utils } from "../utils";
|
|
4
|
+
import type { AxiosResponse } from "axios";
|
|
5
|
+
import { Client } from "../client";
|
|
6
|
+
import { Collection } from "../collection";
|
|
7
|
+
import { PrescriptionSupportReglementaire } from '../model/PrescriptionSupportReglementaire';
|
|
8
|
+
|
|
9
|
+
export class SupportsReglementairesAPI extends Core {
|
|
10
|
+
constructor(config: MetariscConfig, client?: Client) {
|
|
11
|
+
super(config, client);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Suppression d'un support réglementaire.
|
|
16
|
+
*/
|
|
17
|
+
deleteSupportReglementaire(
|
|
18
|
+
supportReglementaireId: string
|
|
19
|
+
) : Promise<AxiosResponse<void>>
|
|
20
|
+
{
|
|
21
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
22
|
+
return this.request({
|
|
23
|
+
method: 'DELETE',
|
|
24
|
+
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
25
|
+
transformResponse: [(data) => {
|
|
26
|
+
const parsedData = JSON.parse(data);
|
|
27
|
+
return parsedData;
|
|
28
|
+
}]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Récupération des détails d'un support réglementaire.
|
|
34
|
+
*/
|
|
35
|
+
getSupportReglementaire(
|
|
36
|
+
supportReglementaireId: string
|
|
37
|
+
) : Promise<AxiosResponse<PrescriptionSupportReglementaire>>
|
|
38
|
+
{
|
|
39
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
40
|
+
return this.request({
|
|
41
|
+
method: 'GET',
|
|
42
|
+
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
43
|
+
transformResponse: [(data) => {
|
|
44
|
+
const parsedData = JSON.parse(data);
|
|
45
|
+
return parsedData;
|
|
46
|
+
}]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Liste des supports réglementaires.
|
|
52
|
+
*/
|
|
53
|
+
paginateSupportsReglementaires(
|
|
54
|
+
contenu? : string,
|
|
55
|
+
reference? : string
|
|
56
|
+
) : Collection<PrescriptionSupportReglementaire>
|
|
57
|
+
{
|
|
58
|
+
const pathVariable = { };
|
|
59
|
+
return this.collect({
|
|
60
|
+
method: 'GET',
|
|
61
|
+
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
62
|
+
params: Utils.payloadFilter({
|
|
63
|
+
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
64
|
+
'reference': reference === undefined ? undefined : (new String(reference)).toString()
|
|
65
|
+
}),
|
|
66
|
+
transformResponse: [(data) => {
|
|
67
|
+
const parsedData = JSON.parse(data);
|
|
68
|
+
return parsedData;
|
|
69
|
+
}]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Modification d'un support réglementaire existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
75
|
+
*/
|
|
76
|
+
patchSupportReglementaire(
|
|
77
|
+
supportReglementaireId: string,
|
|
78
|
+
params : any
|
|
79
|
+
) : Promise<AxiosResponse<PrescriptionSupportReglementaire>>
|
|
80
|
+
{
|
|
81
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
82
|
+
return this.request({
|
|
83
|
+
method: 'PATCH',
|
|
84
|
+
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
85
|
+
transformResponse: [(data) => {
|
|
86
|
+
const parsedData = JSON.parse(data);
|
|
87
|
+
return parsedData;
|
|
88
|
+
}],
|
|
89
|
+
body: Utils.payloadFilter(params)
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Ajouter un support réglementaire.
|
|
95
|
+
*/
|
|
96
|
+
postSupportReglementaire(
|
|
97
|
+
params : any
|
|
98
|
+
) : Promise<AxiosResponse<PrescriptionSupportReglementaire>>
|
|
99
|
+
{
|
|
100
|
+
const pathVariable = { };
|
|
101
|
+
return this.request({
|
|
102
|
+
method: 'POST',
|
|
103
|
+
endpoint: Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
104
|
+
transformResponse: [(data) => {
|
|
105
|
+
const parsedData = JSON.parse(data);
|
|
106
|
+
return parsedData;
|
|
107
|
+
}],
|
|
108
|
+
body: Utils.payloadFilter(params)
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
}
|
package/src/metarisc.ts
CHANGED
|
@@ -28,7 +28,7 @@ export class Metarisc extends Core
|
|
|
28
28
|
public dossiers_affectations: resources.DossiersAffectationsAPI;
|
|
29
29
|
public mains_courantes: resources.MainsCourantesAPI;
|
|
30
30
|
public anomalies: resources.AnomaliesAPI;
|
|
31
|
-
public supports_reglementaires: resources.
|
|
31
|
+
public supports_reglementaires: resources.SupportsReglementairesAPI;
|
|
32
32
|
public feed: resources.FeedAPI;
|
|
33
33
|
public tournees_deci: resources.TourneesDECIAPI;
|
|
34
34
|
public controles_pei: resources.ControlesPEIAPI;
|
|
@@ -69,7 +69,7 @@ export class Metarisc extends Core
|
|
|
69
69
|
case 'dossiers_affectations': return new resources.DossiersAffectationsAPI(config, tmpClient);
|
|
70
70
|
case 'mains_courantes': return new resources.MainsCourantesAPI(config, tmpClient);
|
|
71
71
|
case 'anomalies': return new resources.AnomaliesAPI(config, tmpClient);
|
|
72
|
-
case 'supports_reglementaires': return new resources.
|
|
72
|
+
case 'supports_reglementaires': return new resources.SupportsReglementairesAPI(config, tmpClient);
|
|
73
73
|
case 'feed': return new resources.FeedAPI(config, tmpClient);
|
|
74
74
|
case 'tournees_deci': return new resources.TourneesDECIAPI(config, tmpClient);
|
|
75
75
|
case 'controles_pei': return new resources.ControlesPEIAPI(config, tmpClient);
|
package/src/resources.ts
CHANGED
|
@@ -52,6 +52,8 @@ export { SearchAPI } from './api/SearchAPI';
|
|
|
52
52
|
|
|
53
53
|
export { SitesGeographiquesAPI } from './api/SitesGeographiquesAPI';
|
|
54
54
|
|
|
55
|
+
export { SupportsReglementairesAPI } from './api/SupportsReglementairesAPI';
|
|
56
|
+
|
|
55
57
|
export { TourneesDECIAPI } from './api/TourneesDECIAPI';
|
|
56
58
|
|
|
57
59
|
export { UtilisateursAPI } from './api/UtilisateursAPI';
|