ch-api-client-typescript2 2.7.1 → 2.7.2
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/lib/api.d.ts +741 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1006 -1
- package/package.json +1 -1
- package/src/api.ts +1202 -0
package/src/api.ts
CHANGED
|
@@ -2767,6 +2767,43 @@ export interface CreateConsultationCommand {
|
|
|
2767
2767
|
*/
|
|
2768
2768
|
'timeZone'?: string | null;
|
|
2769
2769
|
}
|
|
2770
|
+
/**
|
|
2771
|
+
*
|
|
2772
|
+
* @export
|
|
2773
|
+
* @interface CreateMediaCommand
|
|
2774
|
+
*/
|
|
2775
|
+
export interface CreateMediaCommand {
|
|
2776
|
+
/**
|
|
2777
|
+
*
|
|
2778
|
+
* @type {MediaType}
|
|
2779
|
+
* @memberof CreateMediaCommand
|
|
2780
|
+
*/
|
|
2781
|
+
'mediaType'?: MediaType;
|
|
2782
|
+
/**
|
|
2783
|
+
*
|
|
2784
|
+
* @type {string}
|
|
2785
|
+
* @memberof CreateMediaCommand
|
|
2786
|
+
*/
|
|
2787
|
+
'url'?: string | null;
|
|
2788
|
+
/**
|
|
2789
|
+
*
|
|
2790
|
+
* @type {string}
|
|
2791
|
+
* @memberof CreateMediaCommand
|
|
2792
|
+
*/
|
|
2793
|
+
'thumbnailUrl'?: string | null;
|
|
2794
|
+
/**
|
|
2795
|
+
*
|
|
2796
|
+
* @type {string}
|
|
2797
|
+
* @memberof CreateMediaCommand
|
|
2798
|
+
*/
|
|
2799
|
+
'description'?: string | null;
|
|
2800
|
+
/**
|
|
2801
|
+
*
|
|
2802
|
+
* @type {number}
|
|
2803
|
+
* @memberof CreateMediaCommand
|
|
2804
|
+
*/
|
|
2805
|
+
'order'?: number;
|
|
2806
|
+
}
|
|
2770
2807
|
/**
|
|
2771
2808
|
*
|
|
2772
2809
|
* @export
|
|
@@ -2834,6 +2871,49 @@ export interface CreatePatientCommand {
|
|
|
2834
2871
|
*/
|
|
2835
2872
|
'timeZone'?: string | null;
|
|
2836
2873
|
}
|
|
2874
|
+
/**
|
|
2875
|
+
*
|
|
2876
|
+
* @export
|
|
2877
|
+
* @interface CreateServiceReviewCommand
|
|
2878
|
+
*/
|
|
2879
|
+
export interface CreateServiceReviewCommand {
|
|
2880
|
+
/**
|
|
2881
|
+
*
|
|
2882
|
+
* @type {string}
|
|
2883
|
+
* @memberof CreateServiceReviewCommand
|
|
2884
|
+
*/
|
|
2885
|
+
'serviceId'?: string;
|
|
2886
|
+
/**
|
|
2887
|
+
*
|
|
2888
|
+
* @type {string}
|
|
2889
|
+
* @memberof CreateServiceReviewCommand
|
|
2890
|
+
*/
|
|
2891
|
+
'patientId'?: string;
|
|
2892
|
+
/**
|
|
2893
|
+
*
|
|
2894
|
+
* @type {string}
|
|
2895
|
+
* @memberof CreateServiceReviewCommand
|
|
2896
|
+
*/
|
|
2897
|
+
'body'?: string | null;
|
|
2898
|
+
/**
|
|
2899
|
+
*
|
|
2900
|
+
* @type {boolean}
|
|
2901
|
+
* @memberof CreateServiceReviewCommand
|
|
2902
|
+
*/
|
|
2903
|
+
'recommended'?: boolean;
|
|
2904
|
+
/**
|
|
2905
|
+
*
|
|
2906
|
+
* @type {number}
|
|
2907
|
+
* @memberof CreateServiceReviewCommand
|
|
2908
|
+
*/
|
|
2909
|
+
'rate'?: number;
|
|
2910
|
+
/**
|
|
2911
|
+
*
|
|
2912
|
+
* @type {ReviewType}
|
|
2913
|
+
* @memberof CreateServiceReviewCommand
|
|
2914
|
+
*/
|
|
2915
|
+
'reviewType'?: ReviewType;
|
|
2916
|
+
}
|
|
2837
2917
|
/**
|
|
2838
2918
|
*
|
|
2839
2919
|
* @export
|
|
@@ -7043,6 +7123,18 @@ export enum RejectReason {
|
|
|
7043
7123
|
OtherReason = 'OtherReason'
|
|
7044
7124
|
}
|
|
7045
7125
|
|
|
7126
|
+
/**
|
|
7127
|
+
*
|
|
7128
|
+
* @export
|
|
7129
|
+
* @enum {string}
|
|
7130
|
+
*/
|
|
7131
|
+
|
|
7132
|
+
export enum ReviewType {
|
|
7133
|
+
Photo = 'Photo',
|
|
7134
|
+
SurgeryReview = 'SurgeryReview',
|
|
7135
|
+
RealStory = 'RealStory'
|
|
7136
|
+
}
|
|
7137
|
+
|
|
7046
7138
|
/**
|
|
7047
7139
|
*
|
|
7048
7140
|
* @export
|
|
@@ -7148,6 +7240,159 @@ export interface ServiceCategoryModel {
|
|
|
7148
7240
|
*/
|
|
7149
7241
|
'serviceCount'?: number;
|
|
7150
7242
|
}
|
|
7243
|
+
/**
|
|
7244
|
+
*
|
|
7245
|
+
* @export
|
|
7246
|
+
* @interface ServiceReviewItemModel
|
|
7247
|
+
*/
|
|
7248
|
+
export interface ServiceReviewItemModel {
|
|
7249
|
+
/**
|
|
7250
|
+
*
|
|
7251
|
+
* @type {string}
|
|
7252
|
+
* @memberof ServiceReviewItemModel
|
|
7253
|
+
*/
|
|
7254
|
+
'id'?: string;
|
|
7255
|
+
/**
|
|
7256
|
+
*
|
|
7257
|
+
* @type {string}
|
|
7258
|
+
* @memberof ServiceReviewItemModel
|
|
7259
|
+
*/
|
|
7260
|
+
'serviceId'?: string;
|
|
7261
|
+
/**
|
|
7262
|
+
*
|
|
7263
|
+
* @type {string}
|
|
7264
|
+
* @memberof ServiceReviewItemModel
|
|
7265
|
+
*/
|
|
7266
|
+
'serviceName'?: string | null;
|
|
7267
|
+
/**
|
|
7268
|
+
*
|
|
7269
|
+
* @type {string}
|
|
7270
|
+
* @memberof ServiceReviewItemModel
|
|
7271
|
+
*/
|
|
7272
|
+
'patientId'?: string | null;
|
|
7273
|
+
/**
|
|
7274
|
+
*
|
|
7275
|
+
* @type {string}
|
|
7276
|
+
* @memberof ServiceReviewItemModel
|
|
7277
|
+
*/
|
|
7278
|
+
'patientName'?: string | null;
|
|
7279
|
+
/**
|
|
7280
|
+
*
|
|
7281
|
+
* @type {string}
|
|
7282
|
+
* @memberof ServiceReviewItemModel
|
|
7283
|
+
*/
|
|
7284
|
+
'body'?: string | null;
|
|
7285
|
+
/**
|
|
7286
|
+
*
|
|
7287
|
+
* @type {boolean}
|
|
7288
|
+
* @memberof ServiceReviewItemModel
|
|
7289
|
+
*/
|
|
7290
|
+
'recommended'?: boolean;
|
|
7291
|
+
/**
|
|
7292
|
+
*
|
|
7293
|
+
* @type {number}
|
|
7294
|
+
* @memberof ServiceReviewItemModel
|
|
7295
|
+
*/
|
|
7296
|
+
'rate'?: number;
|
|
7297
|
+
/**
|
|
7298
|
+
*
|
|
7299
|
+
* @type {ReviewType}
|
|
7300
|
+
* @memberof ServiceReviewItemModel
|
|
7301
|
+
*/
|
|
7302
|
+
'reviewType'?: ReviewType;
|
|
7303
|
+
/**
|
|
7304
|
+
*
|
|
7305
|
+
* @type {Array<MediaModel>}
|
|
7306
|
+
* @memberof ServiceReviewItemModel
|
|
7307
|
+
*/
|
|
7308
|
+
'medias'?: Array<MediaModel> | null;
|
|
7309
|
+
}
|
|
7310
|
+
/**
|
|
7311
|
+
*
|
|
7312
|
+
* @export
|
|
7313
|
+
* @interface ServiceReviewModel
|
|
7314
|
+
*/
|
|
7315
|
+
export interface ServiceReviewModel {
|
|
7316
|
+
/**
|
|
7317
|
+
*
|
|
7318
|
+
* @type {string}
|
|
7319
|
+
* @memberof ServiceReviewModel
|
|
7320
|
+
*/
|
|
7321
|
+
'id'?: string;
|
|
7322
|
+
/**
|
|
7323
|
+
*
|
|
7324
|
+
* @type {string}
|
|
7325
|
+
* @memberof ServiceReviewModel
|
|
7326
|
+
*/
|
|
7327
|
+
'serviceId'?: string;
|
|
7328
|
+
/**
|
|
7329
|
+
*
|
|
7330
|
+
* @type {string}
|
|
7331
|
+
* @memberof ServiceReviewModel
|
|
7332
|
+
*/
|
|
7333
|
+
'serviceName'?: string | null;
|
|
7334
|
+
/**
|
|
7335
|
+
*
|
|
7336
|
+
* @type {string}
|
|
7337
|
+
* @memberof ServiceReviewModel
|
|
7338
|
+
*/
|
|
7339
|
+
'patientId'?: string | null;
|
|
7340
|
+
/**
|
|
7341
|
+
*
|
|
7342
|
+
* @type {string}
|
|
7343
|
+
* @memberof ServiceReviewModel
|
|
7344
|
+
*/
|
|
7345
|
+
'patientName'?: string | null;
|
|
7346
|
+
/**
|
|
7347
|
+
*
|
|
7348
|
+
* @type {string}
|
|
7349
|
+
* @memberof ServiceReviewModel
|
|
7350
|
+
*/
|
|
7351
|
+
'body'?: string | null;
|
|
7352
|
+
/**
|
|
7353
|
+
*
|
|
7354
|
+
* @type {boolean}
|
|
7355
|
+
* @memberof ServiceReviewModel
|
|
7356
|
+
*/
|
|
7357
|
+
'recommended'?: boolean;
|
|
7358
|
+
/**
|
|
7359
|
+
*
|
|
7360
|
+
* @type {number}
|
|
7361
|
+
* @memberof ServiceReviewModel
|
|
7362
|
+
*/
|
|
7363
|
+
'rate'?: number;
|
|
7364
|
+
/**
|
|
7365
|
+
*
|
|
7366
|
+
* @type {ReviewType}
|
|
7367
|
+
* @memberof ServiceReviewModel
|
|
7368
|
+
*/
|
|
7369
|
+
'reviewType'?: ReviewType;
|
|
7370
|
+
/**
|
|
7371
|
+
*
|
|
7372
|
+
* @type {Array<MediaModel>}
|
|
7373
|
+
* @memberof ServiceReviewModel
|
|
7374
|
+
*/
|
|
7375
|
+
'medias'?: Array<MediaModel> | null;
|
|
7376
|
+
}
|
|
7377
|
+
/**
|
|
7378
|
+
*
|
|
7379
|
+
* @export
|
|
7380
|
+
* @interface ServiceReviewsModel
|
|
7381
|
+
*/
|
|
7382
|
+
export interface ServiceReviewsModel {
|
|
7383
|
+
/**
|
|
7384
|
+
*
|
|
7385
|
+
* @type {Array<ServiceReviewItemModel>}
|
|
7386
|
+
* @memberof ServiceReviewsModel
|
|
7387
|
+
*/
|
|
7388
|
+
'items'?: Array<ServiceReviewItemModel> | null;
|
|
7389
|
+
/**
|
|
7390
|
+
*
|
|
7391
|
+
* @type {PagedListMetaData}
|
|
7392
|
+
* @memberof ServiceReviewsModel
|
|
7393
|
+
*/
|
|
7394
|
+
'metaData'?: PagedListMetaData;
|
|
7395
|
+
}
|
|
7151
7396
|
/**
|
|
7152
7397
|
*
|
|
7153
7398
|
* @export
|
|
@@ -7921,6 +8166,43 @@ export interface UpdateConsultationCommand {
|
|
|
7921
8166
|
*/
|
|
7922
8167
|
'timeZone'?: string | null;
|
|
7923
8168
|
}
|
|
8169
|
+
/**
|
|
8170
|
+
*
|
|
8171
|
+
* @export
|
|
8172
|
+
* @interface UpdateMediaCommand
|
|
8173
|
+
*/
|
|
8174
|
+
export interface UpdateMediaCommand {
|
|
8175
|
+
/**
|
|
8176
|
+
*
|
|
8177
|
+
* @type {MediaType}
|
|
8178
|
+
* @memberof UpdateMediaCommand
|
|
8179
|
+
*/
|
|
8180
|
+
'mediaType'?: MediaType;
|
|
8181
|
+
/**
|
|
8182
|
+
*
|
|
8183
|
+
* @type {string}
|
|
8184
|
+
* @memberof UpdateMediaCommand
|
|
8185
|
+
*/
|
|
8186
|
+
'url'?: string | null;
|
|
8187
|
+
/**
|
|
8188
|
+
*
|
|
8189
|
+
* @type {string}
|
|
8190
|
+
* @memberof UpdateMediaCommand
|
|
8191
|
+
*/
|
|
8192
|
+
'thumbnailUrl'?: string | null;
|
|
8193
|
+
/**
|
|
8194
|
+
*
|
|
8195
|
+
* @type {string}
|
|
8196
|
+
* @memberof UpdateMediaCommand
|
|
8197
|
+
*/
|
|
8198
|
+
'description'?: string | null;
|
|
8199
|
+
/**
|
|
8200
|
+
*
|
|
8201
|
+
* @type {number}
|
|
8202
|
+
* @memberof UpdateMediaCommand
|
|
8203
|
+
*/
|
|
8204
|
+
'order'?: number;
|
|
8205
|
+
}
|
|
7924
8206
|
/**
|
|
7925
8207
|
*
|
|
7926
8208
|
* @export
|
|
@@ -8049,6 +8331,31 @@ export interface UpdateProfileCommand {
|
|
|
8049
8331
|
*/
|
|
8050
8332
|
'locations'?: Array<UserLocationModel> | null;
|
|
8051
8333
|
}
|
|
8334
|
+
/**
|
|
8335
|
+
*
|
|
8336
|
+
* @export
|
|
8337
|
+
* @interface UpdateServiceReviewCommand
|
|
8338
|
+
*/
|
|
8339
|
+
export interface UpdateServiceReviewCommand {
|
|
8340
|
+
/**
|
|
8341
|
+
*
|
|
8342
|
+
* @type {string}
|
|
8343
|
+
* @memberof UpdateServiceReviewCommand
|
|
8344
|
+
*/
|
|
8345
|
+
'body'?: string | null;
|
|
8346
|
+
/**
|
|
8347
|
+
*
|
|
8348
|
+
* @type {boolean}
|
|
8349
|
+
* @memberof UpdateServiceReviewCommand
|
|
8350
|
+
*/
|
|
8351
|
+
'recommended'?: boolean | null;
|
|
8352
|
+
/**
|
|
8353
|
+
*
|
|
8354
|
+
* @type {number}
|
|
8355
|
+
* @memberof UpdateServiceReviewCommand
|
|
8356
|
+
*/
|
|
8357
|
+
'rate'?: number | null;
|
|
8358
|
+
}
|
|
8052
8359
|
/**
|
|
8053
8360
|
*
|
|
8054
8361
|
* @export
|
|
@@ -21546,6 +21853,901 @@ export class SearchApi extends BaseAPI {
|
|
|
21546
21853
|
}
|
|
21547
21854
|
|
|
21548
21855
|
|
|
21856
|
+
/**
|
|
21857
|
+
* ServiceReviewsApi - axios parameter creator
|
|
21858
|
+
* @export
|
|
21859
|
+
*/
|
|
21860
|
+
export const ServiceReviewsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
21861
|
+
return {
|
|
21862
|
+
/**
|
|
21863
|
+
*
|
|
21864
|
+
* @summary Get all ServiceReviews.
|
|
21865
|
+
* @param {string} [hospitalId]
|
|
21866
|
+
* @param {string} [serviceId]
|
|
21867
|
+
* @param {string} [serviceName]
|
|
21868
|
+
* @param {string} [patientId]
|
|
21869
|
+
* @param {string} [patientName]
|
|
21870
|
+
* @param {boolean} [recommended]
|
|
21871
|
+
* @param {number} [rate]
|
|
21872
|
+
* @param {ReviewType} [reviewType]
|
|
21873
|
+
* @param {number} [page]
|
|
21874
|
+
* @param {number} [limit]
|
|
21875
|
+
* @param {Date} [lastRetrieved]
|
|
21876
|
+
* @param {*} [options] Override http request option.
|
|
21877
|
+
* @throws {RequiredError}
|
|
21878
|
+
*/
|
|
21879
|
+
apiV2ServicereviewsGet: async (hospitalId?: string, serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21880
|
+
const localVarPath = `/api/v2/servicereviews`;
|
|
21881
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21882
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21883
|
+
let baseOptions;
|
|
21884
|
+
if (configuration) {
|
|
21885
|
+
baseOptions = configuration.baseOptions;
|
|
21886
|
+
}
|
|
21887
|
+
|
|
21888
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
21889
|
+
const localVarHeaderParameter = {} as any;
|
|
21890
|
+
const localVarQueryParameter = {} as any;
|
|
21891
|
+
|
|
21892
|
+
if (hospitalId !== undefined) {
|
|
21893
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
21894
|
+
}
|
|
21895
|
+
|
|
21896
|
+
if (serviceId !== undefined) {
|
|
21897
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
21898
|
+
}
|
|
21899
|
+
|
|
21900
|
+
if (serviceName !== undefined) {
|
|
21901
|
+
localVarQueryParameter['ServiceName'] = serviceName;
|
|
21902
|
+
}
|
|
21903
|
+
|
|
21904
|
+
if (patientId !== undefined) {
|
|
21905
|
+
localVarQueryParameter['PatientId'] = patientId;
|
|
21906
|
+
}
|
|
21907
|
+
|
|
21908
|
+
if (patientName !== undefined) {
|
|
21909
|
+
localVarQueryParameter['PatientName'] = patientName;
|
|
21910
|
+
}
|
|
21911
|
+
|
|
21912
|
+
if (recommended !== undefined) {
|
|
21913
|
+
localVarQueryParameter['Recommended'] = recommended;
|
|
21914
|
+
}
|
|
21915
|
+
|
|
21916
|
+
if (rate !== undefined) {
|
|
21917
|
+
localVarQueryParameter['Rate'] = rate;
|
|
21918
|
+
}
|
|
21919
|
+
|
|
21920
|
+
if (reviewType !== undefined) {
|
|
21921
|
+
localVarQueryParameter['ReviewType'] = reviewType;
|
|
21922
|
+
}
|
|
21923
|
+
|
|
21924
|
+
if (page !== undefined) {
|
|
21925
|
+
localVarQueryParameter['page'] = page;
|
|
21926
|
+
}
|
|
21927
|
+
|
|
21928
|
+
if (limit !== undefined) {
|
|
21929
|
+
localVarQueryParameter['limit'] = limit;
|
|
21930
|
+
}
|
|
21931
|
+
|
|
21932
|
+
if (lastRetrieved !== undefined) {
|
|
21933
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
21934
|
+
(lastRetrieved as any).toISOString() :
|
|
21935
|
+
lastRetrieved;
|
|
21936
|
+
}
|
|
21937
|
+
|
|
21938
|
+
|
|
21939
|
+
|
|
21940
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21941
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21942
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21943
|
+
|
|
21944
|
+
return {
|
|
21945
|
+
url: toPathString(localVarUrlObj),
|
|
21946
|
+
options: localVarRequestOptions,
|
|
21947
|
+
};
|
|
21948
|
+
},
|
|
21949
|
+
/**
|
|
21950
|
+
*
|
|
21951
|
+
* @summary Create a ServiceReview.
|
|
21952
|
+
* @param {CreateServiceReviewCommand} [createServiceReviewCommand]
|
|
21953
|
+
* @param {*} [options] Override http request option.
|
|
21954
|
+
* @throws {RequiredError}
|
|
21955
|
+
*/
|
|
21956
|
+
apiV2ServicereviewsPost: async (createServiceReviewCommand?: CreateServiceReviewCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21957
|
+
const localVarPath = `/api/v2/servicereviews`;
|
|
21958
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21959
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21960
|
+
let baseOptions;
|
|
21961
|
+
if (configuration) {
|
|
21962
|
+
baseOptions = configuration.baseOptions;
|
|
21963
|
+
}
|
|
21964
|
+
|
|
21965
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21966
|
+
const localVarHeaderParameter = {} as any;
|
|
21967
|
+
const localVarQueryParameter = {} as any;
|
|
21968
|
+
|
|
21969
|
+
// authentication oauth2 required
|
|
21970
|
+
// oauth required
|
|
21971
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
21972
|
+
|
|
21973
|
+
|
|
21974
|
+
|
|
21975
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21976
|
+
|
|
21977
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21978
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21979
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21980
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createServiceReviewCommand, localVarRequestOptions, configuration)
|
|
21981
|
+
|
|
21982
|
+
return {
|
|
21983
|
+
url: toPathString(localVarUrlObj),
|
|
21984
|
+
options: localVarRequestOptions,
|
|
21985
|
+
};
|
|
21986
|
+
},
|
|
21987
|
+
/**
|
|
21988
|
+
*
|
|
21989
|
+
* @summary Delete ServiceReview.
|
|
21990
|
+
* @param {string} serviceReviewId
|
|
21991
|
+
* @param {*} [options] Override http request option.
|
|
21992
|
+
* @throws {RequiredError}
|
|
21993
|
+
*/
|
|
21994
|
+
apiV2ServicereviewsServiceReviewIdDelete: async (serviceReviewId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21995
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
21996
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdDelete', 'serviceReviewId', serviceReviewId)
|
|
21997
|
+
const localVarPath = `/api/v2/servicereviews/{serviceReviewId}`
|
|
21998
|
+
.replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
|
|
21999
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22000
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22001
|
+
let baseOptions;
|
|
22002
|
+
if (configuration) {
|
|
22003
|
+
baseOptions = configuration.baseOptions;
|
|
22004
|
+
}
|
|
22005
|
+
|
|
22006
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
22007
|
+
const localVarHeaderParameter = {} as any;
|
|
22008
|
+
const localVarQueryParameter = {} as any;
|
|
22009
|
+
|
|
22010
|
+
// authentication oauth2 required
|
|
22011
|
+
// oauth required
|
|
22012
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
22013
|
+
|
|
22014
|
+
|
|
22015
|
+
|
|
22016
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22017
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22018
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22019
|
+
|
|
22020
|
+
return {
|
|
22021
|
+
url: toPathString(localVarUrlObj),
|
|
22022
|
+
options: localVarRequestOptions,
|
|
22023
|
+
};
|
|
22024
|
+
},
|
|
22025
|
+
/**
|
|
22026
|
+
*
|
|
22027
|
+
* @param {string} serviceReviewId
|
|
22028
|
+
* @param {*} [options] Override http request option.
|
|
22029
|
+
* @throws {RequiredError}
|
|
22030
|
+
*/
|
|
22031
|
+
apiV2ServicereviewsServiceReviewIdGet: async (serviceReviewId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22032
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
22033
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdGet', 'serviceReviewId', serviceReviewId)
|
|
22034
|
+
const localVarPath = `/api/v2/servicereviews/{serviceReviewId}`
|
|
22035
|
+
.replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
|
|
22036
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22037
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22038
|
+
let baseOptions;
|
|
22039
|
+
if (configuration) {
|
|
22040
|
+
baseOptions = configuration.baseOptions;
|
|
22041
|
+
}
|
|
22042
|
+
|
|
22043
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
22044
|
+
const localVarHeaderParameter = {} as any;
|
|
22045
|
+
const localVarQueryParameter = {} as any;
|
|
22046
|
+
|
|
22047
|
+
|
|
22048
|
+
|
|
22049
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22050
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22051
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22052
|
+
|
|
22053
|
+
return {
|
|
22054
|
+
url: toPathString(localVarUrlObj),
|
|
22055
|
+
options: localVarRequestOptions,
|
|
22056
|
+
};
|
|
22057
|
+
},
|
|
22058
|
+
/**
|
|
22059
|
+
*
|
|
22060
|
+
* @summary Get all ServiceReviewMedias.
|
|
22061
|
+
* @param {string} serviceReviewId
|
|
22062
|
+
* @param {string} [id]
|
|
22063
|
+
* @param {MediaType} [mediaType]
|
|
22064
|
+
* @param {number} [page]
|
|
22065
|
+
* @param {number} [limit]
|
|
22066
|
+
* @param {Date} [lastRetrieved]
|
|
22067
|
+
* @param {*} [options] Override http request option.
|
|
22068
|
+
* @throws {RequiredError}
|
|
22069
|
+
*/
|
|
22070
|
+
apiV2ServicereviewsServiceReviewIdMediasGet: async (serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22071
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
22072
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdMediasGet', 'serviceReviewId', serviceReviewId)
|
|
22073
|
+
const localVarPath = `/api/v2/servicereviews/{serviceReviewId}/medias`
|
|
22074
|
+
.replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
|
|
22075
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22076
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22077
|
+
let baseOptions;
|
|
22078
|
+
if (configuration) {
|
|
22079
|
+
baseOptions = configuration.baseOptions;
|
|
22080
|
+
}
|
|
22081
|
+
|
|
22082
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
22083
|
+
const localVarHeaderParameter = {} as any;
|
|
22084
|
+
const localVarQueryParameter = {} as any;
|
|
22085
|
+
|
|
22086
|
+
if (id !== undefined) {
|
|
22087
|
+
localVarQueryParameter['Id'] = id;
|
|
22088
|
+
}
|
|
22089
|
+
|
|
22090
|
+
if (mediaType !== undefined) {
|
|
22091
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
22092
|
+
}
|
|
22093
|
+
|
|
22094
|
+
if (page !== undefined) {
|
|
22095
|
+
localVarQueryParameter['page'] = page;
|
|
22096
|
+
}
|
|
22097
|
+
|
|
22098
|
+
if (limit !== undefined) {
|
|
22099
|
+
localVarQueryParameter['limit'] = limit;
|
|
22100
|
+
}
|
|
22101
|
+
|
|
22102
|
+
if (lastRetrieved !== undefined) {
|
|
22103
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
22104
|
+
(lastRetrieved as any).toISOString() :
|
|
22105
|
+
lastRetrieved;
|
|
22106
|
+
}
|
|
22107
|
+
|
|
22108
|
+
|
|
22109
|
+
|
|
22110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22112
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22113
|
+
|
|
22114
|
+
return {
|
|
22115
|
+
url: toPathString(localVarUrlObj),
|
|
22116
|
+
options: localVarRequestOptions,
|
|
22117
|
+
};
|
|
22118
|
+
},
|
|
22119
|
+
/**
|
|
22120
|
+
*
|
|
22121
|
+
* @summary Delete ServiceReviewMedia
|
|
22122
|
+
* @param {string} serviceReviewId
|
|
22123
|
+
* @param {string} mediaId
|
|
22124
|
+
* @param {*} [options] Override http request option.
|
|
22125
|
+
* @throws {RequiredError}
|
|
22126
|
+
*/
|
|
22127
|
+
apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete: async (serviceReviewId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22128
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
22129
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete', 'serviceReviewId', serviceReviewId)
|
|
22130
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
22131
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete', 'mediaId', mediaId)
|
|
22132
|
+
const localVarPath = `/api/v2/servicereviews/{serviceReviewId}/medias/{mediaId}`
|
|
22133
|
+
.replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
|
|
22134
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
22135
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22136
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22137
|
+
let baseOptions;
|
|
22138
|
+
if (configuration) {
|
|
22139
|
+
baseOptions = configuration.baseOptions;
|
|
22140
|
+
}
|
|
22141
|
+
|
|
22142
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
22143
|
+
const localVarHeaderParameter = {} as any;
|
|
22144
|
+
const localVarQueryParameter = {} as any;
|
|
22145
|
+
|
|
22146
|
+
// authentication oauth2 required
|
|
22147
|
+
// oauth required
|
|
22148
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
22149
|
+
|
|
22150
|
+
|
|
22151
|
+
|
|
22152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22154
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22155
|
+
|
|
22156
|
+
return {
|
|
22157
|
+
url: toPathString(localVarUrlObj),
|
|
22158
|
+
options: localVarRequestOptions,
|
|
22159
|
+
};
|
|
22160
|
+
},
|
|
22161
|
+
/**
|
|
22162
|
+
*
|
|
22163
|
+
* @summary Get ServiceReviewMedia.
|
|
22164
|
+
* @param {string} serviceReviewId
|
|
22165
|
+
* @param {string} mediaId
|
|
22166
|
+
* @param {*} [options] Override http request option.
|
|
22167
|
+
* @throws {RequiredError}
|
|
22168
|
+
*/
|
|
22169
|
+
apiV2ServicereviewsServiceReviewIdMediasMediaIdGet: async (serviceReviewId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22170
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
22171
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdGet', 'serviceReviewId', serviceReviewId)
|
|
22172
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
22173
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdGet', 'mediaId', mediaId)
|
|
22174
|
+
const localVarPath = `/api/v2/servicereviews/{serviceReviewId}/medias/{mediaId}`
|
|
22175
|
+
.replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
|
|
22176
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
22177
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22178
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22179
|
+
let baseOptions;
|
|
22180
|
+
if (configuration) {
|
|
22181
|
+
baseOptions = configuration.baseOptions;
|
|
22182
|
+
}
|
|
22183
|
+
|
|
22184
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
22185
|
+
const localVarHeaderParameter = {} as any;
|
|
22186
|
+
const localVarQueryParameter = {} as any;
|
|
22187
|
+
|
|
22188
|
+
|
|
22189
|
+
|
|
22190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22192
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22193
|
+
|
|
22194
|
+
return {
|
|
22195
|
+
url: toPathString(localVarUrlObj),
|
|
22196
|
+
options: localVarRequestOptions,
|
|
22197
|
+
};
|
|
22198
|
+
},
|
|
22199
|
+
/**
|
|
22200
|
+
*
|
|
22201
|
+
* @summary Update ServiceReviewMedia.
|
|
22202
|
+
* @param {string} serviceReviewId
|
|
22203
|
+
* @param {string} mediaId
|
|
22204
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
22205
|
+
* @param {*} [options] Override http request option.
|
|
22206
|
+
* @throws {RequiredError}
|
|
22207
|
+
*/
|
|
22208
|
+
apiV2ServicereviewsServiceReviewIdMediasMediaIdPut: async (serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22209
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
22210
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdPut', 'serviceReviewId', serviceReviewId)
|
|
22211
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
22212
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdPut', 'mediaId', mediaId)
|
|
22213
|
+
const localVarPath = `/api/v2/servicereviews/{serviceReviewId}/medias/{mediaId}`
|
|
22214
|
+
.replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)))
|
|
22215
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
22216
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22217
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22218
|
+
let baseOptions;
|
|
22219
|
+
if (configuration) {
|
|
22220
|
+
baseOptions = configuration.baseOptions;
|
|
22221
|
+
}
|
|
22222
|
+
|
|
22223
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
22224
|
+
const localVarHeaderParameter = {} as any;
|
|
22225
|
+
const localVarQueryParameter = {} as any;
|
|
22226
|
+
|
|
22227
|
+
// authentication oauth2 required
|
|
22228
|
+
// oauth required
|
|
22229
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
22230
|
+
|
|
22231
|
+
|
|
22232
|
+
|
|
22233
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22234
|
+
|
|
22235
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22237
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22238
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
|
|
22239
|
+
|
|
22240
|
+
return {
|
|
22241
|
+
url: toPathString(localVarUrlObj),
|
|
22242
|
+
options: localVarRequestOptions,
|
|
22243
|
+
};
|
|
22244
|
+
},
|
|
22245
|
+
/**
|
|
22246
|
+
*
|
|
22247
|
+
* @summary Create ServiceReviewMedia.
|
|
22248
|
+
* @param {string} serviceReviewId
|
|
22249
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
22250
|
+
* @param {*} [options] Override http request option.
|
|
22251
|
+
* @throws {RequiredError}
|
|
22252
|
+
*/
|
|
22253
|
+
apiV2ServicereviewsServiceReviewIdMediasPost: async (serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22254
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
22255
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdMediasPost', 'serviceReviewId', serviceReviewId)
|
|
22256
|
+
const localVarPath = `/api/v2/servicereviews/{serviceReviewId}/medias`
|
|
22257
|
+
.replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
|
|
22258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22259
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22260
|
+
let baseOptions;
|
|
22261
|
+
if (configuration) {
|
|
22262
|
+
baseOptions = configuration.baseOptions;
|
|
22263
|
+
}
|
|
22264
|
+
|
|
22265
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
22266
|
+
const localVarHeaderParameter = {} as any;
|
|
22267
|
+
const localVarQueryParameter = {} as any;
|
|
22268
|
+
|
|
22269
|
+
// authentication oauth2 required
|
|
22270
|
+
// oauth required
|
|
22271
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
22272
|
+
|
|
22273
|
+
|
|
22274
|
+
|
|
22275
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22276
|
+
|
|
22277
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22279
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22280
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
|
|
22281
|
+
|
|
22282
|
+
return {
|
|
22283
|
+
url: toPathString(localVarUrlObj),
|
|
22284
|
+
options: localVarRequestOptions,
|
|
22285
|
+
};
|
|
22286
|
+
},
|
|
22287
|
+
/**
|
|
22288
|
+
*
|
|
22289
|
+
* @summary Update ServiceReview.
|
|
22290
|
+
* @param {string} serviceReviewId
|
|
22291
|
+
* @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
|
|
22292
|
+
* @param {*} [options] Override http request option.
|
|
22293
|
+
* @throws {RequiredError}
|
|
22294
|
+
*/
|
|
22295
|
+
apiV2ServicereviewsServiceReviewIdPut: async (serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22296
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
22297
|
+
assertParamExists('apiV2ServicereviewsServiceReviewIdPut', 'serviceReviewId', serviceReviewId)
|
|
22298
|
+
const localVarPath = `/api/v2/servicereviews/{serviceReviewId}`
|
|
22299
|
+
.replace(`{${"serviceReviewId"}}`, encodeURIComponent(String(serviceReviewId)));
|
|
22300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22301
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22302
|
+
let baseOptions;
|
|
22303
|
+
if (configuration) {
|
|
22304
|
+
baseOptions = configuration.baseOptions;
|
|
22305
|
+
}
|
|
22306
|
+
|
|
22307
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
22308
|
+
const localVarHeaderParameter = {} as any;
|
|
22309
|
+
const localVarQueryParameter = {} as any;
|
|
22310
|
+
|
|
22311
|
+
// authentication oauth2 required
|
|
22312
|
+
// oauth required
|
|
22313
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
22314
|
+
|
|
22315
|
+
|
|
22316
|
+
|
|
22317
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22318
|
+
|
|
22319
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22321
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22322
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateServiceReviewCommand, localVarRequestOptions, configuration)
|
|
22323
|
+
|
|
22324
|
+
return {
|
|
22325
|
+
url: toPathString(localVarUrlObj),
|
|
22326
|
+
options: localVarRequestOptions,
|
|
22327
|
+
};
|
|
22328
|
+
},
|
|
22329
|
+
}
|
|
22330
|
+
};
|
|
22331
|
+
|
|
22332
|
+
/**
|
|
22333
|
+
* ServiceReviewsApi - functional programming interface
|
|
22334
|
+
* @export
|
|
22335
|
+
*/
|
|
22336
|
+
export const ServiceReviewsApiFp = function(configuration?: Configuration) {
|
|
22337
|
+
const localVarAxiosParamCreator = ServiceReviewsApiAxiosParamCreator(configuration)
|
|
22338
|
+
return {
|
|
22339
|
+
/**
|
|
22340
|
+
*
|
|
22341
|
+
* @summary Get all ServiceReviews.
|
|
22342
|
+
* @param {string} [hospitalId]
|
|
22343
|
+
* @param {string} [serviceId]
|
|
22344
|
+
* @param {string} [serviceName]
|
|
22345
|
+
* @param {string} [patientId]
|
|
22346
|
+
* @param {string} [patientName]
|
|
22347
|
+
* @param {boolean} [recommended]
|
|
22348
|
+
* @param {number} [rate]
|
|
22349
|
+
* @param {ReviewType} [reviewType]
|
|
22350
|
+
* @param {number} [page]
|
|
22351
|
+
* @param {number} [limit]
|
|
22352
|
+
* @param {Date} [lastRetrieved]
|
|
22353
|
+
* @param {*} [options] Override http request option.
|
|
22354
|
+
* @throws {RequiredError}
|
|
22355
|
+
*/
|
|
22356
|
+
async apiV2ServicereviewsGet(hospitalId?: string, 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>> {
|
|
22357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsGet(hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options);
|
|
22358
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22359
|
+
},
|
|
22360
|
+
/**
|
|
22361
|
+
*
|
|
22362
|
+
* @summary Create a ServiceReview.
|
|
22363
|
+
* @param {CreateServiceReviewCommand} [createServiceReviewCommand]
|
|
22364
|
+
* @param {*} [options] Override http request option.
|
|
22365
|
+
* @throws {RequiredError}
|
|
22366
|
+
*/
|
|
22367
|
+
async apiV2ServicereviewsPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
|
|
22368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsPost(createServiceReviewCommand, options);
|
|
22369
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22370
|
+
},
|
|
22371
|
+
/**
|
|
22372
|
+
*
|
|
22373
|
+
* @summary Delete ServiceReview.
|
|
22374
|
+
* @param {string} serviceReviewId
|
|
22375
|
+
* @param {*} [options] Override http request option.
|
|
22376
|
+
* @throws {RequiredError}
|
|
22377
|
+
*/
|
|
22378
|
+
async apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
22379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId, options);
|
|
22380
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22381
|
+
},
|
|
22382
|
+
/**
|
|
22383
|
+
*
|
|
22384
|
+
* @param {string} serviceReviewId
|
|
22385
|
+
* @param {*} [options] Override http request option.
|
|
22386
|
+
* @throws {RequiredError}
|
|
22387
|
+
*/
|
|
22388
|
+
async apiV2ServicereviewsServiceReviewIdGet(serviceReviewId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
|
|
22389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdGet(serviceReviewId, options);
|
|
22390
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22391
|
+
},
|
|
22392
|
+
/**
|
|
22393
|
+
*
|
|
22394
|
+
* @summary Get all ServiceReviewMedias.
|
|
22395
|
+
* @param {string} serviceReviewId
|
|
22396
|
+
* @param {string} [id]
|
|
22397
|
+
* @param {MediaType} [mediaType]
|
|
22398
|
+
* @param {number} [page]
|
|
22399
|
+
* @param {number} [limit]
|
|
22400
|
+
* @param {Date} [lastRetrieved]
|
|
22401
|
+
* @param {*} [options] Override http request option.
|
|
22402
|
+
* @throws {RequiredError}
|
|
22403
|
+
*/
|
|
22404
|
+
async apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
|
|
22405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options);
|
|
22406
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22407
|
+
},
|
|
22408
|
+
/**
|
|
22409
|
+
*
|
|
22410
|
+
* @summary Delete ServiceReviewMedia
|
|
22411
|
+
* @param {string} serviceReviewId
|
|
22412
|
+
* @param {string} mediaId
|
|
22413
|
+
* @param {*} [options] Override http request option.
|
|
22414
|
+
* @throws {RequiredError}
|
|
22415
|
+
*/
|
|
22416
|
+
async apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
22417
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options);
|
|
22418
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22419
|
+
},
|
|
22420
|
+
/**
|
|
22421
|
+
*
|
|
22422
|
+
* @summary Get ServiceReviewMedia.
|
|
22423
|
+
* @param {string} serviceReviewId
|
|
22424
|
+
* @param {string} mediaId
|
|
22425
|
+
* @param {*} [options] Override http request option.
|
|
22426
|
+
* @throws {RequiredError}
|
|
22427
|
+
*/
|
|
22428
|
+
async apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
22429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options);
|
|
22430
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22431
|
+
},
|
|
22432
|
+
/**
|
|
22433
|
+
*
|
|
22434
|
+
* @summary Update ServiceReviewMedia.
|
|
22435
|
+
* @param {string} serviceReviewId
|
|
22436
|
+
* @param {string} mediaId
|
|
22437
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
22438
|
+
* @param {*} [options] Override http request option.
|
|
22439
|
+
* @throws {RequiredError}
|
|
22440
|
+
*/
|
|
22441
|
+
async apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
22442
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options);
|
|
22443
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22444
|
+
},
|
|
22445
|
+
/**
|
|
22446
|
+
*
|
|
22447
|
+
* @summary Create ServiceReviewMedia.
|
|
22448
|
+
* @param {string} serviceReviewId
|
|
22449
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
22450
|
+
* @param {*} [options] Override http request option.
|
|
22451
|
+
* @throws {RequiredError}
|
|
22452
|
+
*/
|
|
22453
|
+
async apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
22454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options);
|
|
22455
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22456
|
+
},
|
|
22457
|
+
/**
|
|
22458
|
+
*
|
|
22459
|
+
* @summary Update ServiceReview.
|
|
22460
|
+
* @param {string} serviceReviewId
|
|
22461
|
+
* @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
|
|
22462
|
+
* @param {*} [options] Override http request option.
|
|
22463
|
+
* @throws {RequiredError}
|
|
22464
|
+
*/
|
|
22465
|
+
async apiV2ServicereviewsServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
|
|
22466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options);
|
|
22467
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22468
|
+
},
|
|
22469
|
+
}
|
|
22470
|
+
};
|
|
22471
|
+
|
|
22472
|
+
/**
|
|
22473
|
+
* ServiceReviewsApi - factory interface
|
|
22474
|
+
* @export
|
|
22475
|
+
*/
|
|
22476
|
+
export const ServiceReviewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
22477
|
+
const localVarFp = ServiceReviewsApiFp(configuration)
|
|
22478
|
+
return {
|
|
22479
|
+
/**
|
|
22480
|
+
*
|
|
22481
|
+
* @summary Get all ServiceReviews.
|
|
22482
|
+
* @param {string} [hospitalId]
|
|
22483
|
+
* @param {string} [serviceId]
|
|
22484
|
+
* @param {string} [serviceName]
|
|
22485
|
+
* @param {string} [patientId]
|
|
22486
|
+
* @param {string} [patientName]
|
|
22487
|
+
* @param {boolean} [recommended]
|
|
22488
|
+
* @param {number} [rate]
|
|
22489
|
+
* @param {ReviewType} [reviewType]
|
|
22490
|
+
* @param {number} [page]
|
|
22491
|
+
* @param {number} [limit]
|
|
22492
|
+
* @param {Date} [lastRetrieved]
|
|
22493
|
+
* @param {*} [options] Override http request option.
|
|
22494
|
+
* @throws {RequiredError}
|
|
22495
|
+
*/
|
|
22496
|
+
apiV2ServicereviewsGet(hospitalId?: string, serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceReviewsModel> {
|
|
22497
|
+
return localVarFp.apiV2ServicereviewsGet(hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
22498
|
+
},
|
|
22499
|
+
/**
|
|
22500
|
+
*
|
|
22501
|
+
* @summary Create a ServiceReview.
|
|
22502
|
+
* @param {CreateServiceReviewCommand} [createServiceReviewCommand]
|
|
22503
|
+
* @param {*} [options] Override http request option.
|
|
22504
|
+
* @throws {RequiredError}
|
|
22505
|
+
*/
|
|
22506
|
+
apiV2ServicereviewsPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: any): AxiosPromise<ServiceReviewModel> {
|
|
22507
|
+
return localVarFp.apiV2ServicereviewsPost(createServiceReviewCommand, options).then((request) => request(axios, basePath));
|
|
22508
|
+
},
|
|
22509
|
+
/**
|
|
22510
|
+
*
|
|
22511
|
+
* @summary Delete ServiceReview.
|
|
22512
|
+
* @param {string} serviceReviewId
|
|
22513
|
+
* @param {*} [options] Override http request option.
|
|
22514
|
+
* @throws {RequiredError}
|
|
22515
|
+
*/
|
|
22516
|
+
apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId: string, options?: any): AxiosPromise<boolean> {
|
|
22517
|
+
return localVarFp.apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId, options).then((request) => request(axios, basePath));
|
|
22518
|
+
},
|
|
22519
|
+
/**
|
|
22520
|
+
*
|
|
22521
|
+
* @param {string} serviceReviewId
|
|
22522
|
+
* @param {*} [options] Override http request option.
|
|
22523
|
+
* @throws {RequiredError}
|
|
22524
|
+
*/
|
|
22525
|
+
apiV2ServicereviewsServiceReviewIdGet(serviceReviewId: string, options?: any): AxiosPromise<ServiceReviewModel> {
|
|
22526
|
+
return localVarFp.apiV2ServicereviewsServiceReviewIdGet(serviceReviewId, options).then((request) => request(axios, basePath));
|
|
22527
|
+
},
|
|
22528
|
+
/**
|
|
22529
|
+
*
|
|
22530
|
+
* @summary Get all ServiceReviewMedias.
|
|
22531
|
+
* @param {string} serviceReviewId
|
|
22532
|
+
* @param {string} [id]
|
|
22533
|
+
* @param {MediaType} [mediaType]
|
|
22534
|
+
* @param {number} [page]
|
|
22535
|
+
* @param {number} [limit]
|
|
22536
|
+
* @param {Date} [lastRetrieved]
|
|
22537
|
+
* @param {*} [options] Override http request option.
|
|
22538
|
+
* @throws {RequiredError}
|
|
22539
|
+
*/
|
|
22540
|
+
apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
|
|
22541
|
+
return localVarFp.apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
22542
|
+
},
|
|
22543
|
+
/**
|
|
22544
|
+
*
|
|
22545
|
+
* @summary Delete ServiceReviewMedia
|
|
22546
|
+
* @param {string} serviceReviewId
|
|
22547
|
+
* @param {string} mediaId
|
|
22548
|
+
* @param {*} [options] Override http request option.
|
|
22549
|
+
* @throws {RequiredError}
|
|
22550
|
+
*/
|
|
22551
|
+
apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
|
|
22552
|
+
return localVarFp.apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then((request) => request(axios, basePath));
|
|
22553
|
+
},
|
|
22554
|
+
/**
|
|
22555
|
+
*
|
|
22556
|
+
* @summary Get ServiceReviewMedia.
|
|
22557
|
+
* @param {string} serviceReviewId
|
|
22558
|
+
* @param {string} mediaId
|
|
22559
|
+
* @param {*} [options] Override http request option.
|
|
22560
|
+
* @throws {RequiredError}
|
|
22561
|
+
*/
|
|
22562
|
+
apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
22563
|
+
return localVarFp.apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then((request) => request(axios, basePath));
|
|
22564
|
+
},
|
|
22565
|
+
/**
|
|
22566
|
+
*
|
|
22567
|
+
* @summary Update ServiceReviewMedia.
|
|
22568
|
+
* @param {string} serviceReviewId
|
|
22569
|
+
* @param {string} mediaId
|
|
22570
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
22571
|
+
* @param {*} [options] Override http request option.
|
|
22572
|
+
* @throws {RequiredError}
|
|
22573
|
+
*/
|
|
22574
|
+
apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
|
|
22575
|
+
return localVarFp.apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
|
|
22576
|
+
},
|
|
22577
|
+
/**
|
|
22578
|
+
*
|
|
22579
|
+
* @summary Create ServiceReviewMedia.
|
|
22580
|
+
* @param {string} serviceReviewId
|
|
22581
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
22582
|
+
* @param {*} [options] Override http request option.
|
|
22583
|
+
* @throws {RequiredError}
|
|
22584
|
+
*/
|
|
22585
|
+
apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
|
|
22586
|
+
return localVarFp.apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then((request) => request(axios, basePath));
|
|
22587
|
+
},
|
|
22588
|
+
/**
|
|
22589
|
+
*
|
|
22590
|
+
* @summary Update ServiceReview.
|
|
22591
|
+
* @param {string} serviceReviewId
|
|
22592
|
+
* @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
|
|
22593
|
+
* @param {*} [options] Override http request option.
|
|
22594
|
+
* @throws {RequiredError}
|
|
22595
|
+
*/
|
|
22596
|
+
apiV2ServicereviewsServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: any): AxiosPromise<ServiceReviewModel> {
|
|
22597
|
+
return localVarFp.apiV2ServicereviewsServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then((request) => request(axios, basePath));
|
|
22598
|
+
},
|
|
22599
|
+
};
|
|
22600
|
+
};
|
|
22601
|
+
|
|
22602
|
+
/**
|
|
22603
|
+
* ServiceReviewsApi - object-oriented interface
|
|
22604
|
+
* @export
|
|
22605
|
+
* @class ServiceReviewsApi
|
|
22606
|
+
* @extends {BaseAPI}
|
|
22607
|
+
*/
|
|
22608
|
+
export class ServiceReviewsApi extends BaseAPI {
|
|
22609
|
+
/**
|
|
22610
|
+
*
|
|
22611
|
+
* @summary Get all ServiceReviews.
|
|
22612
|
+
* @param {string} [hospitalId]
|
|
22613
|
+
* @param {string} [serviceId]
|
|
22614
|
+
* @param {string} [serviceName]
|
|
22615
|
+
* @param {string} [patientId]
|
|
22616
|
+
* @param {string} [patientName]
|
|
22617
|
+
* @param {boolean} [recommended]
|
|
22618
|
+
* @param {number} [rate]
|
|
22619
|
+
* @param {ReviewType} [reviewType]
|
|
22620
|
+
* @param {number} [page]
|
|
22621
|
+
* @param {number} [limit]
|
|
22622
|
+
* @param {Date} [lastRetrieved]
|
|
22623
|
+
* @param {*} [options] Override http request option.
|
|
22624
|
+
* @throws {RequiredError}
|
|
22625
|
+
* @memberof ServiceReviewsApi
|
|
22626
|
+
*/
|
|
22627
|
+
public apiV2ServicereviewsGet(hospitalId?: string, serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
22628
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsGet(hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
22629
|
+
}
|
|
22630
|
+
|
|
22631
|
+
/**
|
|
22632
|
+
*
|
|
22633
|
+
* @summary Create a ServiceReview.
|
|
22634
|
+
* @param {CreateServiceReviewCommand} [createServiceReviewCommand]
|
|
22635
|
+
* @param {*} [options] Override http request option.
|
|
22636
|
+
* @throws {RequiredError}
|
|
22637
|
+
* @memberof ServiceReviewsApi
|
|
22638
|
+
*/
|
|
22639
|
+
public apiV2ServicereviewsPost(createServiceReviewCommand?: CreateServiceReviewCommand, options?: AxiosRequestConfig) {
|
|
22640
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsPost(createServiceReviewCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22641
|
+
}
|
|
22642
|
+
|
|
22643
|
+
/**
|
|
22644
|
+
*
|
|
22645
|
+
* @summary Delete ServiceReview.
|
|
22646
|
+
* @param {string} serviceReviewId
|
|
22647
|
+
* @param {*} [options] Override http request option.
|
|
22648
|
+
* @throws {RequiredError}
|
|
22649
|
+
* @memberof ServiceReviewsApi
|
|
22650
|
+
*/
|
|
22651
|
+
public apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId: string, options?: AxiosRequestConfig) {
|
|
22652
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId, options).then((request) => request(this.axios, this.basePath));
|
|
22653
|
+
}
|
|
22654
|
+
|
|
22655
|
+
/**
|
|
22656
|
+
*
|
|
22657
|
+
* @param {string} serviceReviewId
|
|
22658
|
+
* @param {*} [options] Override http request option.
|
|
22659
|
+
* @throws {RequiredError}
|
|
22660
|
+
* @memberof ServiceReviewsApi
|
|
22661
|
+
*/
|
|
22662
|
+
public apiV2ServicereviewsServiceReviewIdGet(serviceReviewId: string, options?: AxiosRequestConfig) {
|
|
22663
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdGet(serviceReviewId, options).then((request) => request(this.axios, this.basePath));
|
|
22664
|
+
}
|
|
22665
|
+
|
|
22666
|
+
/**
|
|
22667
|
+
*
|
|
22668
|
+
* @summary Get all ServiceReviewMedias.
|
|
22669
|
+
* @param {string} serviceReviewId
|
|
22670
|
+
* @param {string} [id]
|
|
22671
|
+
* @param {MediaType} [mediaType]
|
|
22672
|
+
* @param {number} [page]
|
|
22673
|
+
* @param {number} [limit]
|
|
22674
|
+
* @param {Date} [lastRetrieved]
|
|
22675
|
+
* @param {*} [options] Override http request option.
|
|
22676
|
+
* @throws {RequiredError}
|
|
22677
|
+
* @memberof ServiceReviewsApi
|
|
22678
|
+
*/
|
|
22679
|
+
public apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
22680
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
22681
|
+
}
|
|
22682
|
+
|
|
22683
|
+
/**
|
|
22684
|
+
*
|
|
22685
|
+
* @summary Delete ServiceReviewMedia
|
|
22686
|
+
* @param {string} serviceReviewId
|
|
22687
|
+
* @param {string} mediaId
|
|
22688
|
+
* @param {*} [options] Override http request option.
|
|
22689
|
+
* @throws {RequiredError}
|
|
22690
|
+
* @memberof ServiceReviewsApi
|
|
22691
|
+
*/
|
|
22692
|
+
public apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
22693
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
22694
|
+
}
|
|
22695
|
+
|
|
22696
|
+
/**
|
|
22697
|
+
*
|
|
22698
|
+
* @summary Get ServiceReviewMedia.
|
|
22699
|
+
* @param {string} serviceReviewId
|
|
22700
|
+
* @param {string} mediaId
|
|
22701
|
+
* @param {*} [options] Override http request option.
|
|
22702
|
+
* @throws {RequiredError}
|
|
22703
|
+
* @memberof ServiceReviewsApi
|
|
22704
|
+
*/
|
|
22705
|
+
public apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
22706
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
22707
|
+
}
|
|
22708
|
+
|
|
22709
|
+
/**
|
|
22710
|
+
*
|
|
22711
|
+
* @summary Update ServiceReviewMedia.
|
|
22712
|
+
* @param {string} serviceReviewId
|
|
22713
|
+
* @param {string} mediaId
|
|
22714
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
22715
|
+
* @param {*} [options] Override http request option.
|
|
22716
|
+
* @throws {RequiredError}
|
|
22717
|
+
* @memberof ServiceReviewsApi
|
|
22718
|
+
*/
|
|
22719
|
+
public apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
|
|
22720
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22721
|
+
}
|
|
22722
|
+
|
|
22723
|
+
/**
|
|
22724
|
+
*
|
|
22725
|
+
* @summary Create ServiceReviewMedia.
|
|
22726
|
+
* @param {string} serviceReviewId
|
|
22727
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
22728
|
+
* @param {*} [options] Override http request option.
|
|
22729
|
+
* @throws {RequiredError}
|
|
22730
|
+
* @memberof ServiceReviewsApi
|
|
22731
|
+
*/
|
|
22732
|
+
public apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
|
|
22733
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22734
|
+
}
|
|
22735
|
+
|
|
22736
|
+
/**
|
|
22737
|
+
*
|
|
22738
|
+
* @summary Update ServiceReview.
|
|
22739
|
+
* @param {string} serviceReviewId
|
|
22740
|
+
* @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
|
|
22741
|
+
* @param {*} [options] Override http request option.
|
|
22742
|
+
* @throws {RequiredError}
|
|
22743
|
+
* @memberof ServiceReviewsApi
|
|
22744
|
+
*/
|
|
22745
|
+
public apiV2ServicereviewsServiceReviewIdPut(serviceReviewId: string, updateServiceReviewCommand?: UpdateServiceReviewCommand, options?: AxiosRequestConfig) {
|
|
22746
|
+
return ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22747
|
+
}
|
|
22748
|
+
}
|
|
22749
|
+
|
|
22750
|
+
|
|
21549
22751
|
/**
|
|
21550
22752
|
* ServicesApi - axios parameter creator
|
|
21551
22753
|
* @export
|