@lcdp/api-react-rest-client 2.5.13-LDS-3347-ajout-et-modification-variable.7655246748 → 2.5.13-LDS-3347-ajout-et-modification-variable.7698488626
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/configuration/src/apis/ManageVariableApi.d.ts +6 -6
- package/configuration/src/apis/ManageVariableApi.js +7 -7
- package/configuration/src/models/VariableCreationParameter.d.ts +22 -0
- package/configuration/src/models/VariableCreationParameter.js +28 -0
- package/configuration/src/models/index.d.ts +1 -0
- package/configuration/src/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
-
import { Variable } from '../models';
|
|
13
|
+
import { Variable, VariableCreationParameter } from '../models';
|
|
14
14
|
export interface CreateVariableRequest {
|
|
15
|
-
|
|
15
|
+
variableCreationParameter: VariableCreationParameter;
|
|
16
16
|
}
|
|
17
17
|
export interface DeleteVariableRequest {
|
|
18
18
|
variableId: string;
|
|
@@ -26,22 +26,22 @@ export interface SetVariableValueRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
export declare class ManageVariableApi extends BaseAPI {
|
|
28
28
|
/**
|
|
29
|
-
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created
|
|
29
|
+
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created.
|
|
30
30
|
* Create new variable
|
|
31
31
|
*/
|
|
32
32
|
createVariableRaw(requestParameters: CreateVariableRequest): Promise<ApiResponse<Variable | BlobWithMeta>>;
|
|
33
33
|
/**
|
|
34
|
-
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created
|
|
34
|
+
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created.
|
|
35
35
|
* Create new variable
|
|
36
36
|
*/
|
|
37
37
|
createVariable(requestParameters: CreateVariableRequest): Promise<Variable | BlobWithMeta>;
|
|
38
38
|
/**
|
|
39
|
-
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted
|
|
39
|
+
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted.
|
|
40
40
|
* Delete existing variable
|
|
41
41
|
*/
|
|
42
42
|
deleteVariableRaw(requestParameters: DeleteVariableRequest): Promise<ApiResponse<void>>;
|
|
43
43
|
/**
|
|
44
|
-
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted
|
|
44
|
+
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted.
|
|
45
45
|
* Delete existing variable
|
|
46
46
|
*/
|
|
47
47
|
deleteVariable(requestParameters: DeleteVariableRequest): Promise<void>;
|
|
@@ -76,7 +76,7 @@ var ManageVariableApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created
|
|
79
|
+
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created.
|
|
80
80
|
* Create new variable
|
|
81
81
|
*/
|
|
82
82
|
ManageVariableApi.prototype.createVariableRaw = function (requestParameters) {
|
|
@@ -85,8 +85,8 @@ var ManageVariableApi = /** @class */ (function (_super) {
|
|
|
85
85
|
return __generator(this, function (_b) {
|
|
86
86
|
switch (_b.label) {
|
|
87
87
|
case 0:
|
|
88
|
-
if (requestParameters.
|
|
89
|
-
throw new runtime_1.RequiredError('
|
|
88
|
+
if (requestParameters.variableCreationParameter === null || requestParameters.variableCreationParameter === undefined) {
|
|
89
|
+
throw new runtime_1.RequiredError('variableCreationParameter', 'Required parameter requestParameters.variableCreationParameter was null or undefined when calling createVariable.');
|
|
90
90
|
}
|
|
91
91
|
queryParameters = {};
|
|
92
92
|
headerParameters = {};
|
|
@@ -117,7 +117,7 @@ var ManageVariableApi = /** @class */ (function (_super) {
|
|
|
117
117
|
method: 'POST',
|
|
118
118
|
headers: headerParameters,
|
|
119
119
|
query: queryParameters,
|
|
120
|
-
body: (0, models_1.
|
|
120
|
+
body: (0, models_1.VariableCreationParameterToJSON)(requestParameters.variableCreationParameter),
|
|
121
121
|
})];
|
|
122
122
|
case 5:
|
|
123
123
|
response = _b.sent();
|
|
@@ -143,7 +143,7 @@ var ManageVariableApi = /** @class */ (function (_super) {
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
146
|
-
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created
|
|
146
|
+
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created.
|
|
147
147
|
* Create new variable
|
|
148
148
|
*/
|
|
149
149
|
ManageVariableApi.prototype.createVariable = function (requestParameters) {
|
|
@@ -161,7 +161,7 @@ var ManageVariableApi = /** @class */ (function (_super) {
|
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
163
|
/**
|
|
164
|
-
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted
|
|
164
|
+
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted.
|
|
165
165
|
* Delete existing variable
|
|
166
166
|
*/
|
|
167
167
|
ManageVariableApi.prototype.deleteVariableRaw = function (requestParameters) {
|
|
@@ -215,7 +215,7 @@ var ManageVariableApi = /** @class */ (function (_super) {
|
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
217
|
/**
|
|
218
|
-
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted
|
|
218
|
+
* Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted.
|
|
219
219
|
* Delete existing variable
|
|
220
220
|
*/
|
|
221
221
|
ManageVariableApi.prototype.deleteVariable = function (requestParameters) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Variable } from './Variable';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VariableCreationParameter
|
|
17
|
+
*/
|
|
18
|
+
export interface VariableCreationParameter extends Variable {
|
|
19
|
+
}
|
|
20
|
+
export declare function VariableCreationParameterFromJSON(json: any): VariableCreationParameter;
|
|
21
|
+
export declare function VariableCreationParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariableCreationParameter;
|
|
22
|
+
export declare function VariableCreationParameterToJSON(value?: VariableCreationParameter | null): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.VariableCreationParameterToJSON = exports.VariableCreationParameterFromJSONTyped = exports.VariableCreationParameterFromJSON = void 0;
|
|
17
|
+
function VariableCreationParameterFromJSON(json) {
|
|
18
|
+
return VariableCreationParameterFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.VariableCreationParameterFromJSON = VariableCreationParameterFromJSON;
|
|
21
|
+
function VariableCreationParameterFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
exports.VariableCreationParameterFromJSONTyped = VariableCreationParameterFromJSONTyped;
|
|
25
|
+
function VariableCreationParameterToJSON(value) {
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
exports.VariableCreationParameterToJSON = VariableCreationParameterToJSON;
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./RestError"), exports);
|
|
18
18
|
__exportStar(require("./Variable"), exports);
|
|
19
|
+
__exportStar(require("./VariableCreationParameter"), exports);
|
|
19
20
|
__exportStar(require("./Vat"), exports);
|