@lcdp/api-react-rest-client 2.4.0-develop.5667191056 → 2.4.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.
Files changed (84) hide show
  1. package/notification/src/apis/SearchNotificationTypeApi.d.ts +2 -13
  2. package/notification/src/apis/SearchNotificationTypeApi.js +9 -82
  3. package/package.json +1 -1
  4. package/product/src/apis/ManageProductApi.d.ts +0 -2
  5. package/product/src/apis/ManageProductApi.js +0 -6
  6. package/product/src/apis/SearchProductApi.d.ts +0 -1
  7. package/product/src/apis/SearchProductApi.js +0 -3
  8. package/product/src/apis/SearchProductMetadataApi.d.ts +0 -22
  9. package/product/src/apis/SearchProductMetadataApi.js +8 -154
  10. package/product/src/models/Image.d.ts +0 -7
  11. package/product/src/models/Image.js +0 -3
  12. package/product/src/models/Product.d.ts +37 -44
  13. package/product/src/models/Product.js +31 -33
  14. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
  15. package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
  16. package/product/src/models/ProductProscription.d.ts +0 -7
  17. package/product/src/models/ProductProscription.js +0 -3
  18. package/product/src/models/{DataProvider.d.ts → ProductProvider.d.ts} +5 -7
  19. package/product/src/models/ProductProvider.js +38 -0
  20. package/product/src/models/index.d.ts +1 -6
  21. package/product/src/models/index.js +1 -6
  22. package/catalog/index.d.ts +0 -1
  23. package/catalog/index.js +0 -17
  24. package/catalog/src/apis/ManageProductInsightApi.d.ts +0 -54
  25. package/catalog/src/apis/ManageProductInsightApi.js +0 -295
  26. package/catalog/src/apis/SearchProductInsightApi.d.ts +0 -54
  27. package/catalog/src/apis/SearchProductInsightApi.js +0 -249
  28. package/catalog/src/apis/index.d.ts +0 -2
  29. package/catalog/src/apis/index.js +0 -18
  30. package/catalog/src/index.d.ts +0 -3
  31. package/catalog/src/index.js +0 -19
  32. package/catalog/src/models/Barcodes.d.ts +0 -45
  33. package/catalog/src/models/Barcodes.js +0 -48
  34. package/catalog/src/models/HttpLink.d.ts +0 -27
  35. package/catalog/src/models/HttpLink.js +0 -41
  36. package/catalog/src/models/LaboratoryLink.d.ts +0 -34
  37. package/catalog/src/models/LaboratoryLink.js +0 -50
  38. package/catalog/src/models/LaboratoryLinkAllOf.d.ts +0 -33
  39. package/catalog/src/models/LaboratoryLinkAllOf.js +0 -44
  40. package/catalog/src/models/PaginatedObject.d.ts +0 -28
  41. package/catalog/src/models/PaginatedObject.js +0 -42
  42. package/catalog/src/models/PaginatedProductInsights.d.ts +0 -29
  43. package/catalog/src/models/PaginatedProductInsights.js +0 -50
  44. package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +0 -28
  45. package/catalog/src/models/PaginatedProductInsightsAllOf.js +0 -42
  46. package/catalog/src/models/PagingMetadata.d.ts +0 -45
  47. package/catalog/src/models/PagingMetadata.js +0 -47
  48. package/catalog/src/models/ProductInsight.d.ts +0 -106
  49. package/catalog/src/models/ProductInsight.js +0 -73
  50. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +0 -89
  51. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +0 -64
  52. package/catalog/src/models/ProductInsightJournal.d.ts +0 -33
  53. package/catalog/src/models/ProductInsightJournal.js +0 -44
  54. package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -34
  55. package/catalog/src/models/ProductSecondaryTypeLink.js +0 -50
  56. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +0 -33
  57. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +0 -44
  58. package/catalog/src/models/ProductStorageType.d.ts +0 -25
  59. package/catalog/src/models/ProductStorageType.js +0 -40
  60. package/catalog/src/models/ProductTypeLink.d.ts +0 -34
  61. package/catalog/src/models/ProductTypeLink.js +0 -50
  62. package/catalog/src/models/ProductTypeLinkAllOf.d.ts +0 -33
  63. package/catalog/src/models/ProductTypeLinkAllOf.js +0 -44
  64. package/catalog/src/models/RestError.d.ts +0 -85
  65. package/catalog/src/models/RestError.js +0 -97
  66. package/catalog/src/models/VatLink.d.ts +0 -40
  67. package/catalog/src/models/VatLink.js +0 -50
  68. package/catalog/src/models/VatLinkAllOf.d.ts +0 -39
  69. package/catalog/src/models/VatLinkAllOf.js +0 -46
  70. package/catalog/src/models/index.d.ts +0 -19
  71. package/catalog/src/models/index.js +0 -35
  72. package/catalog/src/runtime.d.ts +0 -149
  73. package/catalog/src/runtime.js +0 -480
  74. package/product/src/models/DataProvider.js +0 -40
  75. package/product/src/models/ProductJournal.d.ts +0 -27
  76. package/product/src/models/ProductJournal.js +0 -41
  77. package/product/src/models/ProductSource.d.ts +0 -47
  78. package/product/src/models/ProductSource.js +0 -49
  79. package/product/src/models/ProductSourceBcb.d.ts +0 -39
  80. package/product/src/models/ProductSourceBcb.js +0 -46
  81. package/product/src/models/ProductSourceFields.d.ts +0 -131
  82. package/product/src/models/ProductSourceFields.js +0 -77
  83. package/product/src/models/ProductSourceFieldsBarcodes.d.ts +0 -46
  84. package/product/src/models/ProductSourceFieldsBarcodes.js +0 -48
@@ -10,10 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { NotificationType, NotificationTypeAttachment, NotificationTypeId, PaginatedNotificationTypes } from '../models';
14
- export interface GetNotificationTypeRequest {
15
- notificationTypeId: NotificationTypeId;
16
- }
13
+ import { NotificationTypeAttachment, NotificationTypeId, PaginatedNotificationTypes } from '../models';
17
14
  export interface GetNotificationTypeAttachmentRequest {
18
15
  notificationTypeId: NotificationTypeId;
19
16
  attachmentId: number;
@@ -21,7 +18,7 @@ export interface GetNotificationTypeAttachmentRequest {
21
18
  export interface GetNotificationTypesRequest {
22
19
  idEq?: Array<NotificationTypeId>;
23
20
  eEq?: boolean;
24
- orderBy?: Array<GetNotificationTypesOrderByEnum>;
21
+ orderBy?: GetNotificationTypesOrderByEnum;
25
22
  p?: number;
26
23
  pp?: number;
27
24
  }
@@ -29,14 +26,6 @@ export interface GetNotificationTypesRequest {
29
26
  * no description
30
27
  */
31
28
  export declare class SearchNotificationTypeApi extends BaseAPI {
32
- /**
33
- * Get one notification type
34
- */
35
- getNotificationTypeRaw(requestParameters: GetNotificationTypeRequest): Promise<ApiResponse<NotificationType | BlobWithMeta>>;
36
- /**
37
- * Get one notification type
38
- */
39
- getNotificationType(requestParameters: GetNotificationTypeRequest): Promise<NotificationType | BlobWithMeta>;
40
29
  /**
41
30
  * Get an attachment
42
31
  */
@@ -75,85 +75,12 @@ var SearchNotificationTypeApi = /** @class */ (function (_super) {
75
75
  function SearchNotificationTypeApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
- /**
79
- * Get one notification type
80
- */
81
- SearchNotificationTypeApi.prototype.getNotificationTypeRaw = 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.notificationTypeId === null || requestParameters.notificationTypeId === undefined) {
88
- throw new runtime_1.RequiredError('notificationTypeId', 'Required parameter requestParameters.notificationTypeId was null or undefined when calling getNotificationType.');
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: "/notifications/types/{notificationTypeId}".replace("{".concat("notificationTypeId", "}"), encodeURIComponent(String(requestParameters.notificationTypeId))),
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.NotificationTypeFromJSON)(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
- * Get one notification type
136
- */
137
- SearchNotificationTypeApi.prototype.getNotificationType = 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.getNotificationTypeRaw(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
78
  /**
152
79
  * Get an attachment
153
80
  */
154
81
  SearchNotificationTypeApi.prototype.getNotificationTypeAttachmentRaw = function (requestParameters) {
155
82
  return __awaiter(this, void 0, void 0, function () {
156
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
83
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
157
84
  return __generator(this, function (_a) {
158
85
  switch (_a.label) {
159
86
  case 0:
@@ -199,9 +126,9 @@ var SearchNotificationTypeApi = /** @class */ (function (_super) {
199
126
  }
200
127
  return [3 /*break*/, 4];
201
128
  case 3:
202
- response_2 = _a.sent();
203
- console.debug(response_2);
204
- throw response_2;
129
+ response_1 = _a.sent();
130
+ console.debug(response_1);
131
+ throw response_1;
205
132
  case 4: return [2 /*return*/];
206
133
  }
207
134
  });
@@ -229,7 +156,7 @@ var SearchNotificationTypeApi = /** @class */ (function (_super) {
229
156
  */
230
157
  SearchNotificationTypeApi.prototype.getNotificationTypesRaw = function (requestParameters) {
231
158
  return __awaiter(this, void 0, void 0, function () {
232
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
159
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
233
160
  return __generator(this, function (_a) {
234
161
  switch (_a.label) {
235
162
  case 0:
@@ -240,7 +167,7 @@ var SearchNotificationTypeApi = /** @class */ (function (_super) {
240
167
  if (requestParameters.eEq !== undefined) {
241
168
  queryParameters['e[eq]'] = requestParameters.eEq;
242
169
  }
243
- if (requestParameters.orderBy) {
170
+ if (requestParameters.orderBy !== undefined) {
244
171
  queryParameters['orderBy'] = requestParameters.orderBy;
245
172
  }
246
173
  if (requestParameters.p !== undefined) {
@@ -284,9 +211,9 @@ var SearchNotificationTypeApi = /** @class */ (function (_super) {
284
211
  }
285
212
  return [3 /*break*/, 4];
286
213
  case 3:
287
- response_3 = _a.sent();
288
- console.debug(response_3);
289
- throw response_3;
214
+ response_2 = _a.sent();
215
+ console.debug(response_2);
216
+ throw response_2;
290
217
  case 4: return [2 /*return*/];
291
218
  }
292
219
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.4.0-develop.5667191056",
3
+ "version": "2.4.0",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -13,12 +13,10 @@ import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
13
  import { Product, ProductCreationOrUpdateParameters } from '../models';
14
14
  export interface CreateProductRequest {
15
15
  productCreationOrUpdateParameters: ProductCreationOrUpdateParameters;
16
- xWithSync?: boolean;
17
16
  }
18
17
  export interface UpdateProductRequest {
19
18
  productId: number;
20
19
  productCreationOrUpdateParameters: ProductCreationOrUpdateParameters;
21
- xWithSync?: boolean;
22
20
  }
23
21
  /**
24
22
  * no description
@@ -91,9 +91,6 @@ var ManageProductApi = /** @class */ (function (_super) {
91
91
  queryParameters = {};
92
92
  headerParameters = {};
93
93
  headerParameters['Content-Type'] = 'application/json';
94
- if (requestParameters.xWithSync !== undefined && requestParameters.xWithSync !== null) {
95
- headerParameters['X-With-Sync'] = String(requestParameters.xWithSync);
96
- }
97
94
  if (this.configuration && this.configuration.apiKey) {
98
95
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
99
96
  }
@@ -174,9 +171,6 @@ var ManageProductApi = /** @class */ (function (_super) {
174
171
  queryParameters = {};
175
172
  headerParameters = {};
176
173
  headerParameters['Content-Type'] = 'application/merge-patch+json';
177
- if (requestParameters.xWithSync !== undefined && requestParameters.xWithSync !== null) {
178
- headerParameters['X-With-Sync'] = String(requestParameters.xWithSync);
179
- }
180
174
  if (this.configuration && this.configuration.apiKey) {
181
175
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
182
176
  }
@@ -24,7 +24,6 @@ export interface GetProductsRequest {
24
24
  labEq?: Array<number>;
25
25
  nameIeq?: string;
26
26
  sWaitingSaleOfferCountGte?: number;
27
- srcLcdpCatalogIdEq?: Array<number>;
28
27
  tagCo?: Array<string>;
29
28
  orderBy?: GetProductsOrderByEnum;
30
29
  p?: number;
@@ -185,9 +185,6 @@ var SearchProductApi = /** @class */ (function (_super) {
185
185
  if (requestParameters.sWaitingSaleOfferCountGte !== undefined) {
186
186
  queryParameters['sWaitingSaleOfferCount[gte]'] = requestParameters.sWaitingSaleOfferCountGte;
187
187
  }
188
- if (requestParameters.srcLcdpCatalogIdEq) {
189
- queryParameters['srcLcdpCatalogId[eq]'] = requestParameters.srcLcdpCatalogIdEq;
190
- }
191
188
  if (requestParameters.tagCo) {
192
189
  queryParameters['tag[co]'] = requestParameters.tagCo;
193
190
  }
@@ -11,24 +11,10 @@
11
11
  */
12
12
  import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
13
  import { ProductSecondaryType, ProductType } from '../models';
14
- export interface GetProductSecondaryTypeRequest {
15
- secondaryTypeId: string;
16
- }
17
- export interface GetProductTypeRequest {
18
- typeId: string;
19
- }
20
14
  /**
21
15
  * no description
22
16
  */
23
17
  export declare class SearchProductMetadataApi extends BaseAPI {
24
- /**
25
- * Get product secondary type
26
- */
27
- getProductSecondaryTypeRaw(requestParameters: GetProductSecondaryTypeRequest): Promise<ApiResponse<ProductSecondaryType | BlobWithMeta>>;
28
- /**
29
- * Get product secondary type
30
- */
31
- getProductSecondaryType(requestParameters: GetProductSecondaryTypeRequest): Promise<ProductSecondaryType | BlobWithMeta>;
32
18
  /**
33
19
  * Get product secondary types
34
20
  */
@@ -37,14 +23,6 @@ export declare class SearchProductMetadataApi extends BaseAPI {
37
23
  * Get product secondary types
38
24
  */
39
25
  getProductSecondaryTypes(): Promise<Array<ProductSecondaryType> | BlobWithMeta>;
40
- /**
41
- * Get product type
42
- */
43
- getProductTypeRaw(requestParameters: GetProductTypeRequest): Promise<ApiResponse<ProductType | BlobWithMeta>>;
44
- /**
45
- * Get product type
46
- */
47
- getProductType(requestParameters: GetProductTypeRequest): Promise<ProductType | BlobWithMeta>;
48
26
  /**
49
27
  * Get product types
50
28
  */
@@ -75,85 +75,12 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
75
75
  function SearchProductMetadataApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
- /**
79
- * Get product secondary type
80
- */
81
- SearchProductMetadataApi.prototype.getProductSecondaryTypeRaw = 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.secondaryTypeId === null || requestParameters.secondaryTypeId === undefined) {
88
- throw new runtime_1.RequiredError('secondaryTypeId', 'Required parameter requestParameters.secondaryTypeId was null or undefined when calling getProductSecondaryType.');
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: "/products/secondary-types/{secondaryTypeId}".replace("{".concat("secondaryTypeId", "}"), encodeURIComponent(String(requestParameters.secondaryTypeId))),
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.ProductSecondaryTypeFromJSON)(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
- * 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
78
  /**
152
79
  * Get product secondary types
153
80
  */
154
81
  SearchProductMetadataApi.prototype.getProductSecondaryTypesRaw = function () {
155
82
  return __awaiter(this, void 0, void 0, function () {
156
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
83
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
157
84
  return __generator(this, function (_a) {
158
85
  switch (_a.label) {
159
86
  case 0:
@@ -193,9 +120,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
193
120
  }
194
121
  return [3 /*break*/, 4];
195
122
  case 3:
196
- response_2 = _a.sent();
197
- console.debug(response_2);
198
- throw response_2;
123
+ response_1 = _a.sent();
124
+ console.debug(response_1);
125
+ throw response_1;
199
126
  case 4: return [2 /*return*/];
200
127
  }
201
128
  });
@@ -218,85 +145,12 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
218
145
  });
219
146
  });
220
147
  };
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/types/{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
- };
294
148
  /**
295
149
  * Get product types
296
150
  */
297
151
  SearchProductMetadataApi.prototype.getProductTypesRaw = function () {
298
152
  return __awaiter(this, void 0, void 0, function () {
299
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_4;
153
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
300
154
  return __generator(this, function (_a) {
301
155
  switch (_a.label) {
302
156
  case 0:
@@ -336,9 +190,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
336
190
  }
337
191
  return [3 /*break*/, 4];
338
192
  case 3:
339
- response_4 = _a.sent();
340
- console.debug(response_4);
341
- throw response_4;
193
+ response_2 = _a.sent();
194
+ console.debug(response_2);
195
+ throw response_2;
342
196
  case 4: return [2 /*return*/];
343
197
  }
344
198
  });
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { DataProvider } from './DataProvider';
13
12
  import { ImageVersions } from './ImageVersions';
14
13
  /**
15
14
  *
@@ -35,12 +34,6 @@ export interface Image {
35
34
  * @memberof Image
36
35
  */
37
36
  versions?: ImageVersions;
38
- /**
39
- *
40
- * @type {DataProvider}
41
- * @memberof Image
42
- */
43
- source?: DataProvider;
44
37
  }
45
38
  export declare function ImageFromJSON(json: any): Image;
46
39
  export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
@@ -15,7 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
- var DataProvider_1 = require("./DataProvider");
19
18
  var ImageVersions_1 = require("./ImageVersions");
20
19
  function ImageFromJSON(json) {
21
20
  return ImageFromJSONTyped(json, false);
@@ -29,7 +28,6 @@ function ImageFromJSONTyped(json, ignoreDiscriminator) {
29
28
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
30
29
  'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
31
30
  'versions': !(0, runtime_1.exists)(json, 'versions') ? undefined : (0, ImageVersions_1.ImageVersionsFromJSON)(json['versions']),
32
- 'source': !(0, runtime_1.exists)(json, 'source') ? undefined : (0, DataProvider_1.DataProviderFromJSON)(json['source']),
33
31
  };
34
32
  }
35
33
  exports.ImageFromJSONTyped = ImageFromJSONTyped;
@@ -44,7 +42,6 @@ function ImageToJSON(value) {
44
42
  'id': value.id,
45
43
  'active': value.active,
46
44
  'versions': (0, ImageVersions_1.ImageVersionsToJSON)(value.versions),
47
- 'source': (0, DataProvider_1.DataProviderToJSON)(value.source),
48
45
  };
49
46
  }
50
47
  exports.ImageToJSON = ImageToJSON;