ch-admin-api-client-typescript 2.6.6 → 2.6.7

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
@@ -4272,6 +4272,43 @@ export interface CreateServiceCategoryCommand {
4272
4272
  */
4273
4273
  'order'?: number;
4274
4274
  }
4275
+ /**
4276
+ *
4277
+ * @export
4278
+ * @interface CreateServiceReviewCommand
4279
+ */
4280
+ export interface CreateServiceReviewCommand {
4281
+ /**
4282
+ *
4283
+ * @type {string}
4284
+ * @memberof CreateServiceReviewCommand
4285
+ */
4286
+ 'serviceId'?: string;
4287
+ /**
4288
+ *
4289
+ * @type {string}
4290
+ * @memberof CreateServiceReviewCommand
4291
+ */
4292
+ 'patientId'?: string | null;
4293
+ /**
4294
+ *
4295
+ * @type {string}
4296
+ * @memberof CreateServiceReviewCommand
4297
+ */
4298
+ 'body'?: string | null;
4299
+ /**
4300
+ *
4301
+ * @type {boolean}
4302
+ * @memberof CreateServiceReviewCommand
4303
+ */
4304
+ 'recommended'?: boolean;
4305
+ /**
4306
+ *
4307
+ * @type {number}
4308
+ * @memberof CreateServiceReviewCommand
4309
+ */
4310
+ 'rate'?: number;
4311
+ }
4275
4312
  /**
4276
4313
  *
4277
4314
  * @export
@@ -7918,7 +7955,10 @@ export enum MediaType {
7918
7955
  Photo = 'Photo',
7919
7956
  Video = 'Video',
7920
7957
  Youtube = 'Youtube',
7921
- Document = 'Document'
7958
+ Document = 'Document',
7959
+ Frontal = 'Frontal',
7960
+ Diagonal = 'Diagonal',
7961
+ Side = 'Side'
7922
7962
  }
7923
7963
 
7924
7964
  /**
@@ -9021,6 +9061,147 @@ export interface ServiceCategoryModel {
9021
9061
  */
9022
9062
  'serviceCount'?: number;
9023
9063
  }
9064
+ /**
9065
+ *
9066
+ * @export
9067
+ * @interface ServiceReviewItemModel
9068
+ */
9069
+ export interface ServiceReviewItemModel {
9070
+ /**
9071
+ *
9072
+ * @type {string}
9073
+ * @memberof ServiceReviewItemModel
9074
+ */
9075
+ 'id'?: string;
9076
+ /**
9077
+ *
9078
+ * @type {string}
9079
+ * @memberof ServiceReviewItemModel
9080
+ */
9081
+ 'serviceId'?: string;
9082
+ /**
9083
+ *
9084
+ * @type {string}
9085
+ * @memberof ServiceReviewItemModel
9086
+ */
9087
+ 'serviceName'?: string | null;
9088
+ /**
9089
+ *
9090
+ * @type {string}
9091
+ * @memberof ServiceReviewItemModel
9092
+ */
9093
+ 'patientId'?: string;
9094
+ /**
9095
+ *
9096
+ * @type {string}
9097
+ * @memberof ServiceReviewItemModel
9098
+ */
9099
+ 'patientName'?: string | null;
9100
+ /**
9101
+ *
9102
+ * @type {string}
9103
+ * @memberof ServiceReviewItemModel
9104
+ */
9105
+ 'body'?: string | null;
9106
+ /**
9107
+ *
9108
+ * @type {boolean}
9109
+ * @memberof ServiceReviewItemModel
9110
+ */
9111
+ 'recommended'?: boolean;
9112
+ /**
9113
+ *
9114
+ * @type {number}
9115
+ * @memberof ServiceReviewItemModel
9116
+ */
9117
+ 'rate'?: number;
9118
+ /**
9119
+ *
9120
+ * @type {Array<MediaModel>}
9121
+ * @memberof ServiceReviewItemModel
9122
+ */
9123
+ 'medias'?: Array<MediaModel> | null;
9124
+ }
9125
+ /**
9126
+ *
9127
+ * @export
9128
+ * @interface ServiceReviewModel
9129
+ */
9130
+ export interface ServiceReviewModel {
9131
+ /**
9132
+ *
9133
+ * @type {string}
9134
+ * @memberof ServiceReviewModel
9135
+ */
9136
+ 'id'?: string;
9137
+ /**
9138
+ *
9139
+ * @type {string}
9140
+ * @memberof ServiceReviewModel
9141
+ */
9142
+ 'serviceId'?: string;
9143
+ /**
9144
+ *
9145
+ * @type {string}
9146
+ * @memberof ServiceReviewModel
9147
+ */
9148
+ 'serviceName'?: string | null;
9149
+ /**
9150
+ *
9151
+ * @type {string}
9152
+ * @memberof ServiceReviewModel
9153
+ */
9154
+ 'patientId'?: string;
9155
+ /**
9156
+ *
9157
+ * @type {string}
9158
+ * @memberof ServiceReviewModel
9159
+ */
9160
+ 'patientName'?: string | null;
9161
+ /**
9162
+ *
9163
+ * @type {string}
9164
+ * @memberof ServiceReviewModel
9165
+ */
9166
+ 'body'?: string | null;
9167
+ /**
9168
+ *
9169
+ * @type {boolean}
9170
+ * @memberof ServiceReviewModel
9171
+ */
9172
+ 'recommended'?: boolean;
9173
+ /**
9174
+ *
9175
+ * @type {number}
9176
+ * @memberof ServiceReviewModel
9177
+ */
9178
+ 'rate'?: number;
9179
+ /**
9180
+ *
9181
+ * @type {Array<MediaModel>}
9182
+ * @memberof ServiceReviewModel
9183
+ */
9184
+ 'medias'?: Array<MediaModel> | null;
9185
+ }
9186
+ /**
9187
+ *
9188
+ * @export
9189
+ * @interface ServiceReviewsModel
9190
+ */
9191
+ export interface ServiceReviewsModel {
9192
+ /**
9193
+ *
9194
+ * @type {Array<ServiceReviewItemModel>}
9195
+ * @memberof ServiceReviewsModel
9196
+ */
9197
+ 'items'?: Array<ServiceReviewItemModel> | null;
9198
+ /**
9199
+ *
9200
+ * @type {PagedListMetaData}
9201
+ * @memberof ServiceReviewsModel
9202
+ */
9203
+ 'metaData'?: PagedListMetaData;
9204
+ }
9024
9205
  /**
9025
9206
  *
9026
9207
  * @export
@@ -11182,6 +11363,31 @@ export interface UpdateServiceCategoryCommand {
11182
11363
  */
11183
11364
  'order'?: number;
11184
11365
  }
11366
+ /**
11367
+ *
11368
+ * @export
11369
+ * @interface UpdateServiceReviewCommand
11370
+ */
11371
+ export interface UpdateServiceReviewCommand {
11372
+ /**
11373
+ *
11374
+ * @type {string}
11375
+ * @memberof UpdateServiceReviewCommand
11376
+ */
11377
+ 'body'?: string | null;
11378
+ /**
11379
+ *
11380
+ * @type {boolean}
11381
+ * @memberof UpdateServiceReviewCommand
11382
+ */
11383
+ 'recommended'?: boolean | null;
11384
+ /**
11385
+ *
11386
+ * @type {number}
11387
+ * @memberof UpdateServiceReviewCommand
11388
+ */
11389
+ 'rate'?: number | null;
11390
+ }
11185
11391
  /**
11186
11392
  *
11187
11393
  * @export
@@ -34047,6 +34253,901 @@ export class ProfilesApi extends BaseAPI {
34047
34253
  }
34048
34254
 
34049
34255
 
34256
+ /**
34257
+ * ServiceReviewApi - axios parameter creator
34258
+ * @export
34259
+ */
34260
+ export const ServiceReviewApiAxiosParamCreator = function (configuration?: Configuration) {
34261
+ return {
34262
+ /**
34263
+ *
34264
+ * @summary Get all ServiceReviews.
34265
+ * @param {string} [serviceId]
34266
+ * @param {string} [serviceName]
34267
+ * @param {string} [patientId]
34268
+ * @param {string} [patientName]
34269
+ * @param {boolean} [recommended]
34270
+ * @param {number} [rate]
34271
+ * @param {number} [page]
34272
+ * @param {number} [limit]
34273
+ * @param {Date} [lastRetrieved]
34274
+ * @param {*} [options] Override http request option.
34275
+ * @throws {RequiredError}
34276
+ */
34277
+ apiV1ServicereviewGet: async (serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34278
+ const localVarPath = `/api/v1/servicereview`;
34279
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34280
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34281
+ let baseOptions;
34282
+ if (configuration) {
34283
+ baseOptions = configuration.baseOptions;
34284
+ }
34285
+
34286
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34287
+ const localVarHeaderParameter = {} as any;
34288
+ const localVarQueryParameter = {} as any;
34289
+
34290
+ // authentication oauth2 required
34291
+ // oauth required
34292
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34293
+
34294
+ if (serviceId !== undefined) {
34295
+ localVarQueryParameter['ServiceId'] = serviceId;
34296
+ }
34297
+
34298
+ if (serviceName !== undefined) {
34299
+ localVarQueryParameter['ServiceName'] = serviceName;
34300
+ }
34301
+
34302
+ if (patientId !== undefined) {
34303
+ localVarQueryParameter['PatientId'] = patientId;
34304
+ }
34305
+
34306
+ if (patientName !== undefined) {
34307
+ localVarQueryParameter['PatientName'] = patientName;
34308
+ }
34309
+
34310
+ if (recommended !== undefined) {
34311
+ localVarQueryParameter['Recommended'] = recommended;
34312
+ }
34313
+
34314
+ if (rate !== undefined) {
34315
+ localVarQueryParameter['Rate'] = rate;
34316
+ }
34317
+
34318
+ if (page !== undefined) {
34319
+ localVarQueryParameter['page'] = page;
34320
+ }
34321
+
34322
+ if (limit !== undefined) {
34323
+ localVarQueryParameter['limit'] = limit;
34324
+ }
34325
+
34326
+ if (lastRetrieved !== undefined) {
34327
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
34328
+ (lastRetrieved as any).toISOString() :
34329
+ lastRetrieved;
34330
+ }
34331
+
34332
+
34333
+
34334
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34335
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34336
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34337
+
34338
+ return {
34339
+ url: toPathString(localVarUrlObj),
34340
+ options: localVarRequestOptions,
34341
+ };
34342
+ },
34343
+ /**
34344
+ *
34345
+ * @summary Create a ServiceReview.
34346
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
34347
+ * @param {*} [options] Override http request option.
34348
+ * @throws {RequiredError}
34349
+ */
34350
+ apiV1ServicereviewPost: async (createServiceReviewCommand?: CreateServiceReviewCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34351
+ const localVarPath = `/api/v1/servicereview`;
34352
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34353
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34354
+ let baseOptions;
34355
+ if (configuration) {
34356
+ baseOptions = configuration.baseOptions;
34357
+ }
34358
+
34359
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34360
+ const localVarHeaderParameter = {} as any;
34361
+ const localVarQueryParameter = {} as any;
34362
+
34363
+ // authentication oauth2 required
34364
+ // oauth required
34365
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34366
+
34367
+
34368
+
34369
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34370
+
34371
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34372
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34373
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34374
+ localVarRequestOptions.data = serializeDataIfNeeded(createServiceReviewCommand, localVarRequestOptions, configuration)
34375
+
34376
+ return {
34377
+ url: toPathString(localVarUrlObj),
34378
+ options: localVarRequestOptions,
34379
+ };
34380
+ },
34381
+ /**
34382
+ *
34383
+ * @summary Delete ServiceReview.
34384
+ * @param {string} serviceReviewId
34385
+ * @param {*} [options] Override http request option.
34386
+ * @throws {RequiredError}
34387
+ */
34388
+ apiV1ServicereviewServiceReviewIdDelete: async (serviceReviewId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34389
+ // verify required parameter 'serviceReviewId' is not null or undefined
34390
+ assertParamExists('apiV1ServicereviewServiceReviewIdDelete', 'serviceReviewId', serviceReviewId)
34391
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}`
34392
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34393
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34394
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34395
+ let baseOptions;
34396
+ if (configuration) {
34397
+ baseOptions = configuration.baseOptions;
34398
+ }
34399
+
34400
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
34401
+ const localVarHeaderParameter = {} as any;
34402
+ const localVarQueryParameter = {} as any;
34403
+
34404
+ // authentication oauth2 required
34405
+ // oauth required
34406
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34407
+
34408
+
34409
+
34410
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34411
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34412
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34413
+
34414
+ return {
34415
+ url: toPathString(localVarUrlObj),
34416
+ options: localVarRequestOptions,
34417
+ };
34418
+ },
34419
+ /**
34420
+ *
34421
+ * @param {string} serviceReviewId
34422
+ * @param {*} [options] Override http request option.
34423
+ * @throws {RequiredError}
34424
+ */
34425
+ apiV1ServicereviewServiceReviewIdGet: async (serviceReviewId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34426
+ // verify required parameter 'serviceReviewId' is not null or undefined
34427
+ assertParamExists('apiV1ServicereviewServiceReviewIdGet', 'serviceReviewId', serviceReviewId)
34428
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}`
34429
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34432
+ let baseOptions;
34433
+ if (configuration) {
34434
+ baseOptions = configuration.baseOptions;
34435
+ }
34436
+
34437
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34438
+ const localVarHeaderParameter = {} as any;
34439
+ const localVarQueryParameter = {} as any;
34440
+
34441
+ // authentication oauth2 required
34442
+ // oauth required
34443
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34444
+
34445
+
34446
+
34447
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34448
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34449
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34450
+
34451
+ return {
34452
+ url: toPathString(localVarUrlObj),
34453
+ options: localVarRequestOptions,
34454
+ };
34455
+ },
34456
+ /**
34457
+ *
34458
+ * @summary Get all ServiceReviewMedias.
34459
+ * @param {string} serviceReviewId
34460
+ * @param {string} [id]
34461
+ * @param {MediaType} [mediaType]
34462
+ * @param {number} [page]
34463
+ * @param {number} [limit]
34464
+ * @param {Date} [lastRetrieved]
34465
+ * @param {*} [options] Override http request option.
34466
+ * @throws {RequiredError}
34467
+ */
34468
+ apiV1ServicereviewServiceReviewIdMediasGet: async (serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34469
+ // verify required parameter 'serviceReviewId' is not null or undefined
34470
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasGet', 'serviceReviewId', serviceReviewId)
34471
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias`
34472
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34474
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34475
+ let baseOptions;
34476
+ if (configuration) {
34477
+ baseOptions = configuration.baseOptions;
34478
+ }
34479
+
34480
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34481
+ const localVarHeaderParameter = {} as any;
34482
+ const localVarQueryParameter = {} as any;
34483
+
34484
+ // authentication oauth2 required
34485
+ // oauth required
34486
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34487
+
34488
+ if (id !== undefined) {
34489
+ localVarQueryParameter['Id'] = id;
34490
+ }
34491
+
34492
+ if (mediaType !== undefined) {
34493
+ localVarQueryParameter['MediaType'] = mediaType;
34494
+ }
34495
+
34496
+ if (page !== undefined) {
34497
+ localVarQueryParameter['page'] = page;
34498
+ }
34499
+
34500
+ if (limit !== undefined) {
34501
+ localVarQueryParameter['limit'] = limit;
34502
+ }
34503
+
34504
+ if (lastRetrieved !== undefined) {
34505
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
34506
+ (lastRetrieved as any).toISOString() :
34507
+ lastRetrieved;
34508
+ }
34509
+
34510
+
34511
+
34512
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34514
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34515
+
34516
+ return {
34517
+ url: toPathString(localVarUrlObj),
34518
+ options: localVarRequestOptions,
34519
+ };
34520
+ },
34521
+ /**
34522
+ *
34523
+ * @summary Delete ServiceReviewMedia
34524
+ * @param {string} serviceReviewId
34525
+ * @param {string} mediaId
34526
+ * @param {*} [options] Override http request option.
34527
+ * @throws {RequiredError}
34528
+ */
34529
+ apiV1ServicereviewServiceReviewIdMediasMediaIdDelete: async (serviceReviewId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34530
+ // verify required parameter 'serviceReviewId' is not null or undefined
34531
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdDelete', 'serviceReviewId', serviceReviewId)
34532
+ // verify required parameter 'mediaId' is not null or undefined
34533
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdDelete', 'mediaId', mediaId)
34534
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}`
34535
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
34536
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
34537
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34538
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34539
+ let baseOptions;
34540
+ if (configuration) {
34541
+ baseOptions = configuration.baseOptions;
34542
+ }
34543
+
34544
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
34545
+ const localVarHeaderParameter = {} as any;
34546
+ const localVarQueryParameter = {} as any;
34547
+
34548
+ // authentication oauth2 required
34549
+ // oauth required
34550
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34551
+
34552
+
34553
+
34554
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34556
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34557
+
34558
+ return {
34559
+ url: toPathString(localVarUrlObj),
34560
+ options: localVarRequestOptions,
34561
+ };
34562
+ },
34563
+ /**
34564
+ *
34565
+ * @summary Get ServiceReviewMedia.
34566
+ * @param {string} serviceReviewId
34567
+ * @param {string} mediaId
34568
+ * @param {*} [options] Override http request option.
34569
+ * @throws {RequiredError}
34570
+ */
34571
+ apiV1ServicereviewServiceReviewIdMediasMediaIdGet: async (serviceReviewId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34572
+ // verify required parameter 'serviceReviewId' is not null or undefined
34573
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdGet', 'serviceReviewId', serviceReviewId)
34574
+ // verify required parameter 'mediaId' is not null or undefined
34575
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdGet', 'mediaId', mediaId)
34576
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}`
34577
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
34578
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
34579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34581
+ let baseOptions;
34582
+ if (configuration) {
34583
+ baseOptions = configuration.baseOptions;
34584
+ }
34585
+
34586
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34587
+ const localVarHeaderParameter = {} as any;
34588
+ const localVarQueryParameter = {} as any;
34589
+
34590
+ // authentication oauth2 required
34591
+ // oauth required
34592
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34593
+
34594
+
34595
+
34596
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34598
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34599
+
34600
+ return {
34601
+ url: toPathString(localVarUrlObj),
34602
+ options: localVarRequestOptions,
34603
+ };
34604
+ },
34605
+ /**
34606
+ *
34607
+ * @summary Update ServiceReviewMedia.
34608
+ * @param {string} serviceReviewId
34609
+ * @param {string} mediaId
34610
+ * @param {UpdateMediaCommand} [updateMediaCommand]
34611
+ * @param {*} [options] Override http request option.
34612
+ * @throws {RequiredError}
34613
+ */
34614
+ apiV1ServicereviewServiceReviewIdMediasMediaIdPut: async (serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34615
+ // verify required parameter 'serviceReviewId' is not null or undefined
34616
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdPut', 'serviceReviewId', serviceReviewId)
34617
+ // verify required parameter 'mediaId' is not null or undefined
34618
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdPut', 'mediaId', mediaId)
34619
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}`
34620
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
34621
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
34622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34623
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34624
+ let baseOptions;
34625
+ if (configuration) {
34626
+ baseOptions = configuration.baseOptions;
34627
+ }
34628
+
34629
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
34630
+ const localVarHeaderParameter = {} as any;
34631
+ const localVarQueryParameter = {} as any;
34632
+
34633
+ // authentication oauth2 required
34634
+ // oauth required
34635
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34636
+
34637
+
34638
+
34639
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34640
+
34641
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34642
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34643
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34644
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
34645
+
34646
+ return {
34647
+ url: toPathString(localVarUrlObj),
34648
+ options: localVarRequestOptions,
34649
+ };
34650
+ },
34651
+ /**
34652
+ *
34653
+ * @summary Create ServiceReviewMedia.
34654
+ * @param {string} serviceReviewId
34655
+ * @param {CreateMediaCommand} [createMediaCommand]
34656
+ * @param {*} [options] Override http request option.
34657
+ * @throws {RequiredError}
34658
+ */
34659
+ apiV1ServicereviewServiceReviewIdMediasPost: async (serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34660
+ // verify required parameter 'serviceReviewId' is not null or undefined
34661
+ assertParamExists('apiV1ServicereviewServiceReviewIdMediasPost', 'serviceReviewId', serviceReviewId)
34662
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}/medias`
34663
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34664
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34665
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34666
+ let baseOptions;
34667
+ if (configuration) {
34668
+ baseOptions = configuration.baseOptions;
34669
+ }
34670
+
34671
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34672
+ const localVarHeaderParameter = {} as any;
34673
+ const localVarQueryParameter = {} as any;
34674
+
34675
+ // authentication oauth2 required
34676
+ // oauth required
34677
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34678
+
34679
+
34680
+
34681
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34682
+
34683
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34685
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34686
+ localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
34687
+
34688
+ return {
34689
+ url: toPathString(localVarUrlObj),
34690
+ options: localVarRequestOptions,
34691
+ };
34692
+ },
34693
+ /**
34694
+ *
34695
+ * @summary Update ServiceReview.
34696
+ * @param {string} serviceReviewId
34697
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
34698
+ * @param {*} [options] Override http request option.
34699
+ * @throws {RequiredError}
34700
+ */
34701
+ apiV1ServicereviewServiceReviewIdPut: async (serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34702
+ // verify required parameter 'serviceReviewId' is not null or undefined
34703
+ assertParamExists('apiV1ServicereviewServiceReviewIdPut', 'serviceReviewId', serviceReviewId)
34704
+ const localVarPath = `/api/v1/servicereview/{serviceReviewId}`
34705
+ .replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
34706
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34707
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34708
+ let baseOptions;
34709
+ if (configuration) {
34710
+ baseOptions = configuration.baseOptions;
34711
+ }
34712
+
34713
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
34714
+ const localVarHeaderParameter = {} as any;
34715
+ const localVarQueryParameter = {} as any;
34716
+
34717
+ // authentication oauth2 required
34718
+ // oauth required
34719
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34720
+
34721
+
34722
+
34723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34724
+
34725
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34726
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34727
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34728
+ localVarRequestOptions.data = serializeDataIfNeeded(updateServiceReviewCommand, localVarRequestOptions, configuration)
34729
+
34730
+ return {
34731
+ url: toPathString(localVarUrlObj),
34732
+ options: localVarRequestOptions,
34733
+ };
34734
+ },
34735
+ }
34736
+ };
34737
+
34738
+ /**
34739
+ * ServiceReviewApi - functional programming interface
34740
+ * @export
34741
+ */
34742
+ export const ServiceReviewApiFp = function(configuration?: Configuration) {
34743
+ const localVarAxiosParamCreator = ServiceReviewApiAxiosParamCreator(configuration)
34744
+ return {
34745
+ /**
34746
+ *
34747
+ * @summary Get all ServiceReviews.
34748
+ * @param {string} [serviceId]
34749
+ * @param {string} [serviceName]
34750
+ * @param {string} [patientId]
34751
+ * @param {string} [patientName]
34752
+ * @param {boolean} [recommended]
34753
+ * @param {number} [rate]
34754
+ * @param {number} [page]
34755
+ * @param {number} [limit]
34756
+ * @param {Date} [lastRetrieved]
34757
+ * @param {*} [options] Override http request option.
34758
+ * @throws {RequiredError}
34759
+ */
34760
+ async apiV1ServicereviewGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewsModel>> {
34761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options);
34762
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34763
+ },
34764
+ /**
34765
+ *
34766
+ * @summary Create a ServiceReview.
34767
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
34768
+ * @param {*} [options] Override http request option.
34769
+ * @throws {RequiredError}
34770
+ */
34771
+ async apiV1ServicereviewPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
34772
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewPost(createServiceReviewCommand, options);
34773
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34774
+ },
34775
+ /**
34776
+ *
34777
+ * @summary Delete ServiceReview.
34778
+ * @param {string} serviceReviewId
34779
+ * @param {*} [options] Override http request option.
34780
+ * @throws {RequiredError}
34781
+ */
34782
+ async apiV1ServicereviewServiceReviewIdDelete(serviceReviewId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
34783
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options);
34784
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34785
+ },
34786
+ /**
34787
+ *
34788
+ * @param {string} serviceReviewId
34789
+ * @param {*} [options] Override http request option.
34790
+ * @throws {RequiredError}
34791
+ */
34792
+ async apiV1ServicereviewServiceReviewIdGet(serviceReviewId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
34793
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options);
34794
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34795
+ },
34796
+ /**
34797
+ *
34798
+ * @summary Get all ServiceReviewMedias.
34799
+ * @param {string} serviceReviewId
34800
+ * @param {string} [id]
34801
+ * @param {MediaType} [mediaType]
34802
+ * @param {number} [page]
34803
+ * @param {number} [limit]
34804
+ * @param {Date} [lastRetrieved]
34805
+ * @param {*} [options] Override http request option.
34806
+ * @throws {RequiredError}
34807
+ */
34808
+ async apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
34809
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options);
34810
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34811
+ },
34812
+ /**
34813
+ *
34814
+ * @summary Delete ServiceReviewMedia
34815
+ * @param {string} serviceReviewId
34816
+ * @param {string} mediaId
34817
+ * @param {*} [options] Override http request option.
34818
+ * @throws {RequiredError}
34819
+ */
34820
+ async apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
34821
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options);
34822
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34823
+ },
34824
+ /**
34825
+ *
34826
+ * @summary Get ServiceReviewMedia.
34827
+ * @param {string} serviceReviewId
34828
+ * @param {string} mediaId
34829
+ * @param {*} [options] Override http request option.
34830
+ * @throws {RequiredError}
34831
+ */
34832
+ async apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34833
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options);
34834
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34835
+ },
34836
+ /**
34837
+ *
34838
+ * @summary Update ServiceReviewMedia.
34839
+ * @param {string} serviceReviewId
34840
+ * @param {string} mediaId
34841
+ * @param {UpdateMediaCommand} [updateMediaCommand]
34842
+ * @param {*} [options] Override http request option.
34843
+ * @throws {RequiredError}
34844
+ */
34845
+ async apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34846
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options);
34847
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34848
+ },
34849
+ /**
34850
+ *
34851
+ * @summary Create ServiceReviewMedia.
34852
+ * @param {string} serviceReviewId
34853
+ * @param {CreateMediaCommand} [createMediaCommand]
34854
+ * @param {*} [options] Override http request option.
34855
+ * @throws {RequiredError}
34856
+ */
34857
+ async apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options);
34859
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34860
+ },
34861
+ /**
34862
+ *
34863
+ * @summary Update ServiceReview.
34864
+ * @param {string} serviceReviewId
34865
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
34866
+ * @param {*} [options] Override http request option.
34867
+ * @throws {RequiredError}
34868
+ */
34869
+ async apiV1ServicereviewServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
34870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options);
34871
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34872
+ },
34873
+ }
34874
+ };
34875
+
34876
+ /**
34877
+ * ServiceReviewApi - factory interface
34878
+ * @export
34879
+ */
34880
+ export const ServiceReviewApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
34881
+ const localVarFp = ServiceReviewApiFp(configuration)
34882
+ return {
34883
+ /**
34884
+ *
34885
+ * @summary Get all ServiceReviews.
34886
+ * @param {string} [serviceId]
34887
+ * @param {string} [serviceName]
34888
+ * @param {string} [patientId]
34889
+ * @param {string} [patientName]
34890
+ * @param {boolean} [recommended]
34891
+ * @param {number} [rate]
34892
+ * @param {number} [page]
34893
+ * @param {number} [limit]
34894
+ * @param {Date} [lastRetrieved]
34895
+ * @param {*} [options] Override http request option.
34896
+ * @throws {RequiredError}
34897
+ */
34898
+ apiV1ServicereviewGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceReviewsModel> {
34899
+ return localVarFp.apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
34900
+ },
34901
+ /**
34902
+ *
34903
+ * @summary Create a ServiceReview.
34904
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
34905
+ * @param {*} [options] Override http request option.
34906
+ * @throws {RequiredError}
34907
+ */
34908
+ apiV1ServicereviewPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: any): AxiosPromise<ServiceReviewModel> {
34909
+ return localVarFp.apiV1ServicereviewPost(createServiceReviewCommand, options).then((request) => request(axios, basePath));
34910
+ },
34911
+ /**
34912
+ *
34913
+ * @summary Delete ServiceReview.
34914
+ * @param {string} serviceReviewId
34915
+ * @param {*} [options] Override http request option.
34916
+ * @throws {RequiredError}
34917
+ */
34918
+ apiV1ServicereviewServiceReviewIdDelete(serviceReviewId: string, options?: any): AxiosPromise<boolean> {
34919
+ return localVarFp.apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options).then((request) => request(axios, basePath));
34920
+ },
34921
+ /**
34922
+ *
34923
+ * @param {string} serviceReviewId
34924
+ * @param {*} [options] Override http request option.
34925
+ * @throws {RequiredError}
34926
+ */
34927
+ apiV1ServicereviewServiceReviewIdGet(serviceReviewId: string, options?: any): AxiosPromise<ServiceReviewModel> {
34928
+ return localVarFp.apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options).then((request) => request(axios, basePath));
34929
+ },
34930
+ /**
34931
+ *
34932
+ * @summary Get all ServiceReviewMedias.
34933
+ * @param {string} serviceReviewId
34934
+ * @param {string} [id]
34935
+ * @param {MediaType} [mediaType]
34936
+ * @param {number} [page]
34937
+ * @param {number} [limit]
34938
+ * @param {Date} [lastRetrieved]
34939
+ * @param {*} [options] Override http request option.
34940
+ * @throws {RequiredError}
34941
+ */
34942
+ apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
34943
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
34944
+ },
34945
+ /**
34946
+ *
34947
+ * @summary Delete ServiceReviewMedia
34948
+ * @param {string} serviceReviewId
34949
+ * @param {string} mediaId
34950
+ * @param {*} [options] Override http request option.
34951
+ * @throws {RequiredError}
34952
+ */
34953
+ apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
34954
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then((request) => request(axios, basePath));
34955
+ },
34956
+ /**
34957
+ *
34958
+ * @summary Get ServiceReviewMedia.
34959
+ * @param {string} serviceReviewId
34960
+ * @param {string} mediaId
34961
+ * @param {*} [options] Override http request option.
34962
+ * @throws {RequiredError}
34963
+ */
34964
+ apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
34965
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then((request) => request(axios, basePath));
34966
+ },
34967
+ /**
34968
+ *
34969
+ * @summary Update ServiceReviewMedia.
34970
+ * @param {string} serviceReviewId
34971
+ * @param {string} mediaId
34972
+ * @param {UpdateMediaCommand} [updateMediaCommand]
34973
+ * @param {*} [options] Override http request option.
34974
+ * @throws {RequiredError}
34975
+ */
34976
+ apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
34977
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
34978
+ },
34979
+ /**
34980
+ *
34981
+ * @summary Create ServiceReviewMedia.
34982
+ * @param {string} serviceReviewId
34983
+ * @param {CreateMediaCommand} [createMediaCommand]
34984
+ * @param {*} [options] Override http request option.
34985
+ * @throws {RequiredError}
34986
+ */
34987
+ apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
34988
+ return localVarFp.apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then((request) => request(axios, basePath));
34989
+ },
34990
+ /**
34991
+ *
34992
+ * @summary Update ServiceReview.
34993
+ * @param {string} serviceReviewId
34994
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
34995
+ * @param {*} [options] Override http request option.
34996
+ * @throws {RequiredError}
34997
+ */
34998
+ apiV1ServicereviewServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: any): AxiosPromise<ServiceReviewModel> {
34999
+ return localVarFp.apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then((request) => request(axios, basePath));
35000
+ },
35001
+ };
35002
+ };
35003
+
35004
+ /**
35005
+ * ServiceReviewApi - object-oriented interface
35006
+ * @export
35007
+ * @class ServiceReviewApi
35008
+ * @extends {BaseAPI}
35009
+ */
35010
+ export class ServiceReviewApi extends BaseAPI {
35011
+ /**
35012
+ *
35013
+ * @summary Get all ServiceReviews.
35014
+ * @param {string} [serviceId]
35015
+ * @param {string} [serviceName]
35016
+ * @param {string} [patientId]
35017
+ * @param {string} [patientName]
35018
+ * @param {boolean} [recommended]
35019
+ * @param {number} [rate]
35020
+ * @param {number} [page]
35021
+ * @param {number} [limit]
35022
+ * @param {Date} [lastRetrieved]
35023
+ * @param {*} [options] Override http request option.
35024
+ * @throws {RequiredError}
35025
+ * @memberof ServiceReviewApi
35026
+ */
35027
+ public apiV1ServicereviewGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
35028
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
35029
+ }
35030
+
35031
+ /**
35032
+ *
35033
+ * @summary Create a ServiceReview.
35034
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
35035
+ * @param {*} [options] Override http request option.
35036
+ * @throws {RequiredError}
35037
+ * @memberof ServiceReviewApi
35038
+ */
35039
+ public apiV1ServicereviewPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: AxiosRequestConfig) {
35040
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewPost(createServiceReviewCommand, options).then((request) => request(this.axios, this.basePath));
35041
+ }
35042
+
35043
+ /**
35044
+ *
35045
+ * @summary Delete ServiceReview.
35046
+ * @param {string} serviceReviewId
35047
+ * @param {*} [options] Override http request option.
35048
+ * @throws {RequiredError}
35049
+ * @memberof ServiceReviewApi
35050
+ */
35051
+ public apiV1ServicereviewServiceReviewIdDelete(serviceReviewId: string, options?: AxiosRequestConfig) {
35052
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options).then((request) => request(this.axios, this.basePath));
35053
+ }
35054
+
35055
+ /**
35056
+ *
35057
+ * @param {string} serviceReviewId
35058
+ * @param {*} [options] Override http request option.
35059
+ * @throws {RequiredError}
35060
+ * @memberof ServiceReviewApi
35061
+ */
35062
+ public apiV1ServicereviewServiceReviewIdGet(serviceReviewId: string, options?: AxiosRequestConfig) {
35063
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options).then((request) => request(this.axios, this.basePath));
35064
+ }
35065
+
35066
+ /**
35067
+ *
35068
+ * @summary Get all ServiceReviewMedias.
35069
+ * @param {string} serviceReviewId
35070
+ * @param {string} [id]
35071
+ * @param {MediaType} [mediaType]
35072
+ * @param {number} [page]
35073
+ * @param {number} [limit]
35074
+ * @param {Date} [lastRetrieved]
35075
+ * @param {*} [options] Override http request option.
35076
+ * @throws {RequiredError}
35077
+ * @memberof ServiceReviewApi
35078
+ */
35079
+ public apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
35080
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
35081
+ }
35082
+
35083
+ /**
35084
+ *
35085
+ * @summary Delete ServiceReviewMedia
35086
+ * @param {string} serviceReviewId
35087
+ * @param {string} mediaId
35088
+ * @param {*} [options] Override http request option.
35089
+ * @throws {RequiredError}
35090
+ * @memberof ServiceReviewApi
35091
+ */
35092
+ public apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig) {
35093
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then((request) => request(this.axios, this.basePath));
35094
+ }
35095
+
35096
+ /**
35097
+ *
35098
+ * @summary Get ServiceReviewMedia.
35099
+ * @param {string} serviceReviewId
35100
+ * @param {string} mediaId
35101
+ * @param {*} [options] Override http request option.
35102
+ * @throws {RequiredError}
35103
+ * @memberof ServiceReviewApi
35104
+ */
35105
+ public apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig) {
35106
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then((request) => request(this.axios, this.basePath));
35107
+ }
35108
+
35109
+ /**
35110
+ *
35111
+ * @summary Update ServiceReviewMedia.
35112
+ * @param {string} serviceReviewId
35113
+ * @param {string} mediaId
35114
+ * @param {UpdateMediaCommand} [updateMediaCommand]
35115
+ * @param {*} [options] Override http request option.
35116
+ * @throws {RequiredError}
35117
+ * @memberof ServiceReviewApi
35118
+ */
35119
+ public apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
35120
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
35121
+ }
35122
+
35123
+ /**
35124
+ *
35125
+ * @summary Create ServiceReviewMedia.
35126
+ * @param {string} serviceReviewId
35127
+ * @param {CreateMediaCommand} [createMediaCommand]
35128
+ * @param {*} [options] Override http request option.
35129
+ * @throws {RequiredError}
35130
+ * @memberof ServiceReviewApi
35131
+ */
35132
+ public apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
35133
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
35134
+ }
35135
+
35136
+ /**
35137
+ *
35138
+ * @summary Update ServiceReview.
35139
+ * @param {string} serviceReviewId
35140
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
35141
+ * @param {*} [options] Override http request option.
35142
+ * @throws {RequiredError}
35143
+ * @memberof ServiceReviewApi
35144
+ */
35145
+ public apiV1ServicereviewServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: AxiosRequestConfig) {
35146
+ return ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then((request) => request(this.axios, this.basePath));
35147
+ }
35148
+ }
35149
+
35150
+
34050
35151
  /**
34051
35152
  * ServicesApi - axios parameter creator
34052
35153
  * @export