ch-admin-api-client-typescript 2.6.5 → 2.6.9

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
@@ -3989,6 +3989,43 @@ export interface CreateHospitalSpecialtyCommand {
3989
3989
  */
3990
3990
  'order'?: number;
3991
3991
  }
3992
+ /**
3993
+ *
3994
+ * @export
3995
+ * @interface CreateLanguageCommand
3996
+ */
3997
+ export interface CreateLanguageCommand {
3998
+ /**
3999
+ *
4000
+ * @type {string}
4001
+ * @memberof CreateLanguageCommand
4002
+ */
4003
+ 'code'?: string | null;
4004
+ /**
4005
+ *
4006
+ * @type {string}
4007
+ * @memberof CreateLanguageCommand
4008
+ */
4009
+ 'name'?: string | null;
4010
+ /**
4011
+ *
4012
+ * @type {string}
4013
+ * @memberof CreateLanguageCommand
4014
+ */
4015
+ 'description'?: string | null;
4016
+ /**
4017
+ *
4018
+ * @type {boolean}
4019
+ * @memberof CreateLanguageCommand
4020
+ */
4021
+ 'published'?: boolean;
4022
+ /**
4023
+ *
4024
+ * @type {number}
4025
+ * @memberof CreateLanguageCommand
4026
+ */
4027
+ 'order'?: number;
4028
+ }
3992
4029
  /**
3993
4030
  *
3994
4031
  * @export
@@ -4272,6 +4309,43 @@ export interface CreateServiceCategoryCommand {
4272
4309
  */
4273
4310
  'order'?: number;
4274
4311
  }
4312
+ /**
4313
+ *
4314
+ * @export
4315
+ * @interface CreateServiceReviewCommand
4316
+ */
4317
+ export interface CreateServiceReviewCommand {
4318
+ /**
4319
+ *
4320
+ * @type {string}
4321
+ * @memberof CreateServiceReviewCommand
4322
+ */
4323
+ 'serviceId'?: string;
4324
+ /**
4325
+ *
4326
+ * @type {string}
4327
+ * @memberof CreateServiceReviewCommand
4328
+ */
4329
+ 'patientId'?: string | null;
4330
+ /**
4331
+ *
4332
+ * @type {string}
4333
+ * @memberof CreateServiceReviewCommand
4334
+ */
4335
+ 'body'?: string | null;
4336
+ /**
4337
+ *
4338
+ * @type {boolean}
4339
+ * @memberof CreateServiceReviewCommand
4340
+ */
4341
+ 'recommended'?: boolean;
4342
+ /**
4343
+ *
4344
+ * @type {number}
4345
+ * @memberof CreateServiceReviewCommand
4346
+ */
4347
+ 'rate'?: number;
4348
+ }
4275
4349
  /**
4276
4350
  *
4277
4351
  * @export
@@ -4456,12 +4530,6 @@ export interface DealItemModel {
4456
4530
  * @memberof DealItemModel
4457
4531
  */
4458
4532
  'dealServices'?: Array<DealServiceItemModel> | null;
4459
- /**
4460
- *
4461
- * @type {AuditableEntity}
4462
- * @memberof DealItemModel
4463
- */
4464
- 'auditableEntity'?: AuditableEntity;
4465
4533
  /**
4466
4534
  *
4467
4535
  * @type {Array<LocalizedUrlModel>}
@@ -4474,6 +4542,12 @@ export interface DealItemModel {
4474
4542
  * @memberof DealItemModel
4475
4543
  */
4476
4544
  'confirmed'?: boolean;
4545
+ /**
4546
+ *
4547
+ * @type {AuditableEntity}
4548
+ * @memberof DealItemModel
4549
+ */
4550
+ 'auditableEntity'?: AuditableEntity;
4477
4551
  }
4478
4552
  /**
4479
4553
  *
@@ -4559,12 +4633,6 @@ export interface DealModel {
4559
4633
  * @memberof DealModel
4560
4634
  */
4561
4635
  'dealServices'?: Array<DealServiceItemModel> | null;
4562
- /**
4563
- *
4564
- * @type {AuditableEntity}
4565
- * @memberof DealModel
4566
- */
4567
- 'auditableEntity'?: AuditableEntity;
4568
4636
  /**
4569
4637
  *
4570
4638
  * @type {Array<LocalizedUrlModel>}
@@ -4577,6 +4645,12 @@ export interface DealModel {
4577
4645
  * @memberof DealModel
4578
4646
  */
4579
4647
  'confirmed'?: boolean;
4648
+ /**
4649
+ *
4650
+ * @type {AuditableEntity}
4651
+ * @memberof DealModel
4652
+ */
4653
+ 'auditableEntity'?: AuditableEntity;
4580
4654
  /**
4581
4655
  *
4582
4656
  * @type {string}
@@ -7918,7 +7992,10 @@ export enum MediaType {
7918
7992
  Photo = 'Photo',
7919
7993
  Video = 'Video',
7920
7994
  Youtube = 'Youtube',
7921
- Document = 'Document'
7995
+ Document = 'Document',
7996
+ Frontal = 'Frontal',
7997
+ Diagonal = 'Diagonal',
7998
+ Side = 'Side'
7922
7999
  }
7923
8000
 
7924
8001
  /**
@@ -8903,6 +8980,18 @@ export enum RejectReason {
8903
8980
  OtherReason = 'OtherReason'
8904
8981
  }
8905
8982
 
8983
+ /**
8984
+ *
8985
+ * @export
8986
+ * @enum {string}
8987
+ */
8988
+
8989
+ export enum ReviewType {
8990
+ Photo = 'Photo',
8991
+ SurgeryReview = 'SurgeryReview',
8992
+ RealStory = 'RealStory'
8993
+ }
8994
+
8906
8995
  /**
8907
8996
  *
8908
8997
  * @export
@@ -8977,12 +9066,6 @@ export interface ServiceCategoryItemModel {
8977
9066
  * @memberof ServiceCategoryItemModel
8978
9067
  */
8979
9068
  'serviceCount'?: number;
8980
- /**
8981
- *
8982
- * @type {Array<HospitalServiceItemModel>}
8983
- * @memberof ServiceCategoryItemModel
8984
- */
8985
- 'services'?: Array<HospitalServiceItemModel> | null;
8986
9069
  }
8987
9070
  /**
8988
9071
  *
@@ -9026,18 +9109,159 @@ export interface ServiceCategoryModel {
9026
9109
  * @memberof ServiceCategoryModel
9027
9110
  */
9028
9111
  'serviceCount'?: number;
9112
+ }
9113
+ /**
9114
+ *
9115
+ * @export
9116
+ * @interface ServiceReviewItemModel
9117
+ */
9118
+ export interface ServiceReviewItemModel {
9029
9119
  /**
9030
9120
  *
9031
- * @type {Array<HospitalServiceItemModel>}
9032
- * @memberof ServiceCategoryModel
9121
+ * @type {string}
9122
+ * @memberof ServiceReviewItemModel
9123
+ */
9124
+ 'id'?: string;
9125
+ /**
9126
+ *
9127
+ * @type {string}
9128
+ * @memberof ServiceReviewItemModel
9033
9129
  */
9034
- 'services'?: Array<HospitalServiceItemModel> | null;
9130
+ 'serviceId'?: string;
9035
9131
  /**
9036
9132
  *
9037
9133
  * @type {string}
9038
- * @memberof ServiceCategoryModel
9134
+ * @memberof ServiceReviewItemModel
9039
9135
  */
9040
- 'languageCode'?: string | null;
9136
+ 'serviceName'?: string | null;
9137
+ /**
9138
+ *
9139
+ * @type {string}
9140
+ * @memberof ServiceReviewItemModel
9141
+ */
9142
+ 'patientId'?: string;
9143
+ /**
9144
+ *
9145
+ * @type {string}
9146
+ * @memberof ServiceReviewItemModel
9147
+ */
9148
+ 'patientName'?: string | null;
9149
+ /**
9150
+ *
9151
+ * @type {string}
9152
+ * @memberof ServiceReviewItemModel
9153
+ */
9154
+ 'body'?: string | null;
9155
+ /**
9156
+ *
9157
+ * @type {boolean}
9158
+ * @memberof ServiceReviewItemModel
9159
+ */
9160
+ 'recommended'?: boolean;
9161
+ /**
9162
+ *
9163
+ * @type {number}
9164
+ * @memberof ServiceReviewItemModel
9165
+ */
9166
+ 'rate'?: number;
9167
+ /**
9168
+ *
9169
+ * @type {ReviewType}
9170
+ * @memberof ServiceReviewItemModel
9171
+ */
9172
+ 'reviewType'?: ReviewType;
9173
+ /**
9174
+ *
9175
+ * @type {Array<MediaModel>}
9176
+ * @memberof ServiceReviewItemModel
9177
+ */
9178
+ 'medias'?: Array<MediaModel> | null;
9179
+ }
9180
+ /**
9181
+ *
9182
+ * @export
9183
+ * @interface ServiceReviewModel
9184
+ */
9185
+ export interface ServiceReviewModel {
9186
+ /**
9187
+ *
9188
+ * @type {string}
9189
+ * @memberof ServiceReviewModel
9190
+ */
9191
+ 'id'?: string;
9192
+ /**
9193
+ *
9194
+ * @type {string}
9195
+ * @memberof ServiceReviewModel
9196
+ */
9197
+ 'serviceId'?: string;
9198
+ /**
9199
+ *
9200
+ * @type {string}
9201
+ * @memberof ServiceReviewModel
9202
+ */
9203
+ 'serviceName'?: string | null;
9204
+ /**
9205
+ *
9206
+ * @type {string}
9207
+ * @memberof ServiceReviewModel
9208
+ */
9209
+ 'patientId'?: string;
9210
+ /**
9211
+ *
9212
+ * @type {string}
9213
+ * @memberof ServiceReviewModel
9214
+ */
9215
+ 'patientName'?: string | null;
9216
+ /**
9217
+ *
9218
+ * @type {string}
9219
+ * @memberof ServiceReviewModel
9220
+ */
9221
+ 'body'?: string | null;
9222
+ /**
9223
+ *
9224
+ * @type {boolean}
9225
+ * @memberof ServiceReviewModel
9226
+ */
9227
+ 'recommended'?: boolean;
9228
+ /**
9229
+ *
9230
+ * @type {number}
9231
+ * @memberof ServiceReviewModel
9232
+ */
9233
+ 'rate'?: number;
9234
+ /**
9235
+ *
9236
+ * @type {ReviewType}
9237
+ * @memberof ServiceReviewModel
9238
+ */
9239
+ 'reviewType'?: ReviewType;
9240
+ /**
9241
+ *
9242
+ * @type {Array<MediaModel>}
9243
+ * @memberof ServiceReviewModel
9244
+ */
9245
+ 'medias'?: Array<MediaModel> | null;
9246
+ }
9247
+ /**
9248
+ *
9249
+ * @export
9250
+ * @interface ServiceReviewsModel
9251
+ */
9252
+ export interface ServiceReviewsModel {
9253
+ /**
9254
+ *
9255
+ * @type {Array<ServiceReviewItemModel>}
9256
+ * @memberof ServiceReviewsModel
9257
+ */
9258
+ 'items'?: Array<ServiceReviewItemModel> | null;
9259
+ /**
9260
+ *
9261
+ * @type {PagedListMetaData}
9262
+ * @memberof ServiceReviewsModel
9263
+ */
9264
+ 'metaData'?: PagedListMetaData;
9041
9265
  }
9042
9266
  /**
9043
9267
  *
@@ -10881,6 +11105,43 @@ export interface UpdateHospitalSpecialtyCommand {
10881
11105
  */
10882
11106
  'order'?: number;
10883
11107
  }
11108
+ /**
11109
+ *
11110
+ * @export
11111
+ * @interface UpdateLanguageCommand
11112
+ */
11113
+ export interface UpdateLanguageCommand {
11114
+ /**
11115
+ *
11116
+ * @type {string}
11117
+ * @memberof UpdateLanguageCommand
11118
+ */
11119
+ 'code'?: string | null;
11120
+ /**
11121
+ *
11122
+ * @type {string}
11123
+ * @memberof UpdateLanguageCommand
11124
+ */
11125
+ 'name'?: string | null;
11126
+ /**
11127
+ *
11128
+ * @type {string}
11129
+ * @memberof UpdateLanguageCommand
11130
+ */
11131
+ 'description'?: string | null;
11132
+ /**
11133
+ *
11134
+ * @type {boolean}
11135
+ * @memberof UpdateLanguageCommand
11136
+ */
11137
+ 'published'?: boolean | null;
11138
+ /**
11139
+ *
11140
+ * @type {number}
11141
+ * @memberof UpdateLanguageCommand
11142
+ */
11143
+ 'order'?: number | null;
11144
+ }
10884
11145
  /**
10885
11146
  *
10886
11147
  * @export
@@ -11200,6 +11461,31 @@ export interface UpdateServiceCategoryCommand {
11200
11461
  */
11201
11462
  'order'?: number;
11202
11463
  }
11464
+ /**
11465
+ *
11466
+ * @export
11467
+ * @interface UpdateServiceReviewCommand
11468
+ */
11469
+ export interface UpdateServiceReviewCommand {
11470
+ /**
11471
+ *
11472
+ * @type {string}
11473
+ * @memberof UpdateServiceReviewCommand
11474
+ */
11475
+ 'body'?: string | null;
11476
+ /**
11477
+ *
11478
+ * @type {boolean}
11479
+ * @memberof UpdateServiceReviewCommand
11480
+ */
11481
+ 'recommended'?: boolean | null;
11482
+ /**
11483
+ *
11484
+ * @type {number}
11485
+ * @memberof UpdateServiceReviewCommand
11486
+ */
11487
+ 'rate'?: number | null;
11488
+ }
11203
11489
  /**
11204
11490
  *
11205
11491
  * @export
@@ -30760,16 +31046,15 @@ export const LanguagesApiAxiosParamCreator = function (configuration?: Configura
30760
31046
  },
30761
31047
  /**
30762
31048
  *
30763
- * @summary Get Language.
30764
- * @param {string} id
31049
+ * @param {string} languageId
30765
31050
  * @param {*} [options] Override http request option.
30766
31051
  * @throws {RequiredError}
30767
31052
  */
30768
- apiV1LanguagesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30769
- // verify required parameter 'id' is not null or undefined
30770
- assertParamExists('apiV1LanguagesIdGet', 'id', id)
30771
- const localVarPath = `/api/v1/languages/{id}`
30772
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
31053
+ apiV1LanguagesLanguageIdDelete: async (languageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
31054
+ // verify required parameter 'languageId' is not null or undefined
31055
+ assertParamExists('apiV1LanguagesLanguageIdDelete', 'languageId', languageId)
31056
+ const localVarPath = `/api/v1/languages/{languageId}`
31057
+ .replace(`{${"languageId"}}`, encodeURIComponent(String(languageId)));
30773
31058
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30774
31059
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30775
31060
  let baseOptions;
@@ -30777,7 +31062,7 @@ export const LanguagesApiAxiosParamCreator = function (configuration?: Configura
30777
31062
  baseOptions = configuration.baseOptions;
30778
31063
  }
30779
31064
 
30780
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31065
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
30781
31066
  const localVarHeaderParameter = {} as any;
30782
31067
  const localVarQueryParameter = {} as any;
30783
31068
 
@@ -30791,6 +31076,122 @@ export const LanguagesApiAxiosParamCreator = function (configuration?: Configura
30791
31076
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30792
31077
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30793
31078
 
31079
+ return {
31080
+ url: toPathString(localVarUrlObj),
31081
+ options: localVarRequestOptions,
31082
+ };
31083
+ },
31084
+ /**
31085
+ *
31086
+ * @summary Get Language.
31087
+ * @param {string} languageId
31088
+ * @param {*} [options] Override http request option.
31089
+ * @throws {RequiredError}
31090
+ */
31091
+ apiV1LanguagesLanguageIdGet: async (languageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
31092
+ // verify required parameter 'languageId' is not null or undefined
31093
+ assertParamExists('apiV1LanguagesLanguageIdGet', 'languageId', languageId)
31094
+ const localVarPath = `/api/v1/languages/{languageId}`
31095
+ .replace(`{${"languageId"}}`, encodeURIComponent(String(languageId)));
31096
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31097
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31098
+ let baseOptions;
31099
+ if (configuration) {
31100
+ baseOptions = configuration.baseOptions;
31101
+ }
31102
+
31103
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31104
+ const localVarHeaderParameter = {} as any;
31105
+ const localVarQueryParameter = {} as any;
31106
+
31107
+ // authentication oauth2 required
31108
+ // oauth required
31109
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
31110
+
31111
+
31112
+
31113
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31115
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31116
+
31117
+ return {
31118
+ url: toPathString(localVarUrlObj),
31119
+ options: localVarRequestOptions,
31120
+ };
31121
+ },
31122
+ /**
31123
+ *
31124
+ * @param {string} languageId
31125
+ * @param {UpdateLanguageCommand} [updateLanguageCommand]
31126
+ * @param {*} [options] Override http request option.
31127
+ * @throws {RequiredError}
31128
+ */
31129
+ apiV1LanguagesLanguageIdPut: async (languageId: string, updateLanguageCommand?: UpdateLanguageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
31130
+ // verify required parameter 'languageId' is not null or undefined
31131
+ assertParamExists('apiV1LanguagesLanguageIdPut', 'languageId', languageId)
31132
+ const localVarPath = `/api/v1/languages/{languageId}`
31133
+ .replace(`{${"languageId"}}`, encodeURIComponent(String(languageId)));
31134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31136
+ let baseOptions;
31137
+ if (configuration) {
31138
+ baseOptions = configuration.baseOptions;
31139
+ }
31140
+
31141
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
31142
+ const localVarHeaderParameter = {} as any;
31143
+ const localVarQueryParameter = {} as any;
31144
+
31145
+ // authentication oauth2 required
31146
+ // oauth required
31147
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
31148
+
31149
+
31150
+
31151
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31152
+
31153
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31155
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31156
+ localVarRequestOptions.data = serializeDataIfNeeded(updateLanguageCommand, localVarRequestOptions, configuration)
31157
+
31158
+ return {
31159
+ url: toPathString(localVarUrlObj),
31160
+ options: localVarRequestOptions,
31161
+ };
31162
+ },
31163
+ /**
31164
+ *
31165
+ * @param {CreateLanguageCommand} [createLanguageCommand]
31166
+ * @param {*} [options] Override http request option.
31167
+ * @throws {RequiredError}
31168
+ */
31169
+ apiV1LanguagesPost: async (createLanguageCommand?: CreateLanguageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
31170
+ const localVarPath = `/api/v1/languages`;
31171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31173
+ let baseOptions;
31174
+ if (configuration) {
31175
+ baseOptions = configuration.baseOptions;
31176
+ }
31177
+
31178
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
31179
+ const localVarHeaderParameter = {} as any;
31180
+ const localVarQueryParameter = {} as any;
31181
+
31182
+ // authentication oauth2 required
31183
+ // oauth required
31184
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
31185
+
31186
+
31187
+
31188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31189
+
31190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31192
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31193
+ localVarRequestOptions.data = serializeDataIfNeeded(createLanguageCommand, localVarRequestOptions, configuration)
31194
+
30794
31195
  return {
30795
31196
  url: toPathString(localVarUrlObj),
30796
31197
  options: localVarRequestOptions,
@@ -30834,15 +31235,46 @@ export const LanguagesApiFp = function(configuration?: Configuration) {
30834
31235
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options);
30835
31236
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30836
31237
  },
31238
+ /**
31239
+ *
31240
+ * @param {string} languageId
31241
+ * @param {*} [options] Override http request option.
31242
+ * @throws {RequiredError}
31243
+ */
31244
+ async apiV1LanguagesLanguageIdDelete(languageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
31245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesLanguageIdDelete(languageId, options);
31246
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31247
+ },
30837
31248
  /**
30838
31249
  *
30839
31250
  * @summary Get Language.
30840
- * @param {string} id
31251
+ * @param {string} languageId
31252
+ * @param {*} [options] Override http request option.
31253
+ * @throws {RequiredError}
31254
+ */
31255
+ async apiV1LanguagesLanguageIdGet(languageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguageModel>> {
31256
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesLanguageIdGet(languageId, options);
31257
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31258
+ },
31259
+ /**
31260
+ *
31261
+ * @param {string} languageId
31262
+ * @param {UpdateLanguageCommand} [updateLanguageCommand]
31263
+ * @param {*} [options] Override http request option.
31264
+ * @throws {RequiredError}
31265
+ */
31266
+ async apiV1LanguagesLanguageIdPut(languageId: string, updateLanguageCommand?: UpdateLanguageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguageModel>> {
31267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesLanguageIdPut(languageId, updateLanguageCommand, options);
31268
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31269
+ },
31270
+ /**
31271
+ *
31272
+ * @param {CreateLanguageCommand} [createLanguageCommand]
30841
31273
  * @param {*} [options] Override http request option.
30842
31274
  * @throws {RequiredError}
30843
31275
  */
30844
- async apiV1LanguagesIdGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguageModel>> {
30845
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesIdGet(id, options);
31276
+ async apiV1LanguagesPost(createLanguageCommand?: CreateLanguageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguageModel>> {
31277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesPost(createLanguageCommand, options);
30846
31278
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30847
31279
  },
30848
31280
  }
@@ -30881,15 +31313,43 @@ export const LanguagesApiFactory = function (configuration?: Configuration, base
30881
31313
  apiV1LanguagesGet(id?: string, name?: string, code?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<LanguagesModel> {
30882
31314
  return localVarFp.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
30883
31315
  },
31316
+ /**
31317
+ *
31318
+ * @param {string} languageId
31319
+ * @param {*} [options] Override http request option.
31320
+ * @throws {RequiredError}
31321
+ */
31322
+ apiV1LanguagesLanguageIdDelete(languageId: string, options?: any): AxiosPromise<boolean> {
31323
+ return localVarFp.apiV1LanguagesLanguageIdDelete(languageId, options).then((request) => request(axios, basePath));
31324
+ },
30884
31325
  /**
30885
31326
  *
30886
31327
  * @summary Get Language.
30887
- * @param {string} id
31328
+ * @param {string} languageId
31329
+ * @param {*} [options] Override http request option.
31330
+ * @throws {RequiredError}
31331
+ */
31332
+ apiV1LanguagesLanguageIdGet(languageId: string, options?: any): AxiosPromise<LanguageModel> {
31333
+ return localVarFp.apiV1LanguagesLanguageIdGet(languageId, options).then((request) => request(axios, basePath));
31334
+ },
31335
+ /**
31336
+ *
31337
+ * @param {string} languageId
31338
+ * @param {UpdateLanguageCommand} [updateLanguageCommand]
31339
+ * @param {*} [options] Override http request option.
31340
+ * @throws {RequiredError}
31341
+ */
31342
+ apiV1LanguagesLanguageIdPut(languageId: string, updateLanguageCommand?: UpdateLanguageCommand, options?: any): AxiosPromise<LanguageModel> {
31343
+ return localVarFp.apiV1LanguagesLanguageIdPut(languageId, updateLanguageCommand, options).then((request) => request(axios, basePath));
31344
+ },
31345
+ /**
31346
+ *
31347
+ * @param {CreateLanguageCommand} [createLanguageCommand]
30888
31348
  * @param {*} [options] Override http request option.
30889
31349
  * @throws {RequiredError}
30890
31350
  */
30891
- apiV1LanguagesIdGet(id: string, options?: any): AxiosPromise<LanguageModel> {
30892
- return localVarFp.apiV1LanguagesIdGet(id, options).then((request) => request(axios, basePath));
31351
+ apiV1LanguagesPost(createLanguageCommand?: CreateLanguageCommand, options?: any): AxiosPromise<LanguageModel> {
31352
+ return localVarFp.apiV1LanguagesPost(createLanguageCommand, options).then((request) => request(axios, basePath));
30893
31353
  },
30894
31354
  };
30895
31355
  };
@@ -30931,16 +31391,50 @@ export class LanguagesApi extends BaseAPI {
30931
31391
  return LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
30932
31392
  }
30933
31393
 
31394
+ /**
31395
+ *
31396
+ * @param {string} languageId
31397
+ * @param {*} [options] Override http request option.
31398
+ * @throws {RequiredError}
31399
+ * @memberof LanguagesApi
31400
+ */
31401
+ public apiV1LanguagesLanguageIdDelete(languageId: string, options?: AxiosRequestConfig) {
31402
+ return LanguagesApiFp(this.configuration).apiV1LanguagesLanguageIdDelete(languageId, options).then((request) => request(this.axios, this.basePath));
31403
+ }
31404
+
30934
31405
  /**
30935
31406
  *
30936
31407
  * @summary Get Language.
30937
- * @param {string} id
31408
+ * @param {string} languageId
31409
+ * @param {*} [options] Override http request option.
31410
+ * @throws {RequiredError}
31411
+ * @memberof LanguagesApi
31412
+ */
31413
+ public apiV1LanguagesLanguageIdGet(languageId: string, options?: AxiosRequestConfig) {
31414
+ return LanguagesApiFp(this.configuration).apiV1LanguagesLanguageIdGet(languageId, options).then((request) => request(this.axios, this.basePath));
31415
+ }
31416
+
31417
+ /**
31418
+ *
31419
+ * @param {string} languageId
31420
+ * @param {UpdateLanguageCommand} [updateLanguageCommand]
31421
+ * @param {*} [options] Override http request option.
31422
+ * @throws {RequiredError}
31423
+ * @memberof LanguagesApi
31424
+ */
31425
+ public apiV1LanguagesLanguageIdPut(languageId: string, updateLanguageCommand?: UpdateLanguageCommand, options?: AxiosRequestConfig) {
31426
+ return LanguagesApiFp(this.configuration).apiV1LanguagesLanguageIdPut(languageId, updateLanguageCommand, options).then((request) => request(this.axios, this.basePath));
31427
+ }
31428
+
31429
+ /**
31430
+ *
31431
+ * @param {CreateLanguageCommand} [createLanguageCommand]
30938
31432
  * @param {*} [options] Override http request option.
30939
31433
  * @throws {RequiredError}
30940
31434
  * @memberof LanguagesApi
30941
31435
  */
30942
- public apiV1LanguagesIdGet(id: string, options?: AxiosRequestConfig) {
30943
- return LanguagesApiFp(this.configuration).apiV1LanguagesIdGet(id, options).then((request) => request(this.axios, this.basePath));
31436
+ public apiV1LanguagesPost(createLanguageCommand?: CreateLanguageCommand, options?: AxiosRequestConfig) {
31437
+ return LanguagesApiFp(this.configuration).apiV1LanguagesPost(createLanguageCommand, options).then((request) => request(this.axios, this.basePath));
30944
31438
  }
30945
31439
  }
30946
31440
 
@@ -34066,38 +34560,29 @@ export class ProfilesApi extends BaseAPI {
34066
34560
 
34067
34561
 
34068
34562
  /**
34069
- * ServicesApi - axios parameter creator
34563
+ * ServiceReviewApi - axios parameter creator
34070
34564
  * @export
34071
34565
  */
34072
- export const ServicesApiAxiosParamCreator = function (configuration?: Configuration) {
34566
+ export const ServiceReviewApiAxiosParamCreator = function (configuration?: Configuration) {
34073
34567
  return {
34074
34568
  /**
34075
34569
  *
34076
- * @summary Get all HospitalServices.
34077
- * @param {string} [hospitalId]
34078
- * @param {string} [hospitalName]
34079
- * @param {string} [hospitalSlug]
34080
- * @param {string} [id]
34081
- * @param {string} [name]
34082
- * @param {string} [description]
34083
- * @param {string} [specialtyId]
34084
- * @param {string} [specialtyName]
34085
- * @param {string} [specialtyTypeId]
34086
- * @param {string} [specialtyTypeName]
34087
- * @param {string} [serviceCategoryId]
34088
- * @param {MarketingType} [marketingType]
34089
- * @param {Procedure} [procedure]
34090
- * @param {Date} [created]
34091
- * @param {string} [languageCode]
34092
- * @param {boolean} [returnDefaultValue]
34570
+ * @summary Get all ServiceReviews.
34571
+ * @param {string} [serviceId]
34572
+ * @param {string} [serviceName]
34573
+ * @param {string} [patientId]
34574
+ * @param {string} [patientName]
34575
+ * @param {boolean} [recommended]
34576
+ * @param {number} [rate]
34577
+ * @param {ReviewType} [reviewType]
34093
34578
  * @param {number} [page]
34094
34579
  * @param {number} [limit]
34095
34580
  * @param {Date} [lastRetrieved]
34096
34581
  * @param {*} [options] Override http request option.
34097
34582
  * @throws {RequiredError}
34098
34583
  */
34099
- apiV1ServicesGet: async (hospitalId?: string, hospitalName?: string, hospitalSlug?: string, id?: string, name?: string, description?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceCategoryId?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34100
- const localVarPath = `/api/v1/services`;
34584
+ apiV1ServicereviewGet: async (serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34585
+ const localVarPath = `/api/v1/servicereview`;
34101
34586
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
34102
34587
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34103
34588
  let baseOptions;
@@ -34113,70 +34598,32 @@ export const ServicesApiAxiosParamCreator = function (configuration?: Configurat
34113
34598
  // oauth required
34114
34599
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34115
34600
 
34116
- if (hospitalId !== undefined) {
34117
- localVarQueryParameter['HospitalId'] = hospitalId;
34118
- }
34119
-
34120
- if (hospitalName !== undefined) {
34121
- localVarQueryParameter['HospitalName'] = hospitalName;
34122
- }
34123
-
34124
- if (hospitalSlug !== undefined) {
34125
- localVarQueryParameter['HospitalSlug'] = hospitalSlug;
34126
- }
34127
-
34128
- if (id !== undefined) {
34129
- localVarQueryParameter['Id'] = id;
34130
- }
34131
-
34132
- if (name !== undefined) {
34133
- localVarQueryParameter['Name'] = name;
34134
- }
34135
-
34136
- if (description !== undefined) {
34137
- localVarQueryParameter['Description'] = description;
34138
- }
34139
-
34140
- if (specialtyId !== undefined) {
34141
- localVarQueryParameter['SpecialtyId'] = specialtyId;
34142
- }
34143
-
34144
- if (specialtyName !== undefined) {
34145
- localVarQueryParameter['SpecialtyName'] = specialtyName;
34146
- }
34147
-
34148
- if (specialtyTypeId !== undefined) {
34149
- localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
34150
- }
34151
-
34152
- if (specialtyTypeName !== undefined) {
34153
- localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
34601
+ if (serviceId !== undefined) {
34602
+ localVarQueryParameter['ServiceId'] = serviceId;
34154
34603
  }
34155
34604
 
34156
- if (serviceCategoryId !== undefined) {
34157
- localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
34605
+ if (serviceName !== undefined) {
34606
+ localVarQueryParameter['ServiceName'] = serviceName;
34158
34607
  }
34159
34608
 
34160
- if (marketingType !== undefined) {
34161
- localVarQueryParameter['MarketingType'] = marketingType;
34609
+ if (patientId !== undefined) {
34610
+ localVarQueryParameter['PatientId'] = patientId;
34162
34611
  }
34163
34612
 
34164
- if (procedure !== undefined) {
34165
- localVarQueryParameter['Procedure'] = procedure;
34613
+ if (patientName !== undefined) {
34614
+ localVarQueryParameter['PatientName'] = patientName;
34166
34615
  }
34167
34616
 
34168
- if (created !== undefined) {
34169
- localVarQueryParameter['Created'] = (created as any instanceof Date) ?
34170
- (created as any).toISOString() :
34171
- created;
34617
+ if (recommended !== undefined) {
34618
+ localVarQueryParameter['Recommended'] = recommended;
34172
34619
  }
34173
34620
 
34174
- if (languageCode !== undefined) {
34175
- localVarQueryParameter['LanguageCode'] = languageCode;
34621
+ if (rate !== undefined) {
34622
+ localVarQueryParameter['Rate'] = rate;
34176
34623
  }
34177
34624
 
34178
- if (returnDefaultValue !== undefined) {
34179
- localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
34625
+ if (reviewType !== undefined) {
34626
+ localVarQueryParameter['ReviewType'] = reviewType;
34180
34627
  }
34181
34628
 
34182
34629
  if (page !== undefined) {
@@ -34206,17 +34653,13 @@ export const ServicesApiAxiosParamCreator = function (configuration?: Configurat
34206
34653
  },
34207
34654
  /**
34208
34655
  *
34209
- * @param {string} serviceId
34210
- * @param {string} [languageCode]
34211
- * @param {boolean} [returnDefaultValue]
34656
+ * @summary Create a ServiceReview.
34657
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
34212
34658
  * @param {*} [options] Override http request option.
34213
34659
  * @throws {RequiredError}
34214
34660
  */
34215
- apiV1ServicesServiceIdGet: async (serviceId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34216
- // verify required parameter 'serviceId' is not null or undefined
34217
- assertParamExists('apiV1ServicesServiceIdGet', 'serviceId', serviceId)
34218
- const localVarPath = `/api/v1/services/{serviceId}`
34219
- .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
34661
+ apiV1ServicereviewPost: async (createServiceReviewCommand?: CreateServiceReviewCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34662
+ const localVarPath = `/api/v1/servicereview`;
34220
34663
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
34221
34664
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34222
34665
  let baseOptions;
@@ -34224,7 +34667,7 @@ export const ServicesApiAxiosParamCreator = function (configuration?: Configurat
34224
34667
  baseOptions = configuration.baseOptions;
34225
34668
  }
34226
34669
 
34227
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34670
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34228
34671
  const localVarHeaderParameter = {} as any;
34229
34672
  const localVarQueryParameter = {} as any;
34230
34673
 
@@ -34232,14 +34675,968 @@ export const ServicesApiAxiosParamCreator = function (configuration?: Configurat
34232
34675
  // oauth required
34233
34676
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34234
34677
 
34235
- if (languageCode !== undefined) {
34236
- localVarQueryParameter['languageCode'] = languageCode;
34237
- }
34238
-
34239
- if (returnDefaultValue !== undefined) {
34240
- localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
34241
- }
34242
-
34678
+
34679
+
34680
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34681
+
34682
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34683
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34684
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34685
+ localVarRequestOptions.data = serializeDataIfNeeded(createServiceReviewCommand, localVarRequestOptions, configuration)
34686
+
34687
+ return {
34688
+ url: toPathString(localVarUrlObj),
34689
+ options: localVarRequestOptions,
34690
+ };
34691
+ },
34692
+ /**
34693
+ *
34694
+ * @summary Delete ServiceReview.
34695
+ * @param {string} serviceReviewId
34696
+ * @param {*} [options] Override http request option.
34697
+ * @throws {RequiredError}
34698
+ */
34699
+ apiV1ServicereviewServiceReviewIdDelete: async (serviceReviewId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34700
+ // verify required parameter 'serviceReviewId' is not null or undefined
34701
+ assertParamExists('apiV1ServicereviewServiceReviewIdDelete', 'serviceReviewId', serviceReviewId)
34702
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}`
34703
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34706
+ let baseOptions;
34707
+ if (configuration) {
34708
+ baseOptions = configuration.baseOptions;
34709
+ }
34710
+
34711
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
34712
+ const localVarHeaderParameter = {} as any;
34713
+ const localVarQueryParameter = {} as any;
34714
+
34715
+ // authentication oauth2 required
34716
+ // oauth required
34717
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34718
+
34719
+
34720
+
34721
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34722
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34723
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34724
+
34725
+ return {
34726
+ url: toPathString(localVarUrlObj),
34727
+ options: localVarRequestOptions,
34728
+ };
34729
+ },
34730
+ /**
34731
+ *
34732
+ * @param {string} serviceReviewId
34733
+ * @param {*} [options] Override http request option.
34734
+ * @throws {RequiredError}
34735
+ */
34736
+ apiV1ServicereviewServiceReviewIdGet: async (serviceReviewId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34737
+ // verify required parameter 'serviceReviewId' is not null or undefined
34738
+ assertParamExists('apiV1ServicereviewServiceReviewIdGet', 'serviceReviewId', serviceReviewId)
34739
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}`
34740
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34742
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34743
+ let baseOptions;
34744
+ if (configuration) {
34745
+ baseOptions = configuration.baseOptions;
34746
+ }
34747
+
34748
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34749
+ const localVarHeaderParameter = {} as any;
34750
+ const localVarQueryParameter = {} as any;
34751
+
34752
+ // authentication oauth2 required
34753
+ // oauth required
34754
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34755
+
34756
+
34757
+
34758
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34759
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34760
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34761
+
34762
+ return {
34763
+ url: toPathString(localVarUrlObj),
34764
+ options: localVarRequestOptions,
34765
+ };
34766
+ },
34767
+ /**
34768
+ *
34769
+ * @summary Get all ServiceReviewMedias.
34770
+ * @param {string} serviceReviewId
34771
+ * @param {string} [id]
34772
+ * @param {MediaType} [mediaType]
34773
+ * @param {number} [page]
34774
+ * @param {number} [limit]
34775
+ * @param {Date} [lastRetrieved]
34776
+ * @param {*} [options] Override http request option.
34777
+ * @throws {RequiredError}
34778
+ */
34779
+ apiV1ServicereviewServiceReviewIdMediasGet: async (serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34780
+ // verify required parameter 'serviceReviewId' is not null or undefined
34781
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasGet', 'serviceReviewId', serviceReviewId)
34782
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias`
34783
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34784
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34785
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34786
+ let baseOptions;
34787
+ if (configuration) {
34788
+ baseOptions = configuration.baseOptions;
34789
+ }
34790
+
34791
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34792
+ const localVarHeaderParameter = {} as any;
34793
+ const localVarQueryParameter = {} as any;
34794
+
34795
+ // authentication oauth2 required
34796
+ // oauth required
34797
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34798
+
34799
+ if (id !== undefined) {
34800
+ localVarQueryParameter['Id'] = id;
34801
+ }
34802
+
34803
+ if (mediaType !== undefined) {
34804
+ localVarQueryParameter['MediaType'] = mediaType;
34805
+ }
34806
+
34807
+ if (page !== undefined) {
34808
+ localVarQueryParameter['page'] = page;
34809
+ }
34810
+
34811
+ if (limit !== undefined) {
34812
+ localVarQueryParameter['limit'] = limit;
34813
+ }
34814
+
34815
+ if (lastRetrieved !== undefined) {
34816
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
34817
+ (lastRetrieved as any).toISOString() :
34818
+ lastRetrieved;
34819
+ }
34820
+
34821
+
34822
+
34823
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34824
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34825
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34826
+
34827
+ return {
34828
+ url: toPathString(localVarUrlObj),
34829
+ options: localVarRequestOptions,
34830
+ };
34831
+ },
34832
+ /**
34833
+ *
34834
+ * @summary Delete ServiceReviewMedia
34835
+ * @param {string} serviceReviewId
34836
+ * @param {string} mediaId
34837
+ * @param {*} [options] Override http request option.
34838
+ * @throws {RequiredError}
34839
+ */
34840
+ apiV1ServicereviewServiceReviewIdMediasMediaIdDelete: async (serviceReviewId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34841
+ // verify required parameter 'serviceReviewId' is not null or undefined
34842
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdDelete', 'serviceReviewId', serviceReviewId)
34843
+ // verify required parameter 'mediaId' is not null or undefined
34844
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdDelete', 'mediaId', mediaId)
34845
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}`
34846
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
34847
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
34848
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34849
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34850
+ let baseOptions;
34851
+ if (configuration) {
34852
+ baseOptions = configuration.baseOptions;
34853
+ }
34854
+
34855
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
34856
+ const localVarHeaderParameter = {} as any;
34857
+ const localVarQueryParameter = {} as any;
34858
+
34859
+ // authentication oauth2 required
34860
+ // oauth required
34861
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34862
+
34863
+
34864
+
34865
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34866
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34867
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34868
+
34869
+ return {
34870
+ url: toPathString(localVarUrlObj),
34871
+ options: localVarRequestOptions,
34872
+ };
34873
+ },
34874
+ /**
34875
+ *
34876
+ * @summary Get ServiceReviewMedia.
34877
+ * @param {string} serviceReviewId
34878
+ * @param {string} mediaId
34879
+ * @param {*} [options] Override http request option.
34880
+ * @throws {RequiredError}
34881
+ */
34882
+ apiV1ServicereviewServiceReviewIdMediasMediaIdGet: async (serviceReviewId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34883
+ // verify required parameter 'serviceReviewId' is not null or undefined
34884
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdGet', 'serviceReviewId', serviceReviewId)
34885
+ // verify required parameter 'mediaId' is not null or undefined
34886
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdGet', 'mediaId', mediaId)
34887
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}`
34888
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
34889
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
34890
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34891
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34892
+ let baseOptions;
34893
+ if (configuration) {
34894
+ baseOptions = configuration.baseOptions;
34895
+ }
34896
+
34897
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34898
+ const localVarHeaderParameter = {} as any;
34899
+ const localVarQueryParameter = {} as any;
34900
+
34901
+ // authentication oauth2 required
34902
+ // oauth required
34903
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34904
+
34905
+
34906
+
34907
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34908
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34909
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34910
+
34911
+ return {
34912
+ url: toPathString(localVarUrlObj),
34913
+ options: localVarRequestOptions,
34914
+ };
34915
+ },
34916
+ /**
34917
+ *
34918
+ * @summary Update ServiceReviewMedia.
34919
+ * @param {string} serviceReviewId
34920
+ * @param {string} mediaId
34921
+ * @param {UpdateMediaCommand} [updateMediaCommand]
34922
+ * @param {*} [options] Override http request option.
34923
+ * @throws {RequiredError}
34924
+ */
34925
+ apiV1ServicereviewServiceReviewIdMediasMediaIdPut: async (serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34926
+ // verify required parameter 'serviceReviewId' is not null or undefined
34927
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdPut', 'serviceReviewId', serviceReviewId)
34928
+ // verify required parameter 'mediaId' is not null or undefined
34929
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdPut', 'mediaId', mediaId)
34930
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}`
34931
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
34932
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
34933
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34934
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34935
+ let baseOptions;
34936
+ if (configuration) {
34937
+ baseOptions = configuration.baseOptions;
34938
+ }
34939
+
34940
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
34941
+ const localVarHeaderParameter = {} as any;
34942
+ const localVarQueryParameter = {} as any;
34943
+
34944
+ // authentication oauth2 required
34945
+ // oauth required
34946
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34947
+
34948
+
34949
+
34950
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34951
+
34952
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34953
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34954
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34955
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
34956
+
34957
+ return {
34958
+ url: toPathString(localVarUrlObj),
34959
+ options: localVarRequestOptions,
34960
+ };
34961
+ },
34962
+ /**
34963
+ *
34964
+ * @summary Create ServiceReviewMedia.
34965
+ * @param {string} serviceReviewId
34966
+ * @param {CreateMediaCommand} [createMediaCommand]
34967
+ * @param {*} [options] Override http request option.
34968
+ * @throws {RequiredError}
34969
+ */
34970
+ apiV1ServicereviewServiceReviewIdMediasPost: async (serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34971
+ // verify required parameter 'serviceReviewId' is not null or undefined
34972
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasPost', 'serviceReviewId', serviceReviewId)
34973
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias`
34974
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34975
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34976
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34977
+ let baseOptions;
34978
+ if (configuration) {
34979
+ baseOptions = configuration.baseOptions;
34980
+ }
34981
+
34982
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34983
+ const localVarHeaderParameter = {} as any;
34984
+ const localVarQueryParameter = {} as any;
34985
+
34986
+ // authentication oauth2 required
34987
+ // oauth required
34988
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34989
+
34990
+
34991
+
34992
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34993
+
34994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34996
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34997
+ localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
34998
+
34999
+ return {
35000
+ url: toPathString(localVarUrlObj),
35001
+ options: localVarRequestOptions,
35002
+ };
35003
+ },
35004
+ /**
35005
+ *
35006
+ * @summary Update ServiceReview.
35007
+ * @param {string} serviceReviewId
35008
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
35009
+ * @param {*} [options] Override http request option.
35010
+ * @throws {RequiredError}
35011
+ */
35012
+ apiV1ServicereviewServiceReviewIdPut: async (serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35013
+ // verify required parameter 'serviceReviewId' is not null or undefined
35014
+ assertParamExists('apiV1ServicereviewServiceReviewIdPut', 'serviceReviewId', serviceReviewId)
35015
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}`
35016
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
35017
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35018
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35019
+ let baseOptions;
35020
+ if (configuration) {
35021
+ baseOptions = configuration.baseOptions;
35022
+ }
35023
+
35024
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
35025
+ const localVarHeaderParameter = {} as any;
35026
+ const localVarQueryParameter = {} as any;
35027
+
35028
+ // authentication oauth2 required
35029
+ // oauth required
35030
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
35031
+
35032
+
35033
+
35034
+ localVarHeaderParameter['Content-Type'] = 'application/json';
35035
+
35036
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35037
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35038
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35039
+ localVarRequestOptions.data = serializeDataIfNeeded(updateServiceReviewCommand, localVarRequestOptions, configuration)
35040
+
35041
+ return {
35042
+ url: toPathString(localVarUrlObj),
35043
+ options: localVarRequestOptions,
35044
+ };
35045
+ },
35046
+ }
35047
+ };
35048
+
35049
+ /**
35050
+ * ServiceReviewApi - functional programming interface
35051
+ * @export
35052
+ */
35053
+ export const ServiceReviewApiFp = function(configuration?: Configuration) {
35054
+ const localVarAxiosParamCreator = ServiceReviewApiAxiosParamCreator(configuration)
35055
+ return {
35056
+ /**
35057
+ *
35058
+ * @summary Get all ServiceReviews.
35059
+ * @param {string} [serviceId]
35060
+ * @param {string} [serviceName]
35061
+ * @param {string} [patientId]
35062
+ * @param {string} [patientName]
35063
+ * @param {boolean} [recommended]
35064
+ * @param {number} [rate]
35065
+ * @param {ReviewType} [reviewType]
35066
+ * @param {number} [page]
35067
+ * @param {number} [limit]
35068
+ * @param {Date} [lastRetrieved]
35069
+ * @param {*} [options] Override http request option.
35070
+ * @throws {RequiredError}
35071
+ */
35072
+ async apiV1ServicereviewGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewsModel>> {
35073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options);
35074
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35075
+ },
35076
+ /**
35077
+ *
35078
+ * @summary Create a ServiceReview.
35079
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
35080
+ * @param {*} [options] Override http request option.
35081
+ * @throws {RequiredError}
35082
+ */
35083
+ async apiV1ServicereviewPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
35084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewPost(createServiceReviewCommand, options);
35085
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35086
+ },
35087
+ /**
35088
+ *
35089
+ * @summary Delete ServiceReview.
35090
+ * @param {string} serviceReviewId
35091
+ * @param {*} [options] Override http request option.
35092
+ * @throws {RequiredError}
35093
+ */
35094
+ async apiV1ServicereviewServiceReviewIdDelete(serviceReviewId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
35095
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options);
35096
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35097
+ },
35098
+ /**
35099
+ *
35100
+ * @param {string} serviceReviewId
35101
+ * @param {*} [options] Override http request option.
35102
+ * @throws {RequiredError}
35103
+ */
35104
+ async apiV1ServicereviewServiceReviewIdGet(serviceReviewId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
35105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options);
35106
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35107
+ },
35108
+ /**
35109
+ *
35110
+ * @summary Get all ServiceReviewMedias.
35111
+ * @param {string} serviceReviewId
35112
+ * @param {string} [id]
35113
+ * @param {MediaType} [mediaType]
35114
+ * @param {number} [page]
35115
+ * @param {number} [limit]
35116
+ * @param {Date} [lastRetrieved]
35117
+ * @param {*} [options] Override http request option.
35118
+ * @throws {RequiredError}
35119
+ */
35120
+ async apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
35121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options);
35122
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35123
+ },
35124
+ /**
35125
+ *
35126
+ * @summary Delete ServiceReviewMedia
35127
+ * @param {string} serviceReviewId
35128
+ * @param {string} mediaId
35129
+ * @param {*} [options] Override http request option.
35130
+ * @throws {RequiredError}
35131
+ */
35132
+ async apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
35133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options);
35134
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35135
+ },
35136
+ /**
35137
+ *
35138
+ * @summary Get ServiceReviewMedia.
35139
+ * @param {string} serviceReviewId
35140
+ * @param {string} mediaId
35141
+ * @param {*} [options] Override http request option.
35142
+ * @throws {RequiredError}
35143
+ */
35144
+ async apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
35145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options);
35146
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35147
+ },
35148
+ /**
35149
+ *
35150
+ * @summary Update ServiceReviewMedia.
35151
+ * @param {string} serviceReviewId
35152
+ * @param {string} mediaId
35153
+ * @param {UpdateMediaCommand} [updateMediaCommand]
35154
+ * @param {*} [options] Override http request option.
35155
+ * @throws {RequiredError}
35156
+ */
35157
+ async apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
35158
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options);
35159
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35160
+ },
35161
+ /**
35162
+ *
35163
+ * @summary Create ServiceReviewMedia.
35164
+ * @param {string} serviceReviewId
35165
+ * @param {CreateMediaCommand} [createMediaCommand]
35166
+ * @param {*} [options] Override http request option.
35167
+ * @throws {RequiredError}
35168
+ */
35169
+ async apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
35170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options);
35171
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35172
+ },
35173
+ /**
35174
+ *
35175
+ * @summary Update ServiceReview.
35176
+ * @param {string} serviceReviewId
35177
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
35178
+ * @param {*} [options] Override http request option.
35179
+ * @throws {RequiredError}
35180
+ */
35181
+ async apiV1ServicereviewServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
35182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options);
35183
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35184
+ },
35185
+ }
35186
+ };
35187
+
35188
+ /**
35189
+ * ServiceReviewApi - factory interface
35190
+ * @export
35191
+ */
35192
+ export const ServiceReviewApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
35193
+ const localVarFp = ServiceReviewApiFp(configuration)
35194
+ return {
35195
+ /**
35196
+ *
35197
+ * @summary Get all ServiceReviews.
35198
+ * @param {string} [serviceId]
35199
+ * @param {string} [serviceName]
35200
+ * @param {string} [patientId]
35201
+ * @param {string} [patientName]
35202
+ * @param {boolean} [recommended]
35203
+ * @param {number} [rate]
35204
+ * @param {ReviewType} [reviewType]
35205
+ * @param {number} [page]
35206
+ * @param {number} [limit]
35207
+ * @param {Date} [lastRetrieved]
35208
+ * @param {*} [options] Override http request option.
35209
+ * @throws {RequiredError}
35210
+ */
35211
+ apiV1ServicereviewGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceReviewsModel> {
35212
+ return localVarFp.apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
35213
+ },
35214
+ /**
35215
+ *
35216
+ * @summary Create a ServiceReview.
35217
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
35218
+ * @param {*} [options] Override http request option.
35219
+ * @throws {RequiredError}
35220
+ */
35221
+ apiV1ServicereviewPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: any): AxiosPromise<ServiceReviewModel> {
35222
+ return localVarFp.apiV1ServicereviewPost(createServiceReviewCommand, options).then((request) => request(axios, basePath));
35223
+ },
35224
+ /**
35225
+ *
35226
+ * @summary Delete ServiceReview.
35227
+ * @param {string} serviceReviewId
35228
+ * @param {*} [options] Override http request option.
35229
+ * @throws {RequiredError}
35230
+ */
35231
+ apiV1ServicereviewServiceReviewIdDelete(serviceReviewId: string, options?: any): AxiosPromise<boolean> {
35232
+ return localVarFp.apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options).then((request) => request(axios, basePath));
35233
+ },
35234
+ /**
35235
+ *
35236
+ * @param {string} serviceReviewId
35237
+ * @param {*} [options] Override http request option.
35238
+ * @throws {RequiredError}
35239
+ */
35240
+ apiV1ServicereviewServiceReviewIdGet(serviceReviewId: string, options?: any): AxiosPromise<ServiceReviewModel> {
35241
+ return localVarFp.apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options).then((request) => request(axios, basePath));
35242
+ },
35243
+ /**
35244
+ *
35245
+ * @summary Get all ServiceReviewMedias.
35246
+ * @param {string} serviceReviewId
35247
+ * @param {string} [id]
35248
+ * @param {MediaType} [mediaType]
35249
+ * @param {number} [page]
35250
+ * @param {number} [limit]
35251
+ * @param {Date} [lastRetrieved]
35252
+ * @param {*} [options] Override http request option.
35253
+ * @throws {RequiredError}
35254
+ */
35255
+ apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
35256
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
35257
+ },
35258
+ /**
35259
+ *
35260
+ * @summary Delete ServiceReviewMedia
35261
+ * @param {string} serviceReviewId
35262
+ * @param {string} mediaId
35263
+ * @param {*} [options] Override http request option.
35264
+ * @throws {RequiredError}
35265
+ */
35266
+ apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
35267
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then((request) => request(axios, basePath));
35268
+ },
35269
+ /**
35270
+ *
35271
+ * @summary Get ServiceReviewMedia.
35272
+ * @param {string} serviceReviewId
35273
+ * @param {string} mediaId
35274
+ * @param {*} [options] Override http request option.
35275
+ * @throws {RequiredError}
35276
+ */
35277
+ apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
35278
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then((request) => request(axios, basePath));
35279
+ },
35280
+ /**
35281
+ *
35282
+ * @summary Update ServiceReviewMedia.
35283
+ * @param {string} serviceReviewId
35284
+ * @param {string} mediaId
35285
+ * @param {UpdateMediaCommand} [updateMediaCommand]
35286
+ * @param {*} [options] Override http request option.
35287
+ * @throws {RequiredError}
35288
+ */
35289
+ apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35290
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
35291
+ },
35292
+ /**
35293
+ *
35294
+ * @summary Create ServiceReviewMedia.
35295
+ * @param {string} serviceReviewId
35296
+ * @param {CreateMediaCommand} [createMediaCommand]
35297
+ * @param {*} [options] Override http request option.
35298
+ * @throws {RequiredError}
35299
+ */
35300
+ apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35301
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then((request) => request(axios, basePath));
35302
+ },
35303
+ /**
35304
+ *
35305
+ * @summary Update ServiceReview.
35306
+ * @param {string} serviceReviewId
35307
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
35308
+ * @param {*} [options] Override http request option.
35309
+ * @throws {RequiredError}
35310
+ */
35311
+ apiV1ServicereviewServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: any): AxiosPromise<ServiceReviewModel> {
35312
+ return localVarFp.apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then((request) => request(axios, basePath));
35313
+ },
35314
+ };
35315
+ };
35316
+
35317
+ /**
35318
+ * ServiceReviewApi - object-oriented interface
35319
+ * @export
35320
+ * @class ServiceReviewApi
35321
+ * @extends {BaseAPI}
35322
+ */
35323
+ export class ServiceReviewApi extends BaseAPI {
35324
+ /**
35325
+ *
35326
+ * @summary Get all ServiceReviews.
35327
+ * @param {string} [serviceId]
35328
+ * @param {string} [serviceName]
35329
+ * @param {string} [patientId]
35330
+ * @param {string} [patientName]
35331
+ * @param {boolean} [recommended]
35332
+ * @param {number} [rate]
35333
+ * @param {ReviewType} [reviewType]
35334
+ * @param {number} [page]
35335
+ * @param {number} [limit]
35336
+ * @param {Date} [lastRetrieved]
35337
+ * @param {*} [options] Override http request option.
35338
+ * @throws {RequiredError}
35339
+ * @memberof ServiceReviewApi
35340
+ */
35341
+ public apiV1ServicereviewGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
35342
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
35343
+ }
35344
+
35345
+ /**
35346
+ *
35347
+ * @summary Create a ServiceReview.
35348
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
35349
+ * @param {*} [options] Override http request option.
35350
+ * @throws {RequiredError}
35351
+ * @memberof ServiceReviewApi
35352
+ */
35353
+ public apiV1ServicereviewPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: AxiosRequestConfig) {
35354
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewPost(createServiceReviewCommand, options).then((request) => request(this.axios, this.basePath));
35355
+ }
35356
+
35357
+ /**
35358
+ *
35359
+ * @summary Delete ServiceReview.
35360
+ * @param {string} serviceReviewId
35361
+ * @param {*} [options] Override http request option.
35362
+ * @throws {RequiredError}
35363
+ * @memberof ServiceReviewApi
35364
+ */
35365
+ public apiV1ServicereviewServiceReviewIdDelete(serviceReviewId: string, options?: AxiosRequestConfig) {
35366
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options).then((request) => request(this.axios, this.basePath));
35367
+ }
35368
+
35369
+ /**
35370
+ *
35371
+ * @param {string} serviceReviewId
35372
+ * @param {*} [options] Override http request option.
35373
+ * @throws {RequiredError}
35374
+ * @memberof ServiceReviewApi
35375
+ */
35376
+ public apiV1ServicereviewServiceReviewIdGet(serviceReviewId: string, options?: AxiosRequestConfig) {
35377
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options).then((request) => request(this.axios, this.basePath));
35378
+ }
35379
+
35380
+ /**
35381
+ *
35382
+ * @summary Get all ServiceReviewMedias.
35383
+ * @param {string} serviceReviewId
35384
+ * @param {string} [id]
35385
+ * @param {MediaType} [mediaType]
35386
+ * @param {number} [page]
35387
+ * @param {number} [limit]
35388
+ * @param {Date} [lastRetrieved]
35389
+ * @param {*} [options] Override http request option.
35390
+ * @throws {RequiredError}
35391
+ * @memberof ServiceReviewApi
35392
+ */
35393
+ public apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
35394
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
35395
+ }
35396
+
35397
+ /**
35398
+ *
35399
+ * @summary Delete ServiceReviewMedia
35400
+ * @param {string} serviceReviewId
35401
+ * @param {string} mediaId
35402
+ * @param {*} [options] Override http request option.
35403
+ * @throws {RequiredError}
35404
+ * @memberof ServiceReviewApi
35405
+ */
35406
+ public apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig) {
35407
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then((request) => request(this.axios, this.basePath));
35408
+ }
35409
+
35410
+ /**
35411
+ *
35412
+ * @summary Get ServiceReviewMedia.
35413
+ * @param {string} serviceReviewId
35414
+ * @param {string} mediaId
35415
+ * @param {*} [options] Override http request option.
35416
+ * @throws {RequiredError}
35417
+ * @memberof ServiceReviewApi
35418
+ */
35419
+ public apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig) {
35420
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then((request) => request(this.axios, this.basePath));
35421
+ }
35422
+
35423
+ /**
35424
+ *
35425
+ * @summary Update ServiceReviewMedia.
35426
+ * @param {string} serviceReviewId
35427
+ * @param {string} mediaId
35428
+ * @param {UpdateMediaCommand} [updateMediaCommand]
35429
+ * @param {*} [options] Override http request option.
35430
+ * @throws {RequiredError}
35431
+ * @memberof ServiceReviewApi
35432
+ */
35433
+ public apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
35434
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
35435
+ }
35436
+
35437
+ /**
35438
+ *
35439
+ * @summary Create ServiceReviewMedia.
35440
+ * @param {string} serviceReviewId
35441
+ * @param {CreateMediaCommand} [createMediaCommand]
35442
+ * @param {*} [options] Override http request option.
35443
+ * @throws {RequiredError}
35444
+ * @memberof ServiceReviewApi
35445
+ */
35446
+ public apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
35447
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
35448
+ }
35449
+
35450
+ /**
35451
+ *
35452
+ * @summary Update ServiceReview.
35453
+ * @param {string} serviceReviewId
35454
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
35455
+ * @param {*} [options] Override http request option.
35456
+ * @throws {RequiredError}
35457
+ * @memberof ServiceReviewApi
35458
+ */
35459
+ public apiV1ServicereviewServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: AxiosRequestConfig) {
35460
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then((request) => request(this.axios, this.basePath));
35461
+ }
35462
+ }
35463
+
35464
+
35465
+ /**
35466
+ * ServicesApi - axios parameter creator
35467
+ * @export
35468
+ */
35469
+ export const ServicesApiAxiosParamCreator = function (configuration?: Configuration) {
35470
+ return {
35471
+ /**
35472
+ *
35473
+ * @summary Get all HospitalServices.
35474
+ * @param {string} [hospitalId]
35475
+ * @param {string} [hospitalName]
35476
+ * @param {string} [hospitalSlug]
35477
+ * @param {string} [id]
35478
+ * @param {string} [name]
35479
+ * @param {string} [description]
35480
+ * @param {string} [specialtyId]
35481
+ * @param {string} [specialtyName]
35482
+ * @param {string} [specialtyTypeId]
35483
+ * @param {string} [specialtyTypeName]
35484
+ * @param {string} [serviceCategoryId]
35485
+ * @param {MarketingType} [marketingType]
35486
+ * @param {Procedure} [procedure]
35487
+ * @param {Date} [created]
35488
+ * @param {string} [languageCode]
35489
+ * @param {boolean} [returnDefaultValue]
35490
+ * @param {number} [page]
35491
+ * @param {number} [limit]
35492
+ * @param {Date} [lastRetrieved]
35493
+ * @param {*} [options] Override http request option.
35494
+ * @throws {RequiredError}
35495
+ */
35496
+ apiV1ServicesGet: async (hospitalId?: string, hospitalName?: string, hospitalSlug?: string, id?: string, name?: string, description?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceCategoryId?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35497
+ const localVarPath = `/api/v1/services`;
35498
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35499
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35500
+ let baseOptions;
35501
+ if (configuration) {
35502
+ baseOptions = configuration.baseOptions;
35503
+ }
35504
+
35505
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35506
+ const localVarHeaderParameter = {} as any;
35507
+ const localVarQueryParameter = {} as any;
35508
+
35509
+ // authentication oauth2 required
35510
+ // oauth required
35511
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
35512
+
35513
+ if (hospitalId !== undefined) {
35514
+ localVarQueryParameter['HospitalId'] = hospitalId;
35515
+ }
35516
+
35517
+ if (hospitalName !== undefined) {
35518
+ localVarQueryParameter['HospitalName'] = hospitalName;
35519
+ }
35520
+
35521
+ if (hospitalSlug !== undefined) {
35522
+ localVarQueryParameter['HospitalSlug'] = hospitalSlug;
35523
+ }
35524
+
35525
+ if (id !== undefined) {
35526
+ localVarQueryParameter['Id'] = id;
35527
+ }
35528
+
35529
+ if (name !== undefined) {
35530
+ localVarQueryParameter['Name'] = name;
35531
+ }
35532
+
35533
+ if (description !== undefined) {
35534
+ localVarQueryParameter['Description'] = description;
35535
+ }
35536
+
35537
+ if (specialtyId !== undefined) {
35538
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
35539
+ }
35540
+
35541
+ if (specialtyName !== undefined) {
35542
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
35543
+ }
35544
+
35545
+ if (specialtyTypeId !== undefined) {
35546
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
35547
+ }
35548
+
35549
+ if (specialtyTypeName !== undefined) {
35550
+ localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
35551
+ }
35552
+
35553
+ if (serviceCategoryId !== undefined) {
35554
+ localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
35555
+ }
35556
+
35557
+ if (marketingType !== undefined) {
35558
+ localVarQueryParameter['MarketingType'] = marketingType;
35559
+ }
35560
+
35561
+ if (procedure !== undefined) {
35562
+ localVarQueryParameter['Procedure'] = procedure;
35563
+ }
35564
+
35565
+ if (created !== undefined) {
35566
+ localVarQueryParameter['Created'] = (created as any instanceof Date) ?
35567
+ (created as any).toISOString() :
35568
+ created;
35569
+ }
35570
+
35571
+ if (languageCode !== undefined) {
35572
+ localVarQueryParameter['LanguageCode'] = languageCode;
35573
+ }
35574
+
35575
+ if (returnDefaultValue !== undefined) {
35576
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
35577
+ }
35578
+
35579
+ if (page !== undefined) {
35580
+ localVarQueryParameter['page'] = page;
35581
+ }
35582
+
35583
+ if (limit !== undefined) {
35584
+ localVarQueryParameter['limit'] = limit;
35585
+ }
35586
+
35587
+ if (lastRetrieved !== undefined) {
35588
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
35589
+ (lastRetrieved as any).toISOString() :
35590
+ lastRetrieved;
35591
+ }
35592
+
35593
+
35594
+
35595
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35597
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35598
+
35599
+ return {
35600
+ url: toPathString(localVarUrlObj),
35601
+ options: localVarRequestOptions,
35602
+ };
35603
+ },
35604
+ /**
35605
+ *
35606
+ * @param {string} serviceId
35607
+ * @param {string} [languageCode]
35608
+ * @param {boolean} [returnDefaultValue]
35609
+ * @param {*} [options] Override http request option.
35610
+ * @throws {RequiredError}
35611
+ */
35612
+ apiV1ServicesServiceIdGet: async (serviceId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35613
+ // verify required parameter 'serviceId' is not null or undefined
35614
+ assertParamExists('apiV1ServicesServiceIdGet', 'serviceId', serviceId)
35615
+ const localVarPath = `/api/v1/services/{serviceId}`
35616
+ .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
35617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35619
+ let baseOptions;
35620
+ if (configuration) {
35621
+ baseOptions = configuration.baseOptions;
35622
+ }
35623
+
35624
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35625
+ const localVarHeaderParameter = {} as any;
35626
+ const localVarQueryParameter = {} as any;
35627
+
35628
+ // authentication oauth2 required
35629
+ // oauth required
35630
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
35631
+
35632
+ if (languageCode !== undefined) {
35633
+ localVarQueryParameter['languageCode'] = languageCode;
35634
+ }
35635
+
35636
+ if (returnDefaultValue !== undefined) {
35637
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
35638
+ }
35639
+
34243
35640
 
34244
35641
 
34245
35642
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -34501,15 +35898,13 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
34501
35898
  * @param {string} [id]
34502
35899
  * @param {string} [name]
34503
35900
  * @param {string} [description]
34504
- * @param {string} [languageCode]
34505
- * @param {boolean} [returnDefaultValue]
34506
35901
  * @param {number} [page]
34507
35902
  * @param {number} [limit]
34508
35903
  * @param {Date} [lastRetrieved]
34509
35904
  * @param {*} [options] Override http request option.
34510
35905
  * @throws {RequiredError}
34511
35906
  */
34512
- apiV1ServicescategoriesGet: async (id?: string, name?: string, description?: string, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35907
+ apiV1ServicescategoriesGet: async (id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34513
35908
  const localVarPath = `/api/v1/servicescategories`;
34514
35909
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
34515
35910
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -34538,14 +35933,6 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
34538
35933
  localVarQueryParameter['Description'] = description;
34539
35934
  }
34540
35935
 
34541
- if (languageCode !== undefined) {
34542
- localVarQueryParameter['LanguageCode'] = languageCode;
34543
- }
34544
-
34545
- if (returnDefaultValue !== undefined) {
34546
- localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
34547
- }
34548
-
34549
35936
  if (page !== undefined) {
34550
35937
  localVarQueryParameter['page'] = page;
34551
35938
  }
@@ -34650,11 +36037,10 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
34650
36037
  *
34651
36038
  * @summary Get ServiceCategory.
34652
36039
  * @param {string} serviceCategoryId
34653
- * @param {string} [languageCode]
34654
36040
  * @param {*} [options] Override http request option.
34655
36041
  * @throws {RequiredError}
34656
36042
  */
34657
- apiV1ServicescategoriesServiceCategoryIdGet: async (serviceCategoryId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
36043
+ apiV1ServicescategoriesServiceCategoryIdGet: async (serviceCategoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34658
36044
  // verify required parameter 'serviceCategoryId' is not null or undefined
34659
36045
  assertParamExists('apiV1ServicescategoriesServiceCategoryIdGet', 'serviceCategoryId', serviceCategoryId)
34660
36046
  const localVarPath = `/api/v1/servicescategories/{serviceCategoryId}`
@@ -34674,10 +36060,6 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
34674
36060
  // oauth required
34675
36061
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34676
36062
 
34677
- if (languageCode !== undefined) {
34678
- localVarQueryParameter['languageCode'] = languageCode;
34679
- }
34680
-
34681
36063
 
34682
36064
 
34683
36065
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -34747,16 +36129,14 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
34747
36129
  * @param {string} [id]
34748
36130
  * @param {string} [name]
34749
36131
  * @param {string} [description]
34750
- * @param {string} [languageCode]
34751
- * @param {boolean} [returnDefaultValue]
34752
36132
  * @param {number} [page]
34753
36133
  * @param {number} [limit]
34754
36134
  * @param {Date} [lastRetrieved]
34755
36135
  * @param {*} [options] Override http request option.
34756
36136
  * @throws {RequiredError}
34757
36137
  */
34758
- async apiV1ServicescategoriesGet(id?: string, name?: string, description?: string, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoriesModel>> {
34759
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicescategoriesGet(id, name, description, languageCode, returnDefaultValue, page, limit, lastRetrieved, options);
36138
+ async apiV1ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoriesModel>> {
36139
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options);
34760
36140
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34761
36141
  },
34762
36142
  /**
@@ -34784,12 +36164,11 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
34784
36164
  *
34785
36165
  * @summary Get ServiceCategory.
34786
36166
  * @param {string} serviceCategoryId
34787
- * @param {string} [languageCode]
34788
36167
  * @param {*} [options] Override http request option.
34789
36168
  * @throws {RequiredError}
34790
36169
  */
34791
- async apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoryModel>> {
34792
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, languageCode, options);
36170
+ async apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoryModel>> {
36171
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options);
34793
36172
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34794
36173
  },
34795
36174
  /**
@@ -34820,16 +36199,14 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
34820
36199
  * @param {string} [id]
34821
36200
  * @param {string} [name]
34822
36201
  * @param {string} [description]
34823
- * @param {string} [languageCode]
34824
- * @param {boolean} [returnDefaultValue]
34825
36202
  * @param {number} [page]
34826
36203
  * @param {number} [limit]
34827
36204
  * @param {Date} [lastRetrieved]
34828
36205
  * @param {*} [options] Override http request option.
34829
36206
  * @throws {RequiredError}
34830
36207
  */
34831
- apiV1ServicescategoriesGet(id?: string, name?: string, description?: string, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceCategoriesModel> {
34832
- return localVarFp.apiV1ServicescategoriesGet(id, name, description, languageCode, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
36208
+ apiV1ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceCategoriesModel> {
36209
+ return localVarFp.apiV1ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
34833
36210
  },
34834
36211
  /**
34835
36212
  *
@@ -34854,12 +36231,11 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
34854
36231
  *
34855
36232
  * @summary Get ServiceCategory.
34856
36233
  * @param {string} serviceCategoryId
34857
- * @param {string} [languageCode]
34858
36234
  * @param {*} [options] Override http request option.
34859
36235
  * @throws {RequiredError}
34860
36236
  */
34861
- apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, languageCode?: string, options?: any): AxiosPromise<ServiceCategoryModel> {
34862
- return localVarFp.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, languageCode, options).then((request) => request(axios, basePath));
36237
+ apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: any): AxiosPromise<ServiceCategoryModel> {
36238
+ return localVarFp.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then((request) => request(axios, basePath));
34863
36239
  },
34864
36240
  /**
34865
36241
  *
@@ -34888,8 +36264,6 @@ export class ServicesCategoriesApi extends BaseAPI {
34888
36264
  * @param {string} [id]
34889
36265
  * @param {string} [name]
34890
36266
  * @param {string} [description]
34891
- * @param {string} [languageCode]
34892
- * @param {boolean} [returnDefaultValue]
34893
36267
  * @param {number} [page]
34894
36268
  * @param {number} [limit]
34895
36269
  * @param {Date} [lastRetrieved]
@@ -34897,8 +36271,8 @@ export class ServicesCategoriesApi extends BaseAPI {
34897
36271
  * @throws {RequiredError}
34898
36272
  * @memberof ServicesCategoriesApi
34899
36273
  */
34900
- public apiV1ServicescategoriesGet(id?: string, name?: string, description?: string, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
34901
- return ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesGet(id, name, description, languageCode, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
36274
+ public apiV1ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
36275
+ return ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
34902
36276
  }
34903
36277
 
34904
36278
  /**
@@ -34928,13 +36302,12 @@ export class ServicesCategoriesApi extends BaseAPI {
34928
36302
  *
34929
36303
  * @summary Get ServiceCategory.
34930
36304
  * @param {string} serviceCategoryId
34931
- * @param {string} [languageCode]
34932
36305
  * @param {*} [options] Override http request option.
34933
36306
  * @throws {RequiredError}
34934
36307
  * @memberof ServicesCategoriesApi
34935
36308
  */
34936
- public apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, languageCode?: string, options?: AxiosRequestConfig) {
34937
- return ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, languageCode, options).then((request) => request(this.axios, this.basePath));
36309
+ public apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: AxiosRequestConfig) {
36310
+ return ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then((request) => request(this.axios, this.basePath));
34938
36311
  }
34939
36312
 
34940
36313
  /**