ch-admin-api-client-typescript 5.90.57 → 5.90.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/lib/api/form-results-api.d.ts +74 -10
  2. package/lib/api/form-results-api.d.ts.map +1 -1
  3. package/lib/api/form-results-api.js +123 -22
  4. package/lib/api/hospitals-api.d.ts +74 -0
  5. package/lib/api/hospitals-api.d.ts.map +1 -1
  6. package/lib/api/hospitals-api.js +106 -0
  7. package/lib/api/survey-results-api.d.ts +74 -10
  8. package/lib/api/survey-results-api.d.ts.map +1 -1
  9. package/lib/api/survey-results-api.js +123 -22
  10. package/lib/models/article-type.d.ts +3 -1
  11. package/lib/models/article-type.d.ts.map +1 -1
  12. package/lib/models/article-type.js +4 -2
  13. package/lib/models/create-article-command.d.ts +7 -0
  14. package/lib/models/create-article-command.d.ts.map +1 -1
  15. package/lib/models/create-hospital-service-command.d.ts +6 -0
  16. package/lib/models/create-hospital-service-command.d.ts.map +1 -1
  17. package/lib/models/hospital-service-item-model.d.ts +6 -0
  18. package/lib/models/hospital-service-item-model.d.ts.map +1 -1
  19. package/lib/models/hospital-service-model.d.ts +6 -0
  20. package/lib/models/hospital-service-model.d.ts.map +1 -1
  21. package/lib/models/index.d.ts +1 -0
  22. package/lib/models/index.d.ts.map +1 -1
  23. package/lib/models/index.js +1 -0
  24. package/lib/models/patch-article-command.d.ts +7 -0
  25. package/lib/models/patch-article-command.d.ts.map +1 -1
  26. package/lib/models/patch-hospital-service-command.d.ts +143 -0
  27. package/lib/models/patch-hospital-service-command.d.ts.map +1 -0
  28. package/lib/models/patch-hospital-service-command.js +15 -0
  29. package/lib/models/update-article-command.d.ts +7 -0
  30. package/lib/models/update-article-command.d.ts.map +1 -1
  31. package/lib/models/update-hospital-service-command.d.ts +6 -0
  32. package/lib/models/update-hospital-service-command.d.ts.map +1 -1
  33. package/package.json +1 -1
@@ -27,12 +27,13 @@ import { UpdateFormResultCommand } from '../models';
27
27
  export declare const FormResultsApiAxiosParamCreator: (configuration?: Configuration) => {
28
28
  /**
29
29
  *
30
- * @summary Delete formResult (Auth policies: RequireDoctorOrContentManagerRole)
30
+ * @summary Delete formResult (Auth policies: RequireDefaultAdminAppRole)
31
31
  * @param {string} formResultId
32
+ * @param {boolean} [isPermanent] True for hard delete, false for soft delete.
32
33
  * @param {*} [options] Override http request option.
33
34
  * @throws {RequiredError}
34
35
  */
35
- apiV1FormresultsFormResultIdDelete: (formResultId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ apiV1FormresultsFormResultIdDelete: (formResultId: string, isPermanent?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
37
  /**
37
38
  *
38
39
  * @summary Get formResult (Auth policies: RequireDefaultAdminAppRole)
@@ -51,6 +52,14 @@ export declare const FormResultsApiAxiosParamCreator: (configuration?: Configura
51
52
  * @throws {RequiredError}
52
53
  */
53
54
  apiV1FormresultsFormResultIdPut: (formResultId: string, updateFormResultCommand?: UpdateFormResultCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ *
57
+ * @summary Reactivate formResult (Auth policies: RequireDefaultAdminAppRole)
58
+ * @param {string} formResultId
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ apiV1FormresultsFormResultIdReactivatePut: (formResultId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
63
  /**
55
64
  *
56
65
  * @summary Translate formResultValue entry (Auth policies: RequireDefaultAdminAppRole)
@@ -73,6 +82,7 @@ export declare const FormResultsApiAxiosParamCreator: (configuration?: Configura
73
82
  * @param {FormResultStatus} [status]
74
83
  * @param {string} [userId]
75
84
  * @param {boolean} [noUserOnly]
85
+ * @param {boolean} [showHidden]
76
86
  * @param {string} [userName]
77
87
  * @param {number} [page]
78
88
  * @param {number} [limit]
@@ -80,7 +90,7 @@ export declare const FormResultsApiAxiosParamCreator: (configuration?: Configura
80
90
  * @param {*} [options] Override http request option.
81
91
  * @throws {RequiredError}
82
92
  */
83
- apiV1FormresultsGet: (languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
93
+ apiV1FormresultsGet: (languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, showHidden?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
84
94
  };
85
95
  /**
86
96
  * FormResultsApi - functional programming interface
@@ -89,12 +99,13 @@ export declare const FormResultsApiAxiosParamCreator: (configuration?: Configura
89
99
  export declare const FormResultsApiFp: (configuration?: Configuration) => {
90
100
  /**
91
101
  *
92
- * @summary Delete formResult (Auth policies: RequireDoctorOrContentManagerRole)
102
+ * @summary Delete formResult (Auth policies: RequireDefaultAdminAppRole)
93
103
  * @param {string} formResultId
104
+ * @param {boolean} [isPermanent] True for hard delete, false for soft delete.
94
105
  * @param {*} [options] Override http request option.
95
106
  * @throws {RequiredError}
96
107
  */
97
- apiV1FormresultsFormResultIdDelete(formResultId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultModel>>;
108
+ apiV1FormresultsFormResultIdDelete(formResultId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultModel>>;
98
109
  /**
99
110
  *
100
111
  * @summary Get formResult (Auth policies: RequireDefaultAdminAppRole)
@@ -113,6 +124,14 @@ export declare const FormResultsApiFp: (configuration?: Configuration) => {
113
124
  * @throws {RequiredError}
114
125
  */
115
126
  apiV1FormresultsFormResultIdPut(formResultId: string, updateFormResultCommand?: UpdateFormResultCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultModel>>;
127
+ /**
128
+ *
129
+ * @summary Reactivate formResult (Auth policies: RequireDefaultAdminAppRole)
130
+ * @param {string} formResultId
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ apiV1FormresultsFormResultIdReactivatePut(formResultId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
116
135
  /**
117
136
  *
118
137
  * @summary Translate formResultValue entry (Auth policies: RequireDefaultAdminAppRole)
@@ -135,6 +154,7 @@ export declare const FormResultsApiFp: (configuration?: Configuration) => {
135
154
  * @param {FormResultStatus} [status]
136
155
  * @param {string} [userId]
137
156
  * @param {boolean} [noUserOnly]
157
+ * @param {boolean} [showHidden]
138
158
  * @param {string} [userName]
139
159
  * @param {number} [page]
140
160
  * @param {number} [limit]
@@ -142,7 +162,7 @@ export declare const FormResultsApiFp: (configuration?: Configuration) => {
142
162
  * @param {*} [options] Override http request option.
143
163
  * @throws {RequiredError}
144
164
  */
145
- apiV1FormresultsGet(languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultsModel>>;
165
+ apiV1FormresultsGet(languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, showHidden?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultsModel>>;
146
166
  };
147
167
  /**
148
168
  * FormResultsApi - factory interface
@@ -151,12 +171,13 @@ export declare const FormResultsApiFp: (configuration?: Configuration) => {
151
171
  export declare const FormResultsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
152
172
  /**
153
173
  *
154
- * @summary Delete formResult (Auth policies: RequireDoctorOrContentManagerRole)
174
+ * @summary Delete formResult (Auth policies: RequireDefaultAdminAppRole)
155
175
  * @param {string} formResultId
176
+ * @param {boolean} [isPermanent] True for hard delete, false for soft delete.
156
177
  * @param {*} [options] Override http request option.
157
178
  * @throws {RequiredError}
158
179
  */
159
- apiV1FormresultsFormResultIdDelete(formResultId: string, options?: any): AxiosPromise<FormResultModel>;
180
+ apiV1FormresultsFormResultIdDelete(formResultId: string, isPermanent?: boolean, options?: any): AxiosPromise<FormResultModel>;
160
181
  /**
161
182
  *
162
183
  * @summary Get formResult (Auth policies: RequireDefaultAdminAppRole)
@@ -175,6 +196,14 @@ export declare const FormResultsApiFactory: (configuration?: Configuration, base
175
196
  * @throws {RequiredError}
176
197
  */
177
198
  apiV1FormresultsFormResultIdPut(formResultId: string, updateFormResultCommand?: UpdateFormResultCommand, options?: any): AxiosPromise<FormResultModel>;
199
+ /**
200
+ *
201
+ * @summary Reactivate formResult (Auth policies: RequireDefaultAdminAppRole)
202
+ * @param {string} formResultId
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ apiV1FormresultsFormResultIdReactivatePut(formResultId: string, options?: any): AxiosPromise<boolean>;
178
207
  /**
179
208
  *
180
209
  * @summary Translate formResultValue entry (Auth policies: RequireDefaultAdminAppRole)
@@ -197,6 +226,7 @@ export declare const FormResultsApiFactory: (configuration?: Configuration, base
197
226
  * @param {FormResultStatus} [status]
198
227
  * @param {string} [userId]
199
228
  * @param {boolean} [noUserOnly]
229
+ * @param {boolean} [showHidden]
200
230
  * @param {string} [userName]
201
231
  * @param {number} [page]
202
232
  * @param {number} [limit]
@@ -204,7 +234,7 @@ export declare const FormResultsApiFactory: (configuration?: Configuration, base
204
234
  * @param {*} [options] Override http request option.
205
235
  * @throws {RequiredError}
206
236
  */
207
- apiV1FormresultsGet(languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FormResultsModel>;
237
+ apiV1FormresultsGet(languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, showHidden?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FormResultsModel>;
208
238
  };
209
239
  /**
210
240
  * Request parameters for apiV1FormresultsFormResultIdDelete operation in FormResultsApi.
@@ -218,6 +248,12 @@ export interface FormResultsApiApiV1FormresultsFormResultIdDeleteRequest {
218
248
  * @memberof FormResultsApiApiV1FormresultsFormResultIdDelete
219
249
  */
220
250
  readonly formResultId: string;
251
+ /**
252
+ * True for hard delete, false for soft delete.
253
+ * @type {boolean}
254
+ * @memberof FormResultsApiApiV1FormresultsFormResultIdDelete
255
+ */
256
+ readonly isPermanent?: boolean;
221
257
  }
222
258
  /**
223
259
  * Request parameters for apiV1FormresultsFormResultIdGet operation in FormResultsApi.
@@ -257,6 +293,19 @@ export interface FormResultsApiApiV1FormresultsFormResultIdPutRequest {
257
293
  */
258
294
  readonly updateFormResultCommand?: UpdateFormResultCommand;
259
295
  }
296
+ /**
297
+ * Request parameters for apiV1FormresultsFormResultIdReactivatePut operation in FormResultsApi.
298
+ * @export
299
+ * @interface FormResultsApiApiV1FormresultsFormResultIdReactivatePutRequest
300
+ */
301
+ export interface FormResultsApiApiV1FormresultsFormResultIdReactivatePutRequest {
302
+ /**
303
+ *
304
+ * @type {string}
305
+ * @memberof FormResultsApiApiV1FormresultsFormResultIdReactivatePut
306
+ */
307
+ readonly formResultId: string;
308
+ }
260
309
  /**
261
310
  * Request parameters for apiV1FormresultsFormResultIdTranslatePost operation in FormResultsApi.
262
311
  * @export
@@ -342,6 +391,12 @@ export interface FormResultsApiApiV1FormresultsGetRequest {
342
391
  * @memberof FormResultsApiApiV1FormresultsGet
343
392
  */
344
393
  readonly noUserOnly?: boolean;
394
+ /**
395
+ *
396
+ * @type {boolean}
397
+ * @memberof FormResultsApiApiV1FormresultsGet
398
+ */
399
+ readonly showHidden?: boolean;
345
400
  /**
346
401
  *
347
402
  * @type {string}
@@ -376,7 +431,7 @@ export interface FormResultsApiApiV1FormresultsGetRequest {
376
431
  export declare class FormResultsApi extends BaseAPI {
377
432
  /**
378
433
  *
379
- * @summary Delete formResult (Auth policies: RequireDoctorOrContentManagerRole)
434
+ * @summary Delete formResult (Auth policies: RequireDefaultAdminAppRole)
380
435
  * @param {FormResultsApiApiV1FormresultsFormResultIdDeleteRequest} requestParameters Request parameters.
381
436
  * @param {*} [options] Override http request option.
382
437
  * @throws {RequiredError}
@@ -401,6 +456,15 @@ export declare class FormResultsApi extends BaseAPI {
401
456
  * @memberof FormResultsApi
402
457
  */
403
458
  apiV1FormresultsFormResultIdPut(requestParameters: FormResultsApiApiV1FormresultsFormResultIdPutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FormResultModel, any>>;
459
+ /**
460
+ *
461
+ * @summary Reactivate formResult (Auth policies: RequireDefaultAdminAppRole)
462
+ * @param {FormResultsApiApiV1FormresultsFormResultIdReactivatePutRequest} requestParameters Request parameters.
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ * @memberof FormResultsApi
466
+ */
467
+ apiV1FormresultsFormResultIdReactivatePut(requestParameters: FormResultsApiApiV1FormresultsFormResultIdReactivatePutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
404
468
  /**
405
469
  *
406
470
  * @summary Translate formResultValue entry (Auth policies: RequireDefaultAdminAppRole)
@@ -1 +1 @@
1
- {"version":3,"file":"form-results-api.d.ts","sourceRoot":"","sources":["../../src/api/form-results-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,mBAA6B,aAAa;IAE9E;;;;;;OAMG;uDACsD,MAAM,YAAW,kBAAkB,KAAQ,OAAO,CAAC,WAAW,CAAC;IA+BxH;;;;;;;OAOG;oDACmD,MAAM,iBAAiB,MAAM,YAAW,kBAAkB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAmC5I;;;;;;;OAOG;oDACmD,MAAM,4BAA4B,uBAAuB,YAAW,kBAAkB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAkCxK;;;;;;;OAOG;8DAC6D,MAAM,+BAA+B,0BAA0B,YAAW,kBAAkB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAkCxL;;;;;;;;;;;;;;;;;;;OAmBG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iB,EAAE,oDAAoD,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI5I;;;;;;;OAOG;IACI,+BAA+B,CAAC,iBAAiB,EAAE,oDAAoD,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI5I;;;;;;;OAOG;IACI,yCAAyC,CAAC,iBAAiB,EAAE,8DAA8D,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIhK;;;;;;;OAOG;IACI,yCAAyC,CAAC,iBAAiB,EAAE,8DAA8D,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIhK;;;;;;;OAOG;IACI,mBAAmB,CAAC,iBAAiB,GAAE,wCAA6C,EAAE,OAAO,CAAC,EAAE,kBAAkB;CAG5H"}
@@ -103,17 +103,18 @@ var FormResultsApiAxiosParamCreator = function (configuration) {
103
103
  return {
104
104
  /**
105
105
  *
106
- * @summary Delete formResult (Auth policies: RequireDoctorOrContentManagerRole)
106
+ * @summary Delete formResult (Auth policies: RequireDefaultAdminAppRole)
107
107
  * @param {string} formResultId
108
+ * @param {boolean} [isPermanent] True for hard delete, false for soft delete.
108
109
  * @param {*} [options] Override http request option.
109
110
  * @throws {RequiredError}
110
111
  */
111
- apiV1FormresultsFormResultIdDelete: function (formResultId_1) {
112
+ apiV1FormresultsFormResultIdDelete: function (formResultId_1, isPermanent_1) {
112
113
  var args_1 = [];
113
- for (var _i = 1; _i < arguments.length; _i++) {
114
- args_1[_i - 1] = arguments[_i];
114
+ for (var _i = 2; _i < arguments.length; _i++) {
115
+ args_1[_i - 2] = arguments[_i];
115
116
  }
116
- return __awaiter(_this, __spreadArray([formResultId_1], args_1, true), void 0, function (formResultId, options) {
117
+ return __awaiter(_this, __spreadArray([formResultId_1, isPermanent_1], args_1, true), void 0, function (formResultId, isPermanent, options) {
117
118
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
118
119
  if (options === void 0) { options = {}; }
119
120
  return __generator(this, function (_a) {
@@ -137,6 +138,9 @@ var FormResultsApiAxiosParamCreator = function (configuration) {
137
138
  // authentication oauth2 required
138
139
  // oauth required
139
140
  _a.sent();
141
+ if (isPermanent !== undefined) {
142
+ localVarQueryParameter['isPermanent'] = isPermanent;
143
+ }
140
144
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
145
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
146
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -249,6 +253,53 @@ var FormResultsApiAxiosParamCreator = function (configuration) {
249
253
  });
250
254
  });
251
255
  },
256
+ /**
257
+ *
258
+ * @summary Reactivate formResult (Auth policies: RequireDefaultAdminAppRole)
259
+ * @param {string} formResultId
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ apiV1FormresultsFormResultIdReactivatePut: function (formResultId_1) {
264
+ var args_1 = [];
265
+ for (var _i = 1; _i < arguments.length; _i++) {
266
+ args_1[_i - 1] = arguments[_i];
267
+ }
268
+ return __awaiter(_this, __spreadArray([formResultId_1], args_1, true), void 0, function (formResultId, options) {
269
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ if (options === void 0) { options = {}; }
271
+ return __generator(this, function (_a) {
272
+ switch (_a.label) {
273
+ case 0:
274
+ // verify required parameter 'formResultId' is not null or undefined
275
+ (0, common_1.assertParamExists)('apiV1FormresultsFormResultIdReactivatePut', 'formResultId', formResultId);
276
+ localVarPath = "/api/v1/formresults/{formResultId}/reactivate"
277
+ .replace("{".concat("formResultId", "}"), encodeURIComponent(String(formResultId)));
278
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
279
+ if (configuration) {
280
+ baseOptions = configuration.baseOptions;
281
+ }
282
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
283
+ localVarHeaderParameter = {};
284
+ localVarQueryParameter = {};
285
+ // authentication oauth2 required
286
+ // oauth required
287
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
288
+ case 1:
289
+ // authentication oauth2 required
290
+ // oauth required
291
+ _a.sent();
292
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
293
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
295
+ return [2 /*return*/, {
296
+ url: (0, common_1.toPathString)(localVarUrlObj),
297
+ options: localVarRequestOptions,
298
+ }];
299
+ }
300
+ });
301
+ });
302
+ },
252
303
  /**
253
304
  *
254
305
  * @summary Translate formResultValue entry (Auth policies: RequireDefaultAdminAppRole)
@@ -312,6 +363,7 @@ var FormResultsApiAxiosParamCreator = function (configuration) {
312
363
  * @param {FormResultStatus} [status]
313
364
  * @param {string} [userId]
314
365
  * @param {boolean} [noUserOnly]
366
+ * @param {boolean} [showHidden]
315
367
  * @param {string} [userName]
316
368
  * @param {number} [page]
317
369
  * @param {number} [limit]
@@ -319,12 +371,12 @@ var FormResultsApiAxiosParamCreator = function (configuration) {
319
371
  * @param {*} [options] Override http request option.
320
372
  * @throws {RequiredError}
321
373
  */
322
- apiV1FormresultsGet: function (languageCode_1, startDate_1, endDate_1, hospitalId_1, noHospitalOnly_1, platform_1, formTemplateType_1, status_1, userId_1, noUserOnly_1, userName_1, page_1, limit_1, lastRetrieved_1) {
374
+ apiV1FormresultsGet: function (languageCode_1, startDate_1, endDate_1, hospitalId_1, noHospitalOnly_1, platform_1, formTemplateType_1, status_1, userId_1, noUserOnly_1, showHidden_1, userName_1, page_1, limit_1, lastRetrieved_1) {
323
375
  var args_1 = [];
324
- for (var _i = 14; _i < arguments.length; _i++) {
325
- args_1[_i - 14] = arguments[_i];
376
+ for (var _i = 15; _i < arguments.length; _i++) {
377
+ args_1[_i - 15] = arguments[_i];
326
378
  }
327
- return __awaiter(_this, __spreadArray([languageCode_1, startDate_1, endDate_1, hospitalId_1, noHospitalOnly_1, platform_1, formTemplateType_1, status_1, userId_1, noUserOnly_1, userName_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, userName, page, limit, lastRetrieved, options) {
379
+ return __awaiter(_this, __spreadArray([languageCode_1, startDate_1, endDate_1, hospitalId_1, noHospitalOnly_1, platform_1, formTemplateType_1, status_1, userId_1, noUserOnly_1, showHidden_1, userName_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, showHidden, userName, page, limit, lastRetrieved, options) {
328
380
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
329
381
  if (options === void 0) { options = {}; }
330
382
  return __generator(this, function (_a) {
@@ -379,6 +431,9 @@ var FormResultsApiAxiosParamCreator = function (configuration) {
379
431
  if (noUserOnly !== undefined) {
380
432
  localVarQueryParameter['noUserOnly'] = noUserOnly;
381
433
  }
434
+ if (showHidden !== undefined) {
435
+ localVarQueryParameter['showHidden'] = showHidden;
436
+ }
382
437
  if (userName !== undefined) {
383
438
  localVarQueryParameter['userName'] = userName;
384
439
  }
@@ -416,17 +471,18 @@ var FormResultsApiFp = function (configuration) {
416
471
  return {
417
472
  /**
418
473
  *
419
- * @summary Delete formResult (Auth policies: RequireDoctorOrContentManagerRole)
474
+ * @summary Delete formResult (Auth policies: RequireDefaultAdminAppRole)
420
475
  * @param {string} formResultId
476
+ * @param {boolean} [isPermanent] True for hard delete, false for soft delete.
421
477
  * @param {*} [options] Override http request option.
422
478
  * @throws {RequiredError}
423
479
  */
424
- apiV1FormresultsFormResultIdDelete: function (formResultId, options) {
480
+ apiV1FormresultsFormResultIdDelete: function (formResultId, isPermanent, options) {
425
481
  return __awaiter(this, void 0, void 0, function () {
426
482
  var localVarAxiosArgs;
427
483
  return __generator(this, function (_a) {
428
484
  switch (_a.label) {
429
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FormresultsFormResultIdDelete(formResultId, options)];
485
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FormresultsFormResultIdDelete(formResultId, isPermanent, options)];
430
486
  case 1:
431
487
  localVarAxiosArgs = _a.sent();
432
488
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -476,6 +532,26 @@ var FormResultsApiFp = function (configuration) {
476
532
  });
477
533
  });
478
534
  },
535
+ /**
536
+ *
537
+ * @summary Reactivate formResult (Auth policies: RequireDefaultAdminAppRole)
538
+ * @param {string} formResultId
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ */
542
+ apiV1FormresultsFormResultIdReactivatePut: function (formResultId, options) {
543
+ return __awaiter(this, void 0, void 0, function () {
544
+ var localVarAxiosArgs;
545
+ return __generator(this, function (_a) {
546
+ switch (_a.label) {
547
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FormresultsFormResultIdReactivatePut(formResultId, options)];
548
+ case 1:
549
+ localVarAxiosArgs = _a.sent();
550
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
551
+ }
552
+ });
553
+ });
554
+ },
479
555
  /**
480
556
  *
481
557
  * @summary Translate formResultValue entry (Auth policies: RequireDefaultAdminAppRole)
@@ -510,6 +586,7 @@ var FormResultsApiFp = function (configuration) {
510
586
  * @param {FormResultStatus} [status]
511
587
  * @param {string} [userId]
512
588
  * @param {boolean} [noUserOnly]
589
+ * @param {boolean} [showHidden]
513
590
  * @param {string} [userName]
514
591
  * @param {number} [page]
515
592
  * @param {number} [limit]
@@ -517,12 +594,12 @@ var FormResultsApiFp = function (configuration) {
517
594
  * @param {*} [options] Override http request option.
518
595
  * @throws {RequiredError}
519
596
  */
520
- apiV1FormresultsGet: function (languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, userName, page, limit, lastRetrieved, options) {
597
+ apiV1FormresultsGet: function (languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, showHidden, userName, page, limit, lastRetrieved, options) {
521
598
  return __awaiter(this, void 0, void 0, function () {
522
599
  var localVarAxiosArgs;
523
600
  return __generator(this, function (_a) {
524
601
  switch (_a.label) {
525
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FormresultsGet(languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, userName, page, limit, lastRetrieved, options)];
602
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FormresultsGet(languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, showHidden, userName, page, limit, lastRetrieved, options)];
526
603
  case 1:
527
604
  localVarAxiosArgs = _a.sent();
528
605
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -542,13 +619,14 @@ var FormResultsApiFactory = function (configuration, basePath, axios) {
542
619
  return {
543
620
  /**
544
621
  *
545
- * @summary Delete formResult (Auth policies: RequireDoctorOrContentManagerRole)
622
+ * @summary Delete formResult (Auth policies: RequireDefaultAdminAppRole)
546
623
  * @param {string} formResultId
624
+ * @param {boolean} [isPermanent] True for hard delete, false for soft delete.
547
625
  * @param {*} [options] Override http request option.
548
626
  * @throws {RequiredError}
549
627
  */
550
- apiV1FormresultsFormResultIdDelete: function (formResultId, options) {
551
- return localVarFp.apiV1FormresultsFormResultIdDelete(formResultId, options).then(function (request) { return request(axios, basePath); });
628
+ apiV1FormresultsFormResultIdDelete: function (formResultId, isPermanent, options) {
629
+ return localVarFp.apiV1FormresultsFormResultIdDelete(formResultId, isPermanent, options).then(function (request) { return request(axios, basePath); });
552
630
  },
553
631
  /**
554
632
  *
@@ -572,6 +650,16 @@ var FormResultsApiFactory = function (configuration, basePath, axios) {
572
650
  apiV1FormresultsFormResultIdPut: function (formResultId, updateFormResultCommand, options) {
573
651
  return localVarFp.apiV1FormresultsFormResultIdPut(formResultId, updateFormResultCommand, options).then(function (request) { return request(axios, basePath); });
574
652
  },
653
+ /**
654
+ *
655
+ * @summary Reactivate formResult (Auth policies: RequireDefaultAdminAppRole)
656
+ * @param {string} formResultId
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ apiV1FormresultsFormResultIdReactivatePut: function (formResultId, options) {
661
+ return localVarFp.apiV1FormresultsFormResultIdReactivatePut(formResultId, options).then(function (request) { return request(axios, basePath); });
662
+ },
575
663
  /**
576
664
  *
577
665
  * @summary Translate formResultValue entry (Auth policies: RequireDefaultAdminAppRole)
@@ -596,6 +684,7 @@ var FormResultsApiFactory = function (configuration, basePath, axios) {
596
684
  * @param {FormResultStatus} [status]
597
685
  * @param {string} [userId]
598
686
  * @param {boolean} [noUserOnly]
687
+ * @param {boolean} [showHidden]
599
688
  * @param {string} [userName]
600
689
  * @param {number} [page]
601
690
  * @param {number} [limit]
@@ -603,8 +692,8 @@ var FormResultsApiFactory = function (configuration, basePath, axios) {
603
692
  * @param {*} [options] Override http request option.
604
693
  * @throws {RequiredError}
605
694
  */
606
- apiV1FormresultsGet: function (languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, userName, page, limit, lastRetrieved, options) {
607
- return localVarFp.apiV1FormresultsGet(languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, userName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
695
+ apiV1FormresultsGet: function (languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, showHidden, userName, page, limit, lastRetrieved, options) {
696
+ return localVarFp.apiV1FormresultsGet(languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, showHidden, userName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
608
697
  },
609
698
  };
610
699
  };
@@ -622,7 +711,7 @@ var FormResultsApi = /** @class */ (function (_super) {
622
711
  }
623
712
  /**
624
713
  *
625
- * @summary Delete formResult (Auth policies: RequireDoctorOrContentManagerRole)
714
+ * @summary Delete formResult (Auth policies: RequireDefaultAdminAppRole)
626
715
  * @param {FormResultsApiApiV1FormresultsFormResultIdDeleteRequest} requestParameters Request parameters.
627
716
  * @param {*} [options] Override http request option.
628
717
  * @throws {RequiredError}
@@ -630,7 +719,7 @@ var FormResultsApi = /** @class */ (function (_super) {
630
719
  */
631
720
  FormResultsApi.prototype.apiV1FormresultsFormResultIdDelete = function (requestParameters, options) {
632
721
  var _this = this;
633
- return (0, exports.FormResultsApiFp)(this.configuration).apiV1FormresultsFormResultIdDelete(requestParameters.formResultId, options).then(function (request) { return request(_this.axios, _this.basePath); });
722
+ return (0, exports.FormResultsApiFp)(this.configuration).apiV1FormresultsFormResultIdDelete(requestParameters.formResultId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
634
723
  };
635
724
  /**
636
725
  *
@@ -656,6 +745,18 @@ var FormResultsApi = /** @class */ (function (_super) {
656
745
  var _this = this;
657
746
  return (0, exports.FormResultsApiFp)(this.configuration).apiV1FormresultsFormResultIdPut(requestParameters.formResultId, requestParameters.updateFormResultCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
658
747
  };
748
+ /**
749
+ *
750
+ * @summary Reactivate formResult (Auth policies: RequireDefaultAdminAppRole)
751
+ * @param {FormResultsApiApiV1FormresultsFormResultIdReactivatePutRequest} requestParameters Request parameters.
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ * @memberof FormResultsApi
755
+ */
756
+ FormResultsApi.prototype.apiV1FormresultsFormResultIdReactivatePut = function (requestParameters, options) {
757
+ var _this = this;
758
+ return (0, exports.FormResultsApiFp)(this.configuration).apiV1FormresultsFormResultIdReactivatePut(requestParameters.formResultId, options).then(function (request) { return request(_this.axios, _this.basePath); });
759
+ };
659
760
  /**
660
761
  *
661
762
  * @summary Translate formResultValue entry (Auth policies: RequireDefaultAdminAppRole)
@@ -679,7 +780,7 @@ var FormResultsApi = /** @class */ (function (_super) {
679
780
  FormResultsApi.prototype.apiV1FormresultsGet = function (requestParameters, options) {
680
781
  var _this = this;
681
782
  if (requestParameters === void 0) { requestParameters = {}; }
682
- return (0, exports.FormResultsApiFp)(this.configuration).apiV1FormresultsGet(requestParameters.languageCode, requestParameters.startDate, requestParameters.endDate, requestParameters.hospitalId, requestParameters.noHospitalOnly, requestParameters.platform, requestParameters.formTemplateType, requestParameters.status, requestParameters.userId, requestParameters.noUserOnly, requestParameters.userName, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
783
+ return (0, exports.FormResultsApiFp)(this.configuration).apiV1FormresultsGet(requestParameters.languageCode, requestParameters.startDate, requestParameters.endDate, requestParameters.hospitalId, requestParameters.noHospitalOnly, requestParameters.platform, requestParameters.formTemplateType, requestParameters.status, requestParameters.userId, requestParameters.noUserOnly, requestParameters.showHidden, requestParameters.userName, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
683
784
  };
684
785
  return FormResultsApi;
685
786
  }(base_1.BaseAPI));
@@ -95,6 +95,7 @@ import { PageItemModel } from '../models';
95
95
  import { PageItemStatus } from '../models';
96
96
  import { PageItemsModel } from '../models';
97
97
  import { PatchHospitalCommand } from '../models';
98
+ import { PatchHospitalServiceCommand } from '../models';
98
99
  import { PatchHospitalSpecialtyCommand } from '../models';
99
100
  import { PaymentMethod } from '../models';
100
101
  import { PoliciesModel } from '../models';
@@ -1961,6 +1962,17 @@ export declare const HospitalsApiAxiosParamCreator: (configuration?: Configurati
1961
1962
  * @throws {RequiredError}
1962
1963
  */
1963
1964
  apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost: (hospitalId: string, specialtyId: string, serviceId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1965
+ /**
1966
+ *
1967
+ * @summary Patch HospitalService. <br>Updates only the requested fields. (Auth policies: RequireLocalManagerOrContentManagerRole)
1968
+ * @param {string} hospitalId
1969
+ * @param {string} specialtyId
1970
+ * @param {string} serviceId
1971
+ * @param {PatchHospitalServiceCommand} [patchHospitalServiceCommand]
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch: (hospitalId: string, specialtyId: string, serviceId: string, patchHospitalServiceCommand?: PatchHospitalServiceCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1964
1976
  /**
1965
1977
  *
1966
1978
  * @summary Update HospitalService. (Auth policies: RequireLocalManagerOrContentManagerRole)
@@ -4001,6 +4013,17 @@ export declare const HospitalsApiFp: (configuration?: Configuration) => {
4001
4013
  * @throws {RequiredError}
4002
4014
  */
4003
4015
  apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(hospitalId: string, specialtyId: string, serviceId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>>;
4016
+ /**
4017
+ *
4018
+ * @summary Patch HospitalService. <br>Updates only the requested fields. (Auth policies: RequireLocalManagerOrContentManagerRole)
4019
+ * @param {string} hospitalId
4020
+ * @param {string} specialtyId
4021
+ * @param {string} serviceId
4022
+ * @param {PatchHospitalServiceCommand} [patchHospitalServiceCommand]
4023
+ * @param {*} [options] Override http request option.
4024
+ * @throws {RequiredError}
4025
+ */
4026
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch(hospitalId: string, specialtyId: string, serviceId: string, patchHospitalServiceCommand?: PatchHospitalServiceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalServiceModel>>;
4004
4027
  /**
4005
4028
  *
4006
4029
  * @summary Update HospitalService. (Auth policies: RequireLocalManagerOrContentManagerRole)
@@ -6041,6 +6064,17 @@ export declare const HospitalsApiFactory: (configuration?: Configuration, basePa
6041
6064
  * @throws {RequiredError}
6042
6065
  */
6043
6066
  apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(hospitalId: string, specialtyId: string, serviceId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel>;
6067
+ /**
6068
+ *
6069
+ * @summary Patch HospitalService. <br>Updates only the requested fields. (Auth policies: RequireLocalManagerOrContentManagerRole)
6070
+ * @param {string} hospitalId
6071
+ * @param {string} specialtyId
6072
+ * @param {string} serviceId
6073
+ * @param {PatchHospitalServiceCommand} [patchHospitalServiceCommand]
6074
+ * @param {*} [options] Override http request option.
6075
+ * @throws {RequiredError}
6076
+ */
6077
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch(hospitalId: string, specialtyId: string, serviceId: string, patchHospitalServiceCommand?: PatchHospitalServiceCommand, options?: any): AxiosPromise<HospitalServiceModel>;
6044
6078
  /**
6045
6079
  *
6046
6080
  * @summary Update HospitalService. (Auth policies: RequireLocalManagerOrContentManagerRole)
@@ -11281,6 +11315,37 @@ export interface HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServi
11281
11315
  */
11282
11316
  readonly createMediaCommand?: CreateMediaCommand;
11283
11317
  }
11318
+ /**
11319
+ * Request parameters for apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch operation in HospitalsApi.
11320
+ * @export
11321
+ * @interface HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatchRequest
11322
+ */
11323
+ export interface HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatchRequest {
11324
+ /**
11325
+ *
11326
+ * @type {string}
11327
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch
11328
+ */
11329
+ readonly hospitalId: string;
11330
+ /**
11331
+ *
11332
+ * @type {string}
11333
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch
11334
+ */
11335
+ readonly specialtyId: string;
11336
+ /**
11337
+ *
11338
+ * @type {string}
11339
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch
11340
+ */
11341
+ readonly serviceId: string;
11342
+ /**
11343
+ *
11344
+ * @type {PatchHospitalServiceCommand}
11345
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch
11346
+ */
11347
+ readonly patchHospitalServiceCommand?: PatchHospitalServiceCommand;
11348
+ }
11284
11349
  /**
11285
11350
  * Request parameters for apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut operation in HospitalsApi.
11286
11351
  * @export
@@ -13400,6 +13465,15 @@ export declare class HospitalsApi extends BaseAPI {
13400
13465
  * @memberof HospitalsApi
13401
13466
  */
13402
13467
  apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(requestParameters: HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MediaModel, any>>;
13468
+ /**
13469
+ *
13470
+ * @summary Patch HospitalService. <br>Updates only the requested fields. (Auth policies: RequireLocalManagerOrContentManagerRole)
13471
+ * @param {HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatchRequest} requestParameters Request parameters.
13472
+ * @param {*} [options] Override http request option.
13473
+ * @throws {RequiredError}
13474
+ * @memberof HospitalsApi
13475
+ */
13476
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatch(requestParameters: HospitalsApiApiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPatchRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<HospitalServiceModel, any>>;
13403
13477
  /**
13404
13478
  *
13405
13479
  * @summary Update HospitalService. (Auth policies: RequireLocalManagerOrContentManagerRole)