@lcdp/api-react-rest-client 2.1.4 → 2.2.0-LDS-3044-cdc-monolith-creation-des-cdc.5113435746
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 +53 -0
- package/catalog/src/apis/SearchProductInsightApi.js +246 -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 +99 -0
- package/catalog/src/models/ProductInsight.js +69 -0
- package/catalog/src/models/ProductInsightCreationOrUpdateParameters.d.ts +82 -0
- package/catalog/src/models/ProductInsightCreationOrUpdateParameters.js +61 -0
- package/catalog/src/models/ProductInsightJournal.d.ts +33 -0
- package/catalog/src/models/ProductInsightJournal.js +43 -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/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 +18 -0
- package/catalog/src/models/index.js +34 -0
- package/catalog/src/runtime.d.ts +149 -0
- package/catalog/src/runtime.js +480 -0
- package/package.json +1 -1
- package/product/src/apis/SearchProductMetadataApi.d.ts +22 -0
- package/product/src/apis/SearchProductMetadataApi.js +154 -8
|
@@ -76,14 +76,17 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Get product secondary
|
|
79
|
+
* Get product secondary type
|
|
80
80
|
*/
|
|
81
|
-
SearchProductMetadataApi.prototype.
|
|
81
|
+
SearchProductMetadataApi.prototype.getProductSecondaryTypeRaw = function (requestParameters) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
+
if (requestParameters.secondaryTypeId === null || requestParameters.secondaryTypeId === undefined) {
|
|
88
|
+
throw new runtime_1.RequiredError('secondaryTypeId', 'Required parameter requestParameters.secondaryTypeId was null or undefined when calling getProductSecondaryType.');
|
|
89
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
88
91
|
headerParameters = {};
|
|
89
92
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -100,7 +103,7 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
100
103
|
case 1:
|
|
101
104
|
_a.trys.push([1, 3, , 4]);
|
|
102
105
|
return [4 /*yield*/, this.request({
|
|
103
|
-
path: "/products/secondary-
|
|
106
|
+
path: "/products/secondary-type/{secondaryTypeId}".replace("{".concat("secondaryTypeId", "}"), encodeURIComponent(String(requestParameters.secondaryTypeId))),
|
|
104
107
|
method: 'GET',
|
|
105
108
|
headers: headerParameters,
|
|
106
109
|
query: queryParameters,
|
|
@@ -109,7 +112,7 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
109
112
|
response = _a.sent();
|
|
110
113
|
contentType = response.headers.get("content-type");
|
|
111
114
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
112
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return
|
|
115
|
+
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductSecondaryTypeFromJSON)(jsonValue); })];
|
|
113
116
|
}
|
|
114
117
|
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
115
118
|
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
@@ -128,6 +131,76 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
128
131
|
});
|
|
129
132
|
});
|
|
130
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* Get product secondary type
|
|
136
|
+
*/
|
|
137
|
+
SearchProductMetadataApi.prototype.getProductSecondaryType = 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.getProductSecondaryTypeRaw(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
|
+
* Get product secondary types
|
|
153
|
+
*/
|
|
154
|
+
SearchProductMetadataApi.prototype.getProductSecondaryTypesRaw = function () {
|
|
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
|
+
headerParameters = {};
|
|
162
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
163
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
164
|
+
}
|
|
165
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
166
|
+
token = this.configuration.accessToken;
|
|
167
|
+
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
168
|
+
if (tokenString) {
|
|
169
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
_a.label = 1;
|
|
173
|
+
case 1:
|
|
174
|
+
_a.trys.push([1, 3, , 4]);
|
|
175
|
+
return [4 /*yield*/, this.request({
|
|
176
|
+
path: "/products/secondary-types",
|
|
177
|
+
method: 'GET',
|
|
178
|
+
headers: headerParameters,
|
|
179
|
+
query: queryParameters,
|
|
180
|
+
})];
|
|
181
|
+
case 2:
|
|
182
|
+
response = _a.sent();
|
|
183
|
+
contentType = response.headers.get("content-type");
|
|
184
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
185
|
+
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(models_1.ProductSecondaryTypeFromJSON); })];
|
|
186
|
+
}
|
|
187
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
188
|
+
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
// TODO : Better handling of others application types
|
|
192
|
+
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
193
|
+
}
|
|
194
|
+
return [3 /*break*/, 4];
|
|
195
|
+
case 3:
|
|
196
|
+
response_2 = _a.sent();
|
|
197
|
+
console.debug(response_2);
|
|
198
|
+
throw response_2;
|
|
199
|
+
case 4: return [2 /*return*/];
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
};
|
|
131
204
|
/**
|
|
132
205
|
* Get product secondary types
|
|
133
206
|
*/
|
|
@@ -145,12 +218,85 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
145
218
|
});
|
|
146
219
|
});
|
|
147
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* Get product type
|
|
223
|
+
*/
|
|
224
|
+
SearchProductMetadataApi.prototype.getProductTypeRaw = function (requestParameters) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
226
|
+
var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
|
|
227
|
+
return __generator(this, function (_a) {
|
|
228
|
+
switch (_a.label) {
|
|
229
|
+
case 0:
|
|
230
|
+
if (requestParameters.typeId === null || requestParameters.typeId === undefined) {
|
|
231
|
+
throw new runtime_1.RequiredError('typeId', 'Required parameter requestParameters.typeId was null or undefined when calling getProductType.');
|
|
232
|
+
}
|
|
233
|
+
queryParameters = {};
|
|
234
|
+
headerParameters = {};
|
|
235
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
236
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
237
|
+
}
|
|
238
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
239
|
+
token = this.configuration.accessToken;
|
|
240
|
+
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
241
|
+
if (tokenString) {
|
|
242
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
_a.label = 1;
|
|
246
|
+
case 1:
|
|
247
|
+
_a.trys.push([1, 3, , 4]);
|
|
248
|
+
return [4 /*yield*/, this.request({
|
|
249
|
+
path: "/products/type/{typeId}".replace("{".concat("typeId", "}"), encodeURIComponent(String(requestParameters.typeId))),
|
|
250
|
+
method: 'GET',
|
|
251
|
+
headers: headerParameters,
|
|
252
|
+
query: queryParameters,
|
|
253
|
+
})];
|
|
254
|
+
case 2:
|
|
255
|
+
response = _a.sent();
|
|
256
|
+
contentType = response.headers.get("content-type");
|
|
257
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
258
|
+
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductTypeFromJSON)(jsonValue); })];
|
|
259
|
+
}
|
|
260
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
261
|
+
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
// TODO : Better handling of others application types
|
|
265
|
+
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
266
|
+
}
|
|
267
|
+
return [3 /*break*/, 4];
|
|
268
|
+
case 3:
|
|
269
|
+
response_3 = _a.sent();
|
|
270
|
+
console.debug(response_3);
|
|
271
|
+
throw response_3;
|
|
272
|
+
case 4: return [2 /*return*/];
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Get product type
|
|
279
|
+
*/
|
|
280
|
+
SearchProductMetadataApi.prototype.getProductType = function (requestParameters) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
282
|
+
var response;
|
|
283
|
+
return __generator(this, function (_a) {
|
|
284
|
+
switch (_a.label) {
|
|
285
|
+
case 0: return [4 /*yield*/, this.getProductTypeRaw(requestParameters)];
|
|
286
|
+
case 1:
|
|
287
|
+
response = _a.sent();
|
|
288
|
+
return [4 /*yield*/, response.value()];
|
|
289
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
};
|
|
148
294
|
/**
|
|
149
295
|
* Get product types
|
|
150
296
|
*/
|
|
151
297
|
SearchProductMetadataApi.prototype.getProductTypesRaw = function () {
|
|
152
298
|
return __awaiter(this, void 0, void 0, function () {
|
|
153
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType,
|
|
299
|
+
var queryParameters, headerParameters, token, tokenString, response, contentType, response_4;
|
|
154
300
|
return __generator(this, function (_a) {
|
|
155
301
|
switch (_a.label) {
|
|
156
302
|
case 0:
|
|
@@ -190,9 +336,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
190
336
|
}
|
|
191
337
|
return [3 /*break*/, 4];
|
|
192
338
|
case 3:
|
|
193
|
-
|
|
194
|
-
console.debug(
|
|
195
|
-
throw
|
|
339
|
+
response_4 = _a.sent();
|
|
340
|
+
console.debug(response_4);
|
|
341
|
+
throw response_4;
|
|
196
342
|
case 4: return [2 /*return*/];
|
|
197
343
|
}
|
|
198
344
|
});
|