@lcdp/api-react-rest-client 2.2.0-LDS-3043.5255236497 → 2.2.0-develop.5257142523
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/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +0 -2
- package/product/src/apis/ManageProductApi.js +0 -6
- package/product/src/apis/SearchProductApi.d.ts +1 -39
- package/product/src/apis/SearchProductApi.js +4 -290
- package/product/src/apis/SearchProductMetadataApi.d.ts +34 -0
- package/{catalog/src/apis/SearchProductInsightApi.js → product/src/apis/SearchProductMetadataApi.js} +22 -48
- package/product/src/apis/index.d.ts +1 -0
- package/product/src/apis/index.js +1 -0
- package/product/src/models/Product.d.ts +37 -38
- package/product/src/models/Product.js +31 -31
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -0
- package/product/src/models/ProductCreationOrUpdateParameters.js +2 -0
- package/product/src/models/{DataProvider.d.ts → ProductProvider.d.ts} +5 -7
- package/product/src/models/ProductProvider.js +38 -0
- package/product/src/models/index.d.ts +1 -4
- package/product/src/models/index.js +1 -4
- package/catalog/index.d.ts +0 -1
- package/catalog/index.js +0 -17
- package/catalog/src/apis/ManageProductInsightApi.d.ts +0 -54
- package/catalog/src/apis/ManageProductInsightApi.js +0 -295
- package/catalog/src/apis/SearchProductInsightApi.d.ts +0 -53
- package/catalog/src/apis/index.d.ts +0 -2
- package/catalog/src/apis/index.js +0 -18
- package/catalog/src/index.d.ts +0 -3
- package/catalog/src/index.js +0 -19
- package/catalog/src/models/Barcodes.d.ts +0 -45
- package/catalog/src/models/Barcodes.js +0 -48
- package/catalog/src/models/HttpLink.d.ts +0 -27
- package/catalog/src/models/HttpLink.js +0 -41
- package/catalog/src/models/LaboratoryLink.d.ts +0 -34
- package/catalog/src/models/LaboratoryLink.js +0 -50
- package/catalog/src/models/LaboratoryLinkAllOf.d.ts +0 -33
- package/catalog/src/models/LaboratoryLinkAllOf.js +0 -44
- package/catalog/src/models/PaginatedObject.d.ts +0 -28
- package/catalog/src/models/PaginatedObject.js +0 -42
- package/catalog/src/models/PaginatedProductInsights.d.ts +0 -29
- package/catalog/src/models/PaginatedProductInsights.js +0 -50
- package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +0 -28
- package/catalog/src/models/PaginatedProductInsightsAllOf.js +0 -42
- package/catalog/src/models/PagingMetadata.d.ts +0 -45
- package/catalog/src/models/PagingMetadata.js +0 -47
- package/catalog/src/models/ProductInsight.d.ts +0 -100
- package/catalog/src/models/ProductInsight.js +0 -71
- package/catalog/src/models/ProductInsightCreationOrUpdateParameters.d.ts +0 -83
- package/catalog/src/models/ProductInsightCreationOrUpdateParameters.js +0 -62
- package/catalog/src/models/ProductInsightJournal.d.ts +0 -33
- package/catalog/src/models/ProductInsightJournal.js +0 -44
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -34
- package/catalog/src/models/ProductSecondaryTypeLink.js +0 -50
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +0 -33
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +0 -44
- package/catalog/src/models/ProductStorageType.d.ts +0 -25
- package/catalog/src/models/ProductStorageType.js +0 -40
- package/catalog/src/models/ProductTypeLink.d.ts +0 -34
- package/catalog/src/models/ProductTypeLink.js +0 -50
- package/catalog/src/models/ProductTypeLinkAllOf.d.ts +0 -33
- package/catalog/src/models/ProductTypeLinkAllOf.js +0 -44
- package/catalog/src/models/RestError.d.ts +0 -85
- package/catalog/src/models/RestError.js +0 -97
- package/catalog/src/models/VatLink.d.ts +0 -40
- package/catalog/src/models/VatLink.js +0 -50
- package/catalog/src/models/VatLinkAllOf.d.ts +0 -39
- package/catalog/src/models/VatLinkAllOf.js +0 -46
- package/catalog/src/models/index.d.ts +0 -19
- package/catalog/src/models/index.js +0 -35
- package/catalog/src/runtime.d.ts +0 -149
- package/catalog/src/runtime.js +0 -480
- package/product/src/models/DataProvider.js +0 -40
- package/product/src/models/ProductJournal.d.ts +0 -27
- package/product/src/models/ProductJournal.js +0 -41
- package/product/src/models/ProductMetadata.d.ts +0 -28
- package/product/src/models/ProductMetadata.js +0 -42
- package/product/src/models/ProductMetadataSources.d.ts +0 -124
- package/product/src/models/ProductMetadataSources.js +0 -75
|
@@ -1,295 +0,0 @@
|
|
|
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.ManageProductInsightApi = void 0;
|
|
68
|
-
var runtime_1 = require("../runtime");
|
|
69
|
-
var models_1 = require("../models");
|
|
70
|
-
/**
|
|
71
|
-
* no description
|
|
72
|
-
*/
|
|
73
|
-
var ManageProductInsightApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(ManageProductInsightApi, _super);
|
|
75
|
-
function ManageProductInsightApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Create a new product insight.
|
|
80
|
-
* Create a new product insight
|
|
81
|
-
*/
|
|
82
|
-
ManageProductInsightApi.prototype.createProductInsightRaw = function (requestParameters) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
|
|
85
|
-
return __generator(this, function (_a) {
|
|
86
|
-
switch (_a.label) {
|
|
87
|
-
case 0:
|
|
88
|
-
if (requestParameters.productInsightCreationOrUpdateParameters === null || requestParameters.productInsightCreationOrUpdateParameters === undefined) {
|
|
89
|
-
throw new runtime_1.RequiredError('productInsightCreationOrUpdateParameters', 'Required parameter requestParameters.productInsightCreationOrUpdateParameters was null or undefined when calling createProductInsight.');
|
|
90
|
-
}
|
|
91
|
-
queryParameters = {};
|
|
92
|
-
headerParameters = {};
|
|
93
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
95
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
96
|
-
}
|
|
97
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
98
|
-
token = this.configuration.accessToken;
|
|
99
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
100
|
-
if (tokenString) {
|
|
101
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
_a.label = 1;
|
|
105
|
-
case 1:
|
|
106
|
-
_a.trys.push([1, 3, , 4]);
|
|
107
|
-
return [4 /*yield*/, this.request({
|
|
108
|
-
path: "/product-insights",
|
|
109
|
-
method: 'POST',
|
|
110
|
-
headers: headerParameters,
|
|
111
|
-
query: queryParameters,
|
|
112
|
-
body: (0, models_1.ProductInsightCreationOrUpdateParametersToJSON)(requestParameters.productInsightCreationOrUpdateParameters),
|
|
113
|
-
})];
|
|
114
|
-
case 2:
|
|
115
|
-
response = _a.sent();
|
|
116
|
-
contentType = response.headers.get("content-type");
|
|
117
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
118
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductInsightFromJSON)(jsonValue); })];
|
|
119
|
-
}
|
|
120
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
121
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
// TODO : Better handling of others application types
|
|
125
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
126
|
-
}
|
|
127
|
-
return [3 /*break*/, 4];
|
|
128
|
-
case 3:
|
|
129
|
-
response_1 = _a.sent();
|
|
130
|
-
console.debug(response_1);
|
|
131
|
-
throw response_1;
|
|
132
|
-
case 4: return [2 /*return*/];
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Create a new product insight.
|
|
139
|
-
* Create a new product insight
|
|
140
|
-
*/
|
|
141
|
-
ManageProductInsightApi.prototype.createProductInsight = function (requestParameters) {
|
|
142
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
-
var response;
|
|
144
|
-
return __generator(this, function (_a) {
|
|
145
|
-
switch (_a.label) {
|
|
146
|
-
case 0: return [4 /*yield*/, this.createProductInsightRaw(requestParameters)];
|
|
147
|
-
case 1:
|
|
148
|
-
response = _a.sent();
|
|
149
|
-
return [4 /*yield*/, response.value()];
|
|
150
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Delete product insight
|
|
157
|
-
*/
|
|
158
|
-
ManageProductInsightApi.prototype.deleteProductInsightRaw = function (requestParameters) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
160
|
-
var queryParameters, headerParameters, token, tokenString, response, response_2;
|
|
161
|
-
return __generator(this, function (_a) {
|
|
162
|
-
switch (_a.label) {
|
|
163
|
-
case 0:
|
|
164
|
-
if (requestParameters.productInsightId === null || requestParameters.productInsightId === undefined) {
|
|
165
|
-
throw new runtime_1.RequiredError('productInsightId', 'Required parameter requestParameters.productInsightId was null or undefined when calling deleteProductInsight.');
|
|
166
|
-
}
|
|
167
|
-
queryParameters = {};
|
|
168
|
-
headerParameters = {};
|
|
169
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
170
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
171
|
-
}
|
|
172
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
173
|
-
token = this.configuration.accessToken;
|
|
174
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
175
|
-
if (tokenString) {
|
|
176
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
_a.label = 1;
|
|
180
|
-
case 1:
|
|
181
|
-
_a.trys.push([1, 3, , 4]);
|
|
182
|
-
return [4 /*yield*/, this.request({
|
|
183
|
-
path: "/product-insights/{productInsightId}".replace("{".concat("productInsightId", "}"), encodeURIComponent(String(requestParameters.productInsightId))),
|
|
184
|
-
method: 'DELETE',
|
|
185
|
-
headers: headerParameters,
|
|
186
|
-
query: queryParameters,
|
|
187
|
-
})];
|
|
188
|
-
case 2:
|
|
189
|
-
response = _a.sent();
|
|
190
|
-
return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
|
|
191
|
-
case 3:
|
|
192
|
-
response_2 = _a.sent();
|
|
193
|
-
console.debug(response_2);
|
|
194
|
-
throw response_2;
|
|
195
|
-
case 4: return [2 /*return*/];
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
/**
|
|
201
|
-
* Delete product insight
|
|
202
|
-
*/
|
|
203
|
-
ManageProductInsightApi.prototype.deleteProductInsight = function (requestParameters) {
|
|
204
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
205
|
-
return __generator(this, function (_a) {
|
|
206
|
-
switch (_a.label) {
|
|
207
|
-
case 0: return [4 /*yield*/, this.deleteProductInsightRaw(requestParameters)];
|
|
208
|
-
case 1:
|
|
209
|
-
_a.sent();
|
|
210
|
-
return [2 /*return*/];
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* Update product insight
|
|
217
|
-
*/
|
|
218
|
-
ManageProductInsightApi.prototype.updateProductInsightRaw = function (requestParameters) {
|
|
219
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
220
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
|
|
221
|
-
return __generator(this, function (_a) {
|
|
222
|
-
switch (_a.label) {
|
|
223
|
-
case 0:
|
|
224
|
-
if (requestParameters.productInsightId === null || requestParameters.productInsightId === undefined) {
|
|
225
|
-
throw new runtime_1.RequiredError('productInsightId', 'Required parameter requestParameters.productInsightId was null or undefined when calling updateProductInsight.');
|
|
226
|
-
}
|
|
227
|
-
if (requestParameters.productInsightCreationOrUpdateParameters === null || requestParameters.productInsightCreationOrUpdateParameters === undefined) {
|
|
228
|
-
throw new runtime_1.RequiredError('productInsightCreationOrUpdateParameters', 'Required parameter requestParameters.productInsightCreationOrUpdateParameters was null or undefined when calling updateProductInsight.');
|
|
229
|
-
}
|
|
230
|
-
queryParameters = {};
|
|
231
|
-
headerParameters = {};
|
|
232
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
233
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
234
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
235
|
-
}
|
|
236
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
237
|
-
token = this.configuration.accessToken;
|
|
238
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
239
|
-
if (tokenString) {
|
|
240
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
_a.label = 1;
|
|
244
|
-
case 1:
|
|
245
|
-
_a.trys.push([1, 3, , 4]);
|
|
246
|
-
return [4 /*yield*/, this.request({
|
|
247
|
-
path: "/product-insights/{productInsightId}".replace("{".concat("productInsightId", "}"), encodeURIComponent(String(requestParameters.productInsightId))),
|
|
248
|
-
method: 'PATCH',
|
|
249
|
-
headers: headerParameters,
|
|
250
|
-
query: queryParameters,
|
|
251
|
-
body: (0, models_1.ProductInsightCreationOrUpdateParametersToJSON)(requestParameters.productInsightCreationOrUpdateParameters),
|
|
252
|
-
})];
|
|
253
|
-
case 2:
|
|
254
|
-
response = _a.sent();
|
|
255
|
-
contentType = response.headers.get("content-type");
|
|
256
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
257
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductInsightFromJSON)(jsonValue); })];
|
|
258
|
-
}
|
|
259
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
260
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
// TODO : Better handling of others application types
|
|
264
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
265
|
-
}
|
|
266
|
-
return [3 /*break*/, 4];
|
|
267
|
-
case 3:
|
|
268
|
-
response_3 = _a.sent();
|
|
269
|
-
console.debug(response_3);
|
|
270
|
-
throw response_3;
|
|
271
|
-
case 4: return [2 /*return*/];
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
});
|
|
275
|
-
};
|
|
276
|
-
/**
|
|
277
|
-
* Update product insight
|
|
278
|
-
*/
|
|
279
|
-
ManageProductInsightApi.prototype.updateProductInsight = function (requestParameters) {
|
|
280
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
281
|
-
var response;
|
|
282
|
-
return __generator(this, function (_a) {
|
|
283
|
-
switch (_a.label) {
|
|
284
|
-
case 0: return [4 /*yield*/, this.updateProductInsightRaw(requestParameters)];
|
|
285
|
-
case 1:
|
|
286
|
-
response = _a.sent();
|
|
287
|
-
return [4 /*yield*/, response.value()];
|
|
288
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
};
|
|
293
|
-
return ManageProductInsightApi;
|
|
294
|
-
}(runtime_1.BaseAPI));
|
|
295
|
-
exports.ManageProductInsightApi = ManageProductInsightApi;
|
|
@@ -1,53 +0,0 @@
|
|
|
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 { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
-
import { PaginatedProductInsights, ProductInsight } from '../models';
|
|
14
|
-
export interface GetProductInsightRequest {
|
|
15
|
-
productInsightId: number;
|
|
16
|
-
}
|
|
17
|
-
export interface GetProductInsightsRequest {
|
|
18
|
-
barcodesAnyeq?: Array<string>;
|
|
19
|
-
orderBy?: GetProductInsightsOrderByEnum;
|
|
20
|
-
p?: number;
|
|
21
|
-
pp?: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* no description
|
|
25
|
-
*/
|
|
26
|
-
export declare class SearchProductInsightApi extends BaseAPI {
|
|
27
|
-
/**
|
|
28
|
-
* Retrieve a product insight with ID
|
|
29
|
-
*/
|
|
30
|
-
getProductInsightRaw(requestParameters: GetProductInsightRequest): Promise<ApiResponse<ProductInsight | BlobWithMeta>>;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieve a product insight with ID
|
|
33
|
-
*/
|
|
34
|
-
getProductInsight(requestParameters: GetProductInsightRequest): Promise<ProductInsight | BlobWithMeta>;
|
|
35
|
-
/**
|
|
36
|
-
* Search for product insights
|
|
37
|
-
*/
|
|
38
|
-
getProductInsightsRaw(requestParameters: GetProductInsightsRequest): Promise<ApiResponse<PaginatedProductInsights | BlobWithMeta>>;
|
|
39
|
-
/**
|
|
40
|
-
* Search for product insights
|
|
41
|
-
*/
|
|
42
|
-
getProductInsights(requestParameters: GetProductInsightsRequest): Promise<PaginatedProductInsights | BlobWithMeta>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @export
|
|
46
|
-
* @enum {string}
|
|
47
|
-
*/
|
|
48
|
-
export declare enum GetProductInsightsOrderByEnum {
|
|
49
|
-
PRODUCTNAMEASC = "PRODUCT_NAME:ASC",
|
|
50
|
-
PRODUCTNAMEDESC = "PRODUCT_NAME:DESC",
|
|
51
|
-
BARCODESPRINCIPALASC = "BARCODES_PRINCIPAL:ASC",
|
|
52
|
-
BARCODESPRINCIPALDESC = "BARCODES_PRINCIPAL:DESC"
|
|
53
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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);
|
package/catalog/src/index.d.ts
DELETED
package/catalog/src/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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);
|
|
@@ -1,45 +0,0 @@
|
|
|
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;
|
|
@@ -1,48 +0,0 @@
|
|
|
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;
|
|
@@ -1,27 +0,0 @@
|
|
|
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;
|
|
@@ -1,41 +0,0 @@
|
|
|
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;
|
|
@@ -1,34 +0,0 @@
|
|
|
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;
|
|
@@ -1,50 +0,0 @@
|
|
|
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;
|