ch-admin-api-client-typescript 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -32032,6 +32032,263 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32032
32032
  options: localVarRequestOptions,
32033
32033
  };
32034
32034
  },
32035
+ /**
32036
+ *
32037
+ * @summary Get all HospitalServiceMedias.
32038
+ * @param {string} hospitalId
32039
+ * @param {string} hospitalSpecialtyId
32040
+ * @param {string} [id]
32041
+ * @param {MediaType} [mediaType]
32042
+ * @param {number} [page]
32043
+ * @param {number} [limit]
32044
+ * @param {Date} [lastRetrieved]
32045
+ * @param {*} [options] Override http request option.
32046
+ * @throws {RequiredError}
32047
+ */
32048
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: async (hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32049
+ // verify required parameter 'hospitalId' is not null or undefined
32050
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId)
32051
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32052
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
32053
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias`
32054
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32055
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32056
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32057
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32058
+ let baseOptions;
32059
+ if (configuration) {
32060
+ baseOptions = configuration.baseOptions;
32061
+ }
32062
+
32063
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32064
+ const localVarHeaderParameter = {} as any;
32065
+ const localVarQueryParameter = {} as any;
32066
+
32067
+ // authentication oauth2 required
32068
+ // oauth required
32069
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32070
+
32071
+ if (id !== undefined) {
32072
+ localVarQueryParameter['Id'] = id;
32073
+ }
32074
+
32075
+ if (mediaType !== undefined) {
32076
+ localVarQueryParameter['MediaType'] = mediaType;
32077
+ }
32078
+
32079
+ if (page !== undefined) {
32080
+ localVarQueryParameter['page'] = page;
32081
+ }
32082
+
32083
+ if (limit !== undefined) {
32084
+ localVarQueryParameter['limit'] = limit;
32085
+ }
32086
+
32087
+ if (lastRetrieved !== undefined) {
32088
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
32089
+ (lastRetrieved as any).toISOString() :
32090
+ lastRetrieved;
32091
+ }
32092
+
32093
+
32094
+
32095
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32097
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32098
+
32099
+ return {
32100
+ url: toPathString(localVarUrlObj),
32101
+ options: localVarRequestOptions,
32102
+ };
32103
+ },
32104
+ /**
32105
+ *
32106
+ * @summary Delete HospitalServiceMedia
32107
+ * @param {string} hospitalId
32108
+ * @param {string} hospitalSpecialtyId
32109
+ * @param {string} mediaId
32110
+ * @param {*} [options] Override http request option.
32111
+ * @throws {RequiredError}
32112
+ */
32113
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32114
+ // verify required parameter 'hospitalId' is not null or undefined
32115
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalId', hospitalId)
32116
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32117
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId)
32118
+ // verify required parameter 'mediaId' is not null or undefined
32119
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId)
32120
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32121
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32122
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32123
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32124
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32125
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32126
+ let baseOptions;
32127
+ if (configuration) {
32128
+ baseOptions = configuration.baseOptions;
32129
+ }
32130
+
32131
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
32132
+ const localVarHeaderParameter = {} as any;
32133
+ const localVarQueryParameter = {} as any;
32134
+
32135
+ // authentication oauth2 required
32136
+ // oauth required
32137
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32138
+
32139
+
32140
+
32141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32144
+
32145
+ return {
32146
+ url: toPathString(localVarUrlObj),
32147
+ options: localVarRequestOptions,
32148
+ };
32149
+ },
32150
+ /**
32151
+ *
32152
+ * @summary Get HospitalServiceMedia.
32153
+ * @param {string} hospitalId
32154
+ * @param {string} hospitalSpecialtyId
32155
+ * @param {string} mediaId
32156
+ * @param {*} [options] Override http request option.
32157
+ * @throws {RequiredError}
32158
+ */
32159
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32160
+ // verify required parameter 'hospitalId' is not null or undefined
32161
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId)
32162
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32163
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
32164
+ // verify required parameter 'mediaId' is not null or undefined
32165
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId)
32166
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32167
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32168
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32169
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32171
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32172
+ let baseOptions;
32173
+ if (configuration) {
32174
+ baseOptions = configuration.baseOptions;
32175
+ }
32176
+
32177
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32178
+ const localVarHeaderParameter = {} as any;
32179
+ const localVarQueryParameter = {} as any;
32180
+
32181
+ // authentication oauth2 required
32182
+ // oauth required
32183
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32184
+
32185
+
32186
+
32187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32189
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32190
+
32191
+ return {
32192
+ url: toPathString(localVarUrlObj),
32193
+ options: localVarRequestOptions,
32194
+ };
32195
+ },
32196
+ /**
32197
+ *
32198
+ * @summary Update HospitalServiceMedia.
32199
+ * @param {string} hospitalId
32200
+ * @param {string} hospitalSpecialtyId
32201
+ * @param {string} mediaId
32202
+ * @param {UpdateMediaCommand} [updateMediaCommand]
32203
+ * @param {*} [options] Override http request option.
32204
+ * @throws {RequiredError}
32205
+ */
32206
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32207
+ // verify required parameter 'hospitalId' is not null or undefined
32208
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalId', hospitalId)
32209
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32210
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId)
32211
+ // verify required parameter 'mediaId' is not null or undefined
32212
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId)
32213
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32214
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32215
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32216
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32217
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32218
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32219
+ let baseOptions;
32220
+ if (configuration) {
32221
+ baseOptions = configuration.baseOptions;
32222
+ }
32223
+
32224
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
32225
+ const localVarHeaderParameter = {} as any;
32226
+ const localVarQueryParameter = {} as any;
32227
+
32228
+ // authentication oauth2 required
32229
+ // oauth required
32230
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32231
+
32232
+
32233
+
32234
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32235
+
32236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32238
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32239
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
32240
+
32241
+ return {
32242
+ url: toPathString(localVarUrlObj),
32243
+ options: localVarRequestOptions,
32244
+ };
32245
+ },
32246
+ /**
32247
+ *
32248
+ * @summary Create HospitalServiceMedia.
32249
+ * @param {string} hospitalId
32250
+ * @param {string} hospitalSpecialtyId
32251
+ * @param {CreateMediaCommand} [createMediaCommand]
32252
+ * @param {*} [options] Override http request option.
32253
+ * @throws {RequiredError}
32254
+ */
32255
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: async (hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32256
+ // verify required parameter 'hospitalId' is not null or undefined
32257
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalId', hospitalId)
32258
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32259
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalSpecialtyId', hospitalSpecialtyId)
32260
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias`
32261
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32262
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32265
+ let baseOptions;
32266
+ if (configuration) {
32267
+ baseOptions = configuration.baseOptions;
32268
+ }
32269
+
32270
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32271
+ const localVarHeaderParameter = {} as any;
32272
+ const localVarQueryParameter = {} as any;
32273
+
32274
+ // authentication oauth2 required
32275
+ // oauth required
32276
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32277
+
32278
+
32279
+
32280
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32281
+
32282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32284
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32285
+ localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
32286
+
32287
+ return {
32288
+ url: toPathString(localVarUrlObj),
32289
+ options: localVarRequestOptions,
32290
+ };
32291
+ },
32035
32292
  /**
32036
32293
  *
32037
32294
  * @summary Create HospitalSpecialty.
@@ -33890,6 +34147,76 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
33890
34147
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options);
33891
34148
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33892
34149
  },
34150
+ /**
34151
+ *
34152
+ * @summary Get all HospitalServiceMedias.
34153
+ * @param {string} hospitalId
34154
+ * @param {string} hospitalSpecialtyId
34155
+ * @param {string} [id]
34156
+ * @param {MediaType} [mediaType]
34157
+ * @param {number} [page]
34158
+ * @param {number} [limit]
34159
+ * @param {Date} [lastRetrieved]
34160
+ * @param {*} [options] Override http request option.
34161
+ * @throws {RequiredError}
34162
+ */
34163
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
34164
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options);
34165
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34166
+ },
34167
+ /**
34168
+ *
34169
+ * @summary Delete HospitalServiceMedia
34170
+ * @param {string} hospitalId
34171
+ * @param {string} hospitalSpecialtyId
34172
+ * @param {string} mediaId
34173
+ * @param {*} [options] Override http request option.
34174
+ * @throws {RequiredError}
34175
+ */
34176
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
34177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options);
34178
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34179
+ },
34180
+ /**
34181
+ *
34182
+ * @summary Get HospitalServiceMedia.
34183
+ * @param {string} hospitalId
34184
+ * @param {string} hospitalSpecialtyId
34185
+ * @param {string} mediaId
34186
+ * @param {*} [options] Override http request option.
34187
+ * @throws {RequiredError}
34188
+ */
34189
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34190
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options);
34191
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34192
+ },
34193
+ /**
34194
+ *
34195
+ * @summary Update HospitalServiceMedia.
34196
+ * @param {string} hospitalId
34197
+ * @param {string} hospitalSpecialtyId
34198
+ * @param {string} mediaId
34199
+ * @param {UpdateMediaCommand} [updateMediaCommand]
34200
+ * @param {*} [options] Override http request option.
34201
+ * @throws {RequiredError}
34202
+ */
34203
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34204
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options);
34205
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34206
+ },
34207
+ /**
34208
+ *
34209
+ * @summary Create HospitalServiceMedia.
34210
+ * @param {string} hospitalId
34211
+ * @param {string} hospitalSpecialtyId
34212
+ * @param {CreateMediaCommand} [createMediaCommand]
34213
+ * @param {*} [options] Override http request option.
34214
+ * @throws {RequiredError}
34215
+ */
34216
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34217
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options);
34218
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34219
+ },
33893
34220
  /**
33894
34221
  *
33895
34222
  * @summary Create HospitalSpecialty.
@@ -34697,6 +35024,71 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
34697
35024
  apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesModel> {
34698
35025
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
34699
35026
  },
35027
+ /**
35028
+ *
35029
+ * @summary Get all HospitalServiceMedias.
35030
+ * @param {string} hospitalId
35031
+ * @param {string} hospitalSpecialtyId
35032
+ * @param {string} [id]
35033
+ * @param {MediaType} [mediaType]
35034
+ * @param {number} [page]
35035
+ * @param {number} [limit]
35036
+ * @param {Date} [lastRetrieved]
35037
+ * @param {*} [options] Override http request option.
35038
+ * @throws {RequiredError}
35039
+ */
35040
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
35041
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
35042
+ },
35043
+ /**
35044
+ *
35045
+ * @summary Delete HospitalServiceMedia
35046
+ * @param {string} hospitalId
35047
+ * @param {string} hospitalSpecialtyId
35048
+ * @param {string} mediaId
35049
+ * @param {*} [options] Override http request option.
35050
+ * @throws {RequiredError}
35051
+ */
35052
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
35053
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(axios, basePath));
35054
+ },
35055
+ /**
35056
+ *
35057
+ * @summary Get HospitalServiceMedia.
35058
+ * @param {string} hospitalId
35059
+ * @param {string} hospitalSpecialtyId
35060
+ * @param {string} mediaId
35061
+ * @param {*} [options] Override http request option.
35062
+ * @throws {RequiredError}
35063
+ */
35064
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
35065
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(axios, basePath));
35066
+ },
35067
+ /**
35068
+ *
35069
+ * @summary Update HospitalServiceMedia.
35070
+ * @param {string} hospitalId
35071
+ * @param {string} hospitalSpecialtyId
35072
+ * @param {string} mediaId
35073
+ * @param {UpdateMediaCommand} [updateMediaCommand]
35074
+ * @param {*} [options] Override http request option.
35075
+ * @throws {RequiredError}
35076
+ */
35077
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35078
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
35079
+ },
35080
+ /**
35081
+ *
35082
+ * @summary Create HospitalServiceMedia.
35083
+ * @param {string} hospitalId
35084
+ * @param {string} hospitalSpecialtyId
35085
+ * @param {CreateMediaCommand} [createMediaCommand]
35086
+ * @param {*} [options] Override http request option.
35087
+ * @throws {RequiredError}
35088
+ */
35089
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35090
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then((request) => request(axios, basePath));
35091
+ },
34700
35092
  /**
34701
35093
  *
34702
35094
  * @summary Create HospitalSpecialty.
@@ -35549,6 +35941,81 @@ export class HospitalsApi extends BaseAPI {
35549
35941
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
35550
35942
  }
35551
35943
 
35944
+ /**
35945
+ *
35946
+ * @summary Get all HospitalServiceMedias.
35947
+ * @param {string} hospitalId
35948
+ * @param {string} hospitalSpecialtyId
35949
+ * @param {string} [id]
35950
+ * @param {MediaType} [mediaType]
35951
+ * @param {number} [page]
35952
+ * @param {number} [limit]
35953
+ * @param {Date} [lastRetrieved]
35954
+ * @param {*} [options] Override http request option.
35955
+ * @throws {RequiredError}
35956
+ * @memberof HospitalsApi
35957
+ */
35958
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
35959
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
35960
+ }
35961
+
35962
+ /**
35963
+ *
35964
+ * @summary Delete HospitalServiceMedia
35965
+ * @param {string} hospitalId
35966
+ * @param {string} hospitalSpecialtyId
35967
+ * @param {string} mediaId
35968
+ * @param {*} [options] Override http request option.
35969
+ * @throws {RequiredError}
35970
+ * @memberof HospitalsApi
35971
+ */
35972
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
35973
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
35974
+ }
35975
+
35976
+ /**
35977
+ *
35978
+ * @summary Get HospitalServiceMedia.
35979
+ * @param {string} hospitalId
35980
+ * @param {string} hospitalSpecialtyId
35981
+ * @param {string} mediaId
35982
+ * @param {*} [options] Override http request option.
35983
+ * @throws {RequiredError}
35984
+ * @memberof HospitalsApi
35985
+ */
35986
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
35987
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
35988
+ }
35989
+
35990
+ /**
35991
+ *
35992
+ * @summary Update HospitalServiceMedia.
35993
+ * @param {string} hospitalId
35994
+ * @param {string} hospitalSpecialtyId
35995
+ * @param {string} mediaId
35996
+ * @param {UpdateMediaCommand} [updateMediaCommand]
35997
+ * @param {*} [options] Override http request option.
35998
+ * @throws {RequiredError}
35999
+ * @memberof HospitalsApi
36000
+ */
36001
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
36002
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
36003
+ }
36004
+
36005
+ /**
36006
+ *
36007
+ * @summary Create HospitalServiceMedia.
36008
+ * @param {string} hospitalId
36009
+ * @param {string} hospitalSpecialtyId
36010
+ * @param {CreateMediaCommand} [createMediaCommand]
36011
+ * @param {*} [options] Override http request option.
36012
+ * @throws {RequiredError}
36013
+ * @memberof HospitalsApi
36014
+ */
36015
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
36016
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
36017
+ }
36018
+
35552
36019
  /**
35553
36020
  *
35554
36021
  * @summary Create HospitalSpecialty.