ch-api-client-typescript2 5.43.20 → 5.45.2
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/lib/api/curations-api.d.ts +148 -110
- package/lib/api/curations-api.d.ts.map +1 -1
- package/lib/api/curations-api.js +181 -104
- package/lib/api.d.ts +0 -1
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +0 -1
- package/lib/models/{curation-specialty-types-model.d.ts → curation-categories-model.d.ts} +8 -8
- package/lib/models/curation-categories-model.d.ts.map +1 -0
- package/lib/models/{search-curation-primary-item-model.d.ts → curation-category-model.d.ts} +13 -7
- package/lib/models/curation-category-model.d.ts.map +1 -0
- package/lib/models/curation-model.d.ts +8 -27
- package/lib/models/curation-model.d.ts.map +1 -1
- package/lib/models/curations-by-category-item-model.d.ts +49 -0
- package/lib/models/curations-by-category-item-model.d.ts.map +1 -0
- package/lib/models/curations-by-category-model.d.ts +44 -0
- package/lib/models/curations-by-category-model.d.ts.map +1 -0
- package/lib/models/doctor-item-model.d.ts +3 -10
- package/lib/models/doctor-item-model.d.ts.map +1 -1
- package/lib/models/doctor-model.d.ts +3 -10
- package/lib/models/doctor-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +4 -6
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +4 -6
- package/lib/models/patient-model.d.ts +3 -10
- package/lib/models/patient-model.d.ts.map +1 -1
- package/lib/models/user-model.d.ts +3 -10
- package/lib/models/user-model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +4 -7
- package/src/api/curations-api.ts +235 -155
- package/src/api.ts +0 -1
- package/src/models/{curation-specialty-types-model.ts → curation-categories-model.ts} +7 -7
- package/src/models/{search-curation-primary-item-model.ts → curation-category-model.ts} +12 -6
- package/src/models/curation-model.ts +8 -29
- package/src/models/{curation-item-model.ts → curations-by-category-item-model.ts} +10 -34
- package/src/models/{curation-specialty-type-item-model.ts → curations-by-category-model.ts} +12 -18
- package/src/models/doctor-item-model.ts +3 -12
- package/src/models/doctor-model.ts +3 -12
- package/src/models/index.ts +4 -6
- package/src/models/patient-model.ts +3 -12
- package/src/models/user-model.ts +3 -12
- package/lib/api/search-curations-api.d.ts +0 -198
- package/lib/api/search-curations-api.d.ts.map +0 -1
- package/lib/api/search-curations-api.js +0 -369
- package/lib/models/curation-item-model.d.ts +0 -73
- package/lib/models/curation-item-model.d.ts.map +0 -1
- package/lib/models/curation-specialty-type-item-model.d.ts +0 -50
- package/lib/models/curation-specialty-type-item-model.d.ts.map +0 -1
- package/lib/models/curation-specialty-types-model.d.ts.map +0 -1
- package/lib/models/search-curation-item-model.d.ts +0 -104
- package/lib/models/search-curation-item-model.d.ts.map +0 -1
- package/lib/models/search-curation-primary-item-model.d.ts.map +0 -1
- package/lib/models/search-curation-primary-item-model.js +0 -15
- package/lib/models/user-type.d.ts +0 -28
- package/lib/models/user-type.d.ts.map +0 -1
- package/lib/models/user-type.js +0 -31
- package/src/api/search-curations-api.ts +0 -332
- package/src/models/search-curation-item-model.ts +0 -111
- package/src/models/user-type.ts +0 -37
- /package/lib/models/{curation-item-model.js → curation-categories-model.js} +0 -0
- /package/lib/models/{curation-specialty-type-item-model.js → curation-category-model.js} +0 -0
- /package/lib/models/{curation-specialty-types-model.js → curations-by-category-item-model.js} +0 -0
- /package/lib/models/{search-curation-item-model.js → curations-by-category-model.js} +0 -0
package/src/api/curations-api.ts
CHANGED
|
@@ -21,9 +21,13 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CurationCategoriesModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CurationModel } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
|
-
import {
|
|
28
|
+
import { CurationsByCategoryModel } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ProblemDetails } from '../models';
|
|
27
31
|
/**
|
|
28
32
|
* CurationsApi - axios parameter creator
|
|
29
33
|
* @export
|
|
@@ -32,17 +36,19 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
32
36
|
return {
|
|
33
37
|
/**
|
|
34
38
|
*
|
|
35
|
-
* @summary
|
|
36
|
-
* @param {string}
|
|
37
|
-
* @param {string} [
|
|
39
|
+
* @summary Get CurationCategories
|
|
40
|
+
* @param {string} languageCode
|
|
41
|
+
* @param {string} [curationCategoryId]
|
|
42
|
+
* @param {number} [page]
|
|
43
|
+
* @param {number} [limit]
|
|
44
|
+
* @param {Date} [lastRetrieved]
|
|
38
45
|
* @param {*} [options] Override http request option.
|
|
39
46
|
* @throws {RequiredError}
|
|
40
47
|
*/
|
|
41
|
-
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('
|
|
44
|
-
const localVarPath = `/api/v2/curations/
|
|
45
|
-
.replace(`{${"curationId"}}`, encodeURIComponent(String(curationId)));
|
|
48
|
+
apiV2CurationsCategoriesGet: async (languageCode: string, curationCategoryId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
50
|
+
assertParamExists('apiV2CurationsCategoriesGet', 'languageCode', languageCode)
|
|
51
|
+
const localVarPath = `/api/v2/curations/categories`;
|
|
46
52
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
53
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
54
|
let baseOptions;
|
|
@@ -55,7 +61,25 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
55
61
|
const localVarQueryParameter = {} as any;
|
|
56
62
|
|
|
57
63
|
if (languageCode !== undefined) {
|
|
58
|
-
localVarQueryParameter['
|
|
64
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (curationCategoryId !== undefined) {
|
|
68
|
+
localVarQueryParameter['CurationCategoryId'] = curationCategoryId;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (page !== undefined) {
|
|
72
|
+
localVarQueryParameter['page'] = page;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (limit !== undefined) {
|
|
76
|
+
localVarQueryParameter['limit'] = limit;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (lastRetrieved !== undefined) {
|
|
80
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
81
|
+
(lastRetrieved as any).toISOString() :
|
|
82
|
+
lastRetrieved;
|
|
59
83
|
}
|
|
60
84
|
|
|
61
85
|
|
|
@@ -71,21 +95,19 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
71
95
|
},
|
|
72
96
|
/**
|
|
73
97
|
*
|
|
74
|
-
* @summary Get
|
|
75
|
-
* @param {string}
|
|
76
|
-
* @param {string}
|
|
77
|
-
* @param {string} [name]
|
|
78
|
-
* @param {string} [languageCode]
|
|
79
|
-
* @param {number} [page]
|
|
80
|
-
* @param {number} [limit]
|
|
81
|
-
* @param {Date} [lastRetrieved]
|
|
98
|
+
* @summary Get Curations by single Category
|
|
99
|
+
* @param {string} curationCategoryId
|
|
100
|
+
* @param {string} languageCode
|
|
82
101
|
* @param {*} [options] Override http request option.
|
|
83
102
|
* @throws {RequiredError}
|
|
84
103
|
*/
|
|
85
|
-
|
|
86
|
-
// verify required parameter '
|
|
87
|
-
assertParamExists('
|
|
88
|
-
|
|
104
|
+
apiV2CurationsCategoryCurationCategoryIdGet: async (curationCategoryId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
+
// verify required parameter 'curationCategoryId' is not null or undefined
|
|
106
|
+
assertParamExists('apiV2CurationsCategoryCurationCategoryIdGet', 'curationCategoryId', curationCategoryId)
|
|
107
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
108
|
+
assertParamExists('apiV2CurationsCategoryCurationCategoryIdGet', 'languageCode', languageCode)
|
|
109
|
+
const localVarPath = `/api/v2/curations/category/{curationCategoryId}`
|
|
110
|
+
.replace(`{${"curationCategoryId"}}`, encodeURIComponent(String(curationCategoryId)));
|
|
89
111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
112
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
91
113
|
let baseOptions;
|
|
@@ -97,34 +119,57 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
97
119
|
const localVarHeaderParameter = {} as any;
|
|
98
120
|
const localVarQueryParameter = {} as any;
|
|
99
121
|
|
|
100
|
-
if (
|
|
101
|
-
localVarQueryParameter['
|
|
122
|
+
if (languageCode !== undefined) {
|
|
123
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
102
124
|
}
|
|
103
125
|
|
|
104
|
-
if (name !== undefined) {
|
|
105
|
-
localVarQueryParameter['Name'] = name;
|
|
106
|
-
}
|
|
107
126
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
111
131
|
|
|
112
|
-
|
|
113
|
-
|
|
132
|
+
return {
|
|
133
|
+
url: toPathString(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @summary Get Curations by mutiple Categories with limit
|
|
140
|
+
* @param {Array<string>} curationCategoryIds
|
|
141
|
+
* @param {string} languageCode
|
|
142
|
+
* @param {number} [curationLimit]
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
apiV2CurationsCategoryGet: async (curationCategoryIds: Array<string>, languageCode: string, curationLimit?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
|
+
// verify required parameter 'curationCategoryIds' is not null or undefined
|
|
148
|
+
assertParamExists('apiV2CurationsCategoryGet', 'curationCategoryIds', curationCategoryIds)
|
|
149
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
150
|
+
assertParamExists('apiV2CurationsCategoryGet', 'languageCode', languageCode)
|
|
151
|
+
const localVarPath = `/api/v2/curations/category`;
|
|
152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
|
+
let baseOptions;
|
|
155
|
+
if (configuration) {
|
|
156
|
+
baseOptions = configuration.baseOptions;
|
|
114
157
|
}
|
|
115
158
|
|
|
116
|
-
|
|
117
|
-
|
|
159
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
160
|
+
const localVarHeaderParameter = {} as any;
|
|
161
|
+
const localVarQueryParameter = {} as any;
|
|
162
|
+
|
|
163
|
+
if (curationCategoryIds) {
|
|
164
|
+
localVarQueryParameter['CurationCategoryIds'] = curationCategoryIds;
|
|
118
165
|
}
|
|
119
166
|
|
|
120
|
-
if (
|
|
121
|
-
localVarQueryParameter['
|
|
167
|
+
if (languageCode !== undefined) {
|
|
168
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
122
169
|
}
|
|
123
170
|
|
|
124
|
-
if (
|
|
125
|
-
localVarQueryParameter['
|
|
126
|
-
(lastRetrieved as any).toISOString() :
|
|
127
|
-
lastRetrieved;
|
|
171
|
+
if (curationLimit !== undefined) {
|
|
172
|
+
localVarQueryParameter['CurationLimit'] = curationLimit;
|
|
128
173
|
}
|
|
129
174
|
|
|
130
175
|
|
|
@@ -140,18 +185,19 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
140
185
|
},
|
|
141
186
|
/**
|
|
142
187
|
*
|
|
143
|
-
* @summary Get Curation by
|
|
144
|
-
* @param {string}
|
|
145
|
-
* @param {string}
|
|
146
|
-
* @param {string} [previewSecret]
|
|
188
|
+
* @summary Get Curation by Id
|
|
189
|
+
* @param {string} curationId
|
|
190
|
+
* @param {string} languageCode
|
|
147
191
|
* @param {*} [options] Override http request option.
|
|
148
192
|
* @throws {RequiredError}
|
|
149
193
|
*/
|
|
150
|
-
|
|
151
|
-
// verify required parameter '
|
|
152
|
-
assertParamExists('
|
|
153
|
-
|
|
154
|
-
|
|
194
|
+
apiV2CurationsCurationIdGet: async (curationId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
195
|
+
// verify required parameter 'curationId' is not null or undefined
|
|
196
|
+
assertParamExists('apiV2CurationsCurationIdGet', 'curationId', curationId)
|
|
197
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
198
|
+
assertParamExists('apiV2CurationsCurationIdGet', 'languageCode', languageCode)
|
|
199
|
+
const localVarPath = `/api/v2/curations/{curationId}`
|
|
200
|
+
.replace(`{${"curationId"}}`, encodeURIComponent(String(curationId)));
|
|
155
201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
202
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
157
203
|
let baseOptions;
|
|
@@ -164,11 +210,7 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
164
210
|
const localVarQueryParameter = {} as any;
|
|
165
211
|
|
|
166
212
|
if (languageCode !== undefined) {
|
|
167
|
-
localVarQueryParameter['
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
if (previewSecret !== undefined) {
|
|
171
|
-
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
213
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
172
214
|
}
|
|
173
215
|
|
|
174
216
|
|
|
@@ -194,44 +236,54 @@ export const CurationsApiFp = function(configuration?: Configuration) {
|
|
|
194
236
|
return {
|
|
195
237
|
/**
|
|
196
238
|
*
|
|
197
|
-
* @summary
|
|
198
|
-
* @param {string}
|
|
199
|
-
* @param {string} [
|
|
239
|
+
* @summary Get CurationCategories
|
|
240
|
+
* @param {string} languageCode
|
|
241
|
+
* @param {string} [curationCategoryId]
|
|
242
|
+
* @param {number} [page]
|
|
243
|
+
* @param {number} [limit]
|
|
244
|
+
* @param {Date} [lastRetrieved]
|
|
200
245
|
* @param {*} [options] Override http request option.
|
|
201
246
|
* @throws {RequiredError}
|
|
202
247
|
*/
|
|
203
|
-
async
|
|
204
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
248
|
+
async apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationCategoriesModel>> {
|
|
249
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCategoriesGet(languageCode, curationCategoryId, page, limit, lastRetrieved, options);
|
|
205
250
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
206
251
|
},
|
|
207
252
|
/**
|
|
208
253
|
*
|
|
209
|
-
* @summary Get
|
|
210
|
-
* @param {string}
|
|
211
|
-
* @param {string}
|
|
212
|
-
* @param {string} [name]
|
|
213
|
-
* @param {string} [languageCode]
|
|
214
|
-
* @param {number} [page]
|
|
215
|
-
* @param {number} [limit]
|
|
216
|
-
* @param {Date} [lastRetrieved]
|
|
254
|
+
* @summary Get Curations by single Category
|
|
255
|
+
* @param {string} curationCategoryId
|
|
256
|
+
* @param {string} languageCode
|
|
217
257
|
* @param {*} [options] Override http request option.
|
|
218
258
|
* @throws {RequiredError}
|
|
219
259
|
*/
|
|
220
|
-
async
|
|
221
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
260
|
+
async apiV2CurationsCategoryCurationCategoryIdGet(curationCategoryId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CurationsByCategoryModel>>> {
|
|
261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCategoryCurationCategoryIdGet(curationCategoryId, languageCode, options);
|
|
222
262
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
223
263
|
},
|
|
224
264
|
/**
|
|
225
265
|
*
|
|
226
|
-
* @summary Get
|
|
227
|
-
* @param {string}
|
|
228
|
-
* @param {string}
|
|
229
|
-
* @param {
|
|
266
|
+
* @summary Get Curations by mutiple Categories with limit
|
|
267
|
+
* @param {Array<string>} curationCategoryIds
|
|
268
|
+
* @param {string} languageCode
|
|
269
|
+
* @param {number} [curationLimit]
|
|
230
270
|
* @param {*} [options] Override http request option.
|
|
231
271
|
* @throws {RequiredError}
|
|
232
272
|
*/
|
|
233
|
-
async
|
|
234
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
273
|
+
async apiV2CurationsCategoryGet(curationCategoryIds: Array<string>, languageCode: string, curationLimit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CurationsByCategoryModel>>> {
|
|
274
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCategoryGet(curationCategoryIds, languageCode, curationLimit, options);
|
|
275
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
276
|
+
},
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @summary Get Curation by Id
|
|
280
|
+
* @param {string} curationId
|
|
281
|
+
* @param {string} languageCode
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
*/
|
|
285
|
+
async apiV2CurationsCurationIdGet(curationId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationModel>> {
|
|
286
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCurationIdGet(curationId, languageCode, options);
|
|
235
287
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
236
288
|
},
|
|
237
289
|
}
|
|
@@ -246,149 +298,165 @@ export const CurationsApiFactory = function (configuration?: Configuration, base
|
|
|
246
298
|
return {
|
|
247
299
|
/**
|
|
248
300
|
*
|
|
249
|
-
* @summary
|
|
250
|
-
* @param {string}
|
|
251
|
-
* @param {string} [
|
|
301
|
+
* @summary Get CurationCategories
|
|
302
|
+
* @param {string} languageCode
|
|
303
|
+
* @param {string} [curationCategoryId]
|
|
304
|
+
* @param {number} [page]
|
|
305
|
+
* @param {number} [limit]
|
|
306
|
+
* @param {Date} [lastRetrieved]
|
|
252
307
|
* @param {*} [options] Override http request option.
|
|
253
308
|
* @throws {RequiredError}
|
|
254
309
|
*/
|
|
255
|
-
|
|
256
|
-
return localVarFp.
|
|
310
|
+
apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<CurationCategoriesModel> {
|
|
311
|
+
return localVarFp.apiV2CurationsCategoriesGet(languageCode, curationCategoryId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
257
312
|
},
|
|
258
313
|
/**
|
|
259
314
|
*
|
|
260
|
-
* @summary Get
|
|
261
|
-
* @param {string}
|
|
262
|
-
* @param {string}
|
|
263
|
-
* @param {string} [name]
|
|
264
|
-
* @param {string} [languageCode]
|
|
265
|
-
* @param {number} [page]
|
|
266
|
-
* @param {number} [limit]
|
|
267
|
-
* @param {Date} [lastRetrieved]
|
|
315
|
+
* @summary Get Curations by single Category
|
|
316
|
+
* @param {string} curationCategoryId
|
|
317
|
+
* @param {string} languageCode
|
|
268
318
|
* @param {*} [options] Override http request option.
|
|
269
319
|
* @throws {RequiredError}
|
|
270
320
|
*/
|
|
271
|
-
|
|
272
|
-
return localVarFp.
|
|
321
|
+
apiV2CurationsCategoryCurationCategoryIdGet(curationCategoryId: string, languageCode: string, options?: any): AxiosPromise<Array<CurationsByCategoryModel>> {
|
|
322
|
+
return localVarFp.apiV2CurationsCategoryCurationCategoryIdGet(curationCategoryId, languageCode, options).then((request) => request(axios, basePath));
|
|
273
323
|
},
|
|
274
324
|
/**
|
|
275
325
|
*
|
|
276
|
-
* @summary Get
|
|
277
|
-
* @param {string}
|
|
278
|
-
* @param {string}
|
|
279
|
-
* @param {
|
|
326
|
+
* @summary Get Curations by mutiple Categories with limit
|
|
327
|
+
* @param {Array<string>} curationCategoryIds
|
|
328
|
+
* @param {string} languageCode
|
|
329
|
+
* @param {number} [curationLimit]
|
|
280
330
|
* @param {*} [options] Override http request option.
|
|
281
331
|
* @throws {RequiredError}
|
|
282
332
|
*/
|
|
283
|
-
|
|
284
|
-
return localVarFp.
|
|
333
|
+
apiV2CurationsCategoryGet(curationCategoryIds: Array<string>, languageCode: string, curationLimit?: number, options?: any): AxiosPromise<Array<CurationsByCategoryModel>> {
|
|
334
|
+
return localVarFp.apiV2CurationsCategoryGet(curationCategoryIds, languageCode, curationLimit, options).then((request) => request(axios, basePath));
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @summary Get Curation by Id
|
|
339
|
+
* @param {string} curationId
|
|
340
|
+
* @param {string} languageCode
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
apiV2CurationsCurationIdGet(curationId: string, languageCode: string, options?: any): AxiosPromise<CurationModel> {
|
|
345
|
+
return localVarFp.apiV2CurationsCurationIdGet(curationId, languageCode, options).then((request) => request(axios, basePath));
|
|
285
346
|
},
|
|
286
347
|
};
|
|
287
348
|
};
|
|
288
349
|
|
|
289
350
|
/**
|
|
290
|
-
* Request parameters for
|
|
351
|
+
* Request parameters for apiV2CurationsCategoriesGet operation in CurationsApi.
|
|
291
352
|
* @export
|
|
292
|
-
* @interface
|
|
353
|
+
* @interface CurationsApiApiV2CurationsCategoriesGetRequest
|
|
293
354
|
*/
|
|
294
|
-
export interface
|
|
355
|
+
export interface CurationsApiApiV2CurationsCategoriesGetRequest {
|
|
295
356
|
/**
|
|
296
357
|
*
|
|
297
358
|
* @type {string}
|
|
298
|
-
* @memberof
|
|
359
|
+
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
299
360
|
*/
|
|
300
|
-
readonly
|
|
361
|
+
readonly languageCode: string
|
|
301
362
|
|
|
302
363
|
/**
|
|
303
364
|
*
|
|
304
365
|
* @type {string}
|
|
305
|
-
* @memberof
|
|
366
|
+
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
306
367
|
*/
|
|
307
|
-
readonly
|
|
308
|
-
}
|
|
368
|
+
readonly curationCategoryId?: string
|
|
309
369
|
|
|
310
|
-
/**
|
|
311
|
-
* Request parameters for apiV2CurationsGet operation in CurationsApi.
|
|
312
|
-
* @export
|
|
313
|
-
* @interface CurationsApiApiV2CurationsGetRequest
|
|
314
|
-
*/
|
|
315
|
-
export interface CurationsApiApiV2CurationsGetRequest {
|
|
316
370
|
/**
|
|
317
371
|
*
|
|
318
|
-
* @type {
|
|
319
|
-
* @memberof
|
|
372
|
+
* @type {number}
|
|
373
|
+
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
320
374
|
*/
|
|
321
|
-
readonly
|
|
375
|
+
readonly page?: number
|
|
322
376
|
|
|
323
377
|
/**
|
|
324
378
|
*
|
|
325
|
-
* @type {
|
|
326
|
-
* @memberof
|
|
379
|
+
* @type {number}
|
|
380
|
+
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
381
|
+
*/
|
|
382
|
+
readonly limit?: number
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {Date}
|
|
387
|
+
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
327
388
|
*/
|
|
328
|
-
readonly
|
|
389
|
+
readonly lastRetrieved?: Date
|
|
390
|
+
}
|
|
329
391
|
|
|
392
|
+
/**
|
|
393
|
+
* Request parameters for apiV2CurationsCategoryCurationCategoryIdGet operation in CurationsApi.
|
|
394
|
+
* @export
|
|
395
|
+
* @interface CurationsApiApiV2CurationsCategoryCurationCategoryIdGetRequest
|
|
396
|
+
*/
|
|
397
|
+
export interface CurationsApiApiV2CurationsCategoryCurationCategoryIdGetRequest {
|
|
330
398
|
/**
|
|
331
399
|
*
|
|
332
400
|
* @type {string}
|
|
333
|
-
* @memberof
|
|
401
|
+
* @memberof CurationsApiApiV2CurationsCategoryCurationCategoryIdGet
|
|
334
402
|
*/
|
|
335
|
-
readonly
|
|
403
|
+
readonly curationCategoryId: string
|
|
336
404
|
|
|
337
405
|
/**
|
|
338
406
|
*
|
|
339
407
|
* @type {string}
|
|
340
|
-
* @memberof
|
|
408
|
+
* @memberof CurationsApiApiV2CurationsCategoryCurationCategoryIdGet
|
|
341
409
|
*/
|
|
342
|
-
readonly languageCode
|
|
410
|
+
readonly languageCode: string
|
|
411
|
+
}
|
|
343
412
|
|
|
413
|
+
/**
|
|
414
|
+
* Request parameters for apiV2CurationsCategoryGet operation in CurationsApi.
|
|
415
|
+
* @export
|
|
416
|
+
* @interface CurationsApiApiV2CurationsCategoryGetRequest
|
|
417
|
+
*/
|
|
418
|
+
export interface CurationsApiApiV2CurationsCategoryGetRequest {
|
|
344
419
|
/**
|
|
345
420
|
*
|
|
346
|
-
* @type {
|
|
347
|
-
* @memberof
|
|
421
|
+
* @type {Array<string>}
|
|
422
|
+
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
348
423
|
*/
|
|
349
|
-
readonly
|
|
424
|
+
readonly curationCategoryIds: Array<string>
|
|
350
425
|
|
|
351
426
|
/**
|
|
352
427
|
*
|
|
353
|
-
* @type {
|
|
354
|
-
* @memberof
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
355
430
|
*/
|
|
356
|
-
readonly
|
|
431
|
+
readonly languageCode: string
|
|
357
432
|
|
|
358
433
|
/**
|
|
359
434
|
*
|
|
360
|
-
* @type {
|
|
361
|
-
* @memberof
|
|
435
|
+
* @type {number}
|
|
436
|
+
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
362
437
|
*/
|
|
363
|
-
readonly
|
|
438
|
+
readonly curationLimit?: number
|
|
364
439
|
}
|
|
365
440
|
|
|
366
441
|
/**
|
|
367
|
-
* Request parameters for
|
|
442
|
+
* Request parameters for apiV2CurationsCurationIdGet operation in CurationsApi.
|
|
368
443
|
* @export
|
|
369
|
-
* @interface
|
|
444
|
+
* @interface CurationsApiApiV2CurationsCurationIdGetRequest
|
|
370
445
|
*/
|
|
371
|
-
export interface
|
|
372
|
-
/**
|
|
373
|
-
*
|
|
374
|
-
* @type {string}
|
|
375
|
-
* @memberof CurationsApiApiV2CurationsSlugGet
|
|
376
|
-
*/
|
|
377
|
-
readonly slug: string
|
|
378
|
-
|
|
446
|
+
export interface CurationsApiApiV2CurationsCurationIdGetRequest {
|
|
379
447
|
/**
|
|
380
448
|
*
|
|
381
449
|
* @type {string}
|
|
382
|
-
* @memberof
|
|
450
|
+
* @memberof CurationsApiApiV2CurationsCurationIdGet
|
|
383
451
|
*/
|
|
384
|
-
readonly
|
|
452
|
+
readonly curationId: string
|
|
385
453
|
|
|
386
454
|
/**
|
|
387
455
|
*
|
|
388
456
|
* @type {string}
|
|
389
|
-
* @memberof
|
|
457
|
+
* @memberof CurationsApiApiV2CurationsCurationIdGet
|
|
390
458
|
*/
|
|
391
|
-
readonly
|
|
459
|
+
readonly languageCode: string
|
|
392
460
|
}
|
|
393
461
|
|
|
394
462
|
/**
|
|
@@ -400,37 +468,49 @@ export interface CurationsApiApiV2CurationsSlugGetRequest {
|
|
|
400
468
|
export class CurationsApi extends BaseAPI {
|
|
401
469
|
/**
|
|
402
470
|
*
|
|
403
|
-
* @summary
|
|
404
|
-
* @param {
|
|
471
|
+
* @summary Get CurationCategories
|
|
472
|
+
* @param {CurationsApiApiV2CurationsCategoriesGetRequest} requestParameters Request parameters.
|
|
405
473
|
* @param {*} [options] Override http request option.
|
|
406
474
|
* @throws {RequiredError}
|
|
407
475
|
* @memberof CurationsApi
|
|
408
476
|
*/
|
|
409
|
-
public
|
|
410
|
-
return CurationsApiFp(this.configuration).
|
|
477
|
+
public apiV2CurationsCategoriesGet(requestParameters: CurationsApiApiV2CurationsCategoriesGetRequest, options?: AxiosRequestConfig) {
|
|
478
|
+
return CurationsApiFp(this.configuration).apiV2CurationsCategoriesGet(requestParameters.languageCode, requestParameters.curationCategoryId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
411
479
|
}
|
|
412
480
|
|
|
413
481
|
/**
|
|
414
482
|
*
|
|
415
|
-
* @summary Get
|
|
416
|
-
* @param {
|
|
483
|
+
* @summary Get Curations by single Category
|
|
484
|
+
* @param {CurationsApiApiV2CurationsCategoryCurationCategoryIdGetRequest} requestParameters Request parameters.
|
|
417
485
|
* @param {*} [options] Override http request option.
|
|
418
486
|
* @throws {RequiredError}
|
|
419
487
|
* @memberof CurationsApi
|
|
420
488
|
*/
|
|
421
|
-
public
|
|
422
|
-
return CurationsApiFp(this.configuration).
|
|
489
|
+
public apiV2CurationsCategoryCurationCategoryIdGet(requestParameters: CurationsApiApiV2CurationsCategoryCurationCategoryIdGetRequest, options?: AxiosRequestConfig) {
|
|
490
|
+
return CurationsApiFp(this.configuration).apiV2CurationsCategoryCurationCategoryIdGet(requestParameters.curationCategoryId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
423
491
|
}
|
|
424
492
|
|
|
425
493
|
/**
|
|
426
494
|
*
|
|
427
|
-
* @summary Get
|
|
428
|
-
* @param {
|
|
495
|
+
* @summary Get Curations by mutiple Categories with limit
|
|
496
|
+
* @param {CurationsApiApiV2CurationsCategoryGetRequest} requestParameters Request parameters.
|
|
429
497
|
* @param {*} [options] Override http request option.
|
|
430
498
|
* @throws {RequiredError}
|
|
431
499
|
* @memberof CurationsApi
|
|
432
500
|
*/
|
|
433
|
-
public
|
|
434
|
-
return CurationsApiFp(this.configuration).
|
|
501
|
+
public apiV2CurationsCategoryGet(requestParameters: CurationsApiApiV2CurationsCategoryGetRequest, options?: AxiosRequestConfig) {
|
|
502
|
+
return CurationsApiFp(this.configuration).apiV2CurationsCategoryGet(requestParameters.curationCategoryIds, requestParameters.languageCode, requestParameters.curationLimit, options).then((request) => request(this.axios, this.basePath));
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @summary Get Curation by Id
|
|
508
|
+
* @param {CurationsApiApiV2CurationsCurationIdGetRequest} requestParameters Request parameters.
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
* @memberof CurationsApi
|
|
512
|
+
*/
|
|
513
|
+
public apiV2CurationsCurationIdGet(requestParameters: CurationsApiApiV2CurationsCurationIdGetRequest, options?: AxiosRequestConfig) {
|
|
514
|
+
return CurationsApiFp(this.configuration).apiV2CurationsCurationIdGet(requestParameters.curationId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
435
515
|
}
|
|
436
516
|
}
|
package/src/api.ts
CHANGED
|
@@ -49,7 +49,6 @@ export * from './api/plans-api';
|
|
|
49
49
|
export * from './api/prescriptions-api';
|
|
50
50
|
export * from './api/profiles-api';
|
|
51
51
|
export * from './api/promotions-api';
|
|
52
|
-
export * from './api/search-curations-api';
|
|
53
52
|
export * from './api/secure-containers-api';
|
|
54
53
|
export * from './api/service-reviews-api';
|
|
55
54
|
export * from './api/services-api';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
import {
|
|
18
|
+
import { CurationCategoryModel } from './curation-category-model';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { PagedListMetaData } from './paged-list-meta-data';
|
|
@@ -23,19 +23,19 @@ import { PagedListMetaData } from './paged-list-meta-data';
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @export
|
|
26
|
-
* @interface
|
|
26
|
+
* @interface CurationCategoriesModel
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface CurationCategoriesModel {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {Array<
|
|
32
|
-
* @memberof
|
|
31
|
+
* @type {Array<CurationCategoryModel>}
|
|
32
|
+
* @memberof CurationCategoriesModel
|
|
33
33
|
*/
|
|
34
|
-
'items'?: Array<
|
|
34
|
+
'items'?: Array<CurationCategoryModel> | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {PagedListMetaData}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof CurationCategoriesModel
|
|
39
39
|
*/
|
|
40
40
|
'metaData'?: PagedListMetaData;
|
|
41
41
|
}
|