ch-admin-api-client-typescript 5.36.76 → 5.36.82

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 (68) hide show
  1. package/lib/api/countries-api.d.ts +306 -0
  2. package/lib/api/countries-api.d.ts.map +1 -1
  3. package/lib/api/countries-api.js +473 -0
  4. package/lib/models/chadmin-model.d.ts +3 -2
  5. package/lib/models/chadmin-model.d.ts.map +1 -1
  6. package/lib/models/chmanager-model.d.ts +3 -2
  7. package/lib/models/chmanager-model.d.ts.map +1 -1
  8. package/lib/models/country-item-model.d.ts +6 -0
  9. package/lib/models/country-item-model.d.ts.map +1 -1
  10. package/lib/models/country-language-item-model.d.ts +49 -0
  11. package/lib/models/country-language-item-model.d.ts.map +1 -0
  12. package/lib/models/country-language-item-model.js +15 -0
  13. package/lib/models/country-language-model.d.ts +49 -0
  14. package/lib/models/country-language-model.d.ts.map +1 -0
  15. package/lib/models/country-language-model.js +15 -0
  16. package/lib/models/country-languages-model.d.ts +33 -0
  17. package/lib/models/country-languages-model.d.ts.map +1 -0
  18. package/lib/models/country-languages-model.js +15 -0
  19. package/lib/models/country-model.d.ts +6 -0
  20. package/lib/models/country-model.d.ts.map +1 -1
  21. package/lib/models/create-country-command.d.ts +6 -0
  22. package/lib/models/create-country-command.d.ts.map +1 -1
  23. package/lib/models/doctor-model.d.ts +3 -2
  24. package/lib/models/doctor-model.d.ts.map +1 -1
  25. package/lib/models/index.d.ts +6 -0
  26. package/lib/models/index.d.ts.map +1 -1
  27. package/lib/models/index.js +6 -0
  28. package/lib/models/manager-model.d.ts +3 -2
  29. package/lib/models/manager-model.d.ts.map +1 -1
  30. package/lib/models/notification-code.d.ts +1 -0
  31. package/lib/models/notification-code.d.ts.map +1 -1
  32. package/lib/models/notification-code.js +2 -1
  33. package/lib/models/patient-model.d.ts +3 -2
  34. package/lib/models/patient-model.d.ts.map +1 -1
  35. package/lib/models/save-country-language-command.d.ts +25 -0
  36. package/lib/models/save-country-language-command.d.ts.map +1 -0
  37. package/lib/models/save-country-language-command.js +15 -0
  38. package/lib/models/sort-country-languages-command.d.ts +26 -0
  39. package/lib/models/sort-country-languages-command.d.ts.map +1 -0
  40. package/lib/models/sort-country-languages-command.js +15 -0
  41. package/lib/models/update-country-command.d.ts +6 -0
  42. package/lib/models/update-country-command.d.ts.map +1 -1
  43. package/lib/models/user-model.d.ts +3 -2
  44. package/lib/models/user-model.d.ts.map +1 -1
  45. package/lib/models/user-type.d.ts +26 -0
  46. package/lib/models/user-type.d.ts.map +1 -0
  47. package/lib/models/user-type.js +29 -0
  48. package/package.json +1 -1
  49. package/src/.openapi-generator/FILES +6 -0
  50. package/src/api/countries-api.ts +542 -0
  51. package/src/models/chadmin-model.ts +5 -2
  52. package/src/models/chmanager-model.ts +5 -2
  53. package/src/models/country-item-model.ts +6 -0
  54. package/src/models/country-language-item-model.ts +54 -0
  55. package/src/models/country-language-model.ts +54 -0
  56. package/src/models/country-languages-model.ts +42 -0
  57. package/src/models/country-model.ts +6 -0
  58. package/src/models/create-country-command.ts +6 -0
  59. package/src/models/doctor-model.ts +5 -2
  60. package/src/models/index.ts +6 -0
  61. package/src/models/manager-model.ts +5 -2
  62. package/src/models/notification-code.ts +2 -1
  63. package/src/models/patient-model.ts +5 -2
  64. package/src/models/save-country-language-command.ts +30 -0
  65. package/src/models/sort-country-languages-command.ts +33 -0
  66. package/src/models/update-country-command.ts +6 -0
  67. package/src/models/user-model.ts +5 -2
  68. package/src/models/user-type.ts +35 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "5.36.76",
3
+ "version": "5.36.82",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -151,6 +151,9 @@ models/contributor-sns-handles-model.ts
151
151
  models/contributors-model.ts
152
152
  models/countries-model.ts
153
153
  models/country-item-model.ts
154
+ models/country-language-item-model.ts
155
+ models/country-language-model.ts
156
+ models/country-languages-model.ts
154
157
  models/country-model.ts
155
158
  models/country-sorting-command.ts
156
159
  models/create-about-us-page-command.ts
@@ -466,6 +469,7 @@ models/reschedule-appointment-command.ts
466
469
  models/review-type.ts
467
470
  models/save-appointment-timetable-override-model.ts
468
471
  models/save-appointment-timetable-overrides-result-model.ts
472
+ models/save-country-language-command.ts
469
473
  models/save-deal-package-appointment-timetable-overrides-command.ts
470
474
  models/save-doctor-affiliation-appointment-timetable-overrides-command.ts
471
475
  models/save-footer-navigation-item-model.ts
@@ -503,6 +507,7 @@ models/set-hospital-into-form-template-command.ts
503
507
  models/set-hospital-into-survey-form-command.ts
504
508
  models/sns-handle-model.ts
505
509
  models/sns-type.ts
510
+ models/sort-country-languages-command.ts
506
511
  models/sort-footer-navigations-command.ts
507
512
  models/sorting-item-model.ts
508
513
  models/sorting-order.ts
@@ -640,6 +645,7 @@ models/upload-media-from-uri-command.ts
640
645
  models/uploaded-medias-model.ts
641
646
  models/user-language-model.ts
642
647
  models/user-model.ts
648
+ models/user-type.ts
643
649
  models/user.ts
644
650
  models/web-app-environment-model.ts
645
651
  models/web-app-environments-model.ts
@@ -23,6 +23,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CountriesModel } from '../models';
25
25
  // @ts-ignore
26
+ import { CountryLanguageModel } from '../models';
27
+ // @ts-ignore
28
+ import { CountryLanguagesModel } from '../models';
29
+ // @ts-ignore
26
30
  import { CountryModel } from '../models';
27
31
  // @ts-ignore
28
32
  import { CountrySortingCommand } from '../models';
@@ -39,6 +43,10 @@ import { MediasModel } from '../models';
39
43
  // @ts-ignore
40
44
  import { ProblemDetails } from '../models';
41
45
  // @ts-ignore
46
+ import { SaveCountryLanguageCommand } from '../models';
47
+ // @ts-ignore
48
+ import { SortCountryLanguagesCommand } from '../models';
49
+ // @ts-ignore
42
50
  import { SortingResultModel } from '../models';
43
51
  // @ts-ignore
44
52
  import { TranslateCountryCommand } from '../models';
@@ -143,6 +151,233 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
143
151
  options: localVarRequestOptions,
144
152
  };
145
153
  },
154
+ /**
155
+ *
156
+ * @summary Get languages list of country
157
+ * @param {string} countryId
158
+ * @param {number} [page]
159
+ * @param {number} [limit]
160
+ * @param {Date} [lastRetrieved]
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ apiV1CountriesCountryIdLanguagesGet: async (countryId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
+ // verify required parameter 'countryId' is not null or undefined
166
+ assertParamExists('apiV1CountriesCountryIdLanguagesGet', 'countryId', countryId)
167
+ const localVarPath = `/api/v1/countries/{countryId}/languages`
168
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)));
169
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
171
+ let baseOptions;
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ }
175
+
176
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
177
+ const localVarHeaderParameter = {} as any;
178
+ const localVarQueryParameter = {} as any;
179
+
180
+ // authentication oauth2 required
181
+ // oauth required
182
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
183
+
184
+ if (page !== undefined) {
185
+ localVarQueryParameter['page'] = page;
186
+ }
187
+
188
+ if (limit !== undefined) {
189
+ localVarQueryParameter['limit'] = limit;
190
+ }
191
+
192
+ if (lastRetrieved !== undefined) {
193
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
194
+ (lastRetrieved as any).toISOString() :
195
+ lastRetrieved;
196
+ }
197
+
198
+
199
+
200
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
202
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
203
+
204
+ return {
205
+ url: toPathString(localVarUrlObj),
206
+ options: localVarRequestOptions,
207
+ };
208
+ },
209
+ /**
210
+ *
211
+ * @summary Remove language from country language list
212
+ * @param {string} countryId
213
+ * @param {string} languageCode
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ apiV1CountriesCountryIdLanguagesLanguageCodeDelete: async (countryId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
218
+ // verify required parameter 'countryId' is not null or undefined
219
+ assertParamExists('apiV1CountriesCountryIdLanguagesLanguageCodeDelete', 'countryId', countryId)
220
+ // verify required parameter 'languageCode' is not null or undefined
221
+ assertParamExists('apiV1CountriesCountryIdLanguagesLanguageCodeDelete', 'languageCode', languageCode)
222
+ const localVarPath = `/api/v1/countries/{countryId}/languages/{languageCode}`
223
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)))
224
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
225
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
226
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
227
+ let baseOptions;
228
+ if (configuration) {
229
+ baseOptions = configuration.baseOptions;
230
+ }
231
+
232
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
233
+ const localVarHeaderParameter = {} as any;
234
+ const localVarQueryParameter = {} as any;
235
+
236
+ // authentication oauth2 required
237
+ // oauth required
238
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
239
+
240
+
241
+
242
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
243
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
244
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
245
+
246
+ return {
247
+ url: toPathString(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ };
250
+ },
251
+ /**
252
+ *
253
+ * @summary Get language of country
254
+ * @param {string} countryId
255
+ * @param {string} languageCode
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ apiV1CountriesCountryIdLanguagesLanguageCodeGet: async (countryId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
260
+ // verify required parameter 'countryId' is not null or undefined
261
+ assertParamExists('apiV1CountriesCountryIdLanguagesLanguageCodeGet', 'countryId', countryId)
262
+ // verify required parameter 'languageCode' is not null or undefined
263
+ assertParamExists('apiV1CountriesCountryIdLanguagesLanguageCodeGet', 'languageCode', languageCode)
264
+ const localVarPath = `/api/v1/countries/{countryId}/languages/{languageCode}`
265
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)))
266
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
269
+ let baseOptions;
270
+ if (configuration) {
271
+ baseOptions = configuration.baseOptions;
272
+ }
273
+
274
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
275
+ const localVarHeaderParameter = {} as any;
276
+ const localVarQueryParameter = {} as any;
277
+
278
+ // authentication oauth2 required
279
+ // oauth required
280
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
281
+
282
+
283
+
284
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
285
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
286
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
287
+
288
+ return {
289
+ url: toPathString(localVarUrlObj),
290
+ options: localVarRequestOptions,
291
+ };
292
+ },
293
+ /**
294
+ *
295
+ * @summary Add language into country language list
296
+ * @param {string} countryId
297
+ * @param {string} languageCode
298
+ * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ apiV1CountriesCountryIdLanguagesLanguageCodePost: async (countryId: string, languageCode: string, saveCountryLanguageCommand?: SaveCountryLanguageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
303
+ // verify required parameter 'countryId' is not null or undefined
304
+ assertParamExists('apiV1CountriesCountryIdLanguagesLanguageCodePost', 'countryId', countryId)
305
+ // verify required parameter 'languageCode' is not null or undefined
306
+ assertParamExists('apiV1CountriesCountryIdLanguagesLanguageCodePost', 'languageCode', languageCode)
307
+ const localVarPath = `/api/v1/countries/{countryId}/languages/{languageCode}`
308
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)))
309
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
310
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
311
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
312
+ let baseOptions;
313
+ if (configuration) {
314
+ baseOptions = configuration.baseOptions;
315
+ }
316
+
317
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
318
+ const localVarHeaderParameter = {} as any;
319
+ const localVarQueryParameter = {} as any;
320
+
321
+ // authentication oauth2 required
322
+ // oauth required
323
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
324
+
325
+
326
+
327
+ localVarHeaderParameter['Content-Type'] = 'application/json';
328
+
329
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
330
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
331
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
332
+ localVarRequestOptions.data = serializeDataIfNeeded(saveCountryLanguageCommand, localVarRequestOptions, configuration)
333
+
334
+ return {
335
+ url: toPathString(localVarUrlObj),
336
+ options: localVarRequestOptions,
337
+ };
338
+ },
339
+ /**
340
+ *
341
+ * @summary Batch for country\'s languages sorting
342
+ * @param {string} countryId
343
+ * @param {SortCountryLanguagesCommand} [sortCountryLanguagesCommand]
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ apiV1CountriesCountryIdLanguagesSortPut: async (countryId: string, sortCountryLanguagesCommand?: SortCountryLanguagesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
348
+ // verify required parameter 'countryId' is not null or undefined
349
+ assertParamExists('apiV1CountriesCountryIdLanguagesSortPut', 'countryId', countryId)
350
+ const localVarPath = `/api/v1/countries/{countryId}/languages/sort`
351
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)));
352
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
353
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
354
+ let baseOptions;
355
+ if (configuration) {
356
+ baseOptions = configuration.baseOptions;
357
+ }
358
+
359
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
360
+ const localVarHeaderParameter = {} as any;
361
+ const localVarQueryParameter = {} as any;
362
+
363
+ // authentication oauth2 required
364
+ // oauth required
365
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
366
+
367
+
368
+
369
+ localVarHeaderParameter['Content-Type'] = 'application/json';
370
+
371
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
372
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
373
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
374
+ localVarRequestOptions.data = serializeDataIfNeeded(sortCountryLanguagesCommand, localVarRequestOptions, configuration)
375
+
376
+ return {
377
+ url: toPathString(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ },
146
381
  /**
147
382
  *
148
383
  * @summary Get all CountryMedias.
@@ -787,6 +1022,69 @@ export const CountriesApiFp = function(configuration?: Configuration) {
787
1022
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdGet(countryId, languageCode, returnDefaultValue, options);
788
1023
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
789
1024
  },
1025
+ /**
1026
+ *
1027
+ * @summary Get languages list of country
1028
+ * @param {string} countryId
1029
+ * @param {number} [page]
1030
+ * @param {number} [limit]
1031
+ * @param {Date} [lastRetrieved]
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ async apiV1CountriesCountryIdLanguagesGet(countryId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountryLanguagesModel>> {
1036
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesGet(countryId, page, limit, lastRetrieved, options);
1037
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1038
+ },
1039
+ /**
1040
+ *
1041
+ * @summary Remove language from country language list
1042
+ * @param {string} countryId
1043
+ * @param {string} languageCode
1044
+ * @param {*} [options] Override http request option.
1045
+ * @throws {RequiredError}
1046
+ */
1047
+ async apiV1CountriesCountryIdLanguagesLanguageCodeDelete(countryId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
1048
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesLanguageCodeDelete(countryId, languageCode, options);
1049
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1050
+ },
1051
+ /**
1052
+ *
1053
+ * @summary Get language of country
1054
+ * @param {string} countryId
1055
+ * @param {string} languageCode
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ */
1059
+ async apiV1CountriesCountryIdLanguagesLanguageCodeGet(countryId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountryLanguageModel>> {
1060
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesLanguageCodeGet(countryId, languageCode, options);
1061
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1062
+ },
1063
+ /**
1064
+ *
1065
+ * @summary Add language into country language list
1066
+ * @param {string} countryId
1067
+ * @param {string} languageCode
1068
+ * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ async apiV1CountriesCountryIdLanguagesLanguageCodePost(countryId: string, languageCode: string, saveCountryLanguageCommand?: SaveCountryLanguageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountryLanguageModel>> {
1073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesLanguageCodePost(countryId, languageCode, saveCountryLanguageCommand, options);
1074
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1075
+ },
1076
+ /**
1077
+ *
1078
+ * @summary Batch for country\'s languages sorting
1079
+ * @param {string} countryId
1080
+ * @param {SortCountryLanguagesCommand} [sortCountryLanguagesCommand]
1081
+ * @param {*} [options] Override http request option.
1082
+ * @throws {RequiredError}
1083
+ */
1084
+ async apiV1CountriesCountryIdLanguagesSortPut(countryId: string, sortCountryLanguagesCommand?: SortCountryLanguagesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SortingResultModel>> {
1085
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesSortPut(countryId, sortCountryLanguagesCommand, options);
1086
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1087
+ },
790
1088
  /**
791
1089
  *
792
1090
  * @summary Get all CountryMedias.
@@ -986,6 +1284,64 @@ export const CountriesApiFactory = function (configuration?: Configuration, base
986
1284
  apiV1CountriesCountryIdGet(countryId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<CountryModel> {
987
1285
  return localVarFp.apiV1CountriesCountryIdGet(countryId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
988
1286
  },
1287
+ /**
1288
+ *
1289
+ * @summary Get languages list of country
1290
+ * @param {string} countryId
1291
+ * @param {number} [page]
1292
+ * @param {number} [limit]
1293
+ * @param {Date} [lastRetrieved]
1294
+ * @param {*} [options] Override http request option.
1295
+ * @throws {RequiredError}
1296
+ */
1297
+ apiV1CountriesCountryIdLanguagesGet(countryId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<CountryLanguagesModel> {
1298
+ return localVarFp.apiV1CountriesCountryIdLanguagesGet(countryId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
1299
+ },
1300
+ /**
1301
+ *
1302
+ * @summary Remove language from country language list
1303
+ * @param {string} countryId
1304
+ * @param {string} languageCode
1305
+ * @param {*} [options] Override http request option.
1306
+ * @throws {RequiredError}
1307
+ */
1308
+ apiV1CountriesCountryIdLanguagesLanguageCodeDelete(countryId: string, languageCode: string, options?: any): AxiosPromise<boolean> {
1309
+ return localVarFp.apiV1CountriesCountryIdLanguagesLanguageCodeDelete(countryId, languageCode, options).then((request) => request(axios, basePath));
1310
+ },
1311
+ /**
1312
+ *
1313
+ * @summary Get language of country
1314
+ * @param {string} countryId
1315
+ * @param {string} languageCode
1316
+ * @param {*} [options] Override http request option.
1317
+ * @throws {RequiredError}
1318
+ */
1319
+ apiV1CountriesCountryIdLanguagesLanguageCodeGet(countryId: string, languageCode: string, options?: any): AxiosPromise<CountryLanguageModel> {
1320
+ return localVarFp.apiV1CountriesCountryIdLanguagesLanguageCodeGet(countryId, languageCode, options).then((request) => request(axios, basePath));
1321
+ },
1322
+ /**
1323
+ *
1324
+ * @summary Add language into country language list
1325
+ * @param {string} countryId
1326
+ * @param {string} languageCode
1327
+ * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
1328
+ * @param {*} [options] Override http request option.
1329
+ * @throws {RequiredError}
1330
+ */
1331
+ apiV1CountriesCountryIdLanguagesLanguageCodePost(countryId: string, languageCode: string, saveCountryLanguageCommand?: SaveCountryLanguageCommand, options?: any): AxiosPromise<CountryLanguageModel> {
1332
+ return localVarFp.apiV1CountriesCountryIdLanguagesLanguageCodePost(countryId, languageCode, saveCountryLanguageCommand, options).then((request) => request(axios, basePath));
1333
+ },
1334
+ /**
1335
+ *
1336
+ * @summary Batch for country\'s languages sorting
1337
+ * @param {string} countryId
1338
+ * @param {SortCountryLanguagesCommand} [sortCountryLanguagesCommand]
1339
+ * @param {*} [options] Override http request option.
1340
+ * @throws {RequiredError}
1341
+ */
1342
+ apiV1CountriesCountryIdLanguagesSortPut(countryId: string, sortCountryLanguagesCommand?: SortCountryLanguagesCommand, options?: any): AxiosPromise<SortingResultModel> {
1343
+ return localVarFp.apiV1CountriesCountryIdLanguagesSortPut(countryId, sortCountryLanguagesCommand, options).then((request) => request(axios, basePath));
1344
+ },
989
1345
  /**
990
1346
  *
991
1347
  * @summary Get all CountryMedias.
@@ -1191,6 +1547,132 @@ export interface CountriesApiApiV1CountriesCountryIdGetRequest {
1191
1547
  readonly returnDefaultValue?: boolean
1192
1548
  }
1193
1549
 
1550
+ /**
1551
+ * Request parameters for apiV1CountriesCountryIdLanguagesGet operation in CountriesApi.
1552
+ * @export
1553
+ * @interface CountriesApiApiV1CountriesCountryIdLanguagesGetRequest
1554
+ */
1555
+ export interface CountriesApiApiV1CountriesCountryIdLanguagesGetRequest {
1556
+ /**
1557
+ *
1558
+ * @type {string}
1559
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesGet
1560
+ */
1561
+ readonly countryId: string
1562
+
1563
+ /**
1564
+ *
1565
+ * @type {number}
1566
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesGet
1567
+ */
1568
+ readonly page?: number
1569
+
1570
+ /**
1571
+ *
1572
+ * @type {number}
1573
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesGet
1574
+ */
1575
+ readonly limit?: number
1576
+
1577
+ /**
1578
+ *
1579
+ * @type {Date}
1580
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesGet
1581
+ */
1582
+ readonly lastRetrieved?: Date
1583
+ }
1584
+
1585
+ /**
1586
+ * Request parameters for apiV1CountriesCountryIdLanguagesLanguageCodeDelete operation in CountriesApi.
1587
+ * @export
1588
+ * @interface CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeDeleteRequest
1589
+ */
1590
+ export interface CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeDeleteRequest {
1591
+ /**
1592
+ *
1593
+ * @type {string}
1594
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeDelete
1595
+ */
1596
+ readonly countryId: string
1597
+
1598
+ /**
1599
+ *
1600
+ * @type {string}
1601
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeDelete
1602
+ */
1603
+ readonly languageCode: string
1604
+ }
1605
+
1606
+ /**
1607
+ * Request parameters for apiV1CountriesCountryIdLanguagesLanguageCodeGet operation in CountriesApi.
1608
+ * @export
1609
+ * @interface CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeGetRequest
1610
+ */
1611
+ export interface CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeGetRequest {
1612
+ /**
1613
+ *
1614
+ * @type {string}
1615
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeGet
1616
+ */
1617
+ readonly countryId: string
1618
+
1619
+ /**
1620
+ *
1621
+ * @type {string}
1622
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeGet
1623
+ */
1624
+ readonly languageCode: string
1625
+ }
1626
+
1627
+ /**
1628
+ * Request parameters for apiV1CountriesCountryIdLanguagesLanguageCodePost operation in CountriesApi.
1629
+ * @export
1630
+ * @interface CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodePostRequest
1631
+ */
1632
+ export interface CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodePostRequest {
1633
+ /**
1634
+ *
1635
+ * @type {string}
1636
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodePost
1637
+ */
1638
+ readonly countryId: string
1639
+
1640
+ /**
1641
+ *
1642
+ * @type {string}
1643
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodePost
1644
+ */
1645
+ readonly languageCode: string
1646
+
1647
+ /**
1648
+ *
1649
+ * @type {SaveCountryLanguageCommand}
1650
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodePost
1651
+ */
1652
+ readonly saveCountryLanguageCommand?: SaveCountryLanguageCommand
1653
+ }
1654
+
1655
+ /**
1656
+ * Request parameters for apiV1CountriesCountryIdLanguagesSortPut operation in CountriesApi.
1657
+ * @export
1658
+ * @interface CountriesApiApiV1CountriesCountryIdLanguagesSortPutRequest
1659
+ */
1660
+ export interface CountriesApiApiV1CountriesCountryIdLanguagesSortPutRequest {
1661
+ /**
1662
+ *
1663
+ * @type {string}
1664
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesSortPut
1665
+ */
1666
+ readonly countryId: string
1667
+
1668
+ /**
1669
+ *
1670
+ * @type {SortCountryLanguagesCommand}
1671
+ * @memberof CountriesApiApiV1CountriesCountryIdLanguagesSortPut
1672
+ */
1673
+ readonly sortCountryLanguagesCommand?: SortCountryLanguagesCommand
1674
+ }
1675
+
1194
1676
  /**
1195
1677
  * Request parameters for apiV1CountriesCountryIdMediasGet operation in CountriesApi.
1196
1678
  * @export
@@ -1565,6 +2047,66 @@ export class CountriesApi extends BaseAPI {
1565
2047
  return CountriesApiFp(this.configuration).apiV1CountriesCountryIdGet(requestParameters.countryId, requestParameters.languageCode, requestParameters.returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
1566
2048
  }
1567
2049
 
2050
+ /**
2051
+ *
2052
+ * @summary Get languages list of country
2053
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesGetRequest} requestParameters Request parameters.
2054
+ * @param {*} [options] Override http request option.
2055
+ * @throws {RequiredError}
2056
+ * @memberof CountriesApi
2057
+ */
2058
+ public apiV1CountriesCountryIdLanguagesGet(requestParameters: CountriesApiApiV1CountriesCountryIdLanguagesGetRequest, options?: AxiosRequestConfig) {
2059
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdLanguagesGet(requestParameters.countryId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
2060
+ }
2061
+
2062
+ /**
2063
+ *
2064
+ * @summary Remove language from country language list
2065
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeDeleteRequest} requestParameters Request parameters.
2066
+ * @param {*} [options] Override http request option.
2067
+ * @throws {RequiredError}
2068
+ * @memberof CountriesApi
2069
+ */
2070
+ public apiV1CountriesCountryIdLanguagesLanguageCodeDelete(requestParameters: CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeDeleteRequest, options?: AxiosRequestConfig) {
2071
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdLanguagesLanguageCodeDelete(requestParameters.countryId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
2072
+ }
2073
+
2074
+ /**
2075
+ *
2076
+ * @summary Get language of country
2077
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeGetRequest} requestParameters Request parameters.
2078
+ * @param {*} [options] Override http request option.
2079
+ * @throws {RequiredError}
2080
+ * @memberof CountriesApi
2081
+ */
2082
+ public apiV1CountriesCountryIdLanguagesLanguageCodeGet(requestParameters: CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeGetRequest, options?: AxiosRequestConfig) {
2083
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdLanguagesLanguageCodeGet(requestParameters.countryId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
2084
+ }
2085
+
2086
+ /**
2087
+ *
2088
+ * @summary Add language into country language list
2089
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodePostRequest} requestParameters Request parameters.
2090
+ * @param {*} [options] Override http request option.
2091
+ * @throws {RequiredError}
2092
+ * @memberof CountriesApi
2093
+ */
2094
+ public apiV1CountriesCountryIdLanguagesLanguageCodePost(requestParameters: CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodePostRequest, options?: AxiosRequestConfig) {
2095
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdLanguagesLanguageCodePost(requestParameters.countryId, requestParameters.languageCode, requestParameters.saveCountryLanguageCommand, options).then((request) => request(this.axios, this.basePath));
2096
+ }
2097
+
2098
+ /**
2099
+ *
2100
+ * @summary Batch for country\'s languages sorting
2101
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesSortPutRequest} requestParameters Request parameters.
2102
+ * @param {*} [options] Override http request option.
2103
+ * @throws {RequiredError}
2104
+ * @memberof CountriesApi
2105
+ */
2106
+ public apiV1CountriesCountryIdLanguagesSortPut(requestParameters: CountriesApiApiV1CountriesCountryIdLanguagesSortPutRequest, options?: AxiosRequestConfig) {
2107
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdLanguagesSortPut(requestParameters.countryId, requestParameters.sortCountryLanguagesCommand, options).then((request) => request(this.axios, this.basePath));
2108
+ }
2109
+
1568
2110
  /**
1569
2111
  *
1570
2112
  * @summary Get all CountryMedias.
@@ -22,6 +22,9 @@ import { Gender } from './gender';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
24
  import { UserLanguageModel } from './user-language-model';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
27
+ import { UserType } from './user-type';
25
28
 
26
29
  /**
27
30
  *
@@ -115,10 +118,10 @@ export interface CHAdminModel {
115
118
  'auditableEntity'?: AuditableEntityModel;
116
119
  /**
117
120
  *
118
- * @type {string}
121
+ * @type {UserType}
119
122
  * @memberof CHAdminModel
120
123
  */
121
- 'userType'?: string | null;
124
+ 'userType'?: UserType;
122
125
  /**
123
126
  *
124
127
  * @type {Array<UserLanguageModel>}
@@ -22,6 +22,9 @@ import { Gender } from './gender';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
24
  import { UserLanguageModel } from './user-language-model';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
27
+ import { UserType } from './user-type';
25
28
 
26
29
  /**
27
30
  *
@@ -115,10 +118,10 @@ export interface CHManagerModel {
115
118
  'auditableEntity'?: AuditableEntityModel;
116
119
  /**
117
120
  *
118
- * @type {string}
121
+ * @type {UserType}
119
122
  * @memberof CHManagerModel
120
123
  */
121
- 'userType'?: string | null;
124
+ 'userType'?: UserType;
122
125
  /**
123
126
  *
124
127
  * @type {Array<UserLanguageModel>}