ch-api-client-typescript2 5.43.20 → 5.45.4

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 (63) hide show
  1. package/lib/api/curations-api.d.ts +148 -110
  2. package/lib/api/curations-api.d.ts.map +1 -1
  3. package/lib/api/curations-api.js +181 -104
  4. package/lib/api.d.ts +0 -1
  5. package/lib/api.d.ts.map +1 -1
  6. package/lib/api.js +0 -1
  7. package/lib/models/{curation-specialty-types-model.d.ts → curation-categories-model.d.ts} +8 -8
  8. package/lib/models/curation-categories-model.d.ts.map +1 -0
  9. package/lib/models/{search-curation-primary-item-model.d.ts → curation-category-model.d.ts} +13 -7
  10. package/lib/models/curation-category-model.d.ts.map +1 -0
  11. package/lib/models/curation-model.d.ts +8 -27
  12. package/lib/models/curation-model.d.ts.map +1 -1
  13. package/lib/models/curations-by-category-item-model.d.ts +49 -0
  14. package/lib/models/curations-by-category-item-model.d.ts.map +1 -0
  15. package/lib/models/curations-by-category-model.d.ts +44 -0
  16. package/lib/models/curations-by-category-model.d.ts.map +1 -0
  17. package/lib/models/doctor-item-model.d.ts +3 -10
  18. package/lib/models/doctor-item-model.d.ts.map +1 -1
  19. package/lib/models/doctor-model.d.ts +3 -10
  20. package/lib/models/doctor-model.d.ts.map +1 -1
  21. package/lib/models/index.d.ts +4 -6
  22. package/lib/models/index.d.ts.map +1 -1
  23. package/lib/models/index.js +4 -6
  24. package/lib/models/patient-model.d.ts +3 -10
  25. package/lib/models/patient-model.d.ts.map +1 -1
  26. package/lib/models/user-model.d.ts +3 -10
  27. package/lib/models/user-model.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/src/.openapi-generator/FILES +4 -7
  30. package/src/api/curations-api.ts +235 -155
  31. package/src/api.ts +0 -1
  32. package/src/models/{curation-specialty-types-model.ts → curation-categories-model.ts} +7 -7
  33. package/src/models/{search-curation-primary-item-model.ts → curation-category-model.ts} +12 -6
  34. package/src/models/curation-model.ts +8 -29
  35. package/src/models/{curation-item-model.ts → curations-by-category-item-model.ts} +10 -34
  36. package/src/models/{curation-specialty-type-item-model.ts → curations-by-category-model.ts} +12 -18
  37. package/src/models/doctor-item-model.ts +3 -12
  38. package/src/models/doctor-model.ts +3 -12
  39. package/src/models/index.ts +4 -6
  40. package/src/models/patient-model.ts +3 -12
  41. package/src/models/user-model.ts +3 -12
  42. package/lib/api/search-curations-api.d.ts +0 -198
  43. package/lib/api/search-curations-api.d.ts.map +0 -1
  44. package/lib/api/search-curations-api.js +0 -369
  45. package/lib/models/curation-item-model.d.ts +0 -73
  46. package/lib/models/curation-item-model.d.ts.map +0 -1
  47. package/lib/models/curation-specialty-type-item-model.d.ts +0 -50
  48. package/lib/models/curation-specialty-type-item-model.d.ts.map +0 -1
  49. package/lib/models/curation-specialty-types-model.d.ts.map +0 -1
  50. package/lib/models/search-curation-item-model.d.ts +0 -104
  51. package/lib/models/search-curation-item-model.d.ts.map +0 -1
  52. package/lib/models/search-curation-primary-item-model.d.ts.map +0 -1
  53. package/lib/models/search-curation-primary-item-model.js +0 -15
  54. package/lib/models/user-type.d.ts +0 -28
  55. package/lib/models/user-type.d.ts.map +0 -1
  56. package/lib/models/user-type.js +0 -31
  57. package/src/api/search-curations-api.ts +0 -332
  58. package/src/models/search-curation-item-model.ts +0 -111
  59. package/src/models/user-type.ts +0 -37
  60. /package/lib/models/{curation-item-model.js → curation-categories-model.js} +0 -0
  61. /package/lib/models/{curation-specialty-type-item-model.js → curation-category-model.js} +0 -0
  62. /package/lib/models/{curation-specialty-types-model.js → curations-by-category-item-model.js} +0 -0
  63. /package/lib/models/{search-curation-item-model.js → curations-by-category-model.js} +0 -0
@@ -94,21 +94,23 @@ var CurationsApiAxiosParamCreator = function (configuration) {
94
94
  return {
95
95
  /**
96
96
  *
97
- * @summary
98
- * @param {string} curationId
99
- * @param {string} [languageCode]
97
+ * @summary Get CurationCategories
98
+ * @param {string} languageCode
99
+ * @param {string} [curationCategoryId]
100
+ * @param {number} [page]
101
+ * @param {number} [limit]
102
+ * @param {Date} [lastRetrieved]
100
103
  * @param {*} [options] Override http request option.
101
104
  * @throws {RequiredError}
102
105
  */
103
- apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
106
+ apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId, page, limit, lastRetrieved, options) {
104
107
  if (options === void 0) { options = {}; }
105
108
  return __awaiter(_this, void 0, void 0, function () {
106
109
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
110
  return __generator(this, function (_a) {
108
- // verify required parameter 'curationId' is not null or undefined
109
- (0, common_1.assertParamExists)('apiV2CurationsCurationIdGet', 'curationId', curationId);
110
- localVarPath = "/api/v2/curations/{curationId}"
111
- .replace("{".concat("curationId", "}"), encodeURIComponent(String(curationId)));
111
+ // verify required parameter 'languageCode' is not null or undefined
112
+ (0, common_1.assertParamExists)('apiV2CurationsCategoriesGet', 'languageCode', languageCode);
113
+ localVarPath = "/api/v2/curations/categories";
112
114
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
115
  if (configuration) {
114
116
  baseOptions = configuration.baseOptions;
@@ -117,7 +119,21 @@ var CurationsApiAxiosParamCreator = function (configuration) {
117
119
  localVarHeaderParameter = {};
118
120
  localVarQueryParameter = {};
119
121
  if (languageCode !== undefined) {
120
- localVarQueryParameter['languageCode'] = languageCode;
122
+ localVarQueryParameter['LanguageCode'] = languageCode;
123
+ }
124
+ if (curationCategoryId !== undefined) {
125
+ localVarQueryParameter['CurationCategoryId'] = curationCategoryId;
126
+ }
127
+ if (page !== undefined) {
128
+ localVarQueryParameter['page'] = page;
129
+ }
130
+ if (limit !== undefined) {
131
+ localVarQueryParameter['limit'] = limit;
132
+ }
133
+ if (lastRetrieved !== undefined) {
134
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
135
+ lastRetrieved.toISOString() :
136
+ lastRetrieved;
121
137
  }
122
138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
123
139
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -131,25 +147,23 @@ var CurationsApiAxiosParamCreator = function (configuration) {
131
147
  },
132
148
  /**
133
149
  *
134
- * @summary Get all Curations.
135
- * @param {string} countryId
136
- * @param {string} [id]
137
- * @param {string} [name]
138
- * @param {string} [languageCode]
139
- * @param {number} [page]
140
- * @param {number} [limit]
141
- * @param {Date} [lastRetrieved]
150
+ * @summary Get Curations by single Category
151
+ * @param {string} curationCategoryId
152
+ * @param {string} languageCode
142
153
  * @param {*} [options] Override http request option.
143
154
  * @throws {RequiredError}
144
155
  */
145
- apiV2CurationsGet: function (countryId, id, name, languageCode, page, limit, lastRetrieved, options) {
156
+ apiV2CurationsCategoryCurationCategoryIdGet: function (curationCategoryId, languageCode, options) {
146
157
  if (options === void 0) { options = {}; }
147
158
  return __awaiter(_this, void 0, void 0, function () {
148
159
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
149
160
  return __generator(this, function (_a) {
150
- // verify required parameter 'countryId' is not null or undefined
151
- (0, common_1.assertParamExists)('apiV2CurationsGet', 'countryId', countryId);
152
- localVarPath = "/api/v2/curations";
161
+ // verify required parameter 'curationCategoryId' is not null or undefined
162
+ (0, common_1.assertParamExists)('apiV2CurationsCategoryCurationCategoryIdGet', 'curationCategoryId', curationCategoryId);
163
+ // verify required parameter 'languageCode' is not null or undefined
164
+ (0, common_1.assertParamExists)('apiV2CurationsCategoryCurationCategoryIdGet', 'languageCode', languageCode);
165
+ localVarPath = "/api/v2/curations/category/{curationCategoryId}"
166
+ .replace("{".concat("curationCategoryId", "}"), encodeURIComponent(String(curationCategoryId)));
153
167
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
154
168
  if (configuration) {
155
169
  baseOptions = configuration.baseOptions;
@@ -157,28 +171,53 @@ var CurationsApiAxiosParamCreator = function (configuration) {
157
171
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
158
172
  localVarHeaderParameter = {};
159
173
  localVarQueryParameter = {};
160
- if (id !== undefined) {
161
- localVarQueryParameter['Id'] = id;
174
+ if (languageCode !== undefined) {
175
+ localVarQueryParameter['LanguageCode'] = languageCode;
162
176
  }
163
- if (name !== undefined) {
164
- localVarQueryParameter['Name'] = name;
177
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
178
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
179
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
180
+ return [2 /*return*/, {
181
+ url: (0, common_1.toPathString)(localVarUrlObj),
182
+ options: localVarRequestOptions,
183
+ }];
184
+ });
185
+ });
186
+ },
187
+ /**
188
+ *
189
+ * @summary Get Curations by mutiple Categories with limit
190
+ * @param {Array<string>} curationCategoryIds
191
+ * @param {string} languageCode
192
+ * @param {number} [curationLimit]
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ apiV2CurationsCategoryGet: function (curationCategoryIds, languageCode, curationLimit, options) {
197
+ if (options === void 0) { options = {}; }
198
+ return __awaiter(_this, void 0, void 0, function () {
199
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
200
+ return __generator(this, function (_a) {
201
+ // verify required parameter 'curationCategoryIds' is not null or undefined
202
+ (0, common_1.assertParamExists)('apiV2CurationsCategoryGet', 'curationCategoryIds', curationCategoryIds);
203
+ // verify required parameter 'languageCode' is not null or undefined
204
+ (0, common_1.assertParamExists)('apiV2CurationsCategoryGet', 'languageCode', languageCode);
205
+ localVarPath = "/api/v2/curations/category";
206
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
207
+ if (configuration) {
208
+ baseOptions = configuration.baseOptions;
165
209
  }
166
- if (countryId !== undefined) {
167
- localVarQueryParameter['CountryId'] = countryId;
210
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
211
+ localVarHeaderParameter = {};
212
+ localVarQueryParameter = {};
213
+ if (curationCategoryIds) {
214
+ localVarQueryParameter['CurationCategoryIds'] = curationCategoryIds;
168
215
  }
169
216
  if (languageCode !== undefined) {
170
217
  localVarQueryParameter['LanguageCode'] = languageCode;
171
218
  }
172
- if (page !== undefined) {
173
- localVarQueryParameter['page'] = page;
174
- }
175
- if (limit !== undefined) {
176
- localVarQueryParameter['limit'] = limit;
177
- }
178
- if (lastRetrieved !== undefined) {
179
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
180
- lastRetrieved.toISOString() :
181
- lastRetrieved;
219
+ if (curationLimit !== undefined) {
220
+ localVarQueryParameter['CurationLimit'] = curationLimit;
182
221
  }
183
222
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
223
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -192,22 +231,23 @@ var CurationsApiAxiosParamCreator = function (configuration) {
192
231
  },
193
232
  /**
194
233
  *
195
- * @summary Get Curation by slug
196
- * @param {string} slug
197
- * @param {string} [languageCode]
198
- * @param {string} [previewSecret]
234
+ * @summary Get Curation by Id
235
+ * @param {string} curationId
236
+ * @param {string} languageCode
199
237
  * @param {*} [options] Override http request option.
200
238
  * @throws {RequiredError}
201
239
  */
202
- apiV2CurationsSlugGet: function (slug, languageCode, previewSecret, options) {
240
+ apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
203
241
  if (options === void 0) { options = {}; }
204
242
  return __awaiter(_this, void 0, void 0, function () {
205
243
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
244
  return __generator(this, function (_a) {
207
- // verify required parameter 'slug' is not null or undefined
208
- (0, common_1.assertParamExists)('apiV2CurationsSlugGet', 'slug', slug);
209
- localVarPath = "/api/v2/curations/{slug}"
210
- .replace("{".concat("slug", "}"), encodeURIComponent(String(slug)));
245
+ // verify required parameter 'curationId' is not null or undefined
246
+ (0, common_1.assertParamExists)('apiV2CurationsCurationIdGet', 'curationId', curationId);
247
+ // verify required parameter 'languageCode' is not null or undefined
248
+ (0, common_1.assertParamExists)('apiV2CurationsCurationIdGet', 'languageCode', languageCode);
249
+ localVarPath = "/api/v2/curations/{curationId}"
250
+ .replace("{".concat("curationId", "}"), encodeURIComponent(String(curationId)));
211
251
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
252
  if (configuration) {
213
253
  baseOptions = configuration.baseOptions;
@@ -216,10 +256,7 @@ var CurationsApiAxiosParamCreator = function (configuration) {
216
256
  localVarHeaderParameter = {};
217
257
  localVarQueryParameter = {};
218
258
  if (languageCode !== undefined) {
219
- localVarQueryParameter['languageCode'] = languageCode;
220
- }
221
- if (previewSecret !== undefined) {
222
- localVarQueryParameter['previewSecret'] = previewSecret;
259
+ localVarQueryParameter['LanguageCode'] = languageCode;
223
260
  }
224
261
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
225
262
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -243,18 +280,21 @@ var CurationsApiFp = function (configuration) {
243
280
  return {
244
281
  /**
245
282
  *
246
- * @summary
247
- * @param {string} curationId
248
- * @param {string} [languageCode]
283
+ * @summary Get CurationCategories
284
+ * @param {string} languageCode
285
+ * @param {string} [curationCategoryId]
286
+ * @param {number} [page]
287
+ * @param {number} [limit]
288
+ * @param {Date} [lastRetrieved]
249
289
  * @param {*} [options] Override http request option.
250
290
  * @throws {RequiredError}
251
291
  */
252
- apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
292
+ apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId, page, limit, lastRetrieved, options) {
253
293
  return __awaiter(this, void 0, void 0, function () {
254
294
  var localVarAxiosArgs;
255
295
  return __generator(this, function (_a) {
256
296
  switch (_a.label) {
257
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCurationIdGet(curationId, languageCode, options)];
297
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoriesGet(languageCode, curationCategoryId, page, limit, lastRetrieved, options)];
258
298
  case 1:
259
299
  localVarAxiosArgs = _a.sent();
260
300
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -264,23 +304,18 @@ var CurationsApiFp = function (configuration) {
264
304
  },
265
305
  /**
266
306
  *
267
- * @summary Get all Curations.
268
- * @param {string} countryId
269
- * @param {string} [id]
270
- * @param {string} [name]
271
- * @param {string} [languageCode]
272
- * @param {number} [page]
273
- * @param {number} [limit]
274
- * @param {Date} [lastRetrieved]
307
+ * @summary Get Curations by single Category
308
+ * @param {string} curationCategoryId
309
+ * @param {string} languageCode
275
310
  * @param {*} [options] Override http request option.
276
311
  * @throws {RequiredError}
277
312
  */
278
- apiV2CurationsGet: function (countryId, id, name, languageCode, page, limit, lastRetrieved, options) {
313
+ apiV2CurationsCategoryCurationCategoryIdGet: function (curationCategoryId, languageCode, options) {
279
314
  return __awaiter(this, void 0, void 0, function () {
280
315
  var localVarAxiosArgs;
281
316
  return __generator(this, function (_a) {
282
317
  switch (_a.label) {
283
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsGet(countryId, id, name, languageCode, page, limit, lastRetrieved, options)];
318
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoryCurationCategoryIdGet(curationCategoryId, languageCode, options)];
284
319
  case 1:
285
320
  localVarAxiosArgs = _a.sent();
286
321
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -290,19 +325,40 @@ var CurationsApiFp = function (configuration) {
290
325
  },
291
326
  /**
292
327
  *
293
- * @summary Get Curation by slug
294
- * @param {string} slug
295
- * @param {string} [languageCode]
296
- * @param {string} [previewSecret]
328
+ * @summary Get Curations by mutiple Categories with limit
329
+ * @param {Array<string>} curationCategoryIds
330
+ * @param {string} languageCode
331
+ * @param {number} [curationLimit]
297
332
  * @param {*} [options] Override http request option.
298
333
  * @throws {RequiredError}
299
334
  */
300
- apiV2CurationsSlugGet: function (slug, languageCode, previewSecret, options) {
335
+ apiV2CurationsCategoryGet: function (curationCategoryIds, languageCode, curationLimit, options) {
301
336
  return __awaiter(this, void 0, void 0, function () {
302
337
  var localVarAxiosArgs;
303
338
  return __generator(this, function (_a) {
304
339
  switch (_a.label) {
305
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsSlugGet(slug, languageCode, previewSecret, options)];
340
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoryGet(curationCategoryIds, languageCode, curationLimit, options)];
341
+ case 1:
342
+ localVarAxiosArgs = _a.sent();
343
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
344
+ }
345
+ });
346
+ });
347
+ },
348
+ /**
349
+ *
350
+ * @summary Get Curation by Id
351
+ * @param {string} curationId
352
+ * @param {string} languageCode
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
357
+ return __awaiter(this, void 0, void 0, function () {
358
+ var localVarAxiosArgs;
359
+ return __generator(this, function (_a) {
360
+ switch (_a.label) {
361
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCurationIdGet(curationId, languageCode, options)];
306
362
  case 1:
307
363
  localVarAxiosArgs = _a.sent();
308
364
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -322,42 +378,51 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
322
378
  return {
323
379
  /**
324
380
  *
325
- * @summary
326
- * @param {string} curationId
327
- * @param {string} [languageCode]
381
+ * @summary Get CurationCategories
382
+ * @param {string} languageCode
383
+ * @param {string} [curationCategoryId]
384
+ * @param {number} [page]
385
+ * @param {number} [limit]
386
+ * @param {Date} [lastRetrieved]
328
387
  * @param {*} [options] Override http request option.
329
388
  * @throws {RequiredError}
330
389
  */
331
- apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
332
- return localVarFp.apiV2CurationsCurationIdGet(curationId, languageCode, options).then(function (request) { return request(axios, basePath); });
390
+ apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId, page, limit, lastRetrieved, options) {
391
+ return localVarFp.apiV2CurationsCategoriesGet(languageCode, curationCategoryId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
333
392
  },
334
393
  /**
335
394
  *
336
- * @summary Get all Curations.
337
- * @param {string} countryId
338
- * @param {string} [id]
339
- * @param {string} [name]
340
- * @param {string} [languageCode]
341
- * @param {number} [page]
342
- * @param {number} [limit]
343
- * @param {Date} [lastRetrieved]
395
+ * @summary Get Curations by single Category
396
+ * @param {string} curationCategoryId
397
+ * @param {string} languageCode
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ apiV2CurationsCategoryCurationCategoryIdGet: function (curationCategoryId, languageCode, options) {
402
+ return localVarFp.apiV2CurationsCategoryCurationCategoryIdGet(curationCategoryId, languageCode, options).then(function (request) { return request(axios, basePath); });
403
+ },
404
+ /**
405
+ *
406
+ * @summary Get Curations by mutiple Categories with limit
407
+ * @param {Array<string>} curationCategoryIds
408
+ * @param {string} languageCode
409
+ * @param {number} [curationLimit]
344
410
  * @param {*} [options] Override http request option.
345
411
  * @throws {RequiredError}
346
412
  */
347
- apiV2CurationsGet: function (countryId, id, name, languageCode, page, limit, lastRetrieved, options) {
348
- return localVarFp.apiV2CurationsGet(countryId, id, name, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
413
+ apiV2CurationsCategoryGet: function (curationCategoryIds, languageCode, curationLimit, options) {
414
+ return localVarFp.apiV2CurationsCategoryGet(curationCategoryIds, languageCode, curationLimit, options).then(function (request) { return request(axios, basePath); });
349
415
  },
350
416
  /**
351
417
  *
352
- * @summary Get Curation by slug
353
- * @param {string} slug
354
- * @param {string} [languageCode]
355
- * @param {string} [previewSecret]
418
+ * @summary Get Curation by Id
419
+ * @param {string} curationId
420
+ * @param {string} languageCode
356
421
  * @param {*} [options] Override http request option.
357
422
  * @throws {RequiredError}
358
423
  */
359
- apiV2CurationsSlugGet: function (slug, languageCode, previewSecret, options) {
360
- return localVarFp.apiV2CurationsSlugGet(slug, languageCode, previewSecret, options).then(function (request) { return request(axios, basePath); });
424
+ apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
425
+ return localVarFp.apiV2CurationsCurationIdGet(curationId, languageCode, options).then(function (request) { return request(axios, basePath); });
361
426
  },
362
427
  };
363
428
  };
@@ -375,39 +440,51 @@ var CurationsApi = /** @class */ (function (_super) {
375
440
  }
376
441
  /**
377
442
  *
378
- * @summary
379
- * @param {CurationsApiApiV2CurationsCurationIdGetRequest} requestParameters Request parameters.
443
+ * @summary Get CurationCategories
444
+ * @param {CurationsApiApiV2CurationsCategoriesGetRequest} requestParameters Request parameters.
380
445
  * @param {*} [options] Override http request option.
381
446
  * @throws {RequiredError}
382
447
  * @memberof CurationsApi
383
448
  */
384
- CurationsApi.prototype.apiV2CurationsCurationIdGet = function (requestParameters, options) {
449
+ CurationsApi.prototype.apiV2CurationsCategoriesGet = function (requestParameters, options) {
385
450
  var _this = this;
386
- return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCurationIdGet(requestParameters.curationId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
451
+ return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoriesGet(requestParameters.languageCode, requestParameters.curationCategoryId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
452
+ };
453
+ /**
454
+ *
455
+ * @summary Get Curations by single Category
456
+ * @param {CurationsApiApiV2CurationsCategoryCurationCategoryIdGetRequest} requestParameters Request parameters.
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ * @memberof CurationsApi
460
+ */
461
+ CurationsApi.prototype.apiV2CurationsCategoryCurationCategoryIdGet = function (requestParameters, options) {
462
+ var _this = this;
463
+ return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoryCurationCategoryIdGet(requestParameters.curationCategoryId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
387
464
  };
388
465
  /**
389
466
  *
390
- * @summary Get all Curations.
391
- * @param {CurationsApiApiV2CurationsGetRequest} requestParameters Request parameters.
467
+ * @summary Get Curations by mutiple Categories with limit
468
+ * @param {CurationsApiApiV2CurationsCategoryGetRequest} requestParameters Request parameters.
392
469
  * @param {*} [options] Override http request option.
393
470
  * @throws {RequiredError}
394
471
  * @memberof CurationsApi
395
472
  */
396
- CurationsApi.prototype.apiV2CurationsGet = function (requestParameters, options) {
473
+ CurationsApi.prototype.apiV2CurationsCategoryGet = function (requestParameters, options) {
397
474
  var _this = this;
398
- return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsGet(requestParameters.countryId, requestParameters.id, requestParameters.name, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
475
+ return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoryGet(requestParameters.curationCategoryIds, requestParameters.languageCode, requestParameters.curationLimit, options).then(function (request) { return request(_this.axios, _this.basePath); });
399
476
  };
400
477
  /**
401
478
  *
402
- * @summary Get Curation by slug
403
- * @param {CurationsApiApiV2CurationsSlugGetRequest} requestParameters Request parameters.
479
+ * @summary Get Curation by Id
480
+ * @param {CurationsApiApiV2CurationsCurationIdGetRequest} requestParameters Request parameters.
404
481
  * @param {*} [options] Override http request option.
405
482
  * @throws {RequiredError}
406
483
  * @memberof CurationsApi
407
484
  */
408
- CurationsApi.prototype.apiV2CurationsSlugGet = function (requestParameters, options) {
485
+ CurationsApi.prototype.apiV2CurationsCurationIdGet = function (requestParameters, options) {
409
486
  var _this = this;
410
- return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.previewSecret, options).then(function (request) { return request(_this.axios, _this.basePath); });
487
+ return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCurationIdGet(requestParameters.curationId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
411
488
  };
412
489
  return CurationsApi;
413
490
  }(base_1.BaseAPI));
package/lib/api.d.ts CHANGED
@@ -44,7 +44,6 @@ export * from './api/plans-api';
44
44
  export * from './api/prescriptions-api';
45
45
  export * from './api/profiles-api';
46
46
  export * from './api/promotions-api';
47
- export * from './api/search-curations-api';
48
47
  export * from './api/secure-containers-api';
49
48
  export * from './api/service-reviews-api';
50
49
  export * from './api/services-api';
package/lib/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}
package/lib/api.js CHANGED
@@ -62,7 +62,6 @@ __exportStar(require("./api/plans-api"), exports);
62
62
  __exportStar(require("./api/prescriptions-api"), exports);
63
63
  __exportStar(require("./api/profiles-api"), exports);
64
64
  __exportStar(require("./api/promotions-api"), exports);
65
- __exportStar(require("./api/search-curations-api"), exports);
66
65
  __exportStar(require("./api/secure-containers-api"), exports);
67
66
  __exportStar(require("./api/service-reviews-api"), exports);
68
67
  __exportStar(require("./api/services-api"), exports);
@@ -9,25 +9,25 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CurationSpecialtyTypeItemModel } from './curation-specialty-type-item-model';
12
+ import { CurationCategoryModel } from './curation-category-model';
13
13
  import { PagedListMetaData } from './paged-list-meta-data';
14
14
  /**
15
15
  *
16
16
  * @export
17
- * @interface CurationSpecialtyTypesModel
17
+ * @interface CurationCategoriesModel
18
18
  */
19
- export interface CurationSpecialtyTypesModel {
19
+ export interface CurationCategoriesModel {
20
20
  /**
21
21
  *
22
- * @type {Array<CurationSpecialtyTypeItemModel>}
23
- * @memberof CurationSpecialtyTypesModel
22
+ * @type {Array<CurationCategoryModel>}
23
+ * @memberof CurationCategoriesModel
24
24
  */
25
- 'items'?: Array<CurationSpecialtyTypeItemModel> | null;
25
+ 'items'?: Array<CurationCategoryModel> | null;
26
26
  /**
27
27
  *
28
28
  * @type {PagedListMetaData}
29
- * @memberof CurationSpecialtyTypesModel
29
+ * @memberof CurationCategoriesModel
30
30
  */
31
31
  'metaData'?: PagedListMetaData;
32
32
  }
33
- //# sourceMappingURL=curation-specialty-types-model.d.ts.map
33
+ //# sourceMappingURL=curation-categories-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curation-categories-model.d.ts","sourceRoot":"","sources":["../../src/models/curation-categories-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC"}
@@ -12,20 +12,26 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface SearchCurationPrimaryItemModel
15
+ * @interface CurationCategoryModel
16
16
  */
17
- export interface SearchCurationPrimaryItemModel {
17
+ export interface CurationCategoryModel {
18
18
  /**
19
19
  *
20
20
  * @type {string}
21
- * @memberof SearchCurationPrimaryItemModel
21
+ * @memberof CurationCategoryModel
22
22
  */
23
- 'id'?: string | null;
23
+ 'curationCategoryId'?: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
- * @memberof SearchCurationPrimaryItemModel
27
+ * @memberof CurationCategoryModel
28
28
  */
29
- 'name'?: string | null;
29
+ 'languageCode'?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CurationCategoryModel
34
+ */
35
+ 'title'?: string | null;
30
36
  }
31
- //# sourceMappingURL=search-curation-primary-item-model.d.ts.map
37
+ //# sourceMappingURL=curation-category-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curation-category-model.d.ts","sourceRoot":"","sources":["../../src/models/curation-category-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B"}
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AuditableEntityModel } from './auditable-entity-model';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -21,60 +20,42 @@ export interface CurationModel {
21
20
  * @type {string}
22
21
  * @memberof CurationModel
23
22
  */
24
- 'id'?: string;
23
+ 'curationId'?: string;
25
24
  /**
26
25
  *
27
- * @type {string}
26
+ * @type {number}
28
27
  * @memberof CurationModel
29
28
  */
30
- 'languageCode'?: string | null;
29
+ 'order'?: number;
31
30
  /**
32
31
  *
33
32
  * @type {string}
34
33
  * @memberof CurationModel
35
34
  */
36
- 'title'?: string | null;
35
+ 'photo'?: string | null;
37
36
  /**
38
37
  *
39
38
  * @type {string}
40
39
  * @memberof CurationModel
41
40
  */
42
- 'searchTerm'?: string | null;
41
+ 'photoThumbnail'?: string | null;
43
42
  /**
44
43
  *
45
44
  * @type {string}
46
45
  * @memberof CurationModel
47
46
  */
48
- 'slug'?: string | null;
49
- /**
50
- *
51
- * @type {string}
52
- * @memberof CurationModel
53
- */
54
- 'url'?: string | null;
55
- /**
56
- *
57
- * @type {string}
58
- * @memberof CurationModel
59
- */
60
- 'description'?: string | null;
47
+ 'languageCode'?: string | null;
61
48
  /**
62
49
  *
63
50
  * @type {string}
64
51
  * @memberof CurationModel
65
52
  */
66
- 'overview'?: string | null;
53
+ 'title'?: string | null;
67
54
  /**
68
55
  *
69
56
  * @type {string}
70
57
  * @memberof CurationModel
71
58
  */
72
- 'content'?: string | null;
73
- /**
74
- *
75
- * @type {AuditableEntityModel}
76
- * @memberof CurationModel
77
- */
78
- 'auditableEntity'?: AuditableEntityModel;
59
+ 'url'?: string | null;
79
60
  }
80
61
  //# sourceMappingURL=curation-model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"curation-model.d.ts","sourceRoot":"","sources":["../../src/models/curation-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;CAC5C"}
1
+ {"version":3,"file":"curation-model.d.ts","sourceRoot":"","sources":["../../src/models/curation-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}