ch-admin-api-client-typescript 3.1.2 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -4119,6 +4119,12 @@ export interface CreateFaqCategoryCommand {
4119
4119
  * @memberof CreateFaqCategoryCommand
4120
4120
  */
4121
4121
  'order'?: number;
4122
+ /**
4123
+ *
4124
+ * @type {string}
4125
+ * @memberof CreateFaqCategoryCommand
4126
+ */
4127
+ 'hospitalId'?: string;
4122
4128
  }
4123
4129
  /**
4124
4130
  *
@@ -4150,12 +4156,6 @@ export interface CreateFaqCommand {
4150
4156
  * @memberof CreateFaqCommand
4151
4157
  */
4152
4158
  'faqCategoryId'?: string | null;
4153
- /**
4154
- *
4155
- * @type {string}
4156
- * @memberof CreateFaqCommand
4157
- */
4158
- 'hospitalId'?: string;
4159
4159
  }
4160
4160
  /**
4161
4161
  *
@@ -6853,10 +6853,16 @@ export interface FaqCategoryItemModel {
6853
6853
  'order'?: number;
6854
6854
  /**
6855
6855
  *
6856
- * @type {Array<FaqItemModel>}
6856
+ * @type {string}
6857
6857
  * @memberof FaqCategoryItemModel
6858
6858
  */
6859
- 'faqs'?: Array<FaqItemModel> | null;
6859
+ 'hospitalId'?: string;
6860
+ /**
6861
+ *
6862
+ * @type {string}
6863
+ * @memberof FaqCategoryItemModel
6864
+ */
6865
+ 'hospitalName'?: string | null;
6860
6866
  /**
6861
6867
  *
6862
6868
  * @type {Array<LocalizedUrlModel>}
@@ -6914,10 +6920,16 @@ export interface FaqCategoryModel {
6914
6920
  'order'?: number;
6915
6921
  /**
6916
6922
  *
6917
- * @type {Array<FaqItemModel>}
6923
+ * @type {string}
6924
+ * @memberof FaqCategoryModel
6925
+ */
6926
+ 'hospitalId'?: string;
6927
+ /**
6928
+ *
6929
+ * @type {string}
6918
6930
  * @memberof FaqCategoryModel
6919
6931
  */
6920
- 'faqs'?: Array<FaqItemModel> | null;
6932
+ 'hospitalName'?: string | null;
6921
6933
  /**
6922
6934
  *
6923
6935
  * @type {Array<LocalizedUrlModel>}
@@ -10856,6 +10868,25 @@ export interface SpecialtiesModel {
10856
10868
  */
10857
10869
  'metaData'?: PagedListMetaData;
10858
10870
  }
10871
+ /**
10872
+ *
10873
+ * @export
10874
+ * @interface SpecialtiesSimpleModel
10875
+ */
10876
+ export interface SpecialtiesSimpleModel {
10877
+ /**
10878
+ *
10879
+ * @type {Array<SpecialtyItemSimpleModel>}
10880
+ * @memberof SpecialtiesSimpleModel
10881
+ */
10882
+ 'items'?: Array<SpecialtyItemSimpleModel> | null;
10883
+ /**
10884
+ *
10885
+ * @type {PagedListMetaData}
10886
+ * @memberof SpecialtiesSimpleModel
10887
+ */
10888
+ 'metaData'?: PagedListMetaData;
10889
+ }
10859
10890
  /**
10860
10891
  *
10861
10892
  * @export
@@ -10941,6 +10972,43 @@ export interface SpecialtyItemModel {
10941
10972
  */
10942
10973
  'medias'?: Array<MediaModel> | null;
10943
10974
  }
10975
+ /**
10976
+ *
10977
+ * @export
10978
+ * @interface SpecialtyItemSimpleModel
10979
+ */
10980
+ export interface SpecialtyItemSimpleModel {
10981
+ /**
10982
+ *
10983
+ * @type {string}
10984
+ * @memberof SpecialtyItemSimpleModel
10985
+ */
10986
+ 'id'?: string;
10987
+ /**
10988
+ *
10989
+ * @type {string}
10990
+ * @memberof SpecialtyItemSimpleModel
10991
+ */
10992
+ 'name'?: string | null;
10993
+ /**
10994
+ *
10995
+ * @type {string}
10996
+ * @memberof SpecialtyItemSimpleModel
10997
+ */
10998
+ 'slug'?: string | null;
10999
+ /**
11000
+ *
11001
+ * @type {string}
11002
+ * @memberof SpecialtyItemSimpleModel
11003
+ */
11004
+ 'specialtyTypeId'?: string;
11005
+ /**
11006
+ *
11007
+ * @type {boolean}
11008
+ * @memberof SpecialtyItemSimpleModel
11009
+ */
11010
+ 'confirmed'?: boolean;
11011
+ }
10944
11012
  /**
10945
11013
  *
10946
11014
  * @export
@@ -28620,10 +28688,11 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
28620
28688
  * @summary Get FaqCategory.
28621
28689
  * @param {string} faqCategoryId
28622
28690
  * @param {string} [languageCode]
28691
+ * @param {boolean} [returnDefaultValue]
28623
28692
  * @param {*} [options] Override http request option.
28624
28693
  * @throws {RequiredError}
28625
28694
  */
28626
- apiV1FaqcategoriesFaqCategoryIdGet: async (faqCategoryId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28695
+ apiV1FaqcategoriesFaqCategoryIdGet: async (faqCategoryId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28627
28696
  // verify required parameter 'faqCategoryId' is not null or undefined
28628
28697
  assertParamExists('apiV1FaqcategoriesFaqCategoryIdGet', 'faqCategoryId', faqCategoryId)
28629
28698
  const localVarPath = `/api/v1/faqcategories/{faqCategoryId}`
@@ -28647,6 +28716,10 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
28647
28716
  localVarQueryParameter['languageCode'] = languageCode;
28648
28717
  }
28649
28718
 
28719
+ if (returnDefaultValue !== undefined) {
28720
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
28721
+ }
28722
+
28650
28723
 
28651
28724
 
28652
28725
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -28707,14 +28780,18 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
28707
28780
  * @param {string} [parentId]
28708
28781
  * @param {string} [name]
28709
28782
  * @param {string} [description]
28783
+ * @param {string} [hospitalId]
28784
+ * @param {string} [hospitalName]
28710
28785
  * @param {string} [languageCode]
28786
+ * @param {boolean} [showHidden]
28787
+ * @param {boolean} [returnDefaultValue]
28711
28788
  * @param {number} [page]
28712
28789
  * @param {number} [limit]
28713
28790
  * @param {Date} [lastRetrieved]
28714
28791
  * @param {*} [options] Override http request option.
28715
28792
  * @throws {RequiredError}
28716
28793
  */
28717
- apiV1FaqcategoriesGet: async (id?: string, parentId?: string, name?: string, description?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28794
+ apiV1FaqcategoriesGet: async (id?: string, parentId?: string, name?: string, description?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28718
28795
  const localVarPath = `/api/v1/faqcategories`;
28719
28796
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28720
28797
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -28747,10 +28824,26 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
28747
28824
  localVarQueryParameter['Description'] = description;
28748
28825
  }
28749
28826
 
28827
+ if (hospitalId !== undefined) {
28828
+ localVarQueryParameter['HospitalId'] = hospitalId;
28829
+ }
28830
+
28831
+ if (hospitalName !== undefined) {
28832
+ localVarQueryParameter['HospitalName'] = hospitalName;
28833
+ }
28834
+
28750
28835
  if (languageCode !== undefined) {
28751
28836
  localVarQueryParameter['LanguageCode'] = languageCode;
28752
28837
  }
28753
28838
 
28839
+ if (showHidden !== undefined) {
28840
+ localVarQueryParameter['ShowHidden'] = showHidden;
28841
+ }
28842
+
28843
+ if (returnDefaultValue !== undefined) {
28844
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
28845
+ }
28846
+
28754
28847
  if (page !== undefined) {
28755
28848
  localVarQueryParameter['page'] = page;
28756
28849
  }
@@ -28896,11 +28989,12 @@ export const FaqCategoriesApiFp = function(configuration?: Configuration) {
28896
28989
  * @summary Get FaqCategory.
28897
28990
  * @param {string} faqCategoryId
28898
28991
  * @param {string} [languageCode]
28992
+ * @param {boolean} [returnDefaultValue]
28899
28993
  * @param {*} [options] Override http request option.
28900
28994
  * @throws {RequiredError}
28901
28995
  */
28902
- async apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqCategoryModel>> {
28903
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options);
28996
+ async apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqCategoryModel>> {
28997
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, returnDefaultValue, options);
28904
28998
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28905
28999
  },
28906
29000
  /**
@@ -28922,15 +29016,19 @@ export const FaqCategoriesApiFp = function(configuration?: Configuration) {
28922
29016
  * @param {string} [parentId]
28923
29017
  * @param {string} [name]
28924
29018
  * @param {string} [description]
29019
+ * @param {string} [hospitalId]
29020
+ * @param {string} [hospitalName]
28925
29021
  * @param {string} [languageCode]
29022
+ * @param {boolean} [showHidden]
29023
+ * @param {boolean} [returnDefaultValue]
28926
29024
  * @param {number} [page]
28927
29025
  * @param {number} [limit]
28928
29026
  * @param {Date} [lastRetrieved]
28929
29027
  * @param {*} [options] Override http request option.
28930
29028
  * @throws {RequiredError}
28931
29029
  */
28932
- async apiV1FaqcategoriesGet(id?: string, parentId?: string, name?: string, description?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqCategoriesModel>> {
28933
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options);
29030
+ async apiV1FaqcategoriesGet(id?: string, parentId?: string, name?: string, description?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqCategoriesModel>> {
29031
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqcategoriesGet(id, parentId, name, description, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
28934
29032
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28935
29033
  },
28936
29034
  /**
@@ -28993,11 +29091,12 @@ export const FaqCategoriesApiFactory = function (configuration?: Configuration,
28993
29091
  * @summary Get FaqCategory.
28994
29092
  * @param {string} faqCategoryId
28995
29093
  * @param {string} [languageCode]
29094
+ * @param {boolean} [returnDefaultValue]
28996
29095
  * @param {*} [options] Override http request option.
28997
29096
  * @throws {RequiredError}
28998
29097
  */
28999
- apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId: string, languageCode?: string, options?: any): AxiosPromise<FaqCategoryModel> {
29000
- return localVarFp.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options).then((request) => request(axios, basePath));
29098
+ apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<FaqCategoryModel> {
29099
+ return localVarFp.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
29001
29100
  },
29002
29101
  /**
29003
29102
  *
@@ -29017,15 +29116,19 @@ export const FaqCategoriesApiFactory = function (configuration?: Configuration,
29017
29116
  * @param {string} [parentId]
29018
29117
  * @param {string} [name]
29019
29118
  * @param {string} [description]
29119
+ * @param {string} [hospitalId]
29120
+ * @param {string} [hospitalName]
29020
29121
  * @param {string} [languageCode]
29122
+ * @param {boolean} [showHidden]
29123
+ * @param {boolean} [returnDefaultValue]
29021
29124
  * @param {number} [page]
29022
29125
  * @param {number} [limit]
29023
29126
  * @param {Date} [lastRetrieved]
29024
29127
  * @param {*} [options] Override http request option.
29025
29128
  * @throws {RequiredError}
29026
29129
  */
29027
- apiV1FaqcategoriesGet(id?: string, parentId?: string, name?: string, description?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FaqCategoriesModel> {
29028
- return localVarFp.apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29130
+ apiV1FaqcategoriesGet(id?: string, parentId?: string, name?: string, description?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FaqCategoriesModel> {
29131
+ return localVarFp.apiV1FaqcategoriesGet(id, parentId, name, description, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29029
29132
  },
29030
29133
  /**
29031
29134
  *
@@ -29089,12 +29192,13 @@ export class FaqCategoriesApi extends BaseAPI {
29089
29192
  * @summary Get FaqCategory.
29090
29193
  * @param {string} faqCategoryId
29091
29194
  * @param {string} [languageCode]
29195
+ * @param {boolean} [returnDefaultValue]
29092
29196
  * @param {*} [options] Override http request option.
29093
29197
  * @throws {RequiredError}
29094
29198
  * @memberof FaqCategoriesApi
29095
29199
  */
29096
- public apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId: string, languageCode?: string, options?: AxiosRequestConfig) {
29097
- return FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options).then((request) => request(this.axios, this.basePath));
29200
+ public apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
29201
+ return FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
29098
29202
  }
29099
29203
 
29100
29204
  /**
@@ -29117,7 +29221,11 @@ export class FaqCategoriesApi extends BaseAPI {
29117
29221
  * @param {string} [parentId]
29118
29222
  * @param {string} [name]
29119
29223
  * @param {string} [description]
29224
+ * @param {string} [hospitalId]
29225
+ * @param {string} [hospitalName]
29120
29226
  * @param {string} [languageCode]
29227
+ * @param {boolean} [showHidden]
29228
+ * @param {boolean} [returnDefaultValue]
29121
29229
  * @param {number} [page]
29122
29230
  * @param {number} [limit]
29123
29231
  * @param {Date} [lastRetrieved]
@@ -29125,8 +29233,8 @@ export class FaqCategoriesApi extends BaseAPI {
29125
29233
  * @throws {RequiredError}
29126
29234
  * @memberof FaqCategoriesApi
29127
29235
  */
29128
- public apiV1FaqcategoriesGet(id?: string, parentId?: string, name?: string, description?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
29129
- return FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
29236
+ public apiV1FaqcategoriesGet(id?: string, parentId?: string, name?: string, description?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
29237
+ return FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesGet(id, parentId, name, description, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
29130
29238
  }
29131
29239
 
29132
29240
  /**
@@ -29166,10 +29274,11 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
29166
29274
  *
29167
29275
  * @summary Delete faq.
29168
29276
  * @param {string} faqId
29277
+ * @param {boolean} [forceDelete]
29169
29278
  * @param {*} [options] Override http request option.
29170
29279
  * @throws {RequiredError}
29171
29280
  */
29172
- apiV1FaqsFaqIdDelete: async (faqId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29281
+ apiV1FaqsFaqIdDelete: async (faqId: string, forceDelete?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29173
29282
  // verify required parameter 'faqId' is not null or undefined
29174
29283
  assertParamExists('apiV1FaqsFaqIdDelete', 'faqId', faqId)
29175
29284
  const localVarPath = `/api/v1/faqs/{faqId}`
@@ -29189,6 +29298,10 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
29189
29298
  // oauth required
29190
29299
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29191
29300
 
29301
+ if (forceDelete !== undefined) {
29302
+ localVarQueryParameter['forceDelete'] = forceDelete;
29303
+ }
29304
+
29192
29305
 
29193
29306
 
29194
29307
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29205,10 +29318,11 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
29205
29318
  * @summary Get faq.
29206
29319
  * @param {string} faqId
29207
29320
  * @param {string} [languageCode]
29321
+ * @param {boolean} [returnDefaultValue]
29208
29322
  * @param {*} [options] Override http request option.
29209
29323
  * @throws {RequiredError}
29210
29324
  */
29211
- apiV1FaqsFaqIdGet: async (faqId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29325
+ apiV1FaqsFaqIdGet: async (faqId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29212
29326
  // verify required parameter 'faqId' is not null or undefined
29213
29327
  assertParamExists('apiV1FaqsFaqIdGet', 'faqId', faqId)
29214
29328
  const localVarPath = `/api/v1/faqs/{faqId}`
@@ -29232,6 +29346,10 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
29232
29346
  localVarQueryParameter['languageCode'] = languageCode;
29233
29347
  }
29234
29348
 
29349
+ if (returnDefaultValue !== undefined) {
29350
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
29351
+ }
29352
+
29235
29353
 
29236
29354
 
29237
29355
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29533,13 +29651,14 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
29533
29651
  * @param {string} [hospitalName]
29534
29652
  * @param {string} [languageCode]
29535
29653
  * @param {boolean} [showHidden]
29654
+ * @param {boolean} [returnDefaultValue]
29536
29655
  * @param {number} [page]
29537
29656
  * @param {number} [limit]
29538
29657
  * @param {Date} [lastRetrieved]
29539
29658
  * @param {*} [options] Override http request option.
29540
29659
  * @throws {RequiredError}
29541
29660
  */
29542
- apiV1FaqsGet: async (id?: string, title?: string, content?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29661
+ apiV1FaqsGet: async (id?: string, title?: string, content?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29543
29662
  const localVarPath = `/api/v1/faqs`;
29544
29663
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29545
29664
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29588,6 +29707,10 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
29588
29707
  localVarQueryParameter['ShowHidden'] = showHidden;
29589
29708
  }
29590
29709
 
29710
+ if (returnDefaultValue !== undefined) {
29711
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
29712
+ }
29713
+
29591
29714
  if (page !== undefined) {
29592
29715
  localVarQueryParameter['page'] = page;
29593
29716
  }
@@ -29708,11 +29831,12 @@ export const FaqsApiFp = function(configuration?: Configuration) {
29708
29831
  *
29709
29832
  * @summary Delete faq.
29710
29833
  * @param {string} faqId
29834
+ * @param {boolean} [forceDelete]
29711
29835
  * @param {*} [options] Override http request option.
29712
29836
  * @throws {RequiredError}
29713
29837
  */
29714
- async apiV1FaqsFaqIdDelete(faqId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29715
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, options);
29838
+ async apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29839
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, forceDelete, options);
29716
29840
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29717
29841
  },
29718
29842
  /**
@@ -29720,11 +29844,12 @@ export const FaqsApiFp = function(configuration?: Configuration) {
29720
29844
  * @summary Get faq.
29721
29845
  * @param {string} faqId
29722
29846
  * @param {string} [languageCode]
29847
+ * @param {boolean} [returnDefaultValue]
29723
29848
  * @param {*} [options] Override http request option.
29724
29849
  * @throws {RequiredError}
29725
29850
  */
29726
- async apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqModel>> {
29727
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdGet(faqId, languageCode, options);
29851
+ async apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqModel>> {
29852
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdGet(faqId, languageCode, returnDefaultValue, options);
29728
29853
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29729
29854
  },
29730
29855
  /**
@@ -29815,14 +29940,15 @@ export const FaqsApiFp = function(configuration?: Configuration) {
29815
29940
  * @param {string} [hospitalName]
29816
29941
  * @param {string} [languageCode]
29817
29942
  * @param {boolean} [showHidden]
29943
+ * @param {boolean} [returnDefaultValue]
29818
29944
  * @param {number} [page]
29819
29945
  * @param {number} [limit]
29820
29946
  * @param {Date} [lastRetrieved]
29821
29947
  * @param {*} [options] Override http request option.
29822
29948
  * @throws {RequiredError}
29823
29949
  */
29824
- async apiV1FaqsGet(id?: string, title?: string, content?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqsModel>> {
29825
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options);
29950
+ async apiV1FaqsGet(id?: string, title?: string, content?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqsModel>> {
29951
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
29826
29952
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29827
29953
  },
29828
29954
  /**
@@ -29862,22 +29988,24 @@ export const FaqsApiFactory = function (configuration?: Configuration, basePath?
29862
29988
  *
29863
29989
  * @summary Delete faq.
29864
29990
  * @param {string} faqId
29991
+ * @param {boolean} [forceDelete]
29865
29992
  * @param {*} [options] Override http request option.
29866
29993
  * @throws {RequiredError}
29867
29994
  */
29868
- apiV1FaqsFaqIdDelete(faqId: string, options?: any): AxiosPromise<boolean> {
29869
- return localVarFp.apiV1FaqsFaqIdDelete(faqId, options).then((request) => request(axios, basePath));
29995
+ apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: any): AxiosPromise<boolean> {
29996
+ return localVarFp.apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then((request) => request(axios, basePath));
29870
29997
  },
29871
29998
  /**
29872
29999
  *
29873
30000
  * @summary Get faq.
29874
30001
  * @param {string} faqId
29875
30002
  * @param {string} [languageCode]
30003
+ * @param {boolean} [returnDefaultValue]
29876
30004
  * @param {*} [options] Override http request option.
29877
30005
  * @throws {RequiredError}
29878
30006
  */
29879
- apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, options?: any): AxiosPromise<FaqModel> {
29880
- return localVarFp.apiV1FaqsFaqIdGet(faqId, languageCode, options).then((request) => request(axios, basePath));
30007
+ apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<FaqModel> {
30008
+ return localVarFp.apiV1FaqsFaqIdGet(faqId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
29881
30009
  },
29882
30010
  /**
29883
30011
  *
@@ -29961,14 +30089,15 @@ export const FaqsApiFactory = function (configuration?: Configuration, basePath?
29961
30089
  * @param {string} [hospitalName]
29962
30090
  * @param {string} [languageCode]
29963
30091
  * @param {boolean} [showHidden]
30092
+ * @param {boolean} [returnDefaultValue]
29964
30093
  * @param {number} [page]
29965
30094
  * @param {number} [limit]
29966
30095
  * @param {Date} [lastRetrieved]
29967
30096
  * @param {*} [options] Override http request option.
29968
30097
  * @throws {RequiredError}
29969
30098
  */
29970
- apiV1FaqsGet(id?: string, title?: string, content?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FaqsModel> {
29971
- return localVarFp.apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
30099
+ apiV1FaqsGet(id?: string, title?: string, content?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FaqsModel> {
30100
+ return localVarFp.apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29972
30101
  },
29973
30102
  /**
29974
30103
  *
@@ -30005,12 +30134,13 @@ export class FaqsApi extends BaseAPI {
30005
30134
  *
30006
30135
  * @summary Delete faq.
30007
30136
  * @param {string} faqId
30137
+ * @param {boolean} [forceDelete]
30008
30138
  * @param {*} [options] Override http request option.
30009
30139
  * @throws {RequiredError}
30010
30140
  * @memberof FaqsApi
30011
30141
  */
30012
- public apiV1FaqsFaqIdDelete(faqId: string, options?: AxiosRequestConfig) {
30013
- return FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, options).then((request) => request(this.axios, this.basePath));
30142
+ public apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: AxiosRequestConfig) {
30143
+ return FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then((request) => request(this.axios, this.basePath));
30014
30144
  }
30015
30145
 
30016
30146
  /**
@@ -30018,12 +30148,13 @@ export class FaqsApi extends BaseAPI {
30018
30148
  * @summary Get faq.
30019
30149
  * @param {string} faqId
30020
30150
  * @param {string} [languageCode]
30151
+ * @param {boolean} [returnDefaultValue]
30021
30152
  * @param {*} [options] Override http request option.
30022
30153
  * @throws {RequiredError}
30023
30154
  * @memberof FaqsApi
30024
30155
  */
30025
- public apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig) {
30026
- return FaqsApiFp(this.configuration).apiV1FaqsFaqIdGet(faqId, languageCode, options).then((request) => request(this.axios, this.basePath));
30156
+ public apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
30157
+ return FaqsApiFp(this.configuration).apiV1FaqsFaqIdGet(faqId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
30027
30158
  }
30028
30159
 
30029
30160
  /**
@@ -30120,6 +30251,7 @@ export class FaqsApi extends BaseAPI {
30120
30251
  * @param {string} [hospitalName]
30121
30252
  * @param {string} [languageCode]
30122
30253
  * @param {boolean} [showHidden]
30254
+ * @param {boolean} [returnDefaultValue]
30123
30255
  * @param {number} [page]
30124
30256
  * @param {number} [limit]
30125
30257
  * @param {Date} [lastRetrieved]
@@ -30127,8 +30259,8 @@ export class FaqsApi extends BaseAPI {
30127
30259
  * @throws {RequiredError}
30128
30260
  * @memberof FaqsApi
30129
30261
  */
30130
- public apiV1FaqsGet(id?: string, title?: string, content?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
30131
- return FaqsApiFp(this.configuration).apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
30262
+ public apiV1FaqsGet(id?: string, title?: string, content?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
30263
+ return FaqsApiFp(this.configuration).apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
30132
30264
  }
30133
30265
 
30134
30266
  /**
@@ -31966,73 +32098,25 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
31966
32098
  },
31967
32099
  /**
31968
32100
  *
31969
- * @summary Create HospitalSpecialty.
31970
- * @param {string} hospitalId
31971
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
31972
- * @param {*} [options] Override http request option.
31973
- * @throws {RequiredError}
31974
- */
31975
- apiV1HospitalsHospitalIdSpecialtiesPost: async (hospitalId: string, createHospitalSpecialtyCommand?: CreateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
31976
- // verify required parameter 'hospitalId' is not null or undefined
31977
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId)
31978
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties`
31979
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
31980
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
31981
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31982
- let baseOptions;
31983
- if (configuration) {
31984
- baseOptions = configuration.baseOptions;
31985
- }
31986
-
31987
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
31988
- const localVarHeaderParameter = {} as any;
31989
- const localVarQueryParameter = {} as any;
31990
-
31991
- // authentication oauth2 required
31992
- // oauth required
31993
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
31994
-
31995
-
31996
-
31997
- localVarHeaderParameter['Content-Type'] = 'application/json';
31998
-
31999
- setSearchParams(localVarUrlObj, localVarQueryParameter);
32000
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32001
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32002
- localVarRequestOptions.data = serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration)
32003
-
32004
- return {
32005
- url: toPathString(localVarUrlObj),
32006
- options: localVarRequestOptions,
32007
- };
32008
- },
32009
- /**
32010
- *
32011
- * @summary Get all HospitalSpecialties.
32101
+ * @summary Get all HospitalServiceMedias.
32012
32102
  * @param {string} hospitalId
32013
- * @param {string} [hospitalName]
32014
- * @param {string} [hospitalSlug]
32015
- * @param {string} [specialtyId]
32016
- * @param {string} [specialtyName]
32017
- * @param {string} [specialtyTypeId]
32018
- * @param {string} [hospitalSpecialtySlug]
32019
- * @param {string} [title]
32020
- * @param {MarketingType} [marketingType]
32021
- * @param {string} [languageCode]
32022
- * @param {boolean} [showHidden]
32023
- * @param {boolean} [returnDefaultValue]
32024
- * @param {boolean} [includeServices]
32103
+ * @param {string} hospitalSpecialtyId
32104
+ * @param {string} [id]
32105
+ * @param {MediaType} [mediaType]
32025
32106
  * @param {number} [page]
32026
32107
  * @param {number} [limit]
32027
32108
  * @param {Date} [lastRetrieved]
32028
32109
  * @param {*} [options] Override http request option.
32029
32110
  * @throws {RequiredError}
32030
32111
  */
32031
- apiV1HospitalsHospitalIdSpecialtiesSimpleGet: async (hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32112
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: async (hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32032
32113
  // verify required parameter 'hospitalId' is not null or undefined
32033
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSimpleGet', 'hospitalId', hospitalId)
32034
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/simple`
32035
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
32114
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId)
32115
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32116
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
32117
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias`
32118
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32119
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32036
32120
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
32037
32121
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32038
32122
  let baseOptions;
@@ -32048,52 +32132,12 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32048
32132
  // oauth required
32049
32133
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32050
32134
 
32051
- if (hospitalName !== undefined) {
32052
- localVarQueryParameter['HospitalName'] = hospitalName;
32053
- }
32054
-
32055
- if (hospitalSlug !== undefined) {
32056
- localVarQueryParameter['HospitalSlug'] = hospitalSlug;
32057
- }
32058
-
32059
- if (specialtyId !== undefined) {
32060
- localVarQueryParameter['SpecialtyId'] = specialtyId;
32061
- }
32062
-
32063
- if (specialtyName !== undefined) {
32064
- localVarQueryParameter['SpecialtyName'] = specialtyName;
32065
- }
32066
-
32067
- if (specialtyTypeId !== undefined) {
32068
- localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
32069
- }
32070
-
32071
- if (hospitalSpecialtySlug !== undefined) {
32072
- localVarQueryParameter['HospitalSpecialtySlug'] = hospitalSpecialtySlug;
32073
- }
32074
-
32075
- if (title !== undefined) {
32076
- localVarQueryParameter['Title'] = title;
32077
- }
32078
-
32079
- if (marketingType !== undefined) {
32080
- localVarQueryParameter['MarketingType'] = marketingType;
32081
- }
32082
-
32083
- if (languageCode !== undefined) {
32084
- localVarQueryParameter['LanguageCode'] = languageCode;
32085
- }
32086
-
32087
- if (showHidden !== undefined) {
32088
- localVarQueryParameter['ShowHidden'] = showHidden;
32089
- }
32090
-
32091
- if (returnDefaultValue !== undefined) {
32092
- localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
32135
+ if (id !== undefined) {
32136
+ localVarQueryParameter['Id'] = id;
32093
32137
  }
32094
32138
 
32095
- if (includeServices !== undefined) {
32096
- localVarQueryParameter['IncludeServices'] = includeServices;
32139
+ if (mediaType !== undefined) {
32140
+ localVarQueryParameter['MediaType'] = mediaType;
32097
32141
  }
32098
32142
 
32099
32143
  if (page !== undefined) {
@@ -32123,20 +32167,365 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32123
32167
  },
32124
32168
  /**
32125
32169
  *
32126
- * @summary Delete HospitalSpecialty.
32170
+ * @summary Delete HospitalServiceMedia
32127
32171
  * @param {string} hospitalId
32128
- * @param {string} specialtyId
32172
+ * @param {string} hospitalSpecialtyId
32173
+ * @param {string} mediaId
32129
32174
  * @param {*} [options] Override http request option.
32130
32175
  * @throws {RequiredError}
32131
32176
  */
32132
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: async (hospitalId: string, specialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32177
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32133
32178
  // verify required parameter 'hospitalId' is not null or undefined
32134
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId)
32135
- // verify required parameter 'specialtyId' is not null or undefined
32136
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId)
32137
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
32179
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalId', hospitalId)
32180
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32181
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId)
32182
+ // verify required parameter 'mediaId' is not null or undefined
32183
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId)
32184
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32138
32185
  .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32139
- .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32186
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32187
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32189
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32190
+ let baseOptions;
32191
+ if (configuration) {
32192
+ baseOptions = configuration.baseOptions;
32193
+ }
32194
+
32195
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
32196
+ const localVarHeaderParameter = {} as any;
32197
+ const localVarQueryParameter = {} as any;
32198
+
32199
+ // authentication oauth2 required
32200
+ // oauth required
32201
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32202
+
32203
+
32204
+
32205
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32206
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32207
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32208
+
32209
+ return {
32210
+ url: toPathString(localVarUrlObj),
32211
+ options: localVarRequestOptions,
32212
+ };
32213
+ },
32214
+ /**
32215
+ *
32216
+ * @summary Get HospitalServiceMedia.
32217
+ * @param {string} hospitalId
32218
+ * @param {string} hospitalSpecialtyId
32219
+ * @param {string} mediaId
32220
+ * @param {*} [options] Override http request option.
32221
+ * @throws {RequiredError}
32222
+ */
32223
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32224
+ // verify required parameter 'hospitalId' is not null or undefined
32225
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId)
32226
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32227
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
32228
+ // verify required parameter 'mediaId' is not null or undefined
32229
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId)
32230
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32231
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32232
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32233
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32235
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32236
+ let baseOptions;
32237
+ if (configuration) {
32238
+ baseOptions = configuration.baseOptions;
32239
+ }
32240
+
32241
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32242
+ const localVarHeaderParameter = {} as any;
32243
+ const localVarQueryParameter = {} as any;
32244
+
32245
+ // authentication oauth2 required
32246
+ // oauth required
32247
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32248
+
32249
+
32250
+
32251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32253
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32254
+
32255
+ return {
32256
+ url: toPathString(localVarUrlObj),
32257
+ options: localVarRequestOptions,
32258
+ };
32259
+ },
32260
+ /**
32261
+ *
32262
+ * @summary Update HospitalServiceMedia.
32263
+ * @param {string} hospitalId
32264
+ * @param {string} hospitalSpecialtyId
32265
+ * @param {string} mediaId
32266
+ * @param {UpdateMediaCommand} [updateMediaCommand]
32267
+ * @param {*} [options] Override http request option.
32268
+ * @throws {RequiredError}
32269
+ */
32270
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32271
+ // verify required parameter 'hospitalId' is not null or undefined
32272
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalId', hospitalId)
32273
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32274
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId)
32275
+ // verify required parameter 'mediaId' is not null or undefined
32276
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId)
32277
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32278
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32279
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32280
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32283
+ let baseOptions;
32284
+ if (configuration) {
32285
+ baseOptions = configuration.baseOptions;
32286
+ }
32287
+
32288
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
32289
+ const localVarHeaderParameter = {} as any;
32290
+ const localVarQueryParameter = {} as any;
32291
+
32292
+ // authentication oauth2 required
32293
+ // oauth required
32294
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32295
+
32296
+
32297
+
32298
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32299
+
32300
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32301
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32302
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32303
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
32304
+
32305
+ return {
32306
+ url: toPathString(localVarUrlObj),
32307
+ options: localVarRequestOptions,
32308
+ };
32309
+ },
32310
+ /**
32311
+ *
32312
+ * @summary Create HospitalServiceMedia.
32313
+ * @param {string} hospitalId
32314
+ * @param {string} hospitalSpecialtyId
32315
+ * @param {CreateMediaCommand} [createMediaCommand]
32316
+ * @param {*} [options] Override http request option.
32317
+ * @throws {RequiredError}
32318
+ */
32319
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: async (hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32320
+ // verify required parameter 'hospitalId' is not null or undefined
32321
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalId', hospitalId)
32322
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32323
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalSpecialtyId', hospitalSpecialtyId)
32324
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias`
32325
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32326
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32328
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32329
+ let baseOptions;
32330
+ if (configuration) {
32331
+ baseOptions = configuration.baseOptions;
32332
+ }
32333
+
32334
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32335
+ const localVarHeaderParameter = {} as any;
32336
+ const localVarQueryParameter = {} as any;
32337
+
32338
+ // authentication oauth2 required
32339
+ // oauth required
32340
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32341
+
32342
+
32343
+
32344
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32345
+
32346
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32347
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32348
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32349
+ localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
32350
+
32351
+ return {
32352
+ url: toPathString(localVarUrlObj),
32353
+ options: localVarRequestOptions,
32354
+ };
32355
+ },
32356
+ /**
32357
+ *
32358
+ * @summary Create HospitalSpecialty.
32359
+ * @param {string} hospitalId
32360
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
32361
+ * @param {*} [options] Override http request option.
32362
+ * @throws {RequiredError}
32363
+ */
32364
+ apiV1HospitalsHospitalIdSpecialtiesPost: async (hospitalId: string, createHospitalSpecialtyCommand?: CreateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32365
+ // verify required parameter 'hospitalId' is not null or undefined
32366
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId)
32367
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties`
32368
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
32369
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32370
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32371
+ let baseOptions;
32372
+ if (configuration) {
32373
+ baseOptions = configuration.baseOptions;
32374
+ }
32375
+
32376
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32377
+ const localVarHeaderParameter = {} as any;
32378
+ const localVarQueryParameter = {} as any;
32379
+
32380
+ // authentication oauth2 required
32381
+ // oauth required
32382
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32383
+
32384
+
32385
+
32386
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32387
+
32388
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32389
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32390
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32391
+ localVarRequestOptions.data = serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration)
32392
+
32393
+ return {
32394
+ url: toPathString(localVarUrlObj),
32395
+ options: localVarRequestOptions,
32396
+ };
32397
+ },
32398
+ /**
32399
+ *
32400
+ * @summary Get all HospitalSpecialties.
32401
+ * @param {string} hospitalId
32402
+ * @param {string} [hospitalName]
32403
+ * @param {string} [hospitalSlug]
32404
+ * @param {string} [specialtyId]
32405
+ * @param {string} [specialtyName]
32406
+ * @param {string} [specialtyTypeId]
32407
+ * @param {string} [hospitalSpecialtySlug]
32408
+ * @param {string} [title]
32409
+ * @param {MarketingType} [marketingType]
32410
+ * @param {string} [languageCode]
32411
+ * @param {boolean} [showHidden]
32412
+ * @param {boolean} [returnDefaultValue]
32413
+ * @param {boolean} [includeServices]
32414
+ * @param {number} [page]
32415
+ * @param {number} [limit]
32416
+ * @param {Date} [lastRetrieved]
32417
+ * @param {*} [options] Override http request option.
32418
+ * @throws {RequiredError}
32419
+ */
32420
+ apiV1HospitalsHospitalIdSpecialtiesSimpleGet: async (hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32421
+ // verify required parameter 'hospitalId' is not null or undefined
32422
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSimpleGet', 'hospitalId', hospitalId)
32423
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/simple`
32424
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
32425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32426
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32427
+ let baseOptions;
32428
+ if (configuration) {
32429
+ baseOptions = configuration.baseOptions;
32430
+ }
32431
+
32432
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32433
+ const localVarHeaderParameter = {} as any;
32434
+ const localVarQueryParameter = {} as any;
32435
+
32436
+ // authentication oauth2 required
32437
+ // oauth required
32438
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32439
+
32440
+ if (hospitalName !== undefined) {
32441
+ localVarQueryParameter['HospitalName'] = hospitalName;
32442
+ }
32443
+
32444
+ if (hospitalSlug !== undefined) {
32445
+ localVarQueryParameter['HospitalSlug'] = hospitalSlug;
32446
+ }
32447
+
32448
+ if (specialtyId !== undefined) {
32449
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
32450
+ }
32451
+
32452
+ if (specialtyName !== undefined) {
32453
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
32454
+ }
32455
+
32456
+ if (specialtyTypeId !== undefined) {
32457
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
32458
+ }
32459
+
32460
+ if (hospitalSpecialtySlug !== undefined) {
32461
+ localVarQueryParameter['HospitalSpecialtySlug'] = hospitalSpecialtySlug;
32462
+ }
32463
+
32464
+ if (title !== undefined) {
32465
+ localVarQueryParameter['Title'] = title;
32466
+ }
32467
+
32468
+ if (marketingType !== undefined) {
32469
+ localVarQueryParameter['MarketingType'] = marketingType;
32470
+ }
32471
+
32472
+ if (languageCode !== undefined) {
32473
+ localVarQueryParameter['LanguageCode'] = languageCode;
32474
+ }
32475
+
32476
+ if (showHidden !== undefined) {
32477
+ localVarQueryParameter['ShowHidden'] = showHidden;
32478
+ }
32479
+
32480
+ if (returnDefaultValue !== undefined) {
32481
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
32482
+ }
32483
+
32484
+ if (includeServices !== undefined) {
32485
+ localVarQueryParameter['IncludeServices'] = includeServices;
32486
+ }
32487
+
32488
+ if (page !== undefined) {
32489
+ localVarQueryParameter['page'] = page;
32490
+ }
32491
+
32492
+ if (limit !== undefined) {
32493
+ localVarQueryParameter['limit'] = limit;
32494
+ }
32495
+
32496
+ if (lastRetrieved !== undefined) {
32497
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
32498
+ (lastRetrieved as any).toISOString() :
32499
+ lastRetrieved;
32500
+ }
32501
+
32502
+
32503
+
32504
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32505
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32506
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32507
+
32508
+ return {
32509
+ url: toPathString(localVarUrlObj),
32510
+ options: localVarRequestOptions,
32511
+ };
32512
+ },
32513
+ /**
32514
+ *
32515
+ * @summary Delete HospitalSpecialty.
32516
+ * @param {string} hospitalId
32517
+ * @param {string} specialtyId
32518
+ * @param {*} [options] Override http request option.
32519
+ * @throws {RequiredError}
32520
+ */
32521
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: async (hospitalId: string, specialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32522
+ // verify required parameter 'hospitalId' is not null or undefined
32523
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId)
32524
+ // verify required parameter 'specialtyId' is not null or undefined
32525
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId)
32526
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
32527
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32528
+ .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32140
32529
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
32141
32530
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32142
32531
  let baseOptions;
@@ -33822,6 +34211,76 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
33822
34211
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options);
33823
34212
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33824
34213
  },
34214
+ /**
34215
+ *
34216
+ * @summary Get all HospitalServiceMedias.
34217
+ * @param {string} hospitalId
34218
+ * @param {string} hospitalSpecialtyId
34219
+ * @param {string} [id]
34220
+ * @param {MediaType} [mediaType]
34221
+ * @param {number} [page]
34222
+ * @param {number} [limit]
34223
+ * @param {Date} [lastRetrieved]
34224
+ * @param {*} [options] Override http request option.
34225
+ * @throws {RequiredError}
34226
+ */
34227
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
34228
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options);
34229
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34230
+ },
34231
+ /**
34232
+ *
34233
+ * @summary Delete HospitalServiceMedia
34234
+ * @param {string} hospitalId
34235
+ * @param {string} hospitalSpecialtyId
34236
+ * @param {string} mediaId
34237
+ * @param {*} [options] Override http request option.
34238
+ * @throws {RequiredError}
34239
+ */
34240
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
34241
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options);
34242
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34243
+ },
34244
+ /**
34245
+ *
34246
+ * @summary Get HospitalServiceMedia.
34247
+ * @param {string} hospitalId
34248
+ * @param {string} hospitalSpecialtyId
34249
+ * @param {string} mediaId
34250
+ * @param {*} [options] Override http request option.
34251
+ * @throws {RequiredError}
34252
+ */
34253
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34254
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options);
34255
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34256
+ },
34257
+ /**
34258
+ *
34259
+ * @summary Update HospitalServiceMedia.
34260
+ * @param {string} hospitalId
34261
+ * @param {string} hospitalSpecialtyId
34262
+ * @param {string} mediaId
34263
+ * @param {UpdateMediaCommand} [updateMediaCommand]
34264
+ * @param {*} [options] Override http request option.
34265
+ * @throws {RequiredError}
34266
+ */
34267
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34268
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options);
34269
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34270
+ },
34271
+ /**
34272
+ *
34273
+ * @summary Create HospitalServiceMedia.
34274
+ * @param {string} hospitalId
34275
+ * @param {string} hospitalSpecialtyId
34276
+ * @param {CreateMediaCommand} [createMediaCommand]
34277
+ * @param {*} [options] Override http request option.
34278
+ * @throws {RequiredError}
34279
+ */
34280
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options);
34282
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34283
+ },
33825
34284
  /**
33826
34285
  *
33827
34286
  * @summary Create HospitalSpecialty.
@@ -34629,6 +35088,71 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
34629
35088
  apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesModel> {
34630
35089
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
34631
35090
  },
35091
+ /**
35092
+ *
35093
+ * @summary Get all HospitalServiceMedias.
35094
+ * @param {string} hospitalId
35095
+ * @param {string} hospitalSpecialtyId
35096
+ * @param {string} [id]
35097
+ * @param {MediaType} [mediaType]
35098
+ * @param {number} [page]
35099
+ * @param {number} [limit]
35100
+ * @param {Date} [lastRetrieved]
35101
+ * @param {*} [options] Override http request option.
35102
+ * @throws {RequiredError}
35103
+ */
35104
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
35105
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
35106
+ },
35107
+ /**
35108
+ *
35109
+ * @summary Delete HospitalServiceMedia
35110
+ * @param {string} hospitalId
35111
+ * @param {string} hospitalSpecialtyId
35112
+ * @param {string} mediaId
35113
+ * @param {*} [options] Override http request option.
35114
+ * @throws {RequiredError}
35115
+ */
35116
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
35117
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(axios, basePath));
35118
+ },
35119
+ /**
35120
+ *
35121
+ * @summary Get HospitalServiceMedia.
35122
+ * @param {string} hospitalId
35123
+ * @param {string} hospitalSpecialtyId
35124
+ * @param {string} mediaId
35125
+ * @param {*} [options] Override http request option.
35126
+ * @throws {RequiredError}
35127
+ */
35128
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
35129
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(axios, basePath));
35130
+ },
35131
+ /**
35132
+ *
35133
+ * @summary Update HospitalServiceMedia.
35134
+ * @param {string} hospitalId
35135
+ * @param {string} hospitalSpecialtyId
35136
+ * @param {string} mediaId
35137
+ * @param {UpdateMediaCommand} [updateMediaCommand]
35138
+ * @param {*} [options] Override http request option.
35139
+ * @throws {RequiredError}
35140
+ */
35141
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35142
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
35143
+ },
35144
+ /**
35145
+ *
35146
+ * @summary Create HospitalServiceMedia.
35147
+ * @param {string} hospitalId
35148
+ * @param {string} hospitalSpecialtyId
35149
+ * @param {CreateMediaCommand} [createMediaCommand]
35150
+ * @param {*} [options] Override http request option.
35151
+ * @throws {RequiredError}
35152
+ */
35153
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35154
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then((request) => request(axios, basePath));
35155
+ },
34632
35156
  /**
34633
35157
  *
34634
35158
  * @summary Create HospitalSpecialty.
@@ -35481,6 +36005,81 @@ export class HospitalsApi extends BaseAPI {
35481
36005
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
35482
36006
  }
35483
36007
 
36008
+ /**
36009
+ *
36010
+ * @summary Get all HospitalServiceMedias.
36011
+ * @param {string} hospitalId
36012
+ * @param {string} hospitalSpecialtyId
36013
+ * @param {string} [id]
36014
+ * @param {MediaType} [mediaType]
36015
+ * @param {number} [page]
36016
+ * @param {number} [limit]
36017
+ * @param {Date} [lastRetrieved]
36018
+ * @param {*} [options] Override http request option.
36019
+ * @throws {RequiredError}
36020
+ * @memberof HospitalsApi
36021
+ */
36022
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
36023
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
36024
+ }
36025
+
36026
+ /**
36027
+ *
36028
+ * @summary Delete HospitalServiceMedia
36029
+ * @param {string} hospitalId
36030
+ * @param {string} hospitalSpecialtyId
36031
+ * @param {string} mediaId
36032
+ * @param {*} [options] Override http request option.
36033
+ * @throws {RequiredError}
36034
+ * @memberof HospitalsApi
36035
+ */
36036
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
36037
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
36038
+ }
36039
+
36040
+ /**
36041
+ *
36042
+ * @summary Get HospitalServiceMedia.
36043
+ * @param {string} hospitalId
36044
+ * @param {string} hospitalSpecialtyId
36045
+ * @param {string} mediaId
36046
+ * @param {*} [options] Override http request option.
36047
+ * @throws {RequiredError}
36048
+ * @memberof HospitalsApi
36049
+ */
36050
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
36051
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
36052
+ }
36053
+
36054
+ /**
36055
+ *
36056
+ * @summary Update HospitalServiceMedia.
36057
+ * @param {string} hospitalId
36058
+ * @param {string} hospitalSpecialtyId
36059
+ * @param {string} mediaId
36060
+ * @param {UpdateMediaCommand} [updateMediaCommand]
36061
+ * @param {*} [options] Override http request option.
36062
+ * @throws {RequiredError}
36063
+ * @memberof HospitalsApi
36064
+ */
36065
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
36066
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
36067
+ }
36068
+
36069
+ /**
36070
+ *
36071
+ * @summary Create HospitalServiceMedia.
36072
+ * @param {string} hospitalId
36073
+ * @param {string} hospitalSpecialtyId
36074
+ * @param {CreateMediaCommand} [createMediaCommand]
36075
+ * @param {*} [options] Override http request option.
36076
+ * @throws {RequiredError}
36077
+ * @memberof HospitalsApi
36078
+ */
36079
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
36080
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
36081
+ }
36082
+
35484
36083
  /**
35485
36084
  *
35486
36085
  * @summary Create HospitalSpecialty.
@@ -42724,6 +43323,104 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
42724
43323
  options: localVarRequestOptions,
42725
43324
  };
42726
43325
  },
43326
+ /**
43327
+ *
43328
+ * @summary Get all Specialties Simple.
43329
+ * @param {string} [id]
43330
+ * @param {string} [name]
43331
+ * @param {string} [description]
43332
+ * @param {string} [specialtyTypeId]
43333
+ * @param {string} [hospitalId]
43334
+ * @param {Date} [created]
43335
+ * @param {string} [languageCode]
43336
+ * @param {Array<string>} [ids]
43337
+ * @param {boolean} [returnDefaultValue]
43338
+ * @param {number} [page]
43339
+ * @param {number} [limit]
43340
+ * @param {Date} [lastRetrieved]
43341
+ * @param {*} [options] Override http request option.
43342
+ * @throws {RequiredError}
43343
+ */
43344
+ apiV1SpecialtiesSimpleGet: async (id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43345
+ const localVarPath = `/api/v1/specialties/simple`;
43346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43347
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43348
+ let baseOptions;
43349
+ if (configuration) {
43350
+ baseOptions = configuration.baseOptions;
43351
+ }
43352
+
43353
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
43354
+ const localVarHeaderParameter = {} as any;
43355
+ const localVarQueryParameter = {} as any;
43356
+
43357
+ // authentication oauth2 required
43358
+ // oauth required
43359
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
43360
+
43361
+ if (id !== undefined) {
43362
+ localVarQueryParameter['Id'] = id;
43363
+ }
43364
+
43365
+ if (name !== undefined) {
43366
+ localVarQueryParameter['Name'] = name;
43367
+ }
43368
+
43369
+ if (description !== undefined) {
43370
+ localVarQueryParameter['Description'] = description;
43371
+ }
43372
+
43373
+ if (specialtyTypeId !== undefined) {
43374
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
43375
+ }
43376
+
43377
+ if (hospitalId !== undefined) {
43378
+ localVarQueryParameter['HospitalId'] = hospitalId;
43379
+ }
43380
+
43381
+ if (created !== undefined) {
43382
+ localVarQueryParameter['Created'] = (created as any instanceof Date) ?
43383
+ (created as any).toISOString() :
43384
+ created;
43385
+ }
43386
+
43387
+ if (languageCode !== undefined) {
43388
+ localVarQueryParameter['LanguageCode'] = languageCode;
43389
+ }
43390
+
43391
+ if (ids) {
43392
+ localVarQueryParameter['Ids'] = ids;
43393
+ }
43394
+
43395
+ if (returnDefaultValue !== undefined) {
43396
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
43397
+ }
43398
+
43399
+ if (page !== undefined) {
43400
+ localVarQueryParameter['page'] = page;
43401
+ }
43402
+
43403
+ if (limit !== undefined) {
43404
+ localVarQueryParameter['limit'] = limit;
43405
+ }
43406
+
43407
+ if (lastRetrieved !== undefined) {
43408
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
43409
+ (lastRetrieved as any).toISOString() :
43410
+ lastRetrieved;
43411
+ }
43412
+
43413
+
43414
+
43415
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43416
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43417
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43418
+
43419
+ return {
43420
+ url: toPathString(localVarUrlObj),
43421
+ options: localVarRequestOptions,
43422
+ };
43423
+ },
42727
43424
  /**
42728
43425
  *
42729
43426
  * @param {string} slug
@@ -43179,6 +43876,28 @@ export const SpecialtiesApiFp = function(configuration?: Configuration) {
43179
43876
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesPost(createSpecialtyCommand, options);
43180
43877
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43181
43878
  },
43879
+ /**
43880
+ *
43881
+ * @summary Get all Specialties Simple.
43882
+ * @param {string} [id]
43883
+ * @param {string} [name]
43884
+ * @param {string} [description]
43885
+ * @param {string} [specialtyTypeId]
43886
+ * @param {string} [hospitalId]
43887
+ * @param {Date} [created]
43888
+ * @param {string} [languageCode]
43889
+ * @param {Array<string>} [ids]
43890
+ * @param {boolean} [returnDefaultValue]
43891
+ * @param {number} [page]
43892
+ * @param {number} [limit]
43893
+ * @param {Date} [lastRetrieved]
43894
+ * @param {*} [options] Override http request option.
43895
+ * @throws {RequiredError}
43896
+ */
43897
+ async apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtiesSimpleModel>> {
43898
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options);
43899
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43900
+ },
43182
43901
  /**
43183
43902
  *
43184
43903
  * @param {string} slug
@@ -43333,6 +44052,27 @@ export const SpecialtiesApiFactory = function (configuration?: Configuration, ba
43333
44052
  apiV1SpecialtiesPost(createSpecialtyCommand?: CreateSpecialtyCommand, options?: any): AxiosPromise<SpecialtyModel> {
43334
44053
  return localVarFp.apiV1SpecialtiesPost(createSpecialtyCommand, options).then((request) => request(axios, basePath));
43335
44054
  },
44055
+ /**
44056
+ *
44057
+ * @summary Get all Specialties Simple.
44058
+ * @param {string} [id]
44059
+ * @param {string} [name]
44060
+ * @param {string} [description]
44061
+ * @param {string} [specialtyTypeId]
44062
+ * @param {string} [hospitalId]
44063
+ * @param {Date} [created]
44064
+ * @param {string} [languageCode]
44065
+ * @param {Array<string>} [ids]
44066
+ * @param {boolean} [returnDefaultValue]
44067
+ * @param {number} [page]
44068
+ * @param {number} [limit]
44069
+ * @param {Date} [lastRetrieved]
44070
+ * @param {*} [options] Override http request option.
44071
+ * @throws {RequiredError}
44072
+ */
44073
+ apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtiesSimpleModel> {
44074
+ return localVarFp.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
44075
+ },
43336
44076
  /**
43337
44077
  *
43338
44078
  * @param {string} slug
@@ -43482,6 +44222,29 @@ export class SpecialtiesApi extends BaseAPI {
43482
44222
  return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesPost(createSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
43483
44223
  }
43484
44224
 
44225
+ /**
44226
+ *
44227
+ * @summary Get all Specialties Simple.
44228
+ * @param {string} [id]
44229
+ * @param {string} [name]
44230
+ * @param {string} [description]
44231
+ * @param {string} [specialtyTypeId]
44232
+ * @param {string} [hospitalId]
44233
+ * @param {Date} [created]
44234
+ * @param {string} [languageCode]
44235
+ * @param {Array<string>} [ids]
44236
+ * @param {boolean} [returnDefaultValue]
44237
+ * @param {number} [page]
44238
+ * @param {number} [limit]
44239
+ * @param {Date} [lastRetrieved]
44240
+ * @param {*} [options] Override http request option.
44241
+ * @throws {RequiredError}
44242
+ * @memberof SpecialtiesApi
44243
+ */
44244
+ public apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
44245
+ return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
44246
+ }
44247
+
43485
44248
  /**
43486
44249
  *
43487
44250
  * @param {string} slug