ch-api-client-typescript2 5.13.6 → 5.14.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 (51) hide show
  1. package/lib/api/curations-api.d.ts +262 -0
  2. package/lib/api/curations-api.d.ts.map +1 -0
  3. package/lib/api/curations-api.js +414 -0
  4. package/lib/api.d.ts +1 -0
  5. package/lib/api.d.ts.map +1 -1
  6. package/lib/api.js +1 -0
  7. package/lib/models/country-model.d.ts +6 -6
  8. package/lib/models/country-model.d.ts.map +1 -1
  9. package/lib/models/curation-item-model.d.ts +73 -0
  10. package/lib/models/curation-item-model.d.ts.map +1 -0
  11. package/lib/models/curation-model.d.ts +80 -0
  12. package/lib/models/curation-model.d.ts.map +1 -0
  13. package/lib/models/curation-specialty-type-item-model.d.ts +50 -0
  14. package/lib/models/curation-specialty-type-item-model.d.ts.map +1 -0
  15. package/lib/models/curation-specialty-type-item-model.js +15 -0
  16. package/lib/models/curation-specialty-types-model.d.ts +33 -0
  17. package/lib/models/curation-specialty-types-model.d.ts.map +1 -0
  18. package/lib/models/curation-specialty-types-model.js +15 -0
  19. package/lib/models/deal-mapping-model.d.ts +3 -3
  20. package/lib/models/faq-item-model.d.ts +3 -3
  21. package/lib/models/faq-model.d.ts +3 -3
  22. package/lib/models/index.d.ts +6 -2
  23. package/lib/models/index.d.ts.map +1 -1
  24. package/lib/models/index.js +6 -2
  25. package/lib/models/{translation-simple-model.d.ts → simple-translation-model.d.ts} +9 -9
  26. package/lib/models/{translation-simple-model.d.ts.map → simple-translation-model.d.ts.map} +1 -1
  27. package/lib/models/simple-translation-model.js +15 -0
  28. package/lib/models/{translation-simple-with-description-model.d.ts → simple-translation-with-description-model.d.ts} +10 -10
  29. package/lib/models/{translation-simple-with-description-model.d.ts.map → simple-translation-with-description-model.d.ts.map} +1 -1
  30. package/lib/models/simple-translation-with-description-model.js +15 -0
  31. package/lib/models/specialty-type-item-model.d.ts +3 -3
  32. package/lib/models/specialty-type-model.d.ts +3 -3
  33. package/package.json +1 -1
  34. package/src/.openapi-generator/FILES +7 -2
  35. package/src/api/curations-api.ts +436 -0
  36. package/src/api.ts +1 -0
  37. package/src/models/country-model.ts +6 -6
  38. package/src/models/curation-item-model.ts +78 -0
  39. package/src/models/curation-model.ts +87 -0
  40. package/src/models/curation-specialty-type-item-model.ts +57 -0
  41. package/src/models/curation-specialty-types-model.ts +42 -0
  42. package/src/models/deal-mapping-model.ts +3 -3
  43. package/src/models/faq-item-model.ts +3 -3
  44. package/src/models/faq-model.ts +3 -3
  45. package/src/models/index.ts +6 -2
  46. package/src/models/{translation-simple-model.ts → simple-translation-model.ts} +8 -8
  47. package/src/models/{translation-simple-with-description-model.ts → simple-translation-with-description-model.ts} +9 -9
  48. package/src/models/specialty-type-item-model.ts +3 -3
  49. package/src/models/specialty-type-model.ts +3 -3
  50. /package/lib/models/{translation-simple-model.js → curation-item-model.js} +0 -0
  51. /package/lib/models/{translation-simple-with-description-model.js → curation-model.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"translation-simple-with-description-model.d.ts","sourceRoot":"","sources":["../../src/models/translation-simple-with-description-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IAClD;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
1
+ {"version":3,"file":"simple-translation-with-description-model.d.ts","sourceRoot":"","sources":["../../src/models/simple-translation-with-description-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IAClD;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
9
+ * Contact: hyounoosung@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,7 +12,7 @@
12
12
  import { AuditableEntity } from './auditable-entity';
13
13
  import { MarketingType } from './marketing-type';
14
14
  import { MediaModel } from './media-model';
15
- import { TranslationSimpleWithDescriptionModel } from './translation-simple-with-description-model';
15
+ import { SimpleTranslationWithDescriptionModel } from './simple-translation-with-description-model';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -33,10 +33,10 @@ export interface SpecialtyTypeItemModel {
33
33
  'languageCode'?: string | null;
34
34
  /**
35
35
  *
36
- * @type {Array<TranslationSimpleWithDescriptionModel>}
36
+ * @type {Array<SimpleTranslationWithDescriptionModel>}
37
37
  * @memberof SpecialtyTypeItemModel
38
38
  */
39
- 'simpleTranslations'?: Array<TranslationSimpleWithDescriptionModel> | null;
39
+ 'simpleTranslations'?: Array<SimpleTranslationWithDescriptionModel> | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -13,7 +13,7 @@ import { AuditableEntity } from './auditable-entity';
13
13
  import { LocalizedUrlModel } from './localized-url-model';
14
14
  import { MarketingType } from './marketing-type';
15
15
  import { MediaModel } from './media-model';
16
- import { TranslationSimpleWithDescriptionModel } from './translation-simple-with-description-model';
16
+ import { SimpleTranslationWithDescriptionModel } from './simple-translation-with-description-model';
17
17
  /**
18
18
  *
19
19
  * @export
@@ -34,10 +34,10 @@ export interface SpecialtyTypeModel {
34
34
  'languageCode'?: string | null;
35
35
  /**
36
36
  *
37
- * @type {Array<TranslationSimpleWithDescriptionModel>}
37
+ * @type {Array<SimpleTranslationWithDescriptionModel>}
38
38
  * @memberof SpecialtyTypeModel
39
39
  */
40
- 'simpleTranslations'?: Array<TranslationSimpleWithDescriptionModel> | null;
40
+ 'simpleTranslations'?: Array<SimpleTranslationWithDescriptionModel> | null;
41
41
  /**
42
42
  *
43
43
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "5.13.6",
3
+ "version": "5.14.0",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,6 +14,7 @@ api/communications-api.ts
14
14
  api/consultations-api.ts
15
15
  api/contributors-api.ts
16
16
  api/countries-api.ts
17
+ api/curations-api.ts
17
18
  api/deals-api.ts
18
19
  api/devices-api.ts
19
20
  api/doctor-affiliations-api.ts
@@ -137,6 +138,10 @@ models/create-patient-command.ts
137
138
  models/create-profile-command.ts
138
139
  models/create-service-review-command.ts
139
140
  models/create-survey-result-command.ts
141
+ models/curation-item-model.ts
142
+ models/curation-model.ts
143
+ models/curation-specialty-type-item-model.ts
144
+ models/curation-specialty-types-model.ts
140
145
  models/day-of-week.ts
141
146
  models/deal-document-model.ts
142
147
  models/deal-item-model.ts
@@ -310,6 +315,8 @@ models/service-review-item-model.ts
310
315
  models/service-review-model.ts
311
316
  models/service-reviews-model.ts
312
317
  models/service-sub-document-model.ts
318
+ models/simple-translation-model.ts
319
+ models/simple-translation-with-description-model.ts
313
320
  models/sns-handle-document-model.ts
314
321
  models/sns-handle-model.ts
315
322
  models/sns-type.ts
@@ -341,8 +348,6 @@ models/tag-model.ts
341
348
  models/tags-model.ts
342
349
  models/translation-document-model.ts
343
350
  models/translation-item-document-model.ts
344
- models/translation-simple-model.ts
345
- models/translation-simple-with-description-model.ts
346
351
  models/update-appointment-command.ts
347
352
  models/update-booking-command.ts
348
353
  models/update-call-history-command.ts
@@ -0,0 +1,436 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 2
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CurationModel } from '../models';
25
+ // @ts-ignore
26
+ import { CurationSpecialtyTypesModel } from '../models';
27
+ /**
28
+ * CurationsApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const CurationsApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @summary
36
+ * @param {string} curationId
37
+ * @param {string} [languageCode]
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ apiV2CurationsCurationIdGet: async (curationId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'curationId' is not null or undefined
43
+ assertParamExists('apiV2CurationsCurationIdGet', 'curationId', curationId)
44
+ const localVarPath = `/api/v2/curations/{curationId}`
45
+ .replace(`{${"curationId"}}`, encodeURIComponent(String(curationId)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+
53
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
56
+
57
+ if (languageCode !== undefined) {
58
+ localVarQueryParameter['languageCode'] = languageCode;
59
+ }
60
+
61
+
62
+
63
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
64
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66
+
67
+ return {
68
+ url: toPathString(localVarUrlObj),
69
+ options: localVarRequestOptions,
70
+ };
71
+ },
72
+ /**
73
+ *
74
+ * @summary Get all Curations.
75
+ * @param {string} countryId
76
+ * @param {string} [id]
77
+ * @param {string} [name]
78
+ * @param {string} [languageCode]
79
+ * @param {number} [page]
80
+ * @param {number} [limit]
81
+ * @param {Date} [lastRetrieved]
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ apiV2CurationsGet: async (countryId: string, id?: string, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
86
+ // verify required parameter 'countryId' is not null or undefined
87
+ assertParamExists('apiV2CurationsGet', 'countryId', countryId)
88
+ const localVarPath = `/api/v2/curations`;
89
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ if (configuration) {
93
+ baseOptions = configuration.baseOptions;
94
+ }
95
+
96
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
97
+ const localVarHeaderParameter = {} as any;
98
+ const localVarQueryParameter = {} as any;
99
+
100
+ if (id !== undefined) {
101
+ localVarQueryParameter['Id'] = id;
102
+ }
103
+
104
+ if (name !== undefined) {
105
+ localVarQueryParameter['Name'] = name;
106
+ }
107
+
108
+ if (countryId !== undefined) {
109
+ localVarQueryParameter['CountryId'] = countryId;
110
+ }
111
+
112
+ if (languageCode !== undefined) {
113
+ localVarQueryParameter['LanguageCode'] = languageCode;
114
+ }
115
+
116
+ if (page !== undefined) {
117
+ localVarQueryParameter['page'] = page;
118
+ }
119
+
120
+ if (limit !== undefined) {
121
+ localVarQueryParameter['limit'] = limit;
122
+ }
123
+
124
+ if (lastRetrieved !== undefined) {
125
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
126
+ (lastRetrieved as any).toISOString() :
127
+ lastRetrieved;
128
+ }
129
+
130
+
131
+
132
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
133
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
135
+
136
+ return {
137
+ url: toPathString(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ },
141
+ /**
142
+ *
143
+ * @summary Get Curation by slug
144
+ * @param {string} slug
145
+ * @param {string} [languageCode]
146
+ * @param {string} [previewSecret]
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ apiV2CurationsSlugGet: async (slug: string, languageCode?: string, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
+ // verify required parameter 'slug' is not null or undefined
152
+ assertParamExists('apiV2CurationsSlugGet', 'slug', slug)
153
+ const localVarPath = `/api/v2/curations/{slug}`
154
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
157
+ let baseOptions;
158
+ if (configuration) {
159
+ baseOptions = configuration.baseOptions;
160
+ }
161
+
162
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
163
+ const localVarHeaderParameter = {} as any;
164
+ const localVarQueryParameter = {} as any;
165
+
166
+ if (languageCode !== undefined) {
167
+ localVarQueryParameter['languageCode'] = languageCode;
168
+ }
169
+
170
+ if (previewSecret !== undefined) {
171
+ localVarQueryParameter['previewSecret'] = previewSecret;
172
+ }
173
+
174
+
175
+
176
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
178
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
179
+
180
+ return {
181
+ url: toPathString(localVarUrlObj),
182
+ options: localVarRequestOptions,
183
+ };
184
+ },
185
+ }
186
+ };
187
+
188
+ /**
189
+ * CurationsApi - functional programming interface
190
+ * @export
191
+ */
192
+ export const CurationsApiFp = function(configuration?: Configuration) {
193
+ const localVarAxiosParamCreator = CurationsApiAxiosParamCreator(configuration)
194
+ return {
195
+ /**
196
+ *
197
+ * @summary
198
+ * @param {string} curationId
199
+ * @param {string} [languageCode]
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ async apiV2CurationsCurationIdGet(curationId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationModel>> {
204
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCurationIdGet(curationId, languageCode, options);
205
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
206
+ },
207
+ /**
208
+ *
209
+ * @summary Get all Curations.
210
+ * @param {string} countryId
211
+ * @param {string} [id]
212
+ * @param {string} [name]
213
+ * @param {string} [languageCode]
214
+ * @param {number} [page]
215
+ * @param {number} [limit]
216
+ * @param {Date} [lastRetrieved]
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ async apiV2CurationsGet(countryId: string, id?: string, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationSpecialtyTypesModel>> {
221
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsGet(countryId, id, name, languageCode, page, limit, lastRetrieved, options);
222
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
223
+ },
224
+ /**
225
+ *
226
+ * @summary Get Curation by slug
227
+ * @param {string} slug
228
+ * @param {string} [languageCode]
229
+ * @param {string} [previewSecret]
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ async apiV2CurationsSlugGet(slug: string, languageCode?: string, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationModel>> {
234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsSlugGet(slug, languageCode, previewSecret, options);
235
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
236
+ },
237
+ }
238
+ };
239
+
240
+ /**
241
+ * CurationsApi - factory interface
242
+ * @export
243
+ */
244
+ export const CurationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
245
+ const localVarFp = CurationsApiFp(configuration)
246
+ return {
247
+ /**
248
+ *
249
+ * @summary
250
+ * @param {string} curationId
251
+ * @param {string} [languageCode]
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ apiV2CurationsCurationIdGet(curationId: string, languageCode?: string, options?: any): AxiosPromise<CurationModel> {
256
+ return localVarFp.apiV2CurationsCurationIdGet(curationId, languageCode, options).then((request) => request(axios, basePath));
257
+ },
258
+ /**
259
+ *
260
+ * @summary Get all Curations.
261
+ * @param {string} countryId
262
+ * @param {string} [id]
263
+ * @param {string} [name]
264
+ * @param {string} [languageCode]
265
+ * @param {number} [page]
266
+ * @param {number} [limit]
267
+ * @param {Date} [lastRetrieved]
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ apiV2CurationsGet(countryId: string, id?: string, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<CurationSpecialtyTypesModel> {
272
+ return localVarFp.apiV2CurationsGet(countryId, id, name, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
273
+ },
274
+ /**
275
+ *
276
+ * @summary Get Curation by slug
277
+ * @param {string} slug
278
+ * @param {string} [languageCode]
279
+ * @param {string} [previewSecret]
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ apiV2CurationsSlugGet(slug: string, languageCode?: string, previewSecret?: string, options?: any): AxiosPromise<CurationModel> {
284
+ return localVarFp.apiV2CurationsSlugGet(slug, languageCode, previewSecret, options).then((request) => request(axios, basePath));
285
+ },
286
+ };
287
+ };
288
+
289
+ /**
290
+ * Request parameters for apiV2CurationsCurationIdGet operation in CurationsApi.
291
+ * @export
292
+ * @interface CurationsApiApiV2CurationsCurationIdGetRequest
293
+ */
294
+ export interface CurationsApiApiV2CurationsCurationIdGetRequest {
295
+ /**
296
+ *
297
+ * @type {string}
298
+ * @memberof CurationsApiApiV2CurationsCurationIdGet
299
+ */
300
+ readonly curationId: string
301
+
302
+ /**
303
+ *
304
+ * @type {string}
305
+ * @memberof CurationsApiApiV2CurationsCurationIdGet
306
+ */
307
+ readonly languageCode?: string
308
+ }
309
+
310
+ /**
311
+ * Request parameters for apiV2CurationsGet operation in CurationsApi.
312
+ * @export
313
+ * @interface CurationsApiApiV2CurationsGetRequest
314
+ */
315
+ export interface CurationsApiApiV2CurationsGetRequest {
316
+ /**
317
+ *
318
+ * @type {string}
319
+ * @memberof CurationsApiApiV2CurationsGet
320
+ */
321
+ readonly countryId: string
322
+
323
+ /**
324
+ *
325
+ * @type {string}
326
+ * @memberof CurationsApiApiV2CurationsGet
327
+ */
328
+ readonly id?: string
329
+
330
+ /**
331
+ *
332
+ * @type {string}
333
+ * @memberof CurationsApiApiV2CurationsGet
334
+ */
335
+ readonly name?: string
336
+
337
+ /**
338
+ *
339
+ * @type {string}
340
+ * @memberof CurationsApiApiV2CurationsGet
341
+ */
342
+ readonly languageCode?: string
343
+
344
+ /**
345
+ *
346
+ * @type {number}
347
+ * @memberof CurationsApiApiV2CurationsGet
348
+ */
349
+ readonly page?: number
350
+
351
+ /**
352
+ *
353
+ * @type {number}
354
+ * @memberof CurationsApiApiV2CurationsGet
355
+ */
356
+ readonly limit?: number
357
+
358
+ /**
359
+ *
360
+ * @type {Date}
361
+ * @memberof CurationsApiApiV2CurationsGet
362
+ */
363
+ readonly lastRetrieved?: Date
364
+ }
365
+
366
+ /**
367
+ * Request parameters for apiV2CurationsSlugGet operation in CurationsApi.
368
+ * @export
369
+ * @interface CurationsApiApiV2CurationsSlugGetRequest
370
+ */
371
+ export interface CurationsApiApiV2CurationsSlugGetRequest {
372
+ /**
373
+ *
374
+ * @type {string}
375
+ * @memberof CurationsApiApiV2CurationsSlugGet
376
+ */
377
+ readonly slug: string
378
+
379
+ /**
380
+ *
381
+ * @type {string}
382
+ * @memberof CurationsApiApiV2CurationsSlugGet
383
+ */
384
+ readonly languageCode?: string
385
+
386
+ /**
387
+ *
388
+ * @type {string}
389
+ * @memberof CurationsApiApiV2CurationsSlugGet
390
+ */
391
+ readonly previewSecret?: string
392
+ }
393
+
394
+ /**
395
+ * CurationsApi - object-oriented interface
396
+ * @export
397
+ * @class CurationsApi
398
+ * @extends {BaseAPI}
399
+ */
400
+ export class CurationsApi extends BaseAPI {
401
+ /**
402
+ *
403
+ * @summary
404
+ * @param {CurationsApiApiV2CurationsCurationIdGetRequest} requestParameters Request parameters.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ * @memberof CurationsApi
408
+ */
409
+ public apiV2CurationsCurationIdGet(requestParameters: CurationsApiApiV2CurationsCurationIdGetRequest, options?: AxiosRequestConfig) {
410
+ return CurationsApiFp(this.configuration).apiV2CurationsCurationIdGet(requestParameters.curationId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
411
+ }
412
+
413
+ /**
414
+ *
415
+ * @summary Get all Curations.
416
+ * @param {CurationsApiApiV2CurationsGetRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ * @memberof CurationsApi
420
+ */
421
+ public apiV2CurationsGet(requestParameters: CurationsApiApiV2CurationsGetRequest, options?: AxiosRequestConfig) {
422
+ return CurationsApiFp(this.configuration).apiV2CurationsGet(requestParameters.countryId, requestParameters.id, requestParameters.name, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
423
+ }
424
+
425
+ /**
426
+ *
427
+ * @summary Get Curation by slug
428
+ * @param {CurationsApiApiV2CurationsSlugGetRequest} requestParameters Request parameters.
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ * @memberof CurationsApi
432
+ */
433
+ public apiV2CurationsSlugGet(requestParameters: CurationsApiApiV2CurationsSlugGetRequest, options?: AxiosRequestConfig) {
434
+ return CurationsApiFp(this.configuration).apiV2CurationsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
435
+ }
436
+ }
package/src/api.ts CHANGED
@@ -26,6 +26,7 @@ export * from './api/communications-api';
26
26
  export * from './api/consultations-api';
27
27
  export * from './api/contributors-api';
28
28
  export * from './api/countries-api';
29
+ export * from './api/curations-api';
29
30
  export * from './api/deals-api';
30
31
  export * from './api/devices-api';
31
32
  export * from './api/doctor-affiliations-api';
@@ -71,6 +71,12 @@ export interface CountryModel {
71
71
  * @memberof CountryModel
72
72
  */
73
73
  'slug'?: string | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof CountryModel
78
+ */
79
+ 'overview'?: string | null;
74
80
  /**
75
81
  *
76
82
  * @type {boolean}
@@ -107,12 +113,6 @@ export interface CountryModel {
107
113
  * @memberof CountryModel
108
114
  */
109
115
  'auditableEntity'?: AuditableEntity;
110
- /**
111
- *
112
- * @type {string}
113
- * @memberof CountryModel
114
- */
115
- 'overview'?: string | null;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -0,0 +1,78 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 2
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CurationItemModel
21
+ */
22
+ export interface CurationItemModel {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof CurationItemModel
27
+ */
28
+ 'id'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CurationItemModel
33
+ */
34
+ 'languageCode'?: string | null;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof CurationItemModel
39
+ */
40
+ 'title'?: string | null;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof CurationItemModel
45
+ */
46
+ 'slug'?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof CurationItemModel
51
+ */
52
+ 'url'?: string | null;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof CurationItemModel
57
+ */
58
+ 'photo'?: string | null;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof CurationItemModel
63
+ */
64
+ 'photoThumbnail'?: string | null;
65
+ /**
66
+ *
67
+ * @type {number}
68
+ * @memberof CurationItemModel
69
+ */
70
+ 'order'?: number;
71
+ /**
72
+ *
73
+ * @type {boolean}
74
+ * @memberof CurationItemModel
75
+ */
76
+ 'confirmed'?: boolean;
77
+ }
78
+