ch-admin-api-client-typescript 4.4.4 → 4.4.6
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 +560 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +673 -8
- package/package.json +1 -1
- package/src/api.ts +861 -7
package/src/api.ts
CHANGED
|
@@ -1155,6 +1155,62 @@ export interface BatchAddHospitalConsultationTimetableOverrideModel {
|
|
|
1155
1155
|
* @memberof BatchAddHospitalConsultationTimetableOverrideModel
|
|
1156
1156
|
*/
|
|
1157
1157
|
'end'?: string | null;
|
|
1158
|
+
/**
|
|
1159
|
+
*
|
|
1160
|
+
* @type {boolean}
|
|
1161
|
+
* @memberof BatchAddHospitalConsultationTimetableOverrideModel
|
|
1162
|
+
*/
|
|
1163
|
+
'isUnavailable'?: boolean | null;
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
*
|
|
1167
|
+
* @export
|
|
1168
|
+
* @interface BatchHeaderNavigationItemResultModel
|
|
1169
|
+
*/
|
|
1170
|
+
export interface BatchHeaderNavigationItemResultModel {
|
|
1171
|
+
/**
|
|
1172
|
+
*
|
|
1173
|
+
* @type {Array<HeaderNavigationItemModel>}
|
|
1174
|
+
* @memberof BatchHeaderNavigationItemResultModel
|
|
1175
|
+
*/
|
|
1176
|
+
'added'?: Array<HeaderNavigationItemModel> | null;
|
|
1177
|
+
/**
|
|
1178
|
+
*
|
|
1179
|
+
* @type {Array<HeaderNavigationItemModel>}
|
|
1180
|
+
* @memberof BatchHeaderNavigationItemResultModel
|
|
1181
|
+
*/
|
|
1182
|
+
'updated'?: Array<HeaderNavigationItemModel> | null;
|
|
1183
|
+
/**
|
|
1184
|
+
*
|
|
1185
|
+
* @type {Array<string>}
|
|
1186
|
+
* @memberof BatchHeaderNavigationItemResultModel
|
|
1187
|
+
*/
|
|
1188
|
+
'deleted'?: Array<string> | null;
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @export
|
|
1193
|
+
* @interface BatchHeaderNavigationItemsCommand
|
|
1194
|
+
*/
|
|
1195
|
+
export interface BatchHeaderNavigationItemsCommand {
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @type {Array<CreateHeaderNavigationItemModel>}
|
|
1199
|
+
* @memberof BatchHeaderNavigationItemsCommand
|
|
1200
|
+
*/
|
|
1201
|
+
'adds'?: Array<CreateHeaderNavigationItemModel> | null;
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @type {Array<UpdateHeaderNavigationItemModel>}
|
|
1205
|
+
* @memberof BatchHeaderNavigationItemsCommand
|
|
1206
|
+
*/
|
|
1207
|
+
'updates'?: Array<UpdateHeaderNavigationItemModel> | null;
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @type {Array<string>}
|
|
1211
|
+
* @memberof BatchHeaderNavigationItemsCommand
|
|
1212
|
+
*/
|
|
1213
|
+
'deletes'?: Array<string> | null;
|
|
1158
1214
|
}
|
|
1159
1215
|
/**
|
|
1160
1216
|
*
|
|
@@ -1311,6 +1367,12 @@ export interface BatchUpdateHospitalConsultationTimetableOverrideModel {
|
|
|
1311
1367
|
* @memberof BatchUpdateHospitalConsultationTimetableOverrideModel
|
|
1312
1368
|
*/
|
|
1313
1369
|
'end'?: string | null;
|
|
1370
|
+
/**
|
|
1371
|
+
*
|
|
1372
|
+
* @type {boolean}
|
|
1373
|
+
* @memberof BatchUpdateHospitalConsultationTimetableOverrideModel
|
|
1374
|
+
*/
|
|
1375
|
+
'isUnavailable'?: boolean | null;
|
|
1314
1376
|
/**
|
|
1315
1377
|
*
|
|
1316
1378
|
* @type {string}
|
|
@@ -4547,6 +4609,80 @@ export interface CreateFaqTagCommand {
|
|
|
4547
4609
|
*/
|
|
4548
4610
|
'tagId'?: string | null;
|
|
4549
4611
|
}
|
|
4612
|
+
/**
|
|
4613
|
+
*
|
|
4614
|
+
* @export
|
|
4615
|
+
* @interface CreateHeaderNavigationItemCommand
|
|
4616
|
+
*/
|
|
4617
|
+
export interface CreateHeaderNavigationItemCommand {
|
|
4618
|
+
/**
|
|
4619
|
+
*
|
|
4620
|
+
* @type {string}
|
|
4621
|
+
* @memberof CreateHeaderNavigationItemCommand
|
|
4622
|
+
*/
|
|
4623
|
+
'languageCode'?: string | null;
|
|
4624
|
+
/**
|
|
4625
|
+
*
|
|
4626
|
+
* @type {string}
|
|
4627
|
+
* @memberof CreateHeaderNavigationItemCommand
|
|
4628
|
+
*/
|
|
4629
|
+
'name'?: string | null;
|
|
4630
|
+
/**
|
|
4631
|
+
*
|
|
4632
|
+
* @type {string}
|
|
4633
|
+
* @memberof CreateHeaderNavigationItemCommand
|
|
4634
|
+
*/
|
|
4635
|
+
'url'?: string | null;
|
|
4636
|
+
/**
|
|
4637
|
+
*
|
|
4638
|
+
* @type {number}
|
|
4639
|
+
* @memberof CreateHeaderNavigationItemCommand
|
|
4640
|
+
*/
|
|
4641
|
+
'order'?: number;
|
|
4642
|
+
/**
|
|
4643
|
+
*
|
|
4644
|
+
* @type {string}
|
|
4645
|
+
* @memberof CreateHeaderNavigationItemCommand
|
|
4646
|
+
*/
|
|
4647
|
+
'parentId'?: string | null;
|
|
4648
|
+
}
|
|
4649
|
+
/**
|
|
4650
|
+
*
|
|
4651
|
+
* @export
|
|
4652
|
+
* @interface CreateHeaderNavigationItemModel
|
|
4653
|
+
*/
|
|
4654
|
+
export interface CreateHeaderNavigationItemModel {
|
|
4655
|
+
/**
|
|
4656
|
+
*
|
|
4657
|
+
* @type {string}
|
|
4658
|
+
* @memberof CreateHeaderNavigationItemModel
|
|
4659
|
+
*/
|
|
4660
|
+
'languageCode'?: string | null;
|
|
4661
|
+
/**
|
|
4662
|
+
*
|
|
4663
|
+
* @type {string}
|
|
4664
|
+
* @memberof CreateHeaderNavigationItemModel
|
|
4665
|
+
*/
|
|
4666
|
+
'name'?: string | null;
|
|
4667
|
+
/**
|
|
4668
|
+
*
|
|
4669
|
+
* @type {string}
|
|
4670
|
+
* @memberof CreateHeaderNavigationItemModel
|
|
4671
|
+
*/
|
|
4672
|
+
'url'?: string | null;
|
|
4673
|
+
/**
|
|
4674
|
+
*
|
|
4675
|
+
* @type {number}
|
|
4676
|
+
* @memberof CreateHeaderNavigationItemModel
|
|
4677
|
+
*/
|
|
4678
|
+
'order'?: number;
|
|
4679
|
+
/**
|
|
4680
|
+
*
|
|
4681
|
+
* @type {string}
|
|
4682
|
+
* @memberof CreateHeaderNavigationItemModel
|
|
4683
|
+
*/
|
|
4684
|
+
'parentId'?: string | null;
|
|
4685
|
+
}
|
|
4550
4686
|
/**
|
|
4551
4687
|
*
|
|
4552
4688
|
* @export
|
|
@@ -4742,6 +4878,12 @@ export interface CreateHospitalConsultationTimetableOverrideCommand {
|
|
|
4742
4878
|
* @memberof CreateHospitalConsultationTimetableOverrideCommand
|
|
4743
4879
|
*/
|
|
4744
4880
|
'end'?: string | null;
|
|
4881
|
+
/**
|
|
4882
|
+
*
|
|
4883
|
+
* @type {boolean}
|
|
4884
|
+
* @memberof CreateHospitalConsultationTimetableOverrideCommand
|
|
4885
|
+
*/
|
|
4886
|
+
'isUnavailable'?: boolean | null;
|
|
4745
4887
|
}
|
|
4746
4888
|
/**
|
|
4747
4889
|
*
|
|
@@ -7955,6 +8097,49 @@ export enum Gender {
|
|
|
7955
8097
|
PreferNotToSay = 'PreferNotToSay'
|
|
7956
8098
|
}
|
|
7957
8099
|
|
|
8100
|
+
/**
|
|
8101
|
+
*
|
|
8102
|
+
* @export
|
|
8103
|
+
* @interface HeaderNavigationItemModel
|
|
8104
|
+
*/
|
|
8105
|
+
export interface HeaderNavigationItemModel {
|
|
8106
|
+
/**
|
|
8107
|
+
*
|
|
8108
|
+
* @type {string}
|
|
8109
|
+
* @memberof HeaderNavigationItemModel
|
|
8110
|
+
*/
|
|
8111
|
+
'id'?: string;
|
|
8112
|
+
/**
|
|
8113
|
+
*
|
|
8114
|
+
* @type {string}
|
|
8115
|
+
* @memberof HeaderNavigationItemModel
|
|
8116
|
+
*/
|
|
8117
|
+
'name'?: string | null;
|
|
8118
|
+
/**
|
|
8119
|
+
*
|
|
8120
|
+
* @type {string}
|
|
8121
|
+
* @memberof HeaderNavigationItemModel
|
|
8122
|
+
*/
|
|
8123
|
+
'url'?: string | null;
|
|
8124
|
+
/**
|
|
8125
|
+
*
|
|
8126
|
+
* @type {number}
|
|
8127
|
+
* @memberof HeaderNavigationItemModel
|
|
8128
|
+
*/
|
|
8129
|
+
'level'?: number;
|
|
8130
|
+
/**
|
|
8131
|
+
*
|
|
8132
|
+
* @type {number}
|
|
8133
|
+
* @memberof HeaderNavigationItemModel
|
|
8134
|
+
*/
|
|
8135
|
+
'order'?: number;
|
|
8136
|
+
/**
|
|
8137
|
+
*
|
|
8138
|
+
* @type {Array<HeaderNavigationItemModel>}
|
|
8139
|
+
* @memberof HeaderNavigationItemModel
|
|
8140
|
+
*/
|
|
8141
|
+
'subItems'?: Array<HeaderNavigationItemModel> | null;
|
|
8142
|
+
}
|
|
7958
8143
|
/**
|
|
7959
8144
|
*
|
|
7960
8145
|
* @export
|
|
@@ -8153,6 +8338,12 @@ export interface HospitalConsultationTimetableOverrideItemModel {
|
|
|
8153
8338
|
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
8154
8339
|
*/
|
|
8155
8340
|
'end'?: string | null;
|
|
8341
|
+
/**
|
|
8342
|
+
*
|
|
8343
|
+
* @type {boolean}
|
|
8344
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
8345
|
+
*/
|
|
8346
|
+
'isUnavailable'?: boolean;
|
|
8156
8347
|
}
|
|
8157
8348
|
/**
|
|
8158
8349
|
*
|
|
@@ -8184,6 +8375,12 @@ export interface HospitalConsultationTimetableOverrideModel {
|
|
|
8184
8375
|
* @memberof HospitalConsultationTimetableOverrideModel
|
|
8185
8376
|
*/
|
|
8186
8377
|
'end'?: string | null;
|
|
8378
|
+
/**
|
|
8379
|
+
*
|
|
8380
|
+
* @type {boolean}
|
|
8381
|
+
* @memberof HospitalConsultationTimetableOverrideModel
|
|
8382
|
+
*/
|
|
8383
|
+
'isUnavailable'?: boolean;
|
|
8187
8384
|
}
|
|
8188
8385
|
/**
|
|
8189
8386
|
*
|
|
@@ -14085,6 +14282,86 @@ export interface UpdateFaqCommand {
|
|
|
14085
14282
|
*/
|
|
14086
14283
|
'medias'?: Array<MediaModel> | null;
|
|
14087
14284
|
}
|
|
14285
|
+
/**
|
|
14286
|
+
*
|
|
14287
|
+
* @export
|
|
14288
|
+
* @interface UpdateHeaderNavigationItemCommand
|
|
14289
|
+
*/
|
|
14290
|
+
export interface UpdateHeaderNavigationItemCommand {
|
|
14291
|
+
/**
|
|
14292
|
+
*
|
|
14293
|
+
* @type {string}
|
|
14294
|
+
* @memberof UpdateHeaderNavigationItemCommand
|
|
14295
|
+
*/
|
|
14296
|
+
'languageCode'?: string | null;
|
|
14297
|
+
/**
|
|
14298
|
+
*
|
|
14299
|
+
* @type {string}
|
|
14300
|
+
* @memberof UpdateHeaderNavigationItemCommand
|
|
14301
|
+
*/
|
|
14302
|
+
'name'?: string | null;
|
|
14303
|
+
/**
|
|
14304
|
+
*
|
|
14305
|
+
* @type {string}
|
|
14306
|
+
* @memberof UpdateHeaderNavigationItemCommand
|
|
14307
|
+
*/
|
|
14308
|
+
'url'?: string | null;
|
|
14309
|
+
/**
|
|
14310
|
+
*
|
|
14311
|
+
* @type {number}
|
|
14312
|
+
* @memberof UpdateHeaderNavigationItemCommand
|
|
14313
|
+
*/
|
|
14314
|
+
'order'?: number;
|
|
14315
|
+
/**
|
|
14316
|
+
*
|
|
14317
|
+
* @type {string}
|
|
14318
|
+
* @memberof UpdateHeaderNavigationItemCommand
|
|
14319
|
+
*/
|
|
14320
|
+
'parentId'?: string | null;
|
|
14321
|
+
}
|
|
14322
|
+
/**
|
|
14323
|
+
*
|
|
14324
|
+
* @export
|
|
14325
|
+
* @interface UpdateHeaderNavigationItemModel
|
|
14326
|
+
*/
|
|
14327
|
+
export interface UpdateHeaderNavigationItemModel {
|
|
14328
|
+
/**
|
|
14329
|
+
*
|
|
14330
|
+
* @type {string}
|
|
14331
|
+
* @memberof UpdateHeaderNavigationItemModel
|
|
14332
|
+
*/
|
|
14333
|
+
'languageCode'?: string | null;
|
|
14334
|
+
/**
|
|
14335
|
+
*
|
|
14336
|
+
* @type {string}
|
|
14337
|
+
* @memberof UpdateHeaderNavigationItemModel
|
|
14338
|
+
*/
|
|
14339
|
+
'name'?: string | null;
|
|
14340
|
+
/**
|
|
14341
|
+
*
|
|
14342
|
+
* @type {string}
|
|
14343
|
+
* @memberof UpdateHeaderNavigationItemModel
|
|
14344
|
+
*/
|
|
14345
|
+
'url'?: string | null;
|
|
14346
|
+
/**
|
|
14347
|
+
*
|
|
14348
|
+
* @type {number}
|
|
14349
|
+
* @memberof UpdateHeaderNavigationItemModel
|
|
14350
|
+
*/
|
|
14351
|
+
'order'?: number;
|
|
14352
|
+
/**
|
|
14353
|
+
*
|
|
14354
|
+
* @type {string}
|
|
14355
|
+
* @memberof UpdateHeaderNavigationItemModel
|
|
14356
|
+
*/
|
|
14357
|
+
'parentId'?: string | null;
|
|
14358
|
+
/**
|
|
14359
|
+
*
|
|
14360
|
+
* @type {string}
|
|
14361
|
+
* @memberof UpdateHeaderNavigationItemModel
|
|
14362
|
+
*/
|
|
14363
|
+
'id'?: string;
|
|
14364
|
+
}
|
|
14088
14365
|
/**
|
|
14089
14366
|
*
|
|
14090
14367
|
* @export
|
|
@@ -14291,6 +14568,12 @@ export interface UpdateHospitalConsultationTimetableOverrideCommand {
|
|
|
14291
14568
|
* @memberof UpdateHospitalConsultationTimetableOverrideCommand
|
|
14292
14569
|
*/
|
|
14293
14570
|
'end'?: string | null;
|
|
14571
|
+
/**
|
|
14572
|
+
*
|
|
14573
|
+
* @type {boolean}
|
|
14574
|
+
* @memberof UpdateHospitalConsultationTimetableOverrideCommand
|
|
14575
|
+
*/
|
|
14576
|
+
'isUnavailable'?: boolean | null;
|
|
14294
14577
|
}
|
|
14295
14578
|
/**
|
|
14296
14579
|
*
|
|
@@ -33485,6 +33768,549 @@ export class GroupChannelsApi extends BaseAPI {
|
|
|
33485
33768
|
}
|
|
33486
33769
|
|
|
33487
33770
|
|
|
33771
|
+
/**
|
|
33772
|
+
* HeaderNavigationsApi - axios parameter creator
|
|
33773
|
+
* @export
|
|
33774
|
+
*/
|
|
33775
|
+
export const HeaderNavigationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33776
|
+
return {
|
|
33777
|
+
/**
|
|
33778
|
+
*
|
|
33779
|
+
* @summary Batch HeaderNavigationItems; Do Add, update, delete at one request
|
|
33780
|
+
* @param {BatchHeaderNavigationItemsCommand} [batchHeaderNavigationItemsCommand]
|
|
33781
|
+
* @param {*} [options] Override http request option.
|
|
33782
|
+
* @throws {RequiredError}
|
|
33783
|
+
*/
|
|
33784
|
+
apiV1HeadernavigationsBatchPost: async (batchHeaderNavigationItemsCommand?: BatchHeaderNavigationItemsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33785
|
+
const localVarPath = `/api/v1/headernavigations/batch`;
|
|
33786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33787
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33788
|
+
let baseOptions;
|
|
33789
|
+
if (configuration) {
|
|
33790
|
+
baseOptions = configuration.baseOptions;
|
|
33791
|
+
}
|
|
33792
|
+
|
|
33793
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33794
|
+
const localVarHeaderParameter = {} as any;
|
|
33795
|
+
const localVarQueryParameter = {} as any;
|
|
33796
|
+
|
|
33797
|
+
// authentication oauth2 required
|
|
33798
|
+
// oauth required
|
|
33799
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
33800
|
+
|
|
33801
|
+
|
|
33802
|
+
|
|
33803
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33804
|
+
|
|
33805
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33806
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33807
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33808
|
+
localVarRequestOptions.data = serializeDataIfNeeded(batchHeaderNavigationItemsCommand, localVarRequestOptions, configuration)
|
|
33809
|
+
|
|
33810
|
+
return {
|
|
33811
|
+
url: toPathString(localVarUrlObj),
|
|
33812
|
+
options: localVarRequestOptions,
|
|
33813
|
+
};
|
|
33814
|
+
},
|
|
33815
|
+
/**
|
|
33816
|
+
*
|
|
33817
|
+
* @summary Get all HeaderNavigationItems
|
|
33818
|
+
* @param {string} [languageCode]
|
|
33819
|
+
* @param {*} [options] Override http request option.
|
|
33820
|
+
* @throws {RequiredError}
|
|
33821
|
+
*/
|
|
33822
|
+
apiV1HeadernavigationsGet: async (languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33823
|
+
const localVarPath = `/api/v1/headernavigations`;
|
|
33824
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33825
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33826
|
+
let baseOptions;
|
|
33827
|
+
if (configuration) {
|
|
33828
|
+
baseOptions = configuration.baseOptions;
|
|
33829
|
+
}
|
|
33830
|
+
|
|
33831
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
33832
|
+
const localVarHeaderParameter = {} as any;
|
|
33833
|
+
const localVarQueryParameter = {} as any;
|
|
33834
|
+
|
|
33835
|
+
// authentication oauth2 required
|
|
33836
|
+
// oauth required
|
|
33837
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
33838
|
+
|
|
33839
|
+
if (languageCode !== undefined) {
|
|
33840
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
33841
|
+
}
|
|
33842
|
+
|
|
33843
|
+
|
|
33844
|
+
|
|
33845
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33847
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33848
|
+
|
|
33849
|
+
return {
|
|
33850
|
+
url: toPathString(localVarUrlObj),
|
|
33851
|
+
options: localVarRequestOptions,
|
|
33852
|
+
};
|
|
33853
|
+
},
|
|
33854
|
+
/**
|
|
33855
|
+
*
|
|
33856
|
+
* @summary Delete HeaderNavigationItem
|
|
33857
|
+
* @param {string} id
|
|
33858
|
+
* @param {*} [options] Override http request option.
|
|
33859
|
+
* @throws {RequiredError}
|
|
33860
|
+
*/
|
|
33861
|
+
apiV1HeadernavigationsIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33862
|
+
// verify required parameter 'id' is not null or undefined
|
|
33863
|
+
assertParamExists('apiV1HeadernavigationsIdDelete', 'id', id)
|
|
33864
|
+
const localVarPath = `/api/v1/headernavigations/{id}`
|
|
33865
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
33866
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33867
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33868
|
+
let baseOptions;
|
|
33869
|
+
if (configuration) {
|
|
33870
|
+
baseOptions = configuration.baseOptions;
|
|
33871
|
+
}
|
|
33872
|
+
|
|
33873
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
33874
|
+
const localVarHeaderParameter = {} as any;
|
|
33875
|
+
const localVarQueryParameter = {} as any;
|
|
33876
|
+
|
|
33877
|
+
// authentication oauth2 required
|
|
33878
|
+
// oauth required
|
|
33879
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
33880
|
+
|
|
33881
|
+
|
|
33882
|
+
|
|
33883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33885
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33886
|
+
|
|
33887
|
+
return {
|
|
33888
|
+
url: toPathString(localVarUrlObj),
|
|
33889
|
+
options: localVarRequestOptions,
|
|
33890
|
+
};
|
|
33891
|
+
},
|
|
33892
|
+
/**
|
|
33893
|
+
*
|
|
33894
|
+
* @summary Get HeaderNavigationItem by id
|
|
33895
|
+
* @param {string} id
|
|
33896
|
+
* @param {*} [options] Override http request option.
|
|
33897
|
+
* @throws {RequiredError}
|
|
33898
|
+
*/
|
|
33899
|
+
apiV1HeadernavigationsIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33900
|
+
// verify required parameter 'id' is not null or undefined
|
|
33901
|
+
assertParamExists('apiV1HeadernavigationsIdGet', 'id', id)
|
|
33902
|
+
const localVarPath = `/api/v1/headernavigations/{id}`
|
|
33903
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
33904
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33905
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33906
|
+
let baseOptions;
|
|
33907
|
+
if (configuration) {
|
|
33908
|
+
baseOptions = configuration.baseOptions;
|
|
33909
|
+
}
|
|
33910
|
+
|
|
33911
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
33912
|
+
const localVarHeaderParameter = {} as any;
|
|
33913
|
+
const localVarQueryParameter = {} as any;
|
|
33914
|
+
|
|
33915
|
+
// authentication oauth2 required
|
|
33916
|
+
// oauth required
|
|
33917
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
33918
|
+
|
|
33919
|
+
|
|
33920
|
+
|
|
33921
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33922
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33923
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33924
|
+
|
|
33925
|
+
return {
|
|
33926
|
+
url: toPathString(localVarUrlObj),
|
|
33927
|
+
options: localVarRequestOptions,
|
|
33928
|
+
};
|
|
33929
|
+
},
|
|
33930
|
+
/**
|
|
33931
|
+
*
|
|
33932
|
+
* @summary Update HeaderNavigationItem
|
|
33933
|
+
* @param {string} id
|
|
33934
|
+
* @param {UpdateHeaderNavigationItemCommand} [updateHeaderNavigationItemCommand]
|
|
33935
|
+
* @param {*} [options] Override http request option.
|
|
33936
|
+
* @throws {RequiredError}
|
|
33937
|
+
*/
|
|
33938
|
+
apiV1HeadernavigationsIdPut: async (id: string, updateHeaderNavigationItemCommand?: UpdateHeaderNavigationItemCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33939
|
+
// verify required parameter 'id' is not null or undefined
|
|
33940
|
+
assertParamExists('apiV1HeadernavigationsIdPut', 'id', id)
|
|
33941
|
+
const localVarPath = `/api/v1/headernavigations/{id}`
|
|
33942
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
33943
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33944
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33945
|
+
let baseOptions;
|
|
33946
|
+
if (configuration) {
|
|
33947
|
+
baseOptions = configuration.baseOptions;
|
|
33948
|
+
}
|
|
33949
|
+
|
|
33950
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
33951
|
+
const localVarHeaderParameter = {} as any;
|
|
33952
|
+
const localVarQueryParameter = {} as any;
|
|
33953
|
+
|
|
33954
|
+
// authentication oauth2 required
|
|
33955
|
+
// oauth required
|
|
33956
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
33957
|
+
|
|
33958
|
+
|
|
33959
|
+
|
|
33960
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33961
|
+
|
|
33962
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33963
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33964
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33965
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateHeaderNavigationItemCommand, localVarRequestOptions, configuration)
|
|
33966
|
+
|
|
33967
|
+
return {
|
|
33968
|
+
url: toPathString(localVarUrlObj),
|
|
33969
|
+
options: localVarRequestOptions,
|
|
33970
|
+
};
|
|
33971
|
+
},
|
|
33972
|
+
/**
|
|
33973
|
+
*
|
|
33974
|
+
* @summary Get HeaderNavigationItems by parent id
|
|
33975
|
+
* @param {string} parentId
|
|
33976
|
+
* @param {*} [options] Override http request option.
|
|
33977
|
+
* @throws {RequiredError}
|
|
33978
|
+
*/
|
|
33979
|
+
apiV1HeadernavigationsParentIdSubitemsGet: async (parentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33980
|
+
// verify required parameter 'parentId' is not null or undefined
|
|
33981
|
+
assertParamExists('apiV1HeadernavigationsParentIdSubitemsGet', 'parentId', parentId)
|
|
33982
|
+
const localVarPath = `/api/v1/headernavigations/{parentId}/subitems`
|
|
33983
|
+
.replace(`{${"parentId"}}`, encodeURIComponent(String(parentId)));
|
|
33984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33986
|
+
let baseOptions;
|
|
33987
|
+
if (configuration) {
|
|
33988
|
+
baseOptions = configuration.baseOptions;
|
|
33989
|
+
}
|
|
33990
|
+
|
|
33991
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
33992
|
+
const localVarHeaderParameter = {} as any;
|
|
33993
|
+
const localVarQueryParameter = {} as any;
|
|
33994
|
+
|
|
33995
|
+
// authentication oauth2 required
|
|
33996
|
+
// oauth required
|
|
33997
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
33998
|
+
|
|
33999
|
+
|
|
34000
|
+
|
|
34001
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34003
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34004
|
+
|
|
34005
|
+
return {
|
|
34006
|
+
url: toPathString(localVarUrlObj),
|
|
34007
|
+
options: localVarRequestOptions,
|
|
34008
|
+
};
|
|
34009
|
+
},
|
|
34010
|
+
/**
|
|
34011
|
+
*
|
|
34012
|
+
* @summary Create HeaderNavigationItem
|
|
34013
|
+
* @param {CreateHeaderNavigationItemCommand} [createHeaderNavigationItemCommand]
|
|
34014
|
+
* @param {*} [options] Override http request option.
|
|
34015
|
+
* @throws {RequiredError}
|
|
34016
|
+
*/
|
|
34017
|
+
apiV1HeadernavigationsPost: async (createHeaderNavigationItemCommand?: CreateHeaderNavigationItemCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34018
|
+
const localVarPath = `/api/v1/headernavigations`;
|
|
34019
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34020
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34021
|
+
let baseOptions;
|
|
34022
|
+
if (configuration) {
|
|
34023
|
+
baseOptions = configuration.baseOptions;
|
|
34024
|
+
}
|
|
34025
|
+
|
|
34026
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
34027
|
+
const localVarHeaderParameter = {} as any;
|
|
34028
|
+
const localVarQueryParameter = {} as any;
|
|
34029
|
+
|
|
34030
|
+
// authentication oauth2 required
|
|
34031
|
+
// oauth required
|
|
34032
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
34033
|
+
|
|
34034
|
+
|
|
34035
|
+
|
|
34036
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34037
|
+
|
|
34038
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34039
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34040
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34041
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createHeaderNavigationItemCommand, localVarRequestOptions, configuration)
|
|
34042
|
+
|
|
34043
|
+
return {
|
|
34044
|
+
url: toPathString(localVarUrlObj),
|
|
34045
|
+
options: localVarRequestOptions,
|
|
34046
|
+
};
|
|
34047
|
+
},
|
|
34048
|
+
}
|
|
34049
|
+
};
|
|
34050
|
+
|
|
34051
|
+
/**
|
|
34052
|
+
* HeaderNavigationsApi - functional programming interface
|
|
34053
|
+
* @export
|
|
34054
|
+
*/
|
|
34055
|
+
export const HeaderNavigationsApiFp = function(configuration?: Configuration) {
|
|
34056
|
+
const localVarAxiosParamCreator = HeaderNavigationsApiAxiosParamCreator(configuration)
|
|
34057
|
+
return {
|
|
34058
|
+
/**
|
|
34059
|
+
*
|
|
34060
|
+
* @summary Batch HeaderNavigationItems; Do Add, update, delete at one request
|
|
34061
|
+
* @param {BatchHeaderNavigationItemsCommand} [batchHeaderNavigationItemsCommand]
|
|
34062
|
+
* @param {*} [options] Override http request option.
|
|
34063
|
+
* @throws {RequiredError}
|
|
34064
|
+
*/
|
|
34065
|
+
async apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand?: BatchHeaderNavigationItemsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchHeaderNavigationItemResultModel>> {
|
|
34066
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand, options);
|
|
34067
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34068
|
+
},
|
|
34069
|
+
/**
|
|
34070
|
+
*
|
|
34071
|
+
* @summary Get all HeaderNavigationItems
|
|
34072
|
+
* @param {string} [languageCode]
|
|
34073
|
+
* @param {*} [options] Override http request option.
|
|
34074
|
+
* @throws {RequiredError}
|
|
34075
|
+
*/
|
|
34076
|
+
async apiV1HeadernavigationsGet(languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HeaderNavigationItemModel>>> {
|
|
34077
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HeadernavigationsGet(languageCode, options);
|
|
34078
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34079
|
+
},
|
|
34080
|
+
/**
|
|
34081
|
+
*
|
|
34082
|
+
* @summary Delete HeaderNavigationItem
|
|
34083
|
+
* @param {string} id
|
|
34084
|
+
* @param {*} [options] Override http request option.
|
|
34085
|
+
* @throws {RequiredError}
|
|
34086
|
+
*/
|
|
34087
|
+
async apiV1HeadernavigationsIdDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
34088
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HeadernavigationsIdDelete(id, options);
|
|
34089
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34090
|
+
},
|
|
34091
|
+
/**
|
|
34092
|
+
*
|
|
34093
|
+
* @summary Get HeaderNavigationItem by id
|
|
34094
|
+
* @param {string} id
|
|
34095
|
+
* @param {*} [options] Override http request option.
|
|
34096
|
+
* @throws {RequiredError}
|
|
34097
|
+
*/
|
|
34098
|
+
async apiV1HeadernavigationsIdGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HeaderNavigationItemModel>> {
|
|
34099
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HeadernavigationsIdGet(id, options);
|
|
34100
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34101
|
+
},
|
|
34102
|
+
/**
|
|
34103
|
+
*
|
|
34104
|
+
* @summary Update HeaderNavigationItem
|
|
34105
|
+
* @param {string} id
|
|
34106
|
+
* @param {UpdateHeaderNavigationItemCommand} [updateHeaderNavigationItemCommand]
|
|
34107
|
+
* @param {*} [options] Override http request option.
|
|
34108
|
+
* @throws {RequiredError}
|
|
34109
|
+
*/
|
|
34110
|
+
async apiV1HeadernavigationsIdPut(id: string, updateHeaderNavigationItemCommand?: UpdateHeaderNavigationItemCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
34111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HeadernavigationsIdPut(id, updateHeaderNavigationItemCommand, options);
|
|
34112
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34113
|
+
},
|
|
34114
|
+
/**
|
|
34115
|
+
*
|
|
34116
|
+
* @summary Get HeaderNavigationItems by parent id
|
|
34117
|
+
* @param {string} parentId
|
|
34118
|
+
* @param {*} [options] Override http request option.
|
|
34119
|
+
* @throws {RequiredError}
|
|
34120
|
+
*/
|
|
34121
|
+
async apiV1HeadernavigationsParentIdSubitemsGet(parentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HeaderNavigationItemModel>>> {
|
|
34122
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HeadernavigationsParentIdSubitemsGet(parentId, options);
|
|
34123
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34124
|
+
},
|
|
34125
|
+
/**
|
|
34126
|
+
*
|
|
34127
|
+
* @summary Create HeaderNavigationItem
|
|
34128
|
+
* @param {CreateHeaderNavigationItemCommand} [createHeaderNavigationItemCommand]
|
|
34129
|
+
* @param {*} [options] Override http request option.
|
|
34130
|
+
* @throws {RequiredError}
|
|
34131
|
+
*/
|
|
34132
|
+
async apiV1HeadernavigationsPost(createHeaderNavigationItemCommand?: CreateHeaderNavigationItemCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HeaderNavigationItemModel>> {
|
|
34133
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HeadernavigationsPost(createHeaderNavigationItemCommand, options);
|
|
34134
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34135
|
+
},
|
|
34136
|
+
}
|
|
34137
|
+
};
|
|
34138
|
+
|
|
34139
|
+
/**
|
|
34140
|
+
* HeaderNavigationsApi - factory interface
|
|
34141
|
+
* @export
|
|
34142
|
+
*/
|
|
34143
|
+
export const HeaderNavigationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
34144
|
+
const localVarFp = HeaderNavigationsApiFp(configuration)
|
|
34145
|
+
return {
|
|
34146
|
+
/**
|
|
34147
|
+
*
|
|
34148
|
+
* @summary Batch HeaderNavigationItems; Do Add, update, delete at one request
|
|
34149
|
+
* @param {BatchHeaderNavigationItemsCommand} [batchHeaderNavigationItemsCommand]
|
|
34150
|
+
* @param {*} [options] Override http request option.
|
|
34151
|
+
* @throws {RequiredError}
|
|
34152
|
+
*/
|
|
34153
|
+
apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand?: BatchHeaderNavigationItemsCommand, options?: any): AxiosPromise<BatchHeaderNavigationItemResultModel> {
|
|
34154
|
+
return localVarFp.apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand, options).then((request) => request(axios, basePath));
|
|
34155
|
+
},
|
|
34156
|
+
/**
|
|
34157
|
+
*
|
|
34158
|
+
* @summary Get all HeaderNavigationItems
|
|
34159
|
+
* @param {string} [languageCode]
|
|
34160
|
+
* @param {*} [options] Override http request option.
|
|
34161
|
+
* @throws {RequiredError}
|
|
34162
|
+
*/
|
|
34163
|
+
apiV1HeadernavigationsGet(languageCode?: string, options?: any): AxiosPromise<Array<HeaderNavigationItemModel>> {
|
|
34164
|
+
return localVarFp.apiV1HeadernavigationsGet(languageCode, options).then((request) => request(axios, basePath));
|
|
34165
|
+
},
|
|
34166
|
+
/**
|
|
34167
|
+
*
|
|
34168
|
+
* @summary Delete HeaderNavigationItem
|
|
34169
|
+
* @param {string} id
|
|
34170
|
+
* @param {*} [options] Override http request option.
|
|
34171
|
+
* @throws {RequiredError}
|
|
34172
|
+
*/
|
|
34173
|
+
apiV1HeadernavigationsIdDelete(id: string, options?: any): AxiosPromise<boolean> {
|
|
34174
|
+
return localVarFp.apiV1HeadernavigationsIdDelete(id, options).then((request) => request(axios, basePath));
|
|
34175
|
+
},
|
|
34176
|
+
/**
|
|
34177
|
+
*
|
|
34178
|
+
* @summary Get HeaderNavigationItem by id
|
|
34179
|
+
* @param {string} id
|
|
34180
|
+
* @param {*} [options] Override http request option.
|
|
34181
|
+
* @throws {RequiredError}
|
|
34182
|
+
*/
|
|
34183
|
+
apiV1HeadernavigationsIdGet(id: string, options?: any): AxiosPromise<HeaderNavigationItemModel> {
|
|
34184
|
+
return localVarFp.apiV1HeadernavigationsIdGet(id, options).then((request) => request(axios, basePath));
|
|
34185
|
+
},
|
|
34186
|
+
/**
|
|
34187
|
+
*
|
|
34188
|
+
* @summary Update HeaderNavigationItem
|
|
34189
|
+
* @param {string} id
|
|
34190
|
+
* @param {UpdateHeaderNavigationItemCommand} [updateHeaderNavigationItemCommand]
|
|
34191
|
+
* @param {*} [options] Override http request option.
|
|
34192
|
+
* @throws {RequiredError}
|
|
34193
|
+
*/
|
|
34194
|
+
apiV1HeadernavigationsIdPut(id: string, updateHeaderNavigationItemCommand?: UpdateHeaderNavigationItemCommand, options?: any): AxiosPromise<void> {
|
|
34195
|
+
return localVarFp.apiV1HeadernavigationsIdPut(id, updateHeaderNavigationItemCommand, options).then((request) => request(axios, basePath));
|
|
34196
|
+
},
|
|
34197
|
+
/**
|
|
34198
|
+
*
|
|
34199
|
+
* @summary Get HeaderNavigationItems by parent id
|
|
34200
|
+
* @param {string} parentId
|
|
34201
|
+
* @param {*} [options] Override http request option.
|
|
34202
|
+
* @throws {RequiredError}
|
|
34203
|
+
*/
|
|
34204
|
+
apiV1HeadernavigationsParentIdSubitemsGet(parentId: string, options?: any): AxiosPromise<Array<HeaderNavigationItemModel>> {
|
|
34205
|
+
return localVarFp.apiV1HeadernavigationsParentIdSubitemsGet(parentId, options).then((request) => request(axios, basePath));
|
|
34206
|
+
},
|
|
34207
|
+
/**
|
|
34208
|
+
*
|
|
34209
|
+
* @summary Create HeaderNavigationItem
|
|
34210
|
+
* @param {CreateHeaderNavigationItemCommand} [createHeaderNavigationItemCommand]
|
|
34211
|
+
* @param {*} [options] Override http request option.
|
|
34212
|
+
* @throws {RequiredError}
|
|
34213
|
+
*/
|
|
34214
|
+
apiV1HeadernavigationsPost(createHeaderNavigationItemCommand?: CreateHeaderNavigationItemCommand, options?: any): AxiosPromise<HeaderNavigationItemModel> {
|
|
34215
|
+
return localVarFp.apiV1HeadernavigationsPost(createHeaderNavigationItemCommand, options).then((request) => request(axios, basePath));
|
|
34216
|
+
},
|
|
34217
|
+
};
|
|
34218
|
+
};
|
|
34219
|
+
|
|
34220
|
+
/**
|
|
34221
|
+
* HeaderNavigationsApi - object-oriented interface
|
|
34222
|
+
* @export
|
|
34223
|
+
* @class HeaderNavigationsApi
|
|
34224
|
+
* @extends {BaseAPI}
|
|
34225
|
+
*/
|
|
34226
|
+
export class HeaderNavigationsApi extends BaseAPI {
|
|
34227
|
+
/**
|
|
34228
|
+
*
|
|
34229
|
+
* @summary Batch HeaderNavigationItems; Do Add, update, delete at one request
|
|
34230
|
+
* @param {BatchHeaderNavigationItemsCommand} [batchHeaderNavigationItemsCommand]
|
|
34231
|
+
* @param {*} [options] Override http request option.
|
|
34232
|
+
* @throws {RequiredError}
|
|
34233
|
+
* @memberof HeaderNavigationsApi
|
|
34234
|
+
*/
|
|
34235
|
+
public apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand?: BatchHeaderNavigationItemsCommand, options?: AxiosRequestConfig) {
|
|
34236
|
+
return HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand, options).then((request) => request(this.axios, this.basePath));
|
|
34237
|
+
}
|
|
34238
|
+
|
|
34239
|
+
/**
|
|
34240
|
+
*
|
|
34241
|
+
* @summary Get all HeaderNavigationItems
|
|
34242
|
+
* @param {string} [languageCode]
|
|
34243
|
+
* @param {*} [options] Override http request option.
|
|
34244
|
+
* @throws {RequiredError}
|
|
34245
|
+
* @memberof HeaderNavigationsApi
|
|
34246
|
+
*/
|
|
34247
|
+
public apiV1HeadernavigationsGet(languageCode?: string, options?: AxiosRequestConfig) {
|
|
34248
|
+
return HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsGet(languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
34249
|
+
}
|
|
34250
|
+
|
|
34251
|
+
/**
|
|
34252
|
+
*
|
|
34253
|
+
* @summary Delete HeaderNavigationItem
|
|
34254
|
+
* @param {string} id
|
|
34255
|
+
* @param {*} [options] Override http request option.
|
|
34256
|
+
* @throws {RequiredError}
|
|
34257
|
+
* @memberof HeaderNavigationsApi
|
|
34258
|
+
*/
|
|
34259
|
+
public apiV1HeadernavigationsIdDelete(id: string, options?: AxiosRequestConfig) {
|
|
34260
|
+
return HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
34261
|
+
}
|
|
34262
|
+
|
|
34263
|
+
/**
|
|
34264
|
+
*
|
|
34265
|
+
* @summary Get HeaderNavigationItem by id
|
|
34266
|
+
* @param {string} id
|
|
34267
|
+
* @param {*} [options] Override http request option.
|
|
34268
|
+
* @throws {RequiredError}
|
|
34269
|
+
* @memberof HeaderNavigationsApi
|
|
34270
|
+
*/
|
|
34271
|
+
public apiV1HeadernavigationsIdGet(id: string, options?: AxiosRequestConfig) {
|
|
34272
|
+
return HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
34273
|
+
}
|
|
34274
|
+
|
|
34275
|
+
/**
|
|
34276
|
+
*
|
|
34277
|
+
* @summary Update HeaderNavigationItem
|
|
34278
|
+
* @param {string} id
|
|
34279
|
+
* @param {UpdateHeaderNavigationItemCommand} [updateHeaderNavigationItemCommand]
|
|
34280
|
+
* @param {*} [options] Override http request option.
|
|
34281
|
+
* @throws {RequiredError}
|
|
34282
|
+
* @memberof HeaderNavigationsApi
|
|
34283
|
+
*/
|
|
34284
|
+
public apiV1HeadernavigationsIdPut(id: string, updateHeaderNavigationItemCommand?: UpdateHeaderNavigationItemCommand, options?: AxiosRequestConfig) {
|
|
34285
|
+
return HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsIdPut(id, updateHeaderNavigationItemCommand, options).then((request) => request(this.axios, this.basePath));
|
|
34286
|
+
}
|
|
34287
|
+
|
|
34288
|
+
/**
|
|
34289
|
+
*
|
|
34290
|
+
* @summary Get HeaderNavigationItems by parent id
|
|
34291
|
+
* @param {string} parentId
|
|
34292
|
+
* @param {*} [options] Override http request option.
|
|
34293
|
+
* @throws {RequiredError}
|
|
34294
|
+
* @memberof HeaderNavigationsApi
|
|
34295
|
+
*/
|
|
34296
|
+
public apiV1HeadernavigationsParentIdSubitemsGet(parentId: string, options?: AxiosRequestConfig) {
|
|
34297
|
+
return HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsParentIdSubitemsGet(parentId, options).then((request) => request(this.axios, this.basePath));
|
|
34298
|
+
}
|
|
34299
|
+
|
|
34300
|
+
/**
|
|
34301
|
+
*
|
|
34302
|
+
* @summary Create HeaderNavigationItem
|
|
34303
|
+
* @param {CreateHeaderNavigationItemCommand} [createHeaderNavigationItemCommand]
|
|
34304
|
+
* @param {*} [options] Override http request option.
|
|
34305
|
+
* @throws {RequiredError}
|
|
34306
|
+
* @memberof HeaderNavigationsApi
|
|
34307
|
+
*/
|
|
34308
|
+
public apiV1HeadernavigationsPost(createHeaderNavigationItemCommand?: CreateHeaderNavigationItemCommand, options?: AxiosRequestConfig) {
|
|
34309
|
+
return HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsPost(createHeaderNavigationItemCommand, options).then((request) => request(this.axios, this.basePath));
|
|
34310
|
+
}
|
|
34311
|
+
}
|
|
34312
|
+
|
|
34313
|
+
|
|
33488
34314
|
/**
|
|
33489
34315
|
* HospitalsApi - axios parameter creator
|
|
33490
34316
|
* @export
|
|
@@ -40709,13 +41535,16 @@ export const HospitalsConsultationTimetableOverridesApiAxiosParamCreator = funct
|
|
|
40709
41535
|
*
|
|
40710
41536
|
* @summary Get consultation timetable override items
|
|
40711
41537
|
* @param {string} hospitalId
|
|
41538
|
+
* @param {boolean} [includesPreviousItems]
|
|
41539
|
+
* @param {Date} [startDate]
|
|
41540
|
+
* @param {Date} [endDate]
|
|
40712
41541
|
* @param {number} [page]
|
|
40713
41542
|
* @param {number} [limit]
|
|
40714
41543
|
* @param {Date} [lastRetrieved]
|
|
40715
41544
|
* @param {*} [options] Override http request option.
|
|
40716
41545
|
* @throws {RequiredError}
|
|
40717
41546
|
*/
|
|
40718
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: async (hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41547
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: async (hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40719
41548
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
40720
41549
|
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesGet', 'hospitalId', hospitalId)
|
|
40721
41550
|
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides`
|
|
@@ -40735,6 +41564,22 @@ export const HospitalsConsultationTimetableOverridesApiAxiosParamCreator = funct
|
|
|
40735
41564
|
// oauth required
|
|
40736
41565
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
40737
41566
|
|
|
41567
|
+
if (includesPreviousItems !== undefined) {
|
|
41568
|
+
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
41569
|
+
}
|
|
41570
|
+
|
|
41571
|
+
if (startDate !== undefined) {
|
|
41572
|
+
localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
|
|
41573
|
+
(startDate as any).toISOString() :
|
|
41574
|
+
startDate;
|
|
41575
|
+
}
|
|
41576
|
+
|
|
41577
|
+
if (endDate !== undefined) {
|
|
41578
|
+
localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
|
|
41579
|
+
(endDate as any).toISOString() :
|
|
41580
|
+
endDate;
|
|
41581
|
+
}
|
|
41582
|
+
|
|
40738
41583
|
if (page !== undefined) {
|
|
40739
41584
|
localVarQueryParameter['page'] = page;
|
|
40740
41585
|
}
|
|
@@ -40958,14 +41803,17 @@ export const HospitalsConsultationTimetableOverridesApiFp = function(configurati
|
|
|
40958
41803
|
*
|
|
40959
41804
|
* @summary Get consultation timetable override items
|
|
40960
41805
|
* @param {string} hospitalId
|
|
41806
|
+
* @param {boolean} [includesPreviousItems]
|
|
41807
|
+
* @param {Date} [startDate]
|
|
41808
|
+
* @param {Date} [endDate]
|
|
40961
41809
|
* @param {number} [page]
|
|
40962
41810
|
* @param {number} [limit]
|
|
40963
41811
|
* @param {Date} [lastRetrieved]
|
|
40964
41812
|
* @param {*} [options] Override http request option.
|
|
40965
41813
|
* @throws {RequiredError}
|
|
40966
41814
|
*/
|
|
40967
|
-
async apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableOverridesModel>> {
|
|
40968
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, page, limit, lastRetrieved, options);
|
|
41815
|
+
async apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableOverridesModel>> {
|
|
41816
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options);
|
|
40969
41817
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40970
41818
|
},
|
|
40971
41819
|
/**
|
|
@@ -41042,14 +41890,17 @@ export const HospitalsConsultationTimetableOverridesApiFactory = function (confi
|
|
|
41042
41890
|
*
|
|
41043
41891
|
* @summary Get consultation timetable override items
|
|
41044
41892
|
* @param {string} hospitalId
|
|
41893
|
+
* @param {boolean} [includesPreviousItems]
|
|
41894
|
+
* @param {Date} [startDate]
|
|
41895
|
+
* @param {Date} [endDate]
|
|
41045
41896
|
* @param {number} [page]
|
|
41046
41897
|
* @param {number} [limit]
|
|
41047
41898
|
* @param {Date} [lastRetrieved]
|
|
41048
41899
|
* @param {*} [options] Override http request option.
|
|
41049
41900
|
* @throws {RequiredError}
|
|
41050
41901
|
*/
|
|
41051
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalConsultationTimetableOverridesModel> {
|
|
41052
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
41902
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalConsultationTimetableOverridesModel> {
|
|
41903
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
41053
41904
|
},
|
|
41054
41905
|
/**
|
|
41055
41906
|
*
|
|
@@ -41123,6 +41974,9 @@ export class HospitalsConsultationTimetableOverridesApi extends BaseAPI {
|
|
|
41123
41974
|
*
|
|
41124
41975
|
* @summary Get consultation timetable override items
|
|
41125
41976
|
* @param {string} hospitalId
|
|
41977
|
+
* @param {boolean} [includesPreviousItems]
|
|
41978
|
+
* @param {Date} [startDate]
|
|
41979
|
+
* @param {Date} [endDate]
|
|
41126
41980
|
* @param {number} [page]
|
|
41127
41981
|
* @param {number} [limit]
|
|
41128
41982
|
* @param {Date} [lastRetrieved]
|
|
@@ -41130,8 +41984,8 @@ export class HospitalsConsultationTimetableOverridesApi extends BaseAPI {
|
|
|
41130
41984
|
* @throws {RequiredError}
|
|
41131
41985
|
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
41132
41986
|
*/
|
|
41133
|
-
public apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
41134
|
-
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
41987
|
+
public apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
41988
|
+
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
41135
41989
|
}
|
|
41136
41990
|
|
|
41137
41991
|
/**
|