@lcdp/api-react-rest-client 2.4.0 → 2.5.0
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/catalog/index.d.ts +1 -0
- package/catalog/index.js +17 -0
- package/catalog/src/apis/ManageProductInsightApi.d.ts +54 -0
- package/catalog/src/apis/ManageProductInsightApi.js +295 -0
- package/catalog/src/apis/SearchProductInsightApi.d.ts +54 -0
- package/catalog/src/apis/SearchProductInsightApi.js +249 -0
- package/catalog/src/apis/index.d.ts +2 -0
- package/catalog/src/apis/index.js +18 -0
- package/catalog/src/index.d.ts +3 -0
- package/catalog/src/index.js +19 -0
- package/catalog/src/models/Barcodes.d.ts +45 -0
- package/catalog/src/models/Barcodes.js +48 -0
- package/catalog/src/models/HttpLink.d.ts +27 -0
- package/catalog/src/models/HttpLink.js +41 -0
- package/catalog/src/models/LaboratoryLink.d.ts +34 -0
- package/catalog/src/models/LaboratoryLink.js +50 -0
- package/catalog/src/models/LaboratoryLinkAllOf.d.ts +33 -0
- package/catalog/src/models/LaboratoryLinkAllOf.js +44 -0
- package/catalog/src/models/PaginatedObject.d.ts +28 -0
- package/catalog/src/models/PaginatedObject.js +42 -0
- package/catalog/src/models/PaginatedProductInsights.d.ts +29 -0
- package/catalog/src/models/PaginatedProductInsights.js +50 -0
- package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +28 -0
- package/catalog/src/models/PaginatedProductInsightsAllOf.js +42 -0
- package/catalog/src/models/PagingMetadata.d.ts +45 -0
- package/catalog/src/models/PagingMetadata.js +47 -0
- package/catalog/src/models/ProductInsight.d.ts +106 -0
- package/catalog/src/models/ProductInsight.js +73 -0
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +89 -0
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +64 -0
- package/catalog/src/models/ProductInsightJournal.d.ts +33 -0
- package/catalog/src/models/ProductInsightJournal.js +44 -0
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +34 -0
- package/catalog/src/models/ProductSecondaryTypeLink.js +50 -0
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +33 -0
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +44 -0
- package/catalog/src/models/ProductStorageType.d.ts +25 -0
- package/catalog/src/models/ProductStorageType.js +40 -0
- package/catalog/src/models/ProductTypeLink.d.ts +34 -0
- package/catalog/src/models/ProductTypeLink.js +50 -0
- package/catalog/src/models/ProductTypeLinkAllOf.d.ts +33 -0
- package/catalog/src/models/ProductTypeLinkAllOf.js +44 -0
- package/catalog/src/models/RestError.d.ts +85 -0
- package/catalog/src/models/RestError.js +97 -0
- package/catalog/src/models/VatLink.d.ts +40 -0
- package/catalog/src/models/VatLink.js +50 -0
- package/catalog/src/models/VatLinkAllOf.d.ts +39 -0
- package/catalog/src/models/VatLinkAllOf.js +46 -0
- package/catalog/src/models/index.d.ts +19 -0
- package/catalog/src/models/index.js +35 -0
- package/catalog/src/runtime.d.ts +149 -0
- package/catalog/src/runtime.js +480 -0
- package/notification/src/apis/SearchNotificationTypeApi.d.ts +13 -2
- package/notification/src/apis/SearchNotificationTypeApi.js +82 -9
- package/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +2 -0
- package/product/src/apis/ManageProductApi.js +6 -0
- package/product/src/apis/SearchProductApi.d.ts +1 -0
- package/product/src/apis/SearchProductApi.js +3 -0
- package/product/src/apis/SearchProductMetadataApi.d.ts +22 -0
- package/product/src/apis/SearchProductMetadataApi.js +154 -8
- package/product/src/models/{ProductProvider.d.ts → DataProvider.d.ts} +7 -5
- package/product/src/models/DataProvider.js +40 -0
- package/product/src/models/Image.d.ts +7 -0
- package/product/src/models/Image.js +3 -0
- package/product/src/models/Product.d.ts +44 -37
- package/product/src/models/Product.js +33 -31
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
- package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
- package/product/src/models/ProductJournal.d.ts +27 -0
- package/product/src/models/ProductJournal.js +41 -0
- package/product/src/models/ProductProscription.d.ts +7 -0
- package/product/src/models/ProductProscription.js +3 -0
- package/product/src/models/ProductSource.d.ts +47 -0
- package/product/src/models/ProductSource.js +49 -0
- package/product/src/models/ProductSourceBcb.d.ts +39 -0
- package/product/src/models/ProductSourceBcb.js +46 -0
- package/product/src/models/ProductSourceFields.d.ts +131 -0
- package/product/src/models/ProductSourceFields.js +77 -0
- package/product/src/models/ProductSourceFieldsBarcodes.d.ts +46 -0
- package/product/src/models/ProductSourceFieldsBarcodes.js +48 -0
- package/product/src/models/index.d.ts +6 -1
- package/product/src/models/index.js +6 -1
- package/product/src/models/ProductProvider.js +0 -38
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-catalog
|
|
6
|
+
* This is the REST API of LCDP catalog
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (_) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.GetProductInsightsOrderByEnum = exports.SearchProductInsightApi = void 0;
|
|
68
|
+
var runtime_1 = require("../runtime");
|
|
69
|
+
var models_1 = require("../models");
|
|
70
|
+
/**
|
|
71
|
+
* no description
|
|
72
|
+
*/
|
|
73
|
+
var SearchProductInsightApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(SearchProductInsightApi, _super);
|
|
75
|
+
function SearchProductInsightApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Retrieve a product insight with ID
|
|
80
|
+
*/
|
|
81
|
+
SearchProductInsightApi.prototype.getProductInsightRaw = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters.productInsightId === null || requestParameters.productInsightId === undefined) {
|
|
88
|
+
throw new runtime_1.RequiredError('productInsightId', 'Required parameter requestParameters.productInsightId was null or undefined when calling getProductInsight.');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
93
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
94
|
+
}
|
|
95
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
96
|
+
token = this.configuration.accessToken;
|
|
97
|
+
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
98
|
+
if (tokenString) {
|
|
99
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
_a.label = 1;
|
|
103
|
+
case 1:
|
|
104
|
+
_a.trys.push([1, 3, , 4]);
|
|
105
|
+
return [4 /*yield*/, this.request({
|
|
106
|
+
path: "/product-insights/{productInsightId}".replace("{".concat("productInsightId", "}"), encodeURIComponent(String(requestParameters.productInsightId))),
|
|
107
|
+
method: 'GET',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
})];
|
|
111
|
+
case 2:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
contentType = response.headers.get("content-type");
|
|
114
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
115
|
+
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductInsightFromJSON)(jsonValue); })];
|
|
116
|
+
}
|
|
117
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
118
|
+
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
// TODO : Better handling of others application types
|
|
122
|
+
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
123
|
+
}
|
|
124
|
+
return [3 /*break*/, 4];
|
|
125
|
+
case 3:
|
|
126
|
+
response_1 = _a.sent();
|
|
127
|
+
console.debug(response_1);
|
|
128
|
+
throw response_1;
|
|
129
|
+
case 4: return [2 /*return*/];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Retrieve a product insight with ID
|
|
136
|
+
*/
|
|
137
|
+
SearchProductInsightApi.prototype.getProductInsight = function (requestParameters) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
139
|
+
var response;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
switch (_a.label) {
|
|
142
|
+
case 0: return [4 /*yield*/, this.getProductInsightRaw(requestParameters)];
|
|
143
|
+
case 1:
|
|
144
|
+
response = _a.sent();
|
|
145
|
+
return [4 /*yield*/, response.value()];
|
|
146
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Search for product insights
|
|
153
|
+
*/
|
|
154
|
+
SearchProductInsightApi.prototype.getProductInsightsRaw = function (requestParameters) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
156
|
+
var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
|
|
157
|
+
return __generator(this, function (_a) {
|
|
158
|
+
switch (_a.label) {
|
|
159
|
+
case 0:
|
|
160
|
+
queryParameters = {};
|
|
161
|
+
if (requestParameters.signaturesAnyeq) {
|
|
162
|
+
queryParameters['signatures[anyeq]'] = requestParameters.signaturesAnyeq;
|
|
163
|
+
}
|
|
164
|
+
if (requestParameters.jUpdatedAtGte !== undefined) {
|
|
165
|
+
queryParameters['jUpdatedAt[gte]'] = requestParameters.jUpdatedAtGte.toISOString();
|
|
166
|
+
}
|
|
167
|
+
if (requestParameters.orderBy !== undefined) {
|
|
168
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
169
|
+
}
|
|
170
|
+
if (requestParameters.p !== undefined) {
|
|
171
|
+
queryParameters['p'] = requestParameters.p;
|
|
172
|
+
}
|
|
173
|
+
if (requestParameters.pp !== undefined) {
|
|
174
|
+
queryParameters['pp'] = requestParameters.pp;
|
|
175
|
+
}
|
|
176
|
+
headerParameters = {};
|
|
177
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
179
|
+
}
|
|
180
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
181
|
+
token = this.configuration.accessToken;
|
|
182
|
+
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
183
|
+
if (tokenString) {
|
|
184
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
_a.label = 1;
|
|
188
|
+
case 1:
|
|
189
|
+
_a.trys.push([1, 3, , 4]);
|
|
190
|
+
return [4 /*yield*/, this.request({
|
|
191
|
+
path: "/product-insights",
|
|
192
|
+
method: 'GET',
|
|
193
|
+
headers: headerParameters,
|
|
194
|
+
query: queryParameters,
|
|
195
|
+
})];
|
|
196
|
+
case 2:
|
|
197
|
+
response = _a.sent();
|
|
198
|
+
contentType = response.headers.get("content-type");
|
|
199
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
200
|
+
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedProductInsightsFromJSON)(jsonValue); })];
|
|
201
|
+
}
|
|
202
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
203
|
+
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
// TODO : Better handling of others application types
|
|
207
|
+
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
208
|
+
}
|
|
209
|
+
return [3 /*break*/, 4];
|
|
210
|
+
case 3:
|
|
211
|
+
response_2 = _a.sent();
|
|
212
|
+
console.debug(response_2);
|
|
213
|
+
throw response_2;
|
|
214
|
+
case 4: return [2 /*return*/];
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Search for product insights
|
|
221
|
+
*/
|
|
222
|
+
SearchProductInsightApi.prototype.getProductInsights = function (requestParameters) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
224
|
+
var response;
|
|
225
|
+
return __generator(this, function (_a) {
|
|
226
|
+
switch (_a.label) {
|
|
227
|
+
case 0: return [4 /*yield*/, this.getProductInsightsRaw(requestParameters)];
|
|
228
|
+
case 1:
|
|
229
|
+
response = _a.sent();
|
|
230
|
+
return [4 /*yield*/, response.value()];
|
|
231
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
return SearchProductInsightApi;
|
|
237
|
+
}(runtime_1.BaseAPI));
|
|
238
|
+
exports.SearchProductInsightApi = SearchProductInsightApi;
|
|
239
|
+
/**
|
|
240
|
+
* @export
|
|
241
|
+
* @enum {string}
|
|
242
|
+
*/
|
|
243
|
+
var GetProductInsightsOrderByEnum;
|
|
244
|
+
(function (GetProductInsightsOrderByEnum) {
|
|
245
|
+
GetProductInsightsOrderByEnum["PRODUCTNAMEASC"] = "PRODUCT_NAME:ASC";
|
|
246
|
+
GetProductInsightsOrderByEnum["PRODUCTNAMEDESC"] = "PRODUCT_NAME:DESC";
|
|
247
|
+
GetProductInsightsOrderByEnum["BARCODESPRINCIPALASC"] = "BARCODES_PRINCIPAL:ASC";
|
|
248
|
+
GetProductInsightsOrderByEnum["BARCODESPRINCIPALDESC"] = "BARCODES_PRINCIPAL:DESC";
|
|
249
|
+
})(GetProductInsightsOrderByEnum = exports.GetProductInsightsOrderByEnum || (exports.GetProductInsightsOrderByEnum = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ManageProductInsightApi"), exports);
|
|
18
|
+
__exportStar(require("./SearchProductInsightApi"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./runtime"), exports);
|
|
18
|
+
__exportStar(require("./apis"), exports);
|
|
19
|
+
__exportStar(require("./models"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Barcodes
|
|
16
|
+
*/
|
|
17
|
+
export interface Barcodes {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Barcodes
|
|
22
|
+
*/
|
|
23
|
+
cip?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Barcodes
|
|
28
|
+
*/
|
|
29
|
+
cip13?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof Barcodes
|
|
34
|
+
*/
|
|
35
|
+
eans?: Array<string> | null;
|
|
36
|
+
/**
|
|
37
|
+
* The principal is the referent barcode (for display, invoices, ...)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Barcodes
|
|
40
|
+
*/
|
|
41
|
+
principal?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function BarcodesFromJSON(json: any): Barcodes;
|
|
44
|
+
export declare function BarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Barcodes;
|
|
45
|
+
export declare function BarcodesToJSON(value?: Barcodes | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-catalog
|
|
6
|
+
* This is the REST API of LCDP catalog
|
|
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.BarcodesToJSON = exports.BarcodesFromJSONTyped = exports.BarcodesFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function BarcodesFromJSON(json) {
|
|
19
|
+
return BarcodesFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.BarcodesFromJSON = BarcodesFromJSON;
|
|
22
|
+
function BarcodesFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'cip': !(0, runtime_1.exists)(json, 'cip') ? json['cip'] : json['cip'],
|
|
28
|
+
'cip13': !(0, runtime_1.exists)(json, 'cip13') ? json['cip13'] : json['cip13'],
|
|
29
|
+
'eans': !(0, runtime_1.exists)(json, 'eans') ? json['eans'] : json['eans'],
|
|
30
|
+
'principal': !(0, runtime_1.exists)(json, 'principal') ? undefined : json['principal'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
exports.BarcodesFromJSONTyped = BarcodesFromJSONTyped;
|
|
34
|
+
function BarcodesToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'cip': value.cip,
|
|
43
|
+
'cip13': value.cip13,
|
|
44
|
+
'eans': value.eans,
|
|
45
|
+
'principal': value.principal,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.BarcodesToJSON = BarcodesToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
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
|
+
/**
|
|
13
|
+
* A base type of objects representing links to resources.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HttpLink
|
|
16
|
+
*/
|
|
17
|
+
export interface HttpLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URL that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HttpLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function HttpLinkFromJSON(json: any): HttpLink;
|
|
26
|
+
export declare function HttpLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpLink;
|
|
27
|
+
export declare function HttpLinkToJSON(value?: HttpLink | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-catalog
|
|
6
|
+
* This is the REST API of LCDP catalog
|
|
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.HttpLinkToJSON = exports.HttpLinkFromJSONTyped = exports.HttpLinkFromJSON = void 0;
|
|
17
|
+
function HttpLinkFromJSON(json) {
|
|
18
|
+
return HttpLinkFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.HttpLinkFromJSON = HttpLinkFromJSON;
|
|
21
|
+
function HttpLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'href': json['href'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
exports.HttpLinkFromJSONTyped = HttpLinkFromJSONTyped;
|
|
30
|
+
function HttpLinkToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'href': value.href,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.HttpLinkToJSON = HttpLinkToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
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 { HttpLink } from './HttpLink';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LaboratoryLink
|
|
17
|
+
*/
|
|
18
|
+
export interface LaboratoryLink extends HttpLink {
|
|
19
|
+
/**
|
|
20
|
+
* Identifier of the laboratory
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof LaboratoryLink
|
|
23
|
+
*/
|
|
24
|
+
id?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Name of the laboratory
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LaboratoryLink
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function LaboratoryLinkFromJSON(json: any): LaboratoryLink;
|
|
33
|
+
export declare function LaboratoryLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): LaboratoryLink;
|
|
34
|
+
export declare function LaboratoryLinkToJSON(value?: LaboratoryLink | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-catalog
|
|
6
|
+
* This is the REST API of LCDP catalog
|
|
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
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.LaboratoryLinkToJSON = exports.LaboratoryLinkFromJSONTyped = exports.LaboratoryLinkFromJSON = void 0;
|
|
28
|
+
var runtime_1 = require("../runtime");
|
|
29
|
+
var HttpLink_1 = require("./HttpLink");
|
|
30
|
+
function LaboratoryLinkFromJSON(json) {
|
|
31
|
+
return LaboratoryLinkFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.LaboratoryLinkFromJSON = LaboratoryLinkFromJSON;
|
|
34
|
+
function LaboratoryLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
|
|
39
|
+
}
|
|
40
|
+
exports.LaboratoryLinkFromJSONTyped = LaboratoryLinkFromJSONTyped;
|
|
41
|
+
function LaboratoryLinkToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name });
|
|
49
|
+
}
|
|
50
|
+
exports.LaboratoryLinkToJSON = LaboratoryLinkToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LaboratoryLinkAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface LaboratoryLinkAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* Identifier of the laboratory
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof LaboratoryLinkAllOf
|
|
22
|
+
*/
|
|
23
|
+
id?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the laboratory
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LaboratoryLinkAllOf
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function LaboratoryLinkAllOfFromJSON(json: any): LaboratoryLinkAllOf;
|
|
32
|
+
export declare function LaboratoryLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): LaboratoryLinkAllOf;
|
|
33
|
+
export declare function LaboratoryLinkAllOfToJSON(value?: LaboratoryLinkAllOf | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-catalog
|
|
6
|
+
* This is the REST API of LCDP catalog
|
|
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.LaboratoryLinkAllOfToJSON = exports.LaboratoryLinkAllOfFromJSONTyped = exports.LaboratoryLinkAllOfFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function LaboratoryLinkAllOfFromJSON(json) {
|
|
19
|
+
return LaboratoryLinkAllOfFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.LaboratoryLinkAllOfFromJSON = LaboratoryLinkAllOfFromJSON;
|
|
22
|
+
function LaboratoryLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
28
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.LaboratoryLinkAllOfFromJSONTyped = LaboratoryLinkAllOfFromJSONTyped;
|
|
32
|
+
function LaboratoryLinkAllOfToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': value.id,
|
|
41
|
+
'name': value.name,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.LaboratoryLinkAllOfToJSON = LaboratoryLinkAllOfToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
/**
|
|
14
|
+
* An object which is not complete (only a specific page is available)
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedObject
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {PagingMetadata}
|
|
22
|
+
* @memberof PaginatedObject
|
|
23
|
+
*/
|
|
24
|
+
metadata: PagingMetadata;
|
|
25
|
+
}
|
|
26
|
+
export declare function PaginatedObjectFromJSON(json: any): PaginatedObject;
|
|
27
|
+
export declare function PaginatedObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedObject;
|
|
28
|
+
export declare function PaginatedObjectToJSON(value?: PaginatedObject | null): any;
|