@lcdp/api-react-rest-client 2.13.9-LDS-4699-etape-1-no-more-archive-of-frid.17125564147 → 2.13.9-LDS-4699-etape-1-no-more-archive-of-frid.17131480426

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.13.9-LDS-4699-etape-1-no-more-archive-of-frid.17125564147",
3
+ "version": "2.13.9-LDS-4699-etape-1-no-more-archive-of-frid.17131480426",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ProductSecondaryType, ProductStorageType, ProductType } from '../models/index';
13
+ import type { ProductSecondaryType, ProductType } from '../models/index';
14
14
  export interface GetProductSecondaryTypeRequest {
15
15
  secondaryTypeId: string;
16
16
  }
@@ -37,14 +37,6 @@ export declare class SearchProductMetadataApi extends runtime.BaseAPI {
37
37
  * Get product secondary types
38
38
  */
39
39
  getProductSecondaryTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductSecondaryType> | runtime.BlobWithMeta>;
40
- /**
41
- * Get storage types relatives to a product
42
- */
43
- getProductStorageTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductStorageType> | runtime.BlobWithMeta>>;
44
- /**
45
- * Get storage types relatives to a product
46
- */
47
- getProductStorageTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductStorageType> | runtime.BlobWithMeta>;
48
40
  /**
49
41
  * Get product type
50
42
  */
@@ -230,88 +230,12 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
230
230
  });
231
231
  });
232
232
  };
233
- /**
234
- * Get storage types relatives to a product
235
- */
236
- SearchProductMetadataApi.prototype.getProductStorageTypesRaw = function (initOverrides) {
237
- return __awaiter(this, void 0, void 0, function () {
238
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
239
- return __generator(this, function (_c) {
240
- switch (_c.label) {
241
- case 0:
242
- queryParameters = {};
243
- headerParameters = {};
244
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
245
- _a = headerParameters;
246
- _b = "x-api-key";
247
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
248
- case 1:
249
- _a[_b] = _c.sent(); // apiKeyAuth authentication
250
- _c.label = 2;
251
- case 2:
252
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
253
- token = this.configuration.accessToken;
254
- return [4 /*yield*/, token("bearerAuth", [])];
255
- case 3:
256
- tokenString = _c.sent();
257
- if (tokenString) {
258
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
259
- }
260
- _c.label = 4;
261
- case 4:
262
- _c.trys.push([4, 6, , 7]);
263
- return [4 /*yield*/, this.request({
264
- path: "/products/storage-types",
265
- method: 'GET',
266
- headers: headerParameters,
267
- query: queryParameters,
268
- }, initOverrides)];
269
- case 5:
270
- response = _c.sent();
271
- contentType = response.headers.get("content-type");
272
- if (contentType && contentType.indexOf("application/json") !== -1) {
273
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ProductStorageTypeFromJSON); })];
274
- }
275
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
276
- return [2 /*return*/, new runtime.TextApiResponse(response)];
277
- }
278
- else {
279
- // TODO : Better handling of others application types
280
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
281
- }
282
- return [3 /*break*/, 7];
283
- case 6:
284
- response_3 = _c.sent();
285
- console.debug(response_3);
286
- throw response_3;
287
- case 7: return [2 /*return*/];
288
- }
289
- });
290
- });
291
- };
292
- /**
293
- * Get storage types relatives to a product
294
- */
295
- SearchProductMetadataApi.prototype.getProductStorageTypes = function (initOverrides) {
296
- return __awaiter(this, void 0, void 0, function () {
297
- var response;
298
- return __generator(this, function (_a) {
299
- switch (_a.label) {
300
- case 0: return [4 /*yield*/, this.getProductStorageTypesRaw(initOverrides)];
301
- case 1:
302
- response = _a.sent();
303
- return [4 /*yield*/, response.value()];
304
- case 2: return [2 /*return*/, _a.sent()];
305
- }
306
- });
307
- });
308
- };
309
233
  /**
310
234
  * Get product type
311
235
  */
312
236
  SearchProductMetadataApi.prototype.getProductTypeRaw = function (requestParameters, initOverrides) {
313
237
  return __awaiter(this, void 0, void 0, function () {
314
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
238
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
315
239
  return __generator(this, function (_c) {
316
240
  switch (_c.label) {
317
241
  case 0:
@@ -360,9 +284,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
360
284
  }
361
285
  return [3 /*break*/, 7];
362
286
  case 6:
363
- response_4 = _c.sent();
364
- console.debug(response_4);
365
- throw response_4;
287
+ response_3 = _c.sent();
288
+ console.debug(response_3);
289
+ throw response_3;
366
290
  case 7: return [2 /*return*/];
367
291
  }
368
292
  });
@@ -390,7 +314,7 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
390
314
  */
391
315
  SearchProductMetadataApi.prototype.getProductTypesRaw = function (initOverrides) {
392
316
  return __awaiter(this, void 0, void 0, function () {
393
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_5;
317
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
394
318
  return __generator(this, function (_c) {
395
319
  switch (_c.label) {
396
320
  case 0:
@@ -436,9 +360,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
436
360
  }
437
361
  return [3 /*break*/, 7];
438
362
  case 6:
439
- response_5 = _c.sent();
440
- console.debug(response_5);
441
- throw response_5;
363
+ response_4 = _c.sent();
364
+ console.debug(response_4);
365
+ throw response_4;
442
366
  case 7: return [2 /*return*/];
443
367
  }
444
368
  });