ch-admin-api-client-typescript 2.9.4 → 2.9.5
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 +696 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +688 -1
- package/package.json +1 -1
- package/src/api.ts +1026 -8
package/src/api.ts
CHANGED
|
@@ -21,6 +21,201 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AboutUsPageItemModel
|
|
28
|
+
*/
|
|
29
|
+
export interface AboutUsPageItemModel {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AboutUsPageItemModel
|
|
34
|
+
*/
|
|
35
|
+
'id'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AboutUsPageItemModel
|
|
40
|
+
*/
|
|
41
|
+
'hospitalId'?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AboutUsPageItemModel
|
|
46
|
+
*/
|
|
47
|
+
'hospitalName'?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AboutUsPageItemModel
|
|
52
|
+
*/
|
|
53
|
+
'hospitalSlug'?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AboutUsPageItemModel
|
|
58
|
+
*/
|
|
59
|
+
'overviewTitle'?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AboutUsPageItemModel
|
|
64
|
+
*/
|
|
65
|
+
'overview'?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AboutUsPageItemModel
|
|
70
|
+
*/
|
|
71
|
+
'content'?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AboutUsPageItemModel
|
|
76
|
+
*/
|
|
77
|
+
'customStyle'?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof AboutUsPageItemModel
|
|
82
|
+
*/
|
|
83
|
+
'background'?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof AboutUsPageItemModel
|
|
88
|
+
*/
|
|
89
|
+
'backgroundThumbnail'?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof AboutUsPageItemModel
|
|
94
|
+
*/
|
|
95
|
+
'confirmed'?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Array<MediaModel>}
|
|
99
|
+
* @memberof AboutUsPageItemModel
|
|
100
|
+
*/
|
|
101
|
+
'medias'?: Array<MediaModel> | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {AuditableEntity}
|
|
105
|
+
* @memberof AboutUsPageItemModel
|
|
106
|
+
*/
|
|
107
|
+
'auditableEntity'?: AuditableEntity;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @export
|
|
112
|
+
* @interface AboutUsPageModel
|
|
113
|
+
*/
|
|
114
|
+
export interface AboutUsPageModel {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof AboutUsPageModel
|
|
119
|
+
*/
|
|
120
|
+
'id'?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof AboutUsPageModel
|
|
125
|
+
*/
|
|
126
|
+
'hospitalId'?: string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof AboutUsPageModel
|
|
131
|
+
*/
|
|
132
|
+
'hospitalName'?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof AboutUsPageModel
|
|
137
|
+
*/
|
|
138
|
+
'hospitalSlug'?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof AboutUsPageModel
|
|
143
|
+
*/
|
|
144
|
+
'overviewTitle'?: string | null;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof AboutUsPageModel
|
|
149
|
+
*/
|
|
150
|
+
'overview'?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof AboutUsPageModel
|
|
155
|
+
*/
|
|
156
|
+
'content'?: string | null;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof AboutUsPageModel
|
|
161
|
+
*/
|
|
162
|
+
'customStyle'?: string | null;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof AboutUsPageModel
|
|
167
|
+
*/
|
|
168
|
+
'background'?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof AboutUsPageModel
|
|
173
|
+
*/
|
|
174
|
+
'backgroundThumbnail'?: string | null;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {boolean}
|
|
178
|
+
* @memberof AboutUsPageModel
|
|
179
|
+
*/
|
|
180
|
+
'confirmed'?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {Array<MediaModel>}
|
|
184
|
+
* @memberof AboutUsPageModel
|
|
185
|
+
*/
|
|
186
|
+
'medias'?: Array<MediaModel> | null;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {AuditableEntity}
|
|
190
|
+
* @memberof AboutUsPageModel
|
|
191
|
+
*/
|
|
192
|
+
'auditableEntity'?: AuditableEntity;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof AboutUsPageModel
|
|
197
|
+
*/
|
|
198
|
+
'languageCode'?: string | null;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @export
|
|
203
|
+
* @interface AboutUsPagesModel
|
|
204
|
+
*/
|
|
205
|
+
export interface AboutUsPagesModel {
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {Array<AboutUsPageItemModel>}
|
|
209
|
+
* @memberof AboutUsPagesModel
|
|
210
|
+
*/
|
|
211
|
+
'items'?: Array<AboutUsPageItemModel> | null;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {PagedListMetaData}
|
|
215
|
+
* @memberof AboutUsPagesModel
|
|
216
|
+
*/
|
|
217
|
+
'metaData'?: PagedListMetaData;
|
|
218
|
+
}
|
|
24
219
|
/**
|
|
25
220
|
*
|
|
26
221
|
* @export
|
|
@@ -3002,6 +3197,67 @@ export interface CountryModel {
|
|
|
3002
3197
|
*/
|
|
3003
3198
|
'languageCode'?: string | null;
|
|
3004
3199
|
}
|
|
3200
|
+
/**
|
|
3201
|
+
*
|
|
3202
|
+
* @export
|
|
3203
|
+
* @interface CreateAboutUsPageCommand
|
|
3204
|
+
*/
|
|
3205
|
+
export interface CreateAboutUsPageCommand {
|
|
3206
|
+
/**
|
|
3207
|
+
*
|
|
3208
|
+
* @type {string}
|
|
3209
|
+
* @memberof CreateAboutUsPageCommand
|
|
3210
|
+
*/
|
|
3211
|
+
'hospitalId'?: string;
|
|
3212
|
+
/**
|
|
3213
|
+
*
|
|
3214
|
+
* @type {string}
|
|
3215
|
+
* @memberof CreateAboutUsPageCommand
|
|
3216
|
+
*/
|
|
3217
|
+
'overviewTitle'?: string | null;
|
|
3218
|
+
/**
|
|
3219
|
+
*
|
|
3220
|
+
* @type {string}
|
|
3221
|
+
* @memberof CreateAboutUsPageCommand
|
|
3222
|
+
*/
|
|
3223
|
+
'overview'?: string | null;
|
|
3224
|
+
/**
|
|
3225
|
+
*
|
|
3226
|
+
* @type {string}
|
|
3227
|
+
* @memberof CreateAboutUsPageCommand
|
|
3228
|
+
*/
|
|
3229
|
+
'content'?: string | null;
|
|
3230
|
+
/**
|
|
3231
|
+
*
|
|
3232
|
+
* @type {string}
|
|
3233
|
+
* @memberof CreateAboutUsPageCommand
|
|
3234
|
+
*/
|
|
3235
|
+
'customStyle'?: string | null;
|
|
3236
|
+
/**
|
|
3237
|
+
*
|
|
3238
|
+
* @type {string}
|
|
3239
|
+
* @memberof CreateAboutUsPageCommand
|
|
3240
|
+
*/
|
|
3241
|
+
'background'?: string | null;
|
|
3242
|
+
/**
|
|
3243
|
+
*
|
|
3244
|
+
* @type {string}
|
|
3245
|
+
* @memberof CreateAboutUsPageCommand
|
|
3246
|
+
*/
|
|
3247
|
+
'backgroundThumbnail'?: string | null;
|
|
3248
|
+
/**
|
|
3249
|
+
*
|
|
3250
|
+
* @type {Array<Media>}
|
|
3251
|
+
* @memberof CreateAboutUsPageCommand
|
|
3252
|
+
*/
|
|
3253
|
+
'medias'?: Array<Media> | null;
|
|
3254
|
+
/**
|
|
3255
|
+
*
|
|
3256
|
+
* @type {AuditableEntity}
|
|
3257
|
+
* @memberof CreateAboutUsPageCommand
|
|
3258
|
+
*/
|
|
3259
|
+
'auditableEntity'?: AuditableEntity;
|
|
3260
|
+
}
|
|
3005
3261
|
/**
|
|
3006
3262
|
*
|
|
3007
3263
|
* @export
|
|
@@ -8819,6 +9075,61 @@ export enum MarketingType {
|
|
|
8819
9075
|
Beauty = 'Beauty'
|
|
8820
9076
|
}
|
|
8821
9077
|
|
|
9078
|
+
/**
|
|
9079
|
+
*
|
|
9080
|
+
* @export
|
|
9081
|
+
* @interface Media
|
|
9082
|
+
*/
|
|
9083
|
+
export interface Media {
|
|
9084
|
+
/**
|
|
9085
|
+
*
|
|
9086
|
+
* @type {string}
|
|
9087
|
+
* @memberof Media
|
|
9088
|
+
*/
|
|
9089
|
+
'id'?: string;
|
|
9090
|
+
/**
|
|
9091
|
+
*
|
|
9092
|
+
* @type {MediaType}
|
|
9093
|
+
* @memberof Media
|
|
9094
|
+
*/
|
|
9095
|
+
'mediaType'?: MediaType;
|
|
9096
|
+
/**
|
|
9097
|
+
*
|
|
9098
|
+
* @type {string}
|
|
9099
|
+
* @memberof Media
|
|
9100
|
+
*/
|
|
9101
|
+
'url'?: string | null;
|
|
9102
|
+
/**
|
|
9103
|
+
*
|
|
9104
|
+
* @type {string}
|
|
9105
|
+
* @memberof Media
|
|
9106
|
+
*/
|
|
9107
|
+
'thumbnailUrl'?: string | null;
|
|
9108
|
+
/**
|
|
9109
|
+
*
|
|
9110
|
+
* @type {string}
|
|
9111
|
+
* @memberof Media
|
|
9112
|
+
*/
|
|
9113
|
+
'description'?: string | null;
|
|
9114
|
+
/**
|
|
9115
|
+
*
|
|
9116
|
+
* @type {number}
|
|
9117
|
+
* @memberof Media
|
|
9118
|
+
*/
|
|
9119
|
+
'height'?: number;
|
|
9120
|
+
/**
|
|
9121
|
+
*
|
|
9122
|
+
* @type {number}
|
|
9123
|
+
* @memberof Media
|
|
9124
|
+
*/
|
|
9125
|
+
'width'?: number;
|
|
9126
|
+
/**
|
|
9127
|
+
*
|
|
9128
|
+
* @type {number}
|
|
9129
|
+
* @memberof Media
|
|
9130
|
+
*/
|
|
9131
|
+
'order'?: number;
|
|
9132
|
+
}
|
|
8822
9133
|
/**
|
|
8823
9134
|
*
|
|
8824
9135
|
* @export
|
|
@@ -10895,27 +11206,112 @@ export interface TranslateCommand {
|
|
|
10895
11206
|
/**
|
|
10896
11207
|
*
|
|
10897
11208
|
* @export
|
|
10898
|
-
* @interface
|
|
11209
|
+
* @interface UpdateAboutUsPageCommand
|
|
10899
11210
|
*/
|
|
10900
|
-
export interface
|
|
11211
|
+
export interface UpdateAboutUsPageCommand {
|
|
10901
11212
|
/**
|
|
10902
11213
|
*
|
|
10903
11214
|
* @type {string}
|
|
10904
|
-
* @memberof
|
|
11215
|
+
* @memberof UpdateAboutUsPageCommand
|
|
10905
11216
|
*/
|
|
10906
|
-
'
|
|
11217
|
+
'hospitalId'?: string;
|
|
10907
11218
|
/**
|
|
10908
11219
|
*
|
|
10909
11220
|
* @type {string}
|
|
10910
|
-
* @memberof
|
|
11221
|
+
* @memberof UpdateAboutUsPageCommand
|
|
10911
11222
|
*/
|
|
10912
|
-
'
|
|
11223
|
+
'hospitalName'?: string | null;
|
|
10913
11224
|
/**
|
|
10914
11225
|
*
|
|
10915
11226
|
* @type {string}
|
|
10916
|
-
* @memberof
|
|
11227
|
+
* @memberof UpdateAboutUsPageCommand
|
|
10917
11228
|
*/
|
|
10918
|
-
'
|
|
11229
|
+
'hospitalSlug'?: string | null;
|
|
11230
|
+
/**
|
|
11231
|
+
*
|
|
11232
|
+
* @type {string}
|
|
11233
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11234
|
+
*/
|
|
11235
|
+
'overviewTitle'?: string | null;
|
|
11236
|
+
/**
|
|
11237
|
+
*
|
|
11238
|
+
* @type {string}
|
|
11239
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11240
|
+
*/
|
|
11241
|
+
'overview'?: string | null;
|
|
11242
|
+
/**
|
|
11243
|
+
*
|
|
11244
|
+
* @type {string}
|
|
11245
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11246
|
+
*/
|
|
11247
|
+
'content'?: string | null;
|
|
11248
|
+
/**
|
|
11249
|
+
*
|
|
11250
|
+
* @type {string}
|
|
11251
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11252
|
+
*/
|
|
11253
|
+
'customStyle'?: string | null;
|
|
11254
|
+
/**
|
|
11255
|
+
*
|
|
11256
|
+
* @type {string}
|
|
11257
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11258
|
+
*/
|
|
11259
|
+
'background'?: string | null;
|
|
11260
|
+
/**
|
|
11261
|
+
*
|
|
11262
|
+
* @type {string}
|
|
11263
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11264
|
+
*/
|
|
11265
|
+
'backgroundThumbnail'?: string | null;
|
|
11266
|
+
/**
|
|
11267
|
+
*
|
|
11268
|
+
* @type {string}
|
|
11269
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11270
|
+
*/
|
|
11271
|
+
'languageCode'?: string | null;
|
|
11272
|
+
/**
|
|
11273
|
+
*
|
|
11274
|
+
* @type {boolean}
|
|
11275
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11276
|
+
*/
|
|
11277
|
+
'confirmed'?: boolean;
|
|
11278
|
+
/**
|
|
11279
|
+
*
|
|
11280
|
+
* @type {Array<Media>}
|
|
11281
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11282
|
+
*/
|
|
11283
|
+
'medias'?: Array<Media> | null;
|
|
11284
|
+
/**
|
|
11285
|
+
*
|
|
11286
|
+
* @type {AuditableEntity}
|
|
11287
|
+
* @memberof UpdateAboutUsPageCommand
|
|
11288
|
+
*/
|
|
11289
|
+
'auditableEntity'?: AuditableEntity;
|
|
11290
|
+
}
|
|
11291
|
+
/**
|
|
11292
|
+
*
|
|
11293
|
+
* @export
|
|
11294
|
+
* @interface UpdateAccreditationCommand
|
|
11295
|
+
*/
|
|
11296
|
+
export interface UpdateAccreditationCommand {
|
|
11297
|
+
/**
|
|
11298
|
+
*
|
|
11299
|
+
* @type {string}
|
|
11300
|
+
* @memberof UpdateAccreditationCommand
|
|
11301
|
+
*/
|
|
11302
|
+
'name'?: string | null;
|
|
11303
|
+
/**
|
|
11304
|
+
*
|
|
11305
|
+
* @type {string}
|
|
11306
|
+
* @memberof UpdateAccreditationCommand
|
|
11307
|
+
*/
|
|
11308
|
+
'logo'?: string | null;
|
|
11309
|
+
/**
|
|
11310
|
+
*
|
|
11311
|
+
* @type {string}
|
|
11312
|
+
* @memberof UpdateAccreditationCommand
|
|
11313
|
+
*/
|
|
11314
|
+
'country'?: string | null;
|
|
10919
11315
|
}
|
|
10920
11316
|
/**
|
|
10921
11317
|
*
|
|
@@ -12989,6 +13385,628 @@ export interface WeatherForecast {
|
|
|
12989
13385
|
'summary'?: string | null;
|
|
12990
13386
|
}
|
|
12991
13387
|
|
|
13388
|
+
/**
|
|
13389
|
+
* AboutUsApi - axios parameter creator
|
|
13390
|
+
* @export
|
|
13391
|
+
*/
|
|
13392
|
+
export const AboutUsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13393
|
+
return {
|
|
13394
|
+
/**
|
|
13395
|
+
*
|
|
13396
|
+
* @summary Delete AboutUs.
|
|
13397
|
+
* @param {string} aboutUsId
|
|
13398
|
+
* @param {*} [options] Override http request option.
|
|
13399
|
+
* @throws {RequiredError}
|
|
13400
|
+
*/
|
|
13401
|
+
apiV1AboutusAboutUsIdDelete: async (aboutUsId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13402
|
+
// verify required parameter 'aboutUsId' is not null or undefined
|
|
13403
|
+
assertParamExists('apiV1AboutusAboutUsIdDelete', 'aboutUsId', aboutUsId)
|
|
13404
|
+
const localVarPath = `/api/v1/aboutus/{aboutUsId}`
|
|
13405
|
+
.replace(`{${"aboutUsId"}}`, encodeURIComponent(String(aboutUsId)));
|
|
13406
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13407
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13408
|
+
let baseOptions;
|
|
13409
|
+
if (configuration) {
|
|
13410
|
+
baseOptions = configuration.baseOptions;
|
|
13411
|
+
}
|
|
13412
|
+
|
|
13413
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13414
|
+
const localVarHeaderParameter = {} as any;
|
|
13415
|
+
const localVarQueryParameter = {} as any;
|
|
13416
|
+
|
|
13417
|
+
// authentication oauth2 required
|
|
13418
|
+
// oauth required
|
|
13419
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
13420
|
+
|
|
13421
|
+
|
|
13422
|
+
|
|
13423
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13424
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13425
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13426
|
+
|
|
13427
|
+
return {
|
|
13428
|
+
url: toPathString(localVarUrlObj),
|
|
13429
|
+
options: localVarRequestOptions,
|
|
13430
|
+
};
|
|
13431
|
+
},
|
|
13432
|
+
/**
|
|
13433
|
+
*
|
|
13434
|
+
* @summary Get AboutUs.
|
|
13435
|
+
* @param {string} aboutUsId
|
|
13436
|
+
* @param {string} [languageCode]
|
|
13437
|
+
* @param {boolean} [returnDefaultValue]
|
|
13438
|
+
* @param {*} [options] Override http request option.
|
|
13439
|
+
* @throws {RequiredError}
|
|
13440
|
+
*/
|
|
13441
|
+
apiV1AboutusAboutUsIdGet: async (aboutUsId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13442
|
+
// verify required parameter 'aboutUsId' is not null or undefined
|
|
13443
|
+
assertParamExists('apiV1AboutusAboutUsIdGet', 'aboutUsId', aboutUsId)
|
|
13444
|
+
const localVarPath = `/api/v1/aboutus/{aboutUsId}`
|
|
13445
|
+
.replace(`{${"aboutUsId"}}`, encodeURIComponent(String(aboutUsId)));
|
|
13446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13447
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13448
|
+
let baseOptions;
|
|
13449
|
+
if (configuration) {
|
|
13450
|
+
baseOptions = configuration.baseOptions;
|
|
13451
|
+
}
|
|
13452
|
+
|
|
13453
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13454
|
+
const localVarHeaderParameter = {} as any;
|
|
13455
|
+
const localVarQueryParameter = {} as any;
|
|
13456
|
+
|
|
13457
|
+
// authentication oauth2 required
|
|
13458
|
+
// oauth required
|
|
13459
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
13460
|
+
|
|
13461
|
+
if (languageCode !== undefined) {
|
|
13462
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
13463
|
+
}
|
|
13464
|
+
|
|
13465
|
+
if (returnDefaultValue !== undefined) {
|
|
13466
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
13467
|
+
}
|
|
13468
|
+
|
|
13469
|
+
|
|
13470
|
+
|
|
13471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13473
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13474
|
+
|
|
13475
|
+
return {
|
|
13476
|
+
url: toPathString(localVarUrlObj),
|
|
13477
|
+
options: localVarRequestOptions,
|
|
13478
|
+
};
|
|
13479
|
+
},
|
|
13480
|
+
/**
|
|
13481
|
+
*
|
|
13482
|
+
* @summary Update AboutUs.
|
|
13483
|
+
* @param {string} aboutUsId
|
|
13484
|
+
* @param {UpdateAboutUsPageCommand} [updateAboutUsPageCommand]
|
|
13485
|
+
* @param {*} [options] Override http request option.
|
|
13486
|
+
* @throws {RequiredError}
|
|
13487
|
+
*/
|
|
13488
|
+
apiV1AboutusAboutUsIdPut: async (aboutUsId: string, updateAboutUsPageCommand?: UpdateAboutUsPageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13489
|
+
// verify required parameter 'aboutUsId' is not null or undefined
|
|
13490
|
+
assertParamExists('apiV1AboutusAboutUsIdPut', 'aboutUsId', aboutUsId)
|
|
13491
|
+
const localVarPath = `/api/v1/aboutus/{aboutUsId}`
|
|
13492
|
+
.replace(`{${"aboutUsId"}}`, encodeURIComponent(String(aboutUsId)));
|
|
13493
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13494
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13495
|
+
let baseOptions;
|
|
13496
|
+
if (configuration) {
|
|
13497
|
+
baseOptions = configuration.baseOptions;
|
|
13498
|
+
}
|
|
13499
|
+
|
|
13500
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13501
|
+
const localVarHeaderParameter = {} as any;
|
|
13502
|
+
const localVarQueryParameter = {} as any;
|
|
13503
|
+
|
|
13504
|
+
// authentication oauth2 required
|
|
13505
|
+
// oauth required
|
|
13506
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
13507
|
+
|
|
13508
|
+
|
|
13509
|
+
|
|
13510
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13511
|
+
|
|
13512
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13514
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13515
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateAboutUsPageCommand, localVarRequestOptions, configuration)
|
|
13516
|
+
|
|
13517
|
+
return {
|
|
13518
|
+
url: toPathString(localVarUrlObj),
|
|
13519
|
+
options: localVarRequestOptions,
|
|
13520
|
+
};
|
|
13521
|
+
},
|
|
13522
|
+
/**
|
|
13523
|
+
*
|
|
13524
|
+
* @summary Get all AboutUsList.
|
|
13525
|
+
* @param {string} [hospitalId]
|
|
13526
|
+
* @param {string} [hospitalName]
|
|
13527
|
+
* @param {string} [hospitalSlug]
|
|
13528
|
+
* @param {string} [overviewTitle]
|
|
13529
|
+
* @param {string} [normalizedOverviewTitle]
|
|
13530
|
+
* @param {string} [overview]
|
|
13531
|
+
* @param {string} [content]
|
|
13532
|
+
* @param {string} [customStyle]
|
|
13533
|
+
* @param {string} [background]
|
|
13534
|
+
* @param {string} [backgroundThumbnail]
|
|
13535
|
+
* @param {string} [languageCode]
|
|
13536
|
+
* @param {boolean} [returnDefaultValue]
|
|
13537
|
+
* @param {boolean} [confirmed]
|
|
13538
|
+
* @param {number} [page]
|
|
13539
|
+
* @param {number} [limit]
|
|
13540
|
+
* @param {Date} [lastRetrieved]
|
|
13541
|
+
* @param {*} [options] Override http request option.
|
|
13542
|
+
* @throws {RequiredError}
|
|
13543
|
+
*/
|
|
13544
|
+
apiV1AboutusGet: async (hospitalId?: string, hospitalName?: string, hospitalSlug?: string, overviewTitle?: string, normalizedOverviewTitle?: string, overview?: string, content?: string, customStyle?: string, background?: string, backgroundThumbnail?: string, languageCode?: string, returnDefaultValue?: boolean, confirmed?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13545
|
+
const localVarPath = `/api/v1/aboutus`;
|
|
13546
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13547
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13548
|
+
let baseOptions;
|
|
13549
|
+
if (configuration) {
|
|
13550
|
+
baseOptions = configuration.baseOptions;
|
|
13551
|
+
}
|
|
13552
|
+
|
|
13553
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13554
|
+
const localVarHeaderParameter = {} as any;
|
|
13555
|
+
const localVarQueryParameter = {} as any;
|
|
13556
|
+
|
|
13557
|
+
// authentication oauth2 required
|
|
13558
|
+
// oauth required
|
|
13559
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
13560
|
+
|
|
13561
|
+
if (hospitalId !== undefined) {
|
|
13562
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
13563
|
+
}
|
|
13564
|
+
|
|
13565
|
+
if (hospitalName !== undefined) {
|
|
13566
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
13567
|
+
}
|
|
13568
|
+
|
|
13569
|
+
if (hospitalSlug !== undefined) {
|
|
13570
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
13571
|
+
}
|
|
13572
|
+
|
|
13573
|
+
if (overviewTitle !== undefined) {
|
|
13574
|
+
localVarQueryParameter['OverviewTitle'] = overviewTitle;
|
|
13575
|
+
}
|
|
13576
|
+
|
|
13577
|
+
if (normalizedOverviewTitle !== undefined) {
|
|
13578
|
+
localVarQueryParameter['NormalizedOverviewTitle'] = normalizedOverviewTitle;
|
|
13579
|
+
}
|
|
13580
|
+
|
|
13581
|
+
if (overview !== undefined) {
|
|
13582
|
+
localVarQueryParameter['Overview'] = overview;
|
|
13583
|
+
}
|
|
13584
|
+
|
|
13585
|
+
if (content !== undefined) {
|
|
13586
|
+
localVarQueryParameter['Content'] = content;
|
|
13587
|
+
}
|
|
13588
|
+
|
|
13589
|
+
if (customStyle !== undefined) {
|
|
13590
|
+
localVarQueryParameter['CustomStyle'] = customStyle;
|
|
13591
|
+
}
|
|
13592
|
+
|
|
13593
|
+
if (background !== undefined) {
|
|
13594
|
+
localVarQueryParameter['Background'] = background;
|
|
13595
|
+
}
|
|
13596
|
+
|
|
13597
|
+
if (backgroundThumbnail !== undefined) {
|
|
13598
|
+
localVarQueryParameter['BackgroundThumbnail'] = backgroundThumbnail;
|
|
13599
|
+
}
|
|
13600
|
+
|
|
13601
|
+
if (languageCode !== undefined) {
|
|
13602
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
13603
|
+
}
|
|
13604
|
+
|
|
13605
|
+
if (returnDefaultValue !== undefined) {
|
|
13606
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
13607
|
+
}
|
|
13608
|
+
|
|
13609
|
+
if (confirmed !== undefined) {
|
|
13610
|
+
localVarQueryParameter['Confirmed'] = confirmed;
|
|
13611
|
+
}
|
|
13612
|
+
|
|
13613
|
+
if (page !== undefined) {
|
|
13614
|
+
localVarQueryParameter['page'] = page;
|
|
13615
|
+
}
|
|
13616
|
+
|
|
13617
|
+
if (limit !== undefined) {
|
|
13618
|
+
localVarQueryParameter['limit'] = limit;
|
|
13619
|
+
}
|
|
13620
|
+
|
|
13621
|
+
if (lastRetrieved !== undefined) {
|
|
13622
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
13623
|
+
(lastRetrieved as any).toISOString() :
|
|
13624
|
+
lastRetrieved;
|
|
13625
|
+
}
|
|
13626
|
+
|
|
13627
|
+
|
|
13628
|
+
|
|
13629
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13630
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13631
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13632
|
+
|
|
13633
|
+
return {
|
|
13634
|
+
url: toPathString(localVarUrlObj),
|
|
13635
|
+
options: localVarRequestOptions,
|
|
13636
|
+
};
|
|
13637
|
+
},
|
|
13638
|
+
/**
|
|
13639
|
+
*
|
|
13640
|
+
* @summary Create AboutUs.
|
|
13641
|
+
* @param {CreateAboutUsPageCommand} [createAboutUsPageCommand]
|
|
13642
|
+
* @param {*} [options] Override http request option.
|
|
13643
|
+
* @throws {RequiredError}
|
|
13644
|
+
*/
|
|
13645
|
+
apiV1AboutusPost: async (createAboutUsPageCommand?: CreateAboutUsPageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13646
|
+
const localVarPath = `/api/v1/aboutus`;
|
|
13647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13649
|
+
let baseOptions;
|
|
13650
|
+
if (configuration) {
|
|
13651
|
+
baseOptions = configuration.baseOptions;
|
|
13652
|
+
}
|
|
13653
|
+
|
|
13654
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13655
|
+
const localVarHeaderParameter = {} as any;
|
|
13656
|
+
const localVarQueryParameter = {} as any;
|
|
13657
|
+
|
|
13658
|
+
// authentication oauth2 required
|
|
13659
|
+
// oauth required
|
|
13660
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
13661
|
+
|
|
13662
|
+
|
|
13663
|
+
|
|
13664
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13665
|
+
|
|
13666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13668
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13669
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createAboutUsPageCommand, localVarRequestOptions, configuration)
|
|
13670
|
+
|
|
13671
|
+
return {
|
|
13672
|
+
url: toPathString(localVarUrlObj),
|
|
13673
|
+
options: localVarRequestOptions,
|
|
13674
|
+
};
|
|
13675
|
+
},
|
|
13676
|
+
/**
|
|
13677
|
+
*
|
|
13678
|
+
* @param {string} slug
|
|
13679
|
+
* @param {string} [languageCode]
|
|
13680
|
+
* @param {boolean} [returnDefaultValue]
|
|
13681
|
+
* @param {*} [options] Override http request option.
|
|
13682
|
+
* @throws {RequiredError}
|
|
13683
|
+
*/
|
|
13684
|
+
apiV1AboutusSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13685
|
+
// verify required parameter 'slug' is not null or undefined
|
|
13686
|
+
assertParamExists('apiV1AboutusSlugGet', 'slug', slug)
|
|
13687
|
+
const localVarPath = `/api/v1/aboutus/{slug}`
|
|
13688
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
13689
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13690
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13691
|
+
let baseOptions;
|
|
13692
|
+
if (configuration) {
|
|
13693
|
+
baseOptions = configuration.baseOptions;
|
|
13694
|
+
}
|
|
13695
|
+
|
|
13696
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13697
|
+
const localVarHeaderParameter = {} as any;
|
|
13698
|
+
const localVarQueryParameter = {} as any;
|
|
13699
|
+
|
|
13700
|
+
// authentication oauth2 required
|
|
13701
|
+
// oauth required
|
|
13702
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
13703
|
+
|
|
13704
|
+
if (languageCode !== undefined) {
|
|
13705
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
13706
|
+
}
|
|
13707
|
+
|
|
13708
|
+
if (returnDefaultValue !== undefined) {
|
|
13709
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
13710
|
+
}
|
|
13711
|
+
|
|
13712
|
+
|
|
13713
|
+
|
|
13714
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13715
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13716
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13717
|
+
|
|
13718
|
+
return {
|
|
13719
|
+
url: toPathString(localVarUrlObj),
|
|
13720
|
+
options: localVarRequestOptions,
|
|
13721
|
+
};
|
|
13722
|
+
},
|
|
13723
|
+
}
|
|
13724
|
+
};
|
|
13725
|
+
|
|
13726
|
+
/**
|
|
13727
|
+
* AboutUsApi - functional programming interface
|
|
13728
|
+
* @export
|
|
13729
|
+
*/
|
|
13730
|
+
export const AboutUsApiFp = function(configuration?: Configuration) {
|
|
13731
|
+
const localVarAxiosParamCreator = AboutUsApiAxiosParamCreator(configuration)
|
|
13732
|
+
return {
|
|
13733
|
+
/**
|
|
13734
|
+
*
|
|
13735
|
+
* @summary Delete AboutUs.
|
|
13736
|
+
* @param {string} aboutUsId
|
|
13737
|
+
* @param {*} [options] Override http request option.
|
|
13738
|
+
* @throws {RequiredError}
|
|
13739
|
+
*/
|
|
13740
|
+
async apiV1AboutusAboutUsIdDelete(aboutUsId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
13741
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AboutusAboutUsIdDelete(aboutUsId, options);
|
|
13742
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13743
|
+
},
|
|
13744
|
+
/**
|
|
13745
|
+
*
|
|
13746
|
+
* @summary Get AboutUs.
|
|
13747
|
+
* @param {string} aboutUsId
|
|
13748
|
+
* @param {string} [languageCode]
|
|
13749
|
+
* @param {boolean} [returnDefaultValue]
|
|
13750
|
+
* @param {*} [options] Override http request option.
|
|
13751
|
+
* @throws {RequiredError}
|
|
13752
|
+
*/
|
|
13753
|
+
async apiV1AboutusAboutUsIdGet(aboutUsId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AboutUsPageModel>> {
|
|
13754
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options);
|
|
13755
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13756
|
+
},
|
|
13757
|
+
/**
|
|
13758
|
+
*
|
|
13759
|
+
* @summary Update AboutUs.
|
|
13760
|
+
* @param {string} aboutUsId
|
|
13761
|
+
* @param {UpdateAboutUsPageCommand} [updateAboutUsPageCommand]
|
|
13762
|
+
* @param {*} [options] Override http request option.
|
|
13763
|
+
* @throws {RequiredError}
|
|
13764
|
+
*/
|
|
13765
|
+
async apiV1AboutusAboutUsIdPut(aboutUsId: string, updateAboutUsPageCommand?: UpdateAboutUsPageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AboutUsPageModel>> {
|
|
13766
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AboutusAboutUsIdPut(aboutUsId, updateAboutUsPageCommand, options);
|
|
13767
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13768
|
+
},
|
|
13769
|
+
/**
|
|
13770
|
+
*
|
|
13771
|
+
* @summary Get all AboutUsList.
|
|
13772
|
+
* @param {string} [hospitalId]
|
|
13773
|
+
* @param {string} [hospitalName]
|
|
13774
|
+
* @param {string} [hospitalSlug]
|
|
13775
|
+
* @param {string} [overviewTitle]
|
|
13776
|
+
* @param {string} [normalizedOverviewTitle]
|
|
13777
|
+
* @param {string} [overview]
|
|
13778
|
+
* @param {string} [content]
|
|
13779
|
+
* @param {string} [customStyle]
|
|
13780
|
+
* @param {string} [background]
|
|
13781
|
+
* @param {string} [backgroundThumbnail]
|
|
13782
|
+
* @param {string} [languageCode]
|
|
13783
|
+
* @param {boolean} [returnDefaultValue]
|
|
13784
|
+
* @param {boolean} [confirmed]
|
|
13785
|
+
* @param {number} [page]
|
|
13786
|
+
* @param {number} [limit]
|
|
13787
|
+
* @param {Date} [lastRetrieved]
|
|
13788
|
+
* @param {*} [options] Override http request option.
|
|
13789
|
+
* @throws {RequiredError}
|
|
13790
|
+
*/
|
|
13791
|
+
async apiV1AboutusGet(hospitalId?: string, hospitalName?: string, hospitalSlug?: string, overviewTitle?: string, normalizedOverviewTitle?: string, overview?: string, content?: string, customStyle?: string, background?: string, backgroundThumbnail?: string, languageCode?: string, returnDefaultValue?: boolean, confirmed?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AboutUsPagesModel>> {
|
|
13792
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options);
|
|
13793
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13794
|
+
},
|
|
13795
|
+
/**
|
|
13796
|
+
*
|
|
13797
|
+
* @summary Create AboutUs.
|
|
13798
|
+
* @param {CreateAboutUsPageCommand} [createAboutUsPageCommand]
|
|
13799
|
+
* @param {*} [options] Override http request option.
|
|
13800
|
+
* @throws {RequiredError}
|
|
13801
|
+
*/
|
|
13802
|
+
async apiV1AboutusPost(createAboutUsPageCommand?: CreateAboutUsPageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AboutUsPageModel>> {
|
|
13803
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AboutusPost(createAboutUsPageCommand, options);
|
|
13804
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13805
|
+
},
|
|
13806
|
+
/**
|
|
13807
|
+
*
|
|
13808
|
+
* @param {string} slug
|
|
13809
|
+
* @param {string} [languageCode]
|
|
13810
|
+
* @param {boolean} [returnDefaultValue]
|
|
13811
|
+
* @param {*} [options] Override http request option.
|
|
13812
|
+
* @throws {RequiredError}
|
|
13813
|
+
*/
|
|
13814
|
+
async apiV1AboutusSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AboutUsPageModel>> {
|
|
13815
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AboutusSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
13816
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13817
|
+
},
|
|
13818
|
+
}
|
|
13819
|
+
};
|
|
13820
|
+
|
|
13821
|
+
/**
|
|
13822
|
+
* AboutUsApi - factory interface
|
|
13823
|
+
* @export
|
|
13824
|
+
*/
|
|
13825
|
+
export const AboutUsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13826
|
+
const localVarFp = AboutUsApiFp(configuration)
|
|
13827
|
+
return {
|
|
13828
|
+
/**
|
|
13829
|
+
*
|
|
13830
|
+
* @summary Delete AboutUs.
|
|
13831
|
+
* @param {string} aboutUsId
|
|
13832
|
+
* @param {*} [options] Override http request option.
|
|
13833
|
+
* @throws {RequiredError}
|
|
13834
|
+
*/
|
|
13835
|
+
apiV1AboutusAboutUsIdDelete(aboutUsId: string, options?: any): AxiosPromise<boolean> {
|
|
13836
|
+
return localVarFp.apiV1AboutusAboutUsIdDelete(aboutUsId, options).then((request) => request(axios, basePath));
|
|
13837
|
+
},
|
|
13838
|
+
/**
|
|
13839
|
+
*
|
|
13840
|
+
* @summary Get AboutUs.
|
|
13841
|
+
* @param {string} aboutUsId
|
|
13842
|
+
* @param {string} [languageCode]
|
|
13843
|
+
* @param {boolean} [returnDefaultValue]
|
|
13844
|
+
* @param {*} [options] Override http request option.
|
|
13845
|
+
* @throws {RequiredError}
|
|
13846
|
+
*/
|
|
13847
|
+
apiV1AboutusAboutUsIdGet(aboutUsId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<AboutUsPageModel> {
|
|
13848
|
+
return localVarFp.apiV1AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
13849
|
+
},
|
|
13850
|
+
/**
|
|
13851
|
+
*
|
|
13852
|
+
* @summary Update AboutUs.
|
|
13853
|
+
* @param {string} aboutUsId
|
|
13854
|
+
* @param {UpdateAboutUsPageCommand} [updateAboutUsPageCommand]
|
|
13855
|
+
* @param {*} [options] Override http request option.
|
|
13856
|
+
* @throws {RequiredError}
|
|
13857
|
+
*/
|
|
13858
|
+
apiV1AboutusAboutUsIdPut(aboutUsId: string, updateAboutUsPageCommand?: UpdateAboutUsPageCommand, options?: any): AxiosPromise<AboutUsPageModel> {
|
|
13859
|
+
return localVarFp.apiV1AboutusAboutUsIdPut(aboutUsId, updateAboutUsPageCommand, options).then((request) => request(axios, basePath));
|
|
13860
|
+
},
|
|
13861
|
+
/**
|
|
13862
|
+
*
|
|
13863
|
+
* @summary Get all AboutUsList.
|
|
13864
|
+
* @param {string} [hospitalId]
|
|
13865
|
+
* @param {string} [hospitalName]
|
|
13866
|
+
* @param {string} [hospitalSlug]
|
|
13867
|
+
* @param {string} [overviewTitle]
|
|
13868
|
+
* @param {string} [normalizedOverviewTitle]
|
|
13869
|
+
* @param {string} [overview]
|
|
13870
|
+
* @param {string} [content]
|
|
13871
|
+
* @param {string} [customStyle]
|
|
13872
|
+
* @param {string} [background]
|
|
13873
|
+
* @param {string} [backgroundThumbnail]
|
|
13874
|
+
* @param {string} [languageCode]
|
|
13875
|
+
* @param {boolean} [returnDefaultValue]
|
|
13876
|
+
* @param {boolean} [confirmed]
|
|
13877
|
+
* @param {number} [page]
|
|
13878
|
+
* @param {number} [limit]
|
|
13879
|
+
* @param {Date} [lastRetrieved]
|
|
13880
|
+
* @param {*} [options] Override http request option.
|
|
13881
|
+
* @throws {RequiredError}
|
|
13882
|
+
*/
|
|
13883
|
+
apiV1AboutusGet(hospitalId?: string, hospitalName?: string, hospitalSlug?: string, overviewTitle?: string, normalizedOverviewTitle?: string, overview?: string, content?: string, customStyle?: string, background?: string, backgroundThumbnail?: string, languageCode?: string, returnDefaultValue?: boolean, confirmed?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AboutUsPagesModel> {
|
|
13884
|
+
return localVarFp.apiV1AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
13885
|
+
},
|
|
13886
|
+
/**
|
|
13887
|
+
*
|
|
13888
|
+
* @summary Create AboutUs.
|
|
13889
|
+
* @param {CreateAboutUsPageCommand} [createAboutUsPageCommand]
|
|
13890
|
+
* @param {*} [options] Override http request option.
|
|
13891
|
+
* @throws {RequiredError}
|
|
13892
|
+
*/
|
|
13893
|
+
apiV1AboutusPost(createAboutUsPageCommand?: CreateAboutUsPageCommand, options?: any): AxiosPromise<AboutUsPageModel> {
|
|
13894
|
+
return localVarFp.apiV1AboutusPost(createAboutUsPageCommand, options).then((request) => request(axios, basePath));
|
|
13895
|
+
},
|
|
13896
|
+
/**
|
|
13897
|
+
*
|
|
13898
|
+
* @param {string} slug
|
|
13899
|
+
* @param {string} [languageCode]
|
|
13900
|
+
* @param {boolean} [returnDefaultValue]
|
|
13901
|
+
* @param {*} [options] Override http request option.
|
|
13902
|
+
* @throws {RequiredError}
|
|
13903
|
+
*/
|
|
13904
|
+
apiV1AboutusSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<AboutUsPageModel> {
|
|
13905
|
+
return localVarFp.apiV1AboutusSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
13906
|
+
},
|
|
13907
|
+
};
|
|
13908
|
+
};
|
|
13909
|
+
|
|
13910
|
+
/**
|
|
13911
|
+
* AboutUsApi - object-oriented interface
|
|
13912
|
+
* @export
|
|
13913
|
+
* @class AboutUsApi
|
|
13914
|
+
* @extends {BaseAPI}
|
|
13915
|
+
*/
|
|
13916
|
+
export class AboutUsApi extends BaseAPI {
|
|
13917
|
+
/**
|
|
13918
|
+
*
|
|
13919
|
+
* @summary Delete AboutUs.
|
|
13920
|
+
* @param {string} aboutUsId
|
|
13921
|
+
* @param {*} [options] Override http request option.
|
|
13922
|
+
* @throws {RequiredError}
|
|
13923
|
+
* @memberof AboutUsApi
|
|
13924
|
+
*/
|
|
13925
|
+
public apiV1AboutusAboutUsIdDelete(aboutUsId: string, options?: AxiosRequestConfig) {
|
|
13926
|
+
return AboutUsApiFp(this.configuration).apiV1AboutusAboutUsIdDelete(aboutUsId, options).then((request) => request(this.axios, this.basePath));
|
|
13927
|
+
}
|
|
13928
|
+
|
|
13929
|
+
/**
|
|
13930
|
+
*
|
|
13931
|
+
* @summary Get AboutUs.
|
|
13932
|
+
* @param {string} aboutUsId
|
|
13933
|
+
* @param {string} [languageCode]
|
|
13934
|
+
* @param {boolean} [returnDefaultValue]
|
|
13935
|
+
* @param {*} [options] Override http request option.
|
|
13936
|
+
* @throws {RequiredError}
|
|
13937
|
+
* @memberof AboutUsApi
|
|
13938
|
+
*/
|
|
13939
|
+
public apiV1AboutusAboutUsIdGet(aboutUsId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
13940
|
+
return AboutUsApiFp(this.configuration).apiV1AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
13941
|
+
}
|
|
13942
|
+
|
|
13943
|
+
/**
|
|
13944
|
+
*
|
|
13945
|
+
* @summary Update AboutUs.
|
|
13946
|
+
* @param {string} aboutUsId
|
|
13947
|
+
* @param {UpdateAboutUsPageCommand} [updateAboutUsPageCommand]
|
|
13948
|
+
* @param {*} [options] Override http request option.
|
|
13949
|
+
* @throws {RequiredError}
|
|
13950
|
+
* @memberof AboutUsApi
|
|
13951
|
+
*/
|
|
13952
|
+
public apiV1AboutusAboutUsIdPut(aboutUsId: string, updateAboutUsPageCommand?: UpdateAboutUsPageCommand, options?: AxiosRequestConfig) {
|
|
13953
|
+
return AboutUsApiFp(this.configuration).apiV1AboutusAboutUsIdPut(aboutUsId, updateAboutUsPageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
13954
|
+
}
|
|
13955
|
+
|
|
13956
|
+
/**
|
|
13957
|
+
*
|
|
13958
|
+
* @summary Get all AboutUsList.
|
|
13959
|
+
* @param {string} [hospitalId]
|
|
13960
|
+
* @param {string} [hospitalName]
|
|
13961
|
+
* @param {string} [hospitalSlug]
|
|
13962
|
+
* @param {string} [overviewTitle]
|
|
13963
|
+
* @param {string} [normalizedOverviewTitle]
|
|
13964
|
+
* @param {string} [overview]
|
|
13965
|
+
* @param {string} [content]
|
|
13966
|
+
* @param {string} [customStyle]
|
|
13967
|
+
* @param {string} [background]
|
|
13968
|
+
* @param {string} [backgroundThumbnail]
|
|
13969
|
+
* @param {string} [languageCode]
|
|
13970
|
+
* @param {boolean} [returnDefaultValue]
|
|
13971
|
+
* @param {boolean} [confirmed]
|
|
13972
|
+
* @param {number} [page]
|
|
13973
|
+
* @param {number} [limit]
|
|
13974
|
+
* @param {Date} [lastRetrieved]
|
|
13975
|
+
* @param {*} [options] Override http request option.
|
|
13976
|
+
* @throws {RequiredError}
|
|
13977
|
+
* @memberof AboutUsApi
|
|
13978
|
+
*/
|
|
13979
|
+
public apiV1AboutusGet(hospitalId?: string, hospitalName?: string, hospitalSlug?: string, overviewTitle?: string, normalizedOverviewTitle?: string, overview?: string, content?: string, customStyle?: string, background?: string, backgroundThumbnail?: string, languageCode?: string, returnDefaultValue?: boolean, confirmed?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
13980
|
+
return AboutUsApiFp(this.configuration).apiV1AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
13981
|
+
}
|
|
13982
|
+
|
|
13983
|
+
/**
|
|
13984
|
+
*
|
|
13985
|
+
* @summary Create AboutUs.
|
|
13986
|
+
* @param {CreateAboutUsPageCommand} [createAboutUsPageCommand]
|
|
13987
|
+
* @param {*} [options] Override http request option.
|
|
13988
|
+
* @throws {RequiredError}
|
|
13989
|
+
* @memberof AboutUsApi
|
|
13990
|
+
*/
|
|
13991
|
+
public apiV1AboutusPost(createAboutUsPageCommand?: CreateAboutUsPageCommand, options?: AxiosRequestConfig) {
|
|
13992
|
+
return AboutUsApiFp(this.configuration).apiV1AboutusPost(createAboutUsPageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
13993
|
+
}
|
|
13994
|
+
|
|
13995
|
+
/**
|
|
13996
|
+
*
|
|
13997
|
+
* @param {string} slug
|
|
13998
|
+
* @param {string} [languageCode]
|
|
13999
|
+
* @param {boolean} [returnDefaultValue]
|
|
14000
|
+
* @param {*} [options] Override http request option.
|
|
14001
|
+
* @throws {RequiredError}
|
|
14002
|
+
* @memberof AboutUsApi
|
|
14003
|
+
*/
|
|
14004
|
+
public apiV1AboutusSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
14005
|
+
return AboutUsApiFp(this.configuration).apiV1AboutusSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
14006
|
+
}
|
|
14007
|
+
}
|
|
14008
|
+
|
|
14009
|
+
|
|
12992
14010
|
/**
|
|
12993
14011
|
* AccreditationsApi - axios parameter creator
|
|
12994
14012
|
* @export
|