ch-api-client-typescript2 5.13.5 → 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
@@ -0,0 +1,262 @@
1
+ /**
2
+ * Swagger UI - Cloud Hospital Api-INT
3
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 2
6
+ * Contact: hyounoosung@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CurationModel } from '../models';
16
+ import { CurationSpecialtyTypesModel } from '../models';
17
+ /**
18
+ * CurationsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const CurationsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @summary
25
+ * @param {string} curationId
26
+ * @param {string} [languageCode]
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ apiV2CurationsCurationIdGet: (curationId: string, languageCode?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ *
33
+ * @summary Get all Curations.
34
+ * @param {string} countryId
35
+ * @param {string} [id]
36
+ * @param {string} [name]
37
+ * @param {string} [languageCode]
38
+ * @param {number} [page]
39
+ * @param {number} [limit]
40
+ * @param {Date} [lastRetrieved]
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ apiV2CurationsGet: (countryId: string, id?: string, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ *
47
+ * @summary Get Curation by slug
48
+ * @param {string} slug
49
+ * @param {string} [languageCode]
50
+ * @param {string} [previewSecret]
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ apiV2CurationsSlugGet: (slug: string, languageCode?: string, previewSecret?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ };
56
+ /**
57
+ * CurationsApi - functional programming interface
58
+ * @export
59
+ */
60
+ export declare const CurationsApiFp: (configuration?: Configuration) => {
61
+ /**
62
+ *
63
+ * @summary
64
+ * @param {string} curationId
65
+ * @param {string} [languageCode]
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ */
69
+ apiV2CurationsCurationIdGet(curationId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationModel>>;
70
+ /**
71
+ *
72
+ * @summary Get all Curations.
73
+ * @param {string} countryId
74
+ * @param {string} [id]
75
+ * @param {string} [name]
76
+ * @param {string} [languageCode]
77
+ * @param {number} [page]
78
+ * @param {number} [limit]
79
+ * @param {Date} [lastRetrieved]
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ apiV2CurationsGet(countryId: string, id?: string, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationSpecialtyTypesModel>>;
84
+ /**
85
+ *
86
+ * @summary Get Curation by slug
87
+ * @param {string} slug
88
+ * @param {string} [languageCode]
89
+ * @param {string} [previewSecret]
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ apiV2CurationsSlugGet(slug: string, languageCode?: string, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationModel>>;
94
+ };
95
+ /**
96
+ * CurationsApi - factory interface
97
+ * @export
98
+ */
99
+ export declare const CurationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
100
+ /**
101
+ *
102
+ * @summary
103
+ * @param {string} curationId
104
+ * @param {string} [languageCode]
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ apiV2CurationsCurationIdGet(curationId: string, languageCode?: string, options?: any): AxiosPromise<CurationModel>;
109
+ /**
110
+ *
111
+ * @summary Get all Curations.
112
+ * @param {string} countryId
113
+ * @param {string} [id]
114
+ * @param {string} [name]
115
+ * @param {string} [languageCode]
116
+ * @param {number} [page]
117
+ * @param {number} [limit]
118
+ * @param {Date} [lastRetrieved]
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ apiV2CurationsGet(countryId: string, id?: string, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<CurationSpecialtyTypesModel>;
123
+ /**
124
+ *
125
+ * @summary Get Curation by slug
126
+ * @param {string} slug
127
+ * @param {string} [languageCode]
128
+ * @param {string} [previewSecret]
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ apiV2CurationsSlugGet(slug: string, languageCode?: string, previewSecret?: string, options?: any): AxiosPromise<CurationModel>;
133
+ };
134
+ /**
135
+ * Request parameters for apiV2CurationsCurationIdGet operation in CurationsApi.
136
+ * @export
137
+ * @interface CurationsApiApiV2CurationsCurationIdGetRequest
138
+ */
139
+ export interface CurationsApiApiV2CurationsCurationIdGetRequest {
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof CurationsApiApiV2CurationsCurationIdGet
144
+ */
145
+ readonly curationId: string;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof CurationsApiApiV2CurationsCurationIdGet
150
+ */
151
+ readonly languageCode?: string;
152
+ }
153
+ /**
154
+ * Request parameters for apiV2CurationsGet operation in CurationsApi.
155
+ * @export
156
+ * @interface CurationsApiApiV2CurationsGetRequest
157
+ */
158
+ export interface CurationsApiApiV2CurationsGetRequest {
159
+ /**
160
+ *
161
+ * @type {string}
162
+ * @memberof CurationsApiApiV2CurationsGet
163
+ */
164
+ readonly countryId: string;
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof CurationsApiApiV2CurationsGet
169
+ */
170
+ readonly id?: string;
171
+ /**
172
+ *
173
+ * @type {string}
174
+ * @memberof CurationsApiApiV2CurationsGet
175
+ */
176
+ readonly name?: string;
177
+ /**
178
+ *
179
+ * @type {string}
180
+ * @memberof CurationsApiApiV2CurationsGet
181
+ */
182
+ readonly languageCode?: string;
183
+ /**
184
+ *
185
+ * @type {number}
186
+ * @memberof CurationsApiApiV2CurationsGet
187
+ */
188
+ readonly page?: number;
189
+ /**
190
+ *
191
+ * @type {number}
192
+ * @memberof CurationsApiApiV2CurationsGet
193
+ */
194
+ readonly limit?: number;
195
+ /**
196
+ *
197
+ * @type {Date}
198
+ * @memberof CurationsApiApiV2CurationsGet
199
+ */
200
+ readonly lastRetrieved?: Date;
201
+ }
202
+ /**
203
+ * Request parameters for apiV2CurationsSlugGet operation in CurationsApi.
204
+ * @export
205
+ * @interface CurationsApiApiV2CurationsSlugGetRequest
206
+ */
207
+ export interface CurationsApiApiV2CurationsSlugGetRequest {
208
+ /**
209
+ *
210
+ * @type {string}
211
+ * @memberof CurationsApiApiV2CurationsSlugGet
212
+ */
213
+ readonly slug: string;
214
+ /**
215
+ *
216
+ * @type {string}
217
+ * @memberof CurationsApiApiV2CurationsSlugGet
218
+ */
219
+ readonly languageCode?: string;
220
+ /**
221
+ *
222
+ * @type {string}
223
+ * @memberof CurationsApiApiV2CurationsSlugGet
224
+ */
225
+ readonly previewSecret?: string;
226
+ }
227
+ /**
228
+ * CurationsApi - object-oriented interface
229
+ * @export
230
+ * @class CurationsApi
231
+ * @extends {BaseAPI}
232
+ */
233
+ export declare class CurationsApi extends BaseAPI {
234
+ /**
235
+ *
236
+ * @summary
237
+ * @param {CurationsApiApiV2CurationsCurationIdGetRequest} requestParameters Request parameters.
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ * @memberof CurationsApi
241
+ */
242
+ apiV2CurationsCurationIdGet(requestParameters: CurationsApiApiV2CurationsCurationIdGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CurationModel, any>>;
243
+ /**
244
+ *
245
+ * @summary Get all Curations.
246
+ * @param {CurationsApiApiV2CurationsGetRequest} requestParameters Request parameters.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ * @memberof CurationsApi
250
+ */
251
+ apiV2CurationsGet(requestParameters: CurationsApiApiV2CurationsGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CurationSpecialtyTypesModel, any>>;
252
+ /**
253
+ *
254
+ * @summary Get Curation by slug
255
+ * @param {CurationsApiApiV2CurationsSlugGetRequest} requestParameters Request parameters.
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ * @memberof CurationsApi
259
+ */
260
+ apiV2CurationsSlugGet(requestParameters: CurationsApiApiV2CurationsSlugGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CurationModel, any>>;
261
+ }
262
+ //# sourceMappingURL=curations-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curations-api.d.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MAAM,CAAA;IAErB;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAClC;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAO;IACrC;;;;;;;OAOG;IACI,2BAA2B,CAAC,iBAAiB,EAAE,8CAA8C,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIlI;;;;;;;OAOG;IACI,iBAAiB,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI9G;;;;;;;OAOG;IACI,qBAAqB,CAAC,iBAAiB,EAAE,wCAAwC,EAAE,OAAO,CAAC,EAAE,kBAAkB;CAGzH"}
@@ -0,0 +1,414 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.CurationsApi = exports.CurationsApiFactory = exports.CurationsApiFp = exports.CurationsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * CurationsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var CurationsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @summary
98
+ * @param {string} curationId
99
+ * @param {string} [languageCode]
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ 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)));
112
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
+ if (configuration) {
114
+ baseOptions = configuration.baseOptions;
115
+ }
116
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
117
+ localVarHeaderParameter = {};
118
+ localVarQueryParameter = {};
119
+ if (languageCode !== undefined) {
120
+ localVarQueryParameter['languageCode'] = languageCode;
121
+ }
122
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
123
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
125
+ return [2 /*return*/, {
126
+ url: (0, common_1.toPathString)(localVarUrlObj),
127
+ options: localVarRequestOptions,
128
+ }];
129
+ });
130
+ });
131
+ },
132
+ /**
133
+ *
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]
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ apiV2CurationsGet: function (countryId, id, name, languageCode, page, limit, lastRetrieved, options) {
146
+ if (options === void 0) { options = {}; }
147
+ return __awaiter(_this, void 0, void 0, function () {
148
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
149
+ 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";
153
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
158
+ localVarHeaderParameter = {};
159
+ localVarQueryParameter = {};
160
+ if (id !== undefined) {
161
+ localVarQueryParameter['Id'] = id;
162
+ }
163
+ if (name !== undefined) {
164
+ localVarQueryParameter['Name'] = name;
165
+ }
166
+ if (countryId !== undefined) {
167
+ localVarQueryParameter['CountryId'] = countryId;
168
+ }
169
+ if (languageCode !== undefined) {
170
+ localVarQueryParameter['LanguageCode'] = languageCode;
171
+ }
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;
182
+ }
183
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
+ return [2 /*return*/, {
187
+ url: (0, common_1.toPathString)(localVarUrlObj),
188
+ options: localVarRequestOptions,
189
+ }];
190
+ });
191
+ });
192
+ },
193
+ /**
194
+ *
195
+ * @summary Get Curation by slug
196
+ * @param {string} slug
197
+ * @param {string} [languageCode]
198
+ * @param {string} [previewSecret]
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ apiV2CurationsSlugGet: function (slug, languageCode, previewSecret, options) {
203
+ if (options === void 0) { options = {}; }
204
+ return __awaiter(_this, void 0, void 0, function () {
205
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
+ 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)));
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ }
215
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
216
+ localVarHeaderParameter = {};
217
+ localVarQueryParameter = {};
218
+ if (languageCode !== undefined) {
219
+ localVarQueryParameter['languageCode'] = languageCode;
220
+ }
221
+ if (previewSecret !== undefined) {
222
+ localVarQueryParameter['previewSecret'] = previewSecret;
223
+ }
224
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
225
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
+ return [2 /*return*/, {
228
+ url: (0, common_1.toPathString)(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ }];
231
+ });
232
+ });
233
+ },
234
+ };
235
+ };
236
+ exports.CurationsApiAxiosParamCreator = CurationsApiAxiosParamCreator;
237
+ /**
238
+ * CurationsApi - functional programming interface
239
+ * @export
240
+ */
241
+ var CurationsApiFp = function (configuration) {
242
+ var localVarAxiosParamCreator = (0, exports.CurationsApiAxiosParamCreator)(configuration);
243
+ return {
244
+ /**
245
+ *
246
+ * @summary
247
+ * @param {string} curationId
248
+ * @param {string} [languageCode]
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
253
+ return __awaiter(this, void 0, void 0, function () {
254
+ var localVarAxiosArgs;
255
+ return __generator(this, function (_a) {
256
+ switch (_a.label) {
257
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCurationIdGet(curationId, languageCode, options)];
258
+ case 1:
259
+ localVarAxiosArgs = _a.sent();
260
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
261
+ }
262
+ });
263
+ });
264
+ },
265
+ /**
266
+ *
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]
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ apiV2CurationsGet: function (countryId, id, name, languageCode, page, limit, lastRetrieved, options) {
279
+ return __awaiter(this, void 0, void 0, function () {
280
+ var localVarAxiosArgs;
281
+ return __generator(this, function (_a) {
282
+ switch (_a.label) {
283
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsGet(countryId, id, name, languageCode, page, limit, lastRetrieved, options)];
284
+ case 1:
285
+ localVarAxiosArgs = _a.sent();
286
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
287
+ }
288
+ });
289
+ });
290
+ },
291
+ /**
292
+ *
293
+ * @summary Get Curation by slug
294
+ * @param {string} slug
295
+ * @param {string} [languageCode]
296
+ * @param {string} [previewSecret]
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ */
300
+ apiV2CurationsSlugGet: function (slug, languageCode, previewSecret, options) {
301
+ return __awaiter(this, void 0, void 0, function () {
302
+ var localVarAxiosArgs;
303
+ return __generator(this, function (_a) {
304
+ switch (_a.label) {
305
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsSlugGet(slug, languageCode, previewSecret, options)];
306
+ case 1:
307
+ localVarAxiosArgs = _a.sent();
308
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
309
+ }
310
+ });
311
+ });
312
+ },
313
+ };
314
+ };
315
+ exports.CurationsApiFp = CurationsApiFp;
316
+ /**
317
+ * CurationsApi - factory interface
318
+ * @export
319
+ */
320
+ var CurationsApiFactory = function (configuration, basePath, axios) {
321
+ var localVarFp = (0, exports.CurationsApiFp)(configuration);
322
+ return {
323
+ /**
324
+ *
325
+ * @summary
326
+ * @param {string} curationId
327
+ * @param {string} [languageCode]
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ apiV2CurationsCurationIdGet: function (curationId, languageCode, options) {
332
+ return localVarFp.apiV2CurationsCurationIdGet(curationId, languageCode, options).then(function (request) { return request(axios, basePath); });
333
+ },
334
+ /**
335
+ *
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]
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
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); });
349
+ },
350
+ /**
351
+ *
352
+ * @summary Get Curation by slug
353
+ * @param {string} slug
354
+ * @param {string} [languageCode]
355
+ * @param {string} [previewSecret]
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ apiV2CurationsSlugGet: function (slug, languageCode, previewSecret, options) {
360
+ return localVarFp.apiV2CurationsSlugGet(slug, languageCode, previewSecret, options).then(function (request) { return request(axios, basePath); });
361
+ },
362
+ };
363
+ };
364
+ exports.CurationsApiFactory = CurationsApiFactory;
365
+ /**
366
+ * CurationsApi - object-oriented interface
367
+ * @export
368
+ * @class CurationsApi
369
+ * @extends {BaseAPI}
370
+ */
371
+ var CurationsApi = /** @class */ (function (_super) {
372
+ __extends(CurationsApi, _super);
373
+ function CurationsApi() {
374
+ return _super !== null && _super.apply(this, arguments) || this;
375
+ }
376
+ /**
377
+ *
378
+ * @summary
379
+ * @param {CurationsApiApiV2CurationsCurationIdGetRequest} requestParameters Request parameters.
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ * @memberof CurationsApi
383
+ */
384
+ CurationsApi.prototype.apiV2CurationsCurationIdGet = function (requestParameters, options) {
385
+ 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); });
387
+ };
388
+ /**
389
+ *
390
+ * @summary Get all Curations.
391
+ * @param {CurationsApiApiV2CurationsGetRequest} requestParameters Request parameters.
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ * @memberof CurationsApi
395
+ */
396
+ CurationsApi.prototype.apiV2CurationsGet = function (requestParameters, options) {
397
+ 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); });
399
+ };
400
+ /**
401
+ *
402
+ * @summary Get Curation by slug
403
+ * @param {CurationsApiApiV2CurationsSlugGetRequest} requestParameters Request parameters.
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ * @memberof CurationsApi
407
+ */
408
+ CurationsApi.prototype.apiV2CurationsSlugGet = function (requestParameters, options) {
409
+ 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); });
411
+ };
412
+ return CurationsApi;
413
+ }(base_1.BaseAPI));
414
+ exports.CurationsApi = CurationsApi;